:root {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --accent-color: #ff6f61;
    --accent2-color: #feb47b;
    --light-bg: #f5f6fa;
    --dark-bg: #2c3e50;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --font-base: 16px;
    --font-small: 0.875rem;
    --font-medium: 1rem;
    --font-large: 1.125rem;
    --font-xl: 1.25rem;
    --font-xxl: 1.75rem;
    --font-xxxl: 2rem;
    --line-height: 1.6;
    --hc-text: #000000;
    --hc-bg: #ffffff;
    --hc-primary: #0000ff;
    --hc-secondary: #008000;
    --hc-accent: #ff0000;
}

[data-theme="high-contrast"] {
    --text-dark: var(--hc-text);
    --primary-color: var(--hc-primary);
    --secondary-color: var(--hc-secondary);
    --accent-color: var(--hc-accent);
    --light-bg: var(--hc-bg);
    --dark-bg: var(--hc-bg);
}

[data-theme="high-contrast"] * {
    border-color: var(--hc-primary) !important;
    background-color: var(--hc-bg) !important;
    color: var(--hc-text) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: var(--font-medium);
    line-height: var(--line-height);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 12px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 10px;
}

/* Container and Grid */
.container-fluid {
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

.col-lg-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

@media (max-width: 991px) {
    .col-lg-9,
    .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Top Bar */
.top-bar {
    background: var(--light-bg);
    padding: 8px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.top-bar .row {
    align-items: center;
}

.top-bar .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 5px;
}

.top-bar .text-end {
    text-align: right;
}

.accessibility-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.accessibility-controls span {
    font-size: 0.9rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.accessibility-controls span:hover,
.accessibility-controls span:focus,
.accessibility-controls span.active {
    background: var(--primary-color);
    color: var(--white);
}

.accessibility-controls i {
    margin-right: 5px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.header-container {
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.branding-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    animation: logoFloat 3s ease-in-out infinite;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-title {
    font-size: var(--font-xxxl);
    font-weight: 700;
    animation: titleGlow 2s ease-in-out infinite alternate;
    padding: 0 15px;
}

.site-subtitle {
    font-size: var(--font-small);
    opacity: 0.9;
    margin: 0;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes titleGlow {
    from { text-shadow: 0 0 4px rgba(255,255,255,0.5); }
    to { text-shadow: 0 0 10px rgba(255,255,255,0.8); }
}

/* Menubar */
.navbar {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    flex-direction: row; /* Ensure horizontal layout by default */
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--font-small);
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--accent-color), var(--accent2-color));
    color: var(--white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Responsive Adjustments for Navbar */
@media (max-width: 768px) {
    .navbar-nav {
        display: none; /* Hidden by default on mobile */
        flex-direction: column; /* Stack vertically on mobile */
        width: 100%;
        background: var(--primary-color);
        padding: 10px;
        border-radius: 5px;
    }

    .navbar-nav.active {
        display: flex; /* Show when toggled */
    }

    .nav-link {
        padding: 10px;
        font-size: var(--font-medium);
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    color: var(--white);
    padding: 5px 0 5px;
    margin-top: 1px;
}

.footer-content {
    margin: 0 auto;
    padding: 0 5px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: var(--font-medium);
}

.footer-section p,
.footer-section a {
    color: var(--light-bg);
    text-decoration: none;
    line-height: 1.6;
    font-size: 0.8rem;
}

.footer-section a:hover,
.footer-section a:focus {
    color: var(--accent2-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 5px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .top-bar .row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .top-bar .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }

    .top-bar .text-end {
        text-align: center;
    }

    .accessibility-controls {
        justify-content: center;
        gap: 8px;
    }

    .accessibility-controls span {
        font-size: 0.8rem;
        padding: 3px 6px;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .branding-left {
        margin-bottom: 10px;
    }

    .site-title {
        font-size: var(--font-xxl);
    }

    .site-subtitle {
        font-size: 0.8rem;
    }

    .logo-section {
        gap: 10px;
    }

    .navbar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .accessibility-controls span {
        font-size: 0.75rem;
        padding: 2px 5px;
    }

    .site-title {
        font-size: var(--font-large);
    }
}

/* Font Size Adjustments */
body[data-font-size="small"] {
    --font-base: 14px;
    --font-small: 0.75rem;
    --font-medium: 0.875rem;
    --font-large: 1rem;
    --font-xl: 1.125rem;
    --font-xxl: 1.25rem;
    --font-xxxl: 1.5rem;
}

body[data-font-size="large"] {
    --font-base: 18px;
    --font-small: 1rem;
    --font-medium: 1.125rem;
    --font-large: 1.25rem;
    --font-xl: 1.375rem;
    --font-xxl: 1.75rem;
    --font-xxxl: 2.25rem;
}

body[data-font-size="xlarge"] {
    --font-base: 20px;
    --font-small: 1.125rem;
    --font-medium: 1.25rem;
    --font-large: 1.375rem;
    --font-xl: 1.5rem;
    --font-xxl: 2rem;
    --font-xxxl: 2.5rem;
}

*:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media print {
    .top-bar,
    .slider-nav,
    .news-ticker,
    .menu-toggle {
        display: none;
    }

    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
    }
}

/* Add page-specific styles here if needed, e.g., for acts table */
.acts-table {
    width: 100%;
    border-collapse: collapse;
}

.acts-table th, .acts-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.table-responsive {
    overflow-x: auto;
}

/*

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #343a40; 
    color: #fff;
    text-align: center;
    padding: 10px 0;
    z-index: 1000;
}

 */

        :root {
            --primary-color: #1e3c72;
            --secondary-color: #2a5298;
            --accent-color: #ff6f61;
            --accent2-color: #feb47b;
            --light-bg: #f5f6fa;
            --dark-bg: #2c3e50;
            --white: #ffffff;
            --text-dark: #2c3e50;
            --text-light: #7f8c8d;
            --font-base: 16px;
            --font-small: 0.875rem;
            --font-medium: 1rem;
            --font-large: 1.125rem;
            --font-xl: 1.25rem;
            --font-xxl: 1.75rem;
            --font-xxxl: 2rem;
            --line-height: 1.6;
            --hc-text: #000000;
            --hc-bg: #ffffff;
            --hc-primary: #0000ff;
            --hc-secondary: #008000;
            --hc-accent: #ff0000;
        }

        [data-theme="high-contrast"] {
            --text-dark: var(--hc-text);
            --primary-color: var(--hc-primary);
            --secondary-color: var(--hc-secondary);
            --accent-color: var(--hc-accent);
            --light-bg: var(--hc-bg);
            --dark-bg: var(--hc-bg);
        }

        [data-theme="high-contrast"] * {
            border-color: var(--hc-primary) !important;
            background-color: var(--hc-bg) !important;
            color: var(--hc-text) !important;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Noto Sans Devanagari', sans-serif;
            font-size: var(--font-medium);
            line-height: var(--line-height);
            color: var(--text-dark);
            background-color: var(--white);
            overflow-x: hidden;
        }

        .skip-link {
            position: absolute;
            top: -40px;
            left: 10px;
            background: var(--primary-color);
            color: var(--white);
            padding: 8px 12px;
            text-decoration: none;
            z-index: 1000;
            border-radius: 4px;
        }

        .skip-link:focus {
            top: 10px;
        }

        /* Container and Grid */
        .container-fluid {
         
            margin: 0 auto;
            padding: 0 15px;
        }

        .row {
            display: flex;
            flex-wrap: wrap;
            margin-left: -15px;
            margin-right: -15px;
        }

        [class*="col-"] {
            padding-left: 15px;
            padding-right: 15px;
        }

        .col-lg-9 {
            flex: 0 0 75%;
            max-width: 75%;
        }

        .col-lg-3 {
            flex: 0 0 25%;
            max-width: 25%;
        }

        @media (max-width: 991px) {
            .col-lg-9,
            .col-lg-3 {
                flex: 0 0 100%;
                max-width: 100%;
            }
        }

        /* Top Bar */
        .top-bar {
            background: var(--light-bg);
            padding: 8px 0;
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        }

        .top-bar .row {
            align-items: center;
        }

        .top-bar .col-md-6 {
            flex: 0 0 50%;
            max-width: 50%;
            padding: 5px;
        }

        .top-bar .text-end {
            text-align: right;
        }

        .accessibility-controls {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: 5px;
        }

        .accessibility-controls span {
            font-size: 0.9rem;
            color: var(--primary-color);
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .accessibility-controls span:hover,
        .accessibility-controls span:focus,
        .accessibility-controls span.active {
            background: var(--primary-color);
            color: var(--white);
        }

        .accessibility-controls i {
            margin-right: 5px;
        }

        /* Header */
        header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: var(--white);
            padding: 10px 0;
            position: sticky;
            top: 0;
            z-index: 999;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }

        .header-container {
          
            margin: 0 auto;
            padding: 0 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .branding-left {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            animation: logoFloat 3s ease-in-out infinite;
        }

        .logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .site-title {
            font-size: var(--font-xxxl);
            font-weight: 700;
            animation: titleGlow 2s ease-in-out infinite alternate;
            padding: 0 15px;
        }

        .site-subtitle {
            font-size: var(--font-small);
            opacity: 0.9;
            margin: 0;
        }

        @keyframes logoFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-4px); }
        }

        @keyframes titleGlow {
            from { text-shadow: 0 0 4px rgba(255,255,255,0.5); }
            to { text-shadow: 0 0 10px rgba(255,255,255,0.8); }
        }

        /* Menubar */
        .navbar {
            display: flex;
            align-items: center;
        }

        .navbar-nav {
            display: flex;
            list-style: none;
            gap: 8px;
        }

        .nav-item {
            margin: 0;
        }

        .nav-link {
            color: var(--white);
            font-weight: 500;
            padding: 8px 12px;
            text-decoration: none;
            border-radius: 5px;
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: var(--font-small);
            transition: all 0.2s ease;
        }

        .nav-link:hover,
        .nav-link:focus {
            background: rgba(255,255,255,0.2);
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        }

        .nav-link.active {
            background: linear-gradient(135deg, var(--accent-color), var(--accent2-color));
            color: var(--white);
        }

/* ──────────────────────────────────────────────────────────────
   FORCE DROPDOWN TO OVERLAY – NO MENU EXPANSION
   ────────────────────────────────────────────────────────────── */
.navbar .dropdown {
    position: relative !important;
}

.navbar .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 1070 !important;           /* above everything */
    margin-top: 0.25rem !important;
    min-width: 180px;
    border: 1px solid rgba(0,0,0,.15) !important;
    box-shadow: 0 8px 16px rgba(0,0,0,.2) !important;
    border-radius: 0.375rem !important;
    background: #fff !important;
}

/* Desktop: full overlay */
@media (min-width: 769px) {
    .navbar .dropdown-menu {
        transform: translateY(0) !important;
    }
}

/* Mobile: dropdown stays inside the collapsed menu */
@media (max-width: 768px) {
    .navbar .dropdown {
        position: static !important;
    }
    .navbar .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: rgba(255,255,255,.98) !important;
        border-radius: 0 !important;
    }
    .navbar .dropdown-item {
        padding-left: 2rem !important;
        font-size: 0.95rem;
    }
}

/* Prevent any parent flex from breaking layout */
.navbar-nav {
    position: relative !important;
}
        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--white);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 8px;
        }

        .menu-toggle:focus {
            outline: 2px solid var(--white);
            outline-offset: 2px;
        }

        /* Slider Section */
        .hero-section {
            position: relative;
            height: 350px;
            margin-bottom: 30px;
            overflow: hidden;
            border-radius: 10px;
            box-shadow: 0 6px 15px rgba(0,0,0,0.1);
        }

        .slider {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
        }

        .slide.active {
            opacity: 1;
        }

        .slide-content {
            background: rgba(255,255,255,0.9);
            backdrop-filter: blur(6px);
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            width: 100%;
            max-width: 600px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            position: absolute;
            bottom: 20px;
            margin: 0 15px;
            animation: slideIn 0.6s ease-out;
        }

        .slide h2 {
            color: var(--primary-color);
            font-size: var(--font-large);
            margin-bottom: 8px;
        }

        .slide p {
            color: var(--text-light);
            font-size: var(--font-small);
            margin-bottom: 0;
        }

        .slider-nav {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 10;
        }

        .slider-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255,255,255,0.7);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .slider-dot.active,
        .slider-dot:hover {
            background: var(--secondary-color);
            transform: scale(1.2);
        }

        @keyframes slideIn {
            from { transform: translateY(15px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        /* News Ticker */
        .news-ticker {
            background: var(--light-bg);
            padding: 15px 0;
            margin: 30px 0;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            overflow: hidden;
        }

        .news-row {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .news-title {
            font-size: var(--font-large);
            color: var(--primary-color);
            flex: 0 0 auto;
            white-space: nowrap;
            animation: flash 2s ease-in-out infinite;
        }

        .news-title i {
            margin-right: 8px;
        }

        @keyframes flash {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .news-content {
            flex: 1;
            overflow: hidden;
            position: relative;
            height: 40px;
            min-width: 0;
        }

        .news-list {
            display: flex;
            list-style: none;
            position: absolute;
            width: 100%;
            height: 100%;
            animation: none;
        }

        .news-list.paused {
            animation-play-state: paused;
        }

        .news-list li {
            flex: 0 0 100%;
            text-align: left;
            padding: 8px 15px;
            background: var(--white);
            border-radius: 8px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            opacity: 0;
            transition: opacity 0.5s ease, transform 0.5s ease;
            position: absolute;
            width: 100%;
            transform: translateX(100%);
        }

        .news-list li.active {
            opacity: 1;
            transform: translateX(0);
        }

        .news-list li a {
            color: var(--primary-color);
            text-decoration: none;
            font-size: var(--font-medium);
            display: block;
            transition: all 0.2s ease;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .news-list li a:hover,
        .news-list li a:focus {
            color: var(--accent-color);
            text-decoration: underline;
        }

        .news-controls {
            display: flex;
            gap: 5px;
            flex: 0 0 auto;
            white-space: nowrap;
        }

        .news-controls button {
            background: var(--primary-color);
            color: var(--white);
            border: none;
            padding: 6px 10px;
            border-radius: 5px;
            cursor: pointer;
            font-size: var(--font-small);
            transition: all 0.2s ease;
        }

        .news-controls button:hover,
        .news-controls button:focus {
            background: var(--secondary-color);
            transform: scale(1.1);
        }

        .news-controls button:disabled {
            background: var(--text-light);
            cursor: not-allowed;
        }

    
/* Cards Section */
.cards-section {
    padding: 30px 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Exactly 2 cards per row */
    gap: 15px;
    margin-top: 15px;
}

.card {
    background: var(--white);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position: relative;
    animation: cardFadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card:hover,
.card:focus-within {
    transform: translateZ(20px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 10px;
}

.card:hover::after,
.card:focus-within::after {
    opacity: 1;
    animation: shine 1s ease infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card h3 {
    color: var(--primary-color);
    font-size: var(--font-large);
    margin-bottom: 8px;
    font-weight: 600;
}

.card p {
    color: var(--text-light);
    font-size: var(--font-small);
    margin-bottom: 10px;
}

.card-btn {
    display: inline-block;
    padding: 8px 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 500;
    font-size: var(--font-small);
    transition: all 0.3s ease;
}

.card-btn:hover,
.card-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr; /* Stack cards vertically on mobile */
        gap: 10px;
    }

    .card {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        gap: 8px;
    }

    .card {
        padding: 10px;
    }
}


        /* Quick Links and Notifications */
        .quick-links {
            background: var(--white);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
        }

        .quick-links .project-title {
            color: var(--primary-color);
            font-size: var(--font-large);
            margin-bottom: 15px;
            font-weight: 600;
        }

        .quick-link-item {
            display: block;
            color: var(--primary-color);
            text-decoration: none;
            font-size: var(--font-small);
            padding: 10px 0;
            transition: all 0.3s ease;
            animation: slideInLink 0.5s ease-out forwards;
            opacity: 0;
            transform: translateX(-20px);
        }

        .quick-link-item:nth-child(1) { animation-delay: 0.1s; }
        .quick-link-item:nth-child(2) { animation-delay: 0.2s; }
        .quick-link-item:nth-child(3) { animation-delay: 0.3s; }
        .quick-link-item:nth-child(4) { animation-delay: 0.4s; }
        .quick-link-item:nth-child(5) { animation-delay: 0.5s; }
        .quick-link-item:nth-child(6) { animation-delay: 0.6s; }
        .quick-link-item:nth-child(7) { animation-delay: 0.7s; }
        .quick-link-item:nth-child(8) { animation-delay: 0.8s; }
        .quick-link-item:nth-child(9) { animation-delay: 0.9s; }

        .quick-link-item:hover,
        .quick-link-item:focus {
            color: var(--accent-color);
            text-decoration: underline;
            transform: translateX(5px) scale(1.05);
        }

        .quick-link-item i {
            margin-right: 8px;
        }

        @keyframes slideInLink {
            from { opacity: 0; transform: translateX(-20px); }
            to { opacity: 1; transform: translateX(0); }
        }

        /* Footer */
        footer {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
            color: var(--white);
            padding: 5px 0 5px;
            margin-top: 5px;
        }

        .footer-content {
           
            margin: 0 auto;
           
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 15px;
        }

        .footer-section h4 {
            color: var(--accent-color);
            margin-bottom: 10px;
            font-size: var(--font-medium);
        }

        .footer-section p,
        .footer-section a {
            color: var(--light-bg);
            text-decoration: none;
            line-height: 1.6;
            font-size: 0.8rem;
        }

        .footer-section a:hover,
        .footer-section a:focus {
            color: var(--accent2-color);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 5px;
            border-top: 1px solid rgba(255,255,255,0.1);
            font-size: 0.8rem;
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .top-bar .row {
                flex-direction: column;
                align-items: center;
                gap: 10px;
            }

            .top-bar .col-md-6 {
                flex: 0 0 100%;
                max-width: 100%;
                text-align: center;
            }

            .top-bar .text-end {
                text-align: center;
            }

            .accessibility-controls {
                justify-content: center;
                gap: 8px;
            }

            .accessibility-controls span {
                font-size: 0.8rem;
                padding: 3px 6px;
            }

            .header-container {
                flex-direction: column;
                align-items: flex-start;
                padding: 10px;
            }

            .branding-left {
                margin-bottom: 10px;
            }

            .site-title {
                font-size: var(--font-xxl);
                
            }

            .site-subtitle {
                font-size: 0.8rem;
            }

            .logo-section {
                gap: 10px;
            }

            .navbar {
                width: 100%;
            }

            .navbar-nav {
                display: none;
                flex-direction: column;
                width: 100%;
                background: var(--primary-color);
                padding: 10px;
                border-radius: 5px;
            }

            .navbar-nav.active {
                display: flex;
            }

            .nav-link {
                padding: 10px;
                font-size: var(--font-medium);
            }

            .menu-toggle {
                display: block;
                position: absolute;
                right: 15px;
                top: 15px;
            }

            .hero-section {
                height: 280px;
            }

            .slide-content {
                padding: 10px;
                max-width: 90%;
                bottom: 15px;
            }

            .slide h2 {
                font-size: var(--font-medium);
            }

            .slide p {
                font-size: 0.8rem;
            }

            .slider-nav {
                bottom: 5px;
            }

            .news-ticker {
                padding: 10px 0;
            }

            .news-row {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }

            .news-title {
                font-size: var(--font-medium);
                width: 100%;
                text-align: left;
                order: 1;
            }

            .news-content {
                width: 100%;
                height: 60px;
                order: 2;
            }

            .news-list li {
                font-size: 0.8rem;
                padding: 10px;
            }

            .news-list li a {
                white-space: normal;
                word-wrap: break-word;
                text-overflow: unset;
                line-height: 1.4;
            }

            .news-controls {
                width: 100%;
                justify-content: center;
                gap: 10px;
                padding-top: 5px;
                order: 3;
            }

            .news-controls button {
                padding: 6px 12px;
                font-size: 0.8rem;
            }

            .quick-links {
                padding: 15px;
                margin-bottom: 15px;
            }

            .quick-links .project-title {
                font-size: var(--font-medium);
                margin-bottom: 12px;
            }

            .quick-link-item {
                font-size: 0.8rem;
                padding: 8px 0;
            }
        }

        @media (max-width: 480px) {
            .accessibility-controls span {
                font-size: 0.75rem;
                padding: 2px 5px;
            }

            .site-title {
                font-size: var(--font-large);
            }

            .news-title {
                font-size: 0.9rem;
            }

            .news-content {
                height: 80px;
            }

            .news-list li {
                font-size: 0.75rem;
                padding: 8px;
            }

            .news-controls button {
                padding: 5px 10px;
                font-size: 0.75rem;
            }

            .quick-links {
                padding: 12px;
                margin-bottom: 12px;
            }

            .quick-link-item {
                font-size: 0.75rem;
                padding: 7px 0;
            }
        }

        /* Font Size Adjustments */
        body[data-font-size="small"] {
            --font-base: 14px;
            --font-small: 0.75rem;
            --font-medium: 0.875rem;
            --font-large: 1rem;
            --font-xl: 1.125rem;
            --font-xxl: 1.25rem;
            --font-xxxl: 1.5rem;
        }

        body[data-font-size="large"] {
            --font-base: 18px;
            --font-small: 1rem;
            --font-medium: 1.125rem;
            --font-large: 1.25rem;
            --font-xl: 1.375rem;
            --font-xxl: 1.75rem;
            --font-xxxl: 2.25rem;
        }

        body[data-font-size="xlarge"] {
            --font-base: 20px;
            --font-small: 1.125rem;
            --font-medium: 1.25rem;
            --font-large: 1.375rem;
            --font-xl: 1.5rem;
            --font-xxl: 2rem;
            --font-xxxl: 2.5rem;
        }

        *:focus {
            outline: 2px solid var(--secondary-color);
            outline-offset: 2px;
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            border: 0;
        }

        @media print {
            .top-bar,
            .slider-nav,
            .news-ticker,
            .menu-toggle {
                display: none;
            }

            .navbar-nav {
                display: flex !important;
                flex-direction: row !important;
            }
        }
    
    
    .news-article {
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}
.news-article img {
    max-width: 600px;
    margin: 0 auto;
}
.news-content {
    line-height: 1.6;
}
.archive-year h4 {
    color: #007bff;
    margin-bottom: 10px;
}
.archive-tree .list-group-item a {
    color: #333;
    text-decoration: none;
}
.archive-tree .list-group-item a:hover {
    color: #007bff;
    text-decoration: underline;
}