:root {
    --theme-primary: #1d4e89;
    --theme-primary-dark: #163d6d;
    --theme-surface: #ffffff;
    --theme-surface-soft: #f7f9fc;
    --theme-text: #1f2937;
    --theme-muted: #6b7280;
    --theme-border: #e5e7eb;
    --theme-shadow: 0 10px 30px rgba(2, 12, 27, 0.08);
    --theme-radius: 14px;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
}

body {
    color: var(--theme-text);
    background: #f4f7fb;
}

.header-last {
    position: relative;
    z-index: 1040;
    background: #ffffff !important;
    transition: all 0.3s ease-in-out;
}

.sticky-logo-wrap {
    display: none !important;
}

/* Scrolled/Fixed State */
.header-last.sticky-scrolled {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    padding: 2px 0;
    background: #ffffff !important;
    animation: stickySlideDown 0.4s ease-out;
}

.header-last.sticky-scrolled .sticky-logo-wrap {
    display: flex !important;
    animation: fadeIn 0.4s ease-out;
}

@keyframes stickySlideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.modern-top-bar {
    padding: 4px 0 !important;
}

.top-header {
    padding: 15px 0 !important;
}

.officename {
    line-height: 1.2;
    margin-top: 2px;
}

.govname {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-bar .list-group-item,
.quick-link .list-group-item {
    border-color: var(--theme-border);
}

.card,
.staff-info,
.v-staff-desk,
.about-us-sec {
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    box-shadow: var(--theme-shadow);
    background: var(--theme-surface);
}

.card-title,
.officename,
.govname {
    letter-spacing: 0.2px;
}

.btn {
    border-radius: 10px;
    font-weight: 600;
}

.btn-info,
.btn-primary {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.btn-info:hover,
.btn-primary:hover,
.btn-info:focus,
.btn-primary:focus {
    background-color: var(--theme-primary-dark);
    border-color: var(--theme-primary-dark);
}

.navbar .dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
    background: #ffffff !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: fadeInDown 0.3s ease-out;
}

.navbar .dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    color: #4b5563 !important;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
    font-weight: 500;
}

.navbar .dropdown-item:last-child {
    border-bottom: none;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active {
    background: #f8fafc !important;
    color: var(--theme-primary) !important;
    padding-left: 1.6rem; /* Slide effect */
}

/* Premium Side Accent Bar for Dropdown Hover/Active */
.navbar .dropdown-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--theme-primary);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.navbar .dropdown-item:hover::before,
.navbar .dropdown-item.active::before {
    height: 16px;
}

.table {
    --bs-table-striped-bg: #f8fbff;
}

.table thead th,
.table thead td {
    background: var(--theme-surface-soft);
    border-bottom-width: 1px;
}

.quick-link {
    border-radius: var(--theme-radius);
    overflow: hidden;
}

.quick-link .list-group-item {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.tap-box,
.section_news .list-group,
.nav-tabs-navigation {
    border-radius: var(--theme-radius);
    overflow: hidden;
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow);
    background: var(--theme-surface);
}

.tap-box-list {
    border-bottom: 1px solid var(--theme-border);
}

.tap-box-list:last-child {
    border-bottom: 0;
}

.footer,
footer {
    background: #0f2238;
    color: #d8e1ee;
}

#copyright {
    background: #091629;
    color: #dbe6f6;
}

a {
    text-underline-offset: 2px;
}

.modern-header {
    background: #ffffff;
    z-index: 1040;
}

.modern-navbar {
    min-height: 50px;
}

.modern-navbar .navbar-toggler {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.45rem 0.6rem;
}

.modern-navbar .navbar-nav .nav-link {
    color: #374151 !important;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 0; 
}

.modern-navbar .navbar-nav .nav-link:hover,
.modern-navbar .navbar-nav .nav-link.active {
    color: #ffffff;
    background: transparent !important;
}

/* Premium Animated Underline - Modern Look */
.modern-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--theme-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.modern-navbar .navbar-nav .nav-link:hover::after,
.modern-navbar .navbar-nav .nav-link.active::after {
    width: 24px;
}

.desktop-navbar-wrap {
    flex: 1 1 auto;
    justify-content: flex-end;
}

.desktop-navbar-nav {
    gap: 0.15rem;
}

.desktop-navbar-nav>.nav-item>.dropdown-menu {
    margin-top: 0.6rem;
    min-width: 15rem;
}

.modern-sidebar-offcanvas {
    width: min(90vw, 350px);
}

.mobile-nav-links {
    padding-bottom: 0.6rem;
}

.mobile-nav-links .accordion-button {
    font-weight: 600;
    color: #1f2937;
}

.mobile-nav-links .accordion-button:not(.collapsed) {
    color: var(--theme-primary-dark);
    background: #edf3fb;
}

.mobile-nav-links .accordion-body .nav-link {
    color: #374151;
    border-radius: 8px;
    padding-left: 0.5rem;
}

.mobile-nav-links .accordion-body .nav-link:hover {
    color: var(--theme-primary-dark);
    background: #f3f7fd;
}

.sidebar-contact-info a {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf3fb;
}

@media (min-width: 992px) {
    .desktop-navbar-nav .dropdown:hover>.dropdown-menu {
        display: block;
    }

    .desktop-navbar-nav .dropdown>.dropdown-toggle:after {
        margin-inline-start: 0.32rem;
    }
}

@media (max-width: 991.98px) {
    .top-header .officename {
        font-size: 1.4rem !important;
        line-height: 1.45 !important;
    }

    .top-header .govname,
    .top-header .addressname {
        font-size: 0.95rem !important;
    }

    .card,
    .staff-info,
    .v-staff-desk,
    .about-us-sec {
        border-radius: 10px;
    }

    .modern-navbar {
        min-height: 56px;
    }

    .modern-header {
        backdrop-filter: none;
    }
}

/* Modern News Ticker */
:root {
    --ticker-bg: rgba(255, 255, 255, 0.82);
    --ticker-border: rgba(255, 255, 255, 0.4);
    --ticker-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
}

.modern-news-ticker {
    display: flex;
    align-items: center;
    background: var(--ticker-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--ticker-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--ticker-shadow);
    margin: 0.75rem 0;
    height: 48px;
    animation: fadeInDown 0.8s ease-out;
}

.modern-news-label {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark));
    color: white;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-family: 'Mukta', sans-serif;
    position: relative;
    z-index: 10;
    white-space: nowrap;
    font-size: 1rem;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

.modern-news-label::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 12px solid var(--theme-primary-dark);
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
}

.modern-news-scroll-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.modern-news-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    height: 100%;
    will-change: transform;
}

.modern-news-item {
    display: inline-flex;
    align-items: center;
    color: var(--theme-text);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Mukta', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0 15px;
}

.modern-news-item:hover {
    color: var(--theme-primary);
    transform: translateY(-1px);
}

.modern-news-sep {
    color: #cbd5e1;
    font-size: 0.8rem;
    opacity: 0.5;
    user-select: none;
}

@keyframes ticker-animation {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .modern-news-ticker {
        height: 44px;
        margin: 1rem 0;
    }

    .modern-news-label {
        padding: 0 16px;
        font-size: 0.9rem;
    }

    .modern-news-item {
        font-size: 0.9rem;
    }
}

/* Modern Slider (Carousel) Enhancement */
.modern-carousel .carousel-item {
    height: 480px; /* Slightly reduced height for better proportion */
    background-color: var(--theme-surface-soft);
}

.modern-carousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 12s linear;
}

.modern-carousel .carousel-item.active img {
    transform: scale(1.05); /* reduced scaling for subtlety */
}

.modern-carousel .carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 49, 99, 0.75) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.modern-carousel .carousel-caption {
    z-index: 2;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.95); /* Solid clean background */
    border-left: 4px solid var(--theme-primary);
    border-radius: 4px;
    bottom: 30px;
    max-width: 85%;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modern-carousel .carousel-caption h6 {
    font-family: 'Mukta', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0;
    color: #1f2937; /* Dark text for readability on solid bg */
}

.modern-carousel-indicators {
    bottom: 20px;
    z-index: 5;
}

.modern-carousel-indicators li {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.modern-carousel-indicators li.active {
    width: 40px;
    background-color: var(--theme-primary);
}

/* Modern Staff Cards */
.staff-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.modern-staff-card {
    background: #ffffff;
    border-radius: 4px; /* Professional sharp edges */
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--theme-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.modern-staff-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: #f8fafc;
}

.modern-staff-img-wrap {
    flex-shrink: 0;
    width: 65px; /* Slightly smaller */
    height: 65px;
    border-radius: 4px; /* Square with slight rounding instead of circle */
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
}

.modern-staff-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-staff-info {
    flex: 1;
}

.modern-staff-info .role-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 2px;
}

.modern-staff-info h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
    line-height: 1.3;
}

.modern-staff-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 700;
    margin-top: 6px;
    transition: all 0.2s ease;
}

.modern-staff-btn i {
    font-size: 0.65rem;
}

.modern-staff-btn:hover {
    background: rgba(36, 96, 185, 0.08);
}

@media (max-width: 991.98px) {
    .modern-carousel .carousel-item {
        height: 350px;
    }

    .modern-staff-card {
        padding: 0.85rem;
    }
}

/* Modern Section Titles & Backgrounds */
.section_about_us {
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    position: relative;
    overflow: hidden;
}

.section_about_us::before {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(36, 96, 185, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.modern-section-title {
    font-family: 'Mukta', sans-serif;
    font-weight: 800;
    font-size: 1.85rem;
    color: var(--theme-text);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.modern-section-title span {
    color: var(--theme-primary);
    font-weight: 400;
}

.modern-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 5px;
    background: var(--theme-primary);
    border-radius: 4px;
}

/* Custom Styled Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(36, 96, 185, 0.05);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(36, 96, 185, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--theme-primary);
}

/* Modern Text Block & Tables */
.modern-text-block {
    font-family: 'Mukta', sans-serif;
    line-height: 1.8;
    color: #4b5563;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.modern-table-wrap {
    margin: 1.5rem 0;
    border-radius: 4px; /* Sharper corners */
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.modern-table th,
.modern-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    font-size: 0.95rem;
}

.modern-table th {
    background: var(--theme-primary); /* Solid colored header */
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.modern-table tr:last-child td {
    border-bottom: none;
}

.modern-table tbody tr:nth-child(even) {
    background-color: #f8fafc; /* Subtle zebra striping */
}

.modern-table tr:hover td {
    background: #f1f5f9;
    color: var(--theme-text);
    transition: all 0.2s ease;
}

/* Modern Vertical Staff Card (Info Officer) - Glassy Upgrade */
.modern-staff-card-v {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 4rem 1.5rem 2rem;
    /* increased top padding to clear avatar */
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-top: 65px;
    /* Space for overhanging photo */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.modern-staff-card-v:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 20px 40px rgba(36, 96, 185, 0.1);
    border-color: var(--theme-primary);
}

.modern-staff-img-v {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    z-index: 5;
    background: #fff;
}

.modern-staff-img-v img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-staff-card-v:hover .modern-staff-img-v img {
    transform: scale(1.1);
}

.modern-staff-info-v h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--theme-text);
}

.modern-staff-info-v .role-tag {
    display: inline-block;
    background: rgba(36, 96, 185, 0.1);
    color: var(--theme-primary);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.modern-contact-info {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modern-contact-info i {
    color: var(--theme-primary);
    width: 20px;
}

.modern-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--theme-primary);
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(36, 96, 185, 0.3);
}

.modern-read-more:hover {
    background: var(--theme-primary-dark);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(36, 96, 185, 0.4);
    color: #fff;
}

/* Custom Scrollbar */
.modern-text-block::-webkit-scrollbar {
    width: 6px;
}

.modern-text-block::-webkit-scrollbar-track {
    background: var(--theme-surface-soft);
    border-radius: 10px;
}

.modern-text-block::-webkit-scrollbar-thumb {
    background: var(--theme-border);
    border-radius: 10px;
}

.modern-text-block::-webkit-scrollbar-thumb:hover {
    background: var(--theme-primary);
}

/* Modern Tabs - Premium Polish */
.modern-tabs-wrap {
    background: #ffffff;
    border-radius: 4px; /* Professional corners */
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.modern-tabs {
    border-bottom: 2px solid var(--theme-primary); /* Stronger separator */
    background: #f8fafc;
    display: flex;
}

.modern-tabs .nav-item {
    flex: 1;
    margin: 0;
}

.modern-tabs .nav-link {
    border: none;
    border-radius: 0;
    padding: 1rem;
    font-weight: 700;
    color: #475569; /* Slate gray */
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.95rem;
    background: transparent;
}

.modern-tabs .nav-link i {
    margin-right: 8px;
}

.modern-tabs .nav-link.active {
    background: var(--theme-primary) !important;
    color: #ffffff !important;
}

.modern-tabs .nav-link:hover:not(.active) {
    background: #e2e8f0;
    color: #1e293b;
}

.modern-tabs .nav-link::after {
    display: none; /* Removing playful underline animation in active state since background fills */
}

/* Modern Notice Lists */
.modern-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-notice-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.modern-notice-link {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.modern-notice-item:last-child {
    border-bottom: none;
}

.modern-notice-item:hover {
    background: #f8fafc;
}

.modern-notice-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    color: var(--theme-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid #e2e8f0;
}

.modern-notice-content {
    flex: 1;
}

.modern-notice-content p {
    margin: 0;
    font-family: 'Mukta', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.modern-notice-link:hover .modern-notice-content p {
    color: var(--theme-primary);
}

.modern-notice-meta {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 4px;
}

.modern-notice-download {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.modern-notice-item:hover .modern-notice-download {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}

/* Modern Quick Links Sidebar */
.modern-quick-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px; /* Tighter spacing for a structured look */
}

@media (min-width: 768px) and (max-width: 991px) {
    .modern-quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

.modern-link-card {
    background: #f8fafc; /* Crisp light background */
    padding: 0.85rem 1rem;
    border-radius: 4px; /* Sharp professional corners */
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.modern-link-card:hover {
    background: #ffffff;
    color: var(--theme-primary) !important;
    border-color: #cbd5e1;
    border-left-color: var(--theme-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Slight elevation, not floaty */
}

.modern-link-card i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    border-radius: 4px;
    color: #64748b;
    transition: all 0.2s ease;
}

.modern-link-card:hover i {
    background: var(--theme-primary);
    color: #ffffff;
}

/* Base pulse animation for live button */
@keyframes pulse-subtle {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.modern-link-card.bg-danger {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #b91c1c !important;
    border-left-color: #7f1d1d !important;
    animation: pulse-subtle 2s infinite;
}

.modern-link-card.bg-danger:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
}

.modern-link-card.bg-danger i {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

/* Meeting Title Polish */
.modern-card-title {
    font-weight: 800;
    color: var(--theme-text);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modern-meeting-sub {
    display: block;
    text-align: center;
    color: var(--theme-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.modern-tab-link-footer {
    padding: 1rem;
    text-align: right;
    border-top: 1px solid var(--theme-border);
}

.modern-tab-link-footer a {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--theme-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.modern-tab-link-footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Resource Boxes & Footer
   ========================================================================== */

/* Premium Resource Boxes Enhancement */
.modern-resource-boxes {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.modern-resource-boxes::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(36, 96, 185, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.modern-box-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.modern-box-card:hover {
    transform: translateY(-8px);
    background: #fff;
    border-color: var(--theme-primary);
    box-shadow: 0 20px 40px rgba(36, 96, 185, 0.1);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(36, 96, 185, 0.06);
    color: var(--theme-primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.4s ease;
    position: relative;
}

.modern-box-card:hover .icon-circle {
    background: var(--theme-primary);
    color: #fff;
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 10px 20px rgba(36, 96, 185, 0.2);
}

.modern-box-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    color: var(--theme-text);
    transition: color 0.3s ease;
}

.modern-box-card:hover h4 {
    color: var(--theme-primary);
}

/* Chart Section Premium Styling */
.section_charts {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 4rem 0;
}

.chart-card-modern {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(36, 96, 185, 0.1);
}

.highcharts-figure {
    margin: 0;
}

.highcharts-container {
    border-radius: 16px !important;
    overflow: hidden !important;
}

/* Gallery & Photos Modernization */
.section_photos {
    background: #fff;
    padding: 5rem 0;
}

.modern-gallery-wrap {
    background: var(--theme-surface-soft);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
}

.modern-gallery-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: 320px;
}

.modern-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-gallery-item:hover img {
    transform: scale(1.1);
}

.modern-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modern-gallery-item:hover .modern-gallery-overlay {
    opacity: 1;
}

/* Video Section Enhancement */
.section_video {
    background: #f8fafc;
    padding: 5rem 0;
}

.modern-video-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--theme-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.modern-video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(36, 96, 185, 0.12);
    border-color: var(--theme-primary);
}

.video-thumb-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-card-body {
    padding: 1.5rem;
    background: #fff;
}

.video-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-text);
    line-height: 1.5;
    margin: 0;
}


/* Footer Modernization - Premium Dark Theme */
.site-footer {
    background: #1e293b; /* Formal dark slate instead of blue */
    padding: 3rem 0 0;
    color: #cbd5e1;
    position: relative;
    border-top: 4px solid var(--theme-primary);
}

.footer-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--theme-primary);
    border-radius: 2px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-item {
    margin-bottom: 0.5rem;
}

.footer-nav-link {
    color: #94a3b8;
    text-decoration: none !important;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav-link:last-child {
    border-bottom: none;
}

.footer-nav-link:hover {
    color: #ffffff;
    background: transparent;
}

.footer-nav-link i {
    font-size: 0.75rem;
    margin-right: 12px;
    color: var(--theme-primary);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px; /* Sharper corners */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.footer-contact-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 4px; /* Sharp corners for icon box */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-contact-text {
    line-height: 1.4;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.footer-contact-text strong {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.footer-map-wrap {
    border-radius: 4px; /* Sharper corners */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-bar {
    background: #0f172a; /* Deeper slate for copyright */
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--theme-primary);
    color: #fff;
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 15px rgba(36, 96, 185, 0.3);
}

/* Modern Carousel Controls */
.modern-carousel-control {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.modern-carousel-control.sm {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    background: rgba(36, 96, 185, 0.1);
    color: var(--theme-primary) !important;
    border-color: rgba(36, 96, 185, 0.2);
}

.carousel-control-prev:hover .modern-carousel-control,
.carousel-control-next:hover .modern-carousel-control {
    background: var(--theme-primary);
    color: #fff !important;
    transform: scale(1.1);
    border-color: var(--theme-primary);
    box-shadow: 0 12px 40px rgba(36, 96, 185, 0.3);
}

.carousel-control-prev:active .modern-carousel-control,
.carousel-control-next:active .modern-carousel-control {
    transform: scale(0.95);
}

.scrollToTop {
    width: 48px;
    height: 48px;
    background: var(--theme-primary);
    color: #fff !important;
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 1000;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(36, 96, 185, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scrollToTop:hover {
    background: var(--theme-primary-dark);
    transform: translateY(-5px) scale(1.05);
}

/* ==========================================================================
   Gallery & Videos
   ========================================================================== */

.modern-gallery-item {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--theme-border);
}

.modern-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--theme-primary);
}

.modern-gallery-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.modern-video-card {
    background: var(--theme-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    height: 100%;
    border: 1px solid var(--theme-border);
    transition: all 0.3s ease;
}

.modern-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--theme-primary);
}

.video-thumb-wrap {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-thumb-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card-body {
    padding: 1.25rem;
    text-align: center;
}

.video-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: var(--theme-text);
    line-height: 1.5;
}

.gallery-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 1.5rem;
}

.gallery-control-btn {
    width: 45px;
    height: 45px;
    background: #fff;
    border: 1px solid var(--theme-border);
    border-radius: 50%;
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.gallery-control-btn:hover {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
    transform: scale(1.1);
}

/* =========================================================================
   GOVERNMENT-STYLE FOOTER
   ========================================================================= */
.footer-modern {
    background: linear-gradient(135deg, #0d2b4f 0%, #1a3a6c 60%, #1d4e89 100%);
    color: #c9d8ee;
    padding-top: 60px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 1.1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 1200px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Column: About (Logo) */
.footer__logo-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer__emblem {
    width: 65px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.footer__logo-text .gov-text {
    display: block;
    font-size: 0.75rem;
    opacity: 0.75;
    font-weight: 500;
    margin-bottom: 3px;
}

.footer__logo-text .ministry-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
    line-height: 1.4;
}

.footer__logo-text .location-text {
    font-size: 0.78rem;
    opacity: 0.65;
}

.footer__logo-text .location-text i {
    margin-right: 4px;
    color: #f59e0b;
}

/* Social links */
.footer__sub-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
}

.footer__social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.footer__social-links li a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    transition: all 0.25s;
    text-decoration: none;
}

.footer__social-links li a:hover {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    transform: translateY(-2px);
}

/* Column: Links */
.footer__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 2px solid rgba(255,255,255,0.15);
    padding-bottom: 10px;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.footer__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__col.links .footer__nav-list li a {
    display: block;
    color: #b0c4de;
    font-size: 0.82rem;
    padding: 5px 0;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__col.links .footer__nav-list li a:hover {
    color: #f59e0b;
    padding-left: 4px;
}

.footer__col.links .footer__nav-list li a i {
    font-size: 0.65rem;
    margin-right: 6px;
    opacity: 0.6;
}

.footer__col.links .nav-pills .nav-link {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border-radius: 4px;
    font-size: 0.75rem;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.15);
}

.footer__col.links .nav-pills .nav-link.active,
.footer__col.links .nav-pills .nav-link:hover {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}

/* Column: Office Hours */
.hours__season {
    display: block;
    font-size: 0.78rem;
    color: #f59e0b;
    font-weight: 600;
    margin-bottom: 5px;
}

.hours__detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hours__detail span {
    font-size: 0.82rem;
    color: #b0c4de;
}

.footer-map-wrap iframe {
    width: 100%;
    height: 140px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
}

/* Column: Contact */
.contact__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact__list li i {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.contact__text span {
    display: block;
    font-size: 0.72rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact__text strong {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
}

/* Bottom Bar */
.footer__bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    flex-wrap: wrap;
    gap: 8px;
}

.footer__copyright p,
.footer__dev-info p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.footer__dev-info a {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
}

.footer__dev-info a:hover { text-decoration: underline; }

.footer__bg-pattern {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 320px;
    height: 220px;
    background: radial-gradient(ellipse at bottom right, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* === GOV PAGE HERO & BREADCRUMBS (UNIFIED) === */
.gov-page-hero {
    background: linear-gradient(135deg, #0d2b4f 0%, #1a3a6c 60%, #1d4e89 100%);
    padding: 45px 0 40px;
    position: relative;
    color: #fff;
    z-index: 5;
}
.gov-page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 35px;
    background: #f8fafc; /* Matches site background */
    clip-path: ellipse(55% 100% at 50% 100%);
}
.gov-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 15px;
}
.gov-breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; transition: 0.2s; }
.gov-breadcrumb a:hover { color: #f59e0b; }
.gov-breadcrumb i { font-size: 0.75rem; opacity: 0.6; }

.gov-page-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
}
@media (max-width: 768px) {
    .gov-page-hero { padding: 35px 0 30px; }
    .gov-page-title { font-size: 1.6rem; }
}