/* ==================== HOMEPAGE MOBILE FIXES ==================== */
@media (max-width: 575.98px) {
    body {
        overflow-x: hidden !important;
    }
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        max-width: 100vw !important;
    }
    .gallery-marquee-section {
        padding: 2rem 0 !important;
    }
    .gallery-marquee-section .section-header {
        padding: 0 0.75rem;
    }
    .gallery-marquee-wrapper {
        height: 200px !important;
        -webkit-mask-image: linear-gradient(to right, transparent, black 1%, black 99%, transparent) !important;
        mask-image: linear-gradient(to right, transparent, black 1%, black 99%, transparent) !important;
    }
    .gallery-marquee-track {
        animation-duration: 35s !important;
    }
    .gallery-marquee-image {
        width: 260px !important;
        height: 180px !important;
        border-radius: 14px !important;
        margin-right: 0.875rem !important;
    }
    .page-hero.home-hero {
        padding: 2.5rem 0 3rem !important;
    }
    .home-hero .hero-emblem {
        width: 130px !important;
        margin-bottom: 1rem !important;
    }
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    .hero-badge {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
    .hero-buttons {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    .hero-buttons .btn {
        width: 100% !important;
        max-width: 100% !important;
    }
}
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Palette */
    --primary: #0d1f33;
    --primary-rgb: 13, 31, 51;
    --primary-dark: #071220;
    --primary-light: #1a3352;
    --accent: #d4af37;
    --accent-rgb: 212, 175, 55;
    --accent-light: #e8c65f;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;

    /* Typography */
    --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 5rem;

    /* Shadows - Premium Diffused */
    --shadow-sm: 0 2px 4px rgba(13, 31, 51, 0.05);
    --shadow-md: 0 10px 25px rgba(13, 31, 51, 0.1);
    --shadow-lg: 0 25px 50px rgba(13, 31, 51, 0.15);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.2);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Rich Text Tables */
.rich-text table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 2000;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

/* ==================== SIDEBAR LAYOUT ==================== */
.has-sidebar {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 270px;
    background: linear-gradient(180deg, rgba(26, 51, 82, 0.95) 0%, rgba(13, 31, 51, 0.98) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
}

.sidebar-header {
    padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    background: rgba(13, 31, 51, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 72px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    width: 100%;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    text-align: center;
}

.sidebar-brand span {
    line-height: 1.35;
}

.sidebar-brand img {
    height: 56px !important;
    width: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.sidebar-brand:hover {
    color: var(--accent);
}

.sidebar-brand:hover img {
    transform: scale(1.05);
}

.sidebar-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 10;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 0;
}

/* Custom scrollbar for sidebar */
.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-menu {
    list-style: none;
    padding: 0 0.75rem;
    margin: 0;
}

.sidebar-item {
    margin-bottom: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 500;
    transition: all 180ms ease;
    border-radius: 10px;
    position: relative;
    min-height: 44px;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
    transition: height 0.25s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar-link:hover::before {
    height: 60%;
}

.sidebar-link.active {
    background: rgba(212, 175, 55, 0.15);
    color: #ffffff;
}

.sidebar-link.active::before {
    height: 60%;
}

.sidebar-link.active i:first-child {
    color: var(--accent);
}

.sidebar-link i:first-child {
    font-size: 1.15rem;
    width: 1.5rem;
    text-align: center;
    transition: color 0.2s ease;
}

.submenu-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.25s ease;
    opacity: 0.6;
}

.sidebar-link[aria-expanded="true"] .submenu-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    padding: 0.25rem 0;
    margin: 0.25rem 0 0 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-sublink {
    display: block;
    padding: 0.6rem 1rem 0.6rem 3rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.sidebar-sublink::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.sidebar-sublink:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.sidebar-sublink:hover::before {
    background: var(--accent);
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 1rem 1rem;
}

.sidebar-section-label {
    padding: 0.75rem 1rem 0.5rem;
}

.sidebar-section-label span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.35);
}

.sidebar-footer {
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-footer .btn {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.925rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

/* Main Content Wrapper */
.main-wrapper {
    flex: 1;
    margin-left: 270px;
    width: calc(100% - 270px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Header */
.top-header {
    display: none;
}

@media (max-width: 991.98px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .top-header {
        display: block;
        background: rgba(13, 31, 51, 0.85);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 0.5rem 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        height: 60px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
    }

    .main-wrapper {
        padding-top: 60px;
    }

    .sidebar-toggle {
        color: #ffffff !important;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-toggle:hover {
        color: var(--accent) !important;
    }
}

.header-brand-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.header-logo-mobile {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
}

.header-title-mobile {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    max-width: calc(100vw - 120px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-brand-mobile:hover .header-title-mobile {
    color: var(--accent);
}

.header-search-toggle {
    color: #ffffff !important;
    transition: color 0.2s ease;
}

.header-search-toggle:hover {
    color: var(--accent) !important;
}

.header-brand img {
    border-radius: 4px;
}

.header-search {
    position: relative;
}

.header-search input {
    padding-right: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--gray-300);
    width: 200px;
}

.header-search button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    color: var(--gray-500);
}

/* Responsive Sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        left: 0;
        box-shadow: none;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, visibility 0s linear 0.35s;
        visibility: hidden;
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
        visibility: visible;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, visibility 0s linear 0s;
    }

    .top-header {
        transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.show ~ .main-wrapper .top-header {
        opacity: 0;
        pointer-events: none;
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    /* Fix hero sections on mobile */
    .page-hero,
    .staff-hero,
    .news-hero,
    .documents-hero {
        padding: 1.5rem 0 3rem;
    }

    .page-hero h1,
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.3;
    }

    /* Fix content padding on mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Improve section spacing */
    section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Better card spacing */
    .card {
        margin-bottom: 1.25rem;
    }
}

/* ==================== OLD NAVBAR (deprecated) ==================== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary) !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.navbar-brand:hover {
    color: var(--accent) !important;
}

.navbar-brand img {
    height: 44px;
    width: auto;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand span {
    border-left: 1px solid var(--gray-300);
    padding-left: 0.75rem;
    line-height: 1.3;
    font-size: 0.95rem;
}

.nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: var(--gray-50);
}

.navbar-toggler {
    border: 1px solid var(--gray-300);
    padding: 0.5rem;
}

/* ==================== HERO ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 0 8rem;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.min-vh-75 {
    min-height: 65vh;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: floatShape 20s infinite alternate ease-in-out;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 50px) rotate(15deg); }
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    animation-duration: 25s;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation-duration: 18s;
    animation-direction: alternate-reverse;
}

.hero-shape-3 {
    width: 250px;
    height: 250px;
    top: 40%;
    left: 20%;
    background: rgba(212, 175, 55, 0.05);
    animation-duration: 22s;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    text-align: left;
}

.hero-badge {
    display: block;
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
}

.hero-badge i {
    display: none;
}

.hero-title {
    font-size: 3.25rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero-title .highlight {
    color: var(--accent);
    display: block;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-buttons .btn-lg {
    padding: 1rem 1.75rem;
    font-size: 1rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    font-family: var(--font-heading);
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 400px;
}

.hero-image-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.hero-emblem {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero-floating-card {
    position: absolute;
    background: var(--white);
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

.hero-floating-card i {
    font-size: 1.25rem;
    color: var(--accent);
}

.hero-floating-card.card-1 {
    top: 15%;
    left: 0;
    animation-delay: 0s;
}

.hero-floating-card.card-2 {
    bottom: 20%;
    right: 0;
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

/* ==================== BUTTONS ==================== */
.btn-primary-custom {
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 180ms ease;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.btn-primary-custom:focus,
.btn-primary-custom:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.btn-primary-custom:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}

.btn-primary-custom:active {
    transform: translateY(-1px);
    background: #c4981e !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.dropdown-toggle.btn-primary-custom::after {
    border-top-color: var(--primary-dark);
}

/* Dark blue button variant for filters/dropdowns */
.btn-primary-dark {
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 180ms ease;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(13, 31, 51, 0.25);
}

.btn-primary-dark:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 31, 51, 0.35);
}

.btn-primary-dark:focus,
.btn-primary-dark:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 31, 51, 0.25);
}

.btn-primary-dark:active {
    transform: translateY(-1px);
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 4px 12px rgba(13, 31, 51, 0.2);
}

.dropdown-toggle.btn-primary-dark::after {
    border-top-color: #ffffff;
}

.dropdown-menu {
    border-color: rgba(30, 58, 95, 0.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    --bs-dropdown-link-active-bg: #1e3a5f;
    --bs-dropdown-link-active-color: #ffffff;
}

.btn-outline-light:active {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

.btn-outline-light {
    background: transparent;
    color: var(--white) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 180ms ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* ==================== SECTIONS ==================== */
.features-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.news-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.1rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==================== FEATURE CARDS ==================== */
.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-8px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.feature-icon-bg {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--accent) 0%, #c4981e 100%);
    transform: rotate(-5deg);
}

.feature-card:hover .feature-icon-bg {
    transform: translate(-4px, -4px);
    background: rgba(13, 31, 51, 0.15);
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gray-900);
}

.feature-text {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ==================== STATS SECTION ==================== */
.stats-section {
    padding: 0;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.stats-wrapper {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    font-family: var(--font-heading);
}

.stat-name {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

/* ==================== NEWS CARDS ==================== */
.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-100);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.news-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-card-overlay {
    opacity: 1;
}

.news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.3);
    font-size: 3rem;
}

.news-card-body {
    padding: 1.75rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.news-date {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.news-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
}

.news-title a {
    color: var(--gray-900);
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: var(--primary);
}

.news-excerpt {
    color: var(--gray-600);
    font-size: 0.925rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more i {
    transition: transform 0.2s ease;
}

.read-more:hover {
    color: var(--accent);
}

.read-more:hover i {
    transform: translateX(4px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h4 {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* ==================== QUICK LINKS SECTION ==================== */
.quick-links-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.quick-link-card:hover::before {
    transform: scaleX(1);
}

.quick-link-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.08) 0%, rgba(30, 58, 95, 0.04) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.quick-link-card:hover .quick-link-icon {
    background: linear-gradient(135deg, var(--accent), #c4981e);
    color: var(--white);
    transform: scale(1.1);
}

.quick-link-title {
    color: var(--gray-800);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.quick-link-card:hover .quick-link-title {
    color: var(--primary);
}

.quick-link-arrow {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    color: var(--accent);
    font-size: 1.25rem;
}

.quick-link-card:hover .quick-link-arrow {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== PAGE HERO ==================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

/* Home Hero - larger variant */
.home-hero.page-hero {
    padding: 4rem 0 7rem;
}

.home-hero .hero-emblem-wrapper {
    margin-bottom: 2rem;
}

.home-hero .hero-emblem {
    width: 240px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.home-hero .hero-badge {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.home-hero .hero-title {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.home-hero .hero-title .highlight {
    color: var(--accent);
    display: block;
    margin-top: 0.25rem;
}

.home-hero .hero-subtitle {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.home-hero .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-hero .hero-buttons .btn-lg {
    padding: 0.875rem 1.5rem;
}

.home-hero .hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 2;
}

.home-hero .hero-wave svg {
    width: 100%;
    height: 100%;
}

/* Home Stats Section */
.home-stats-section {
    background: var(--gray-50);
    padding: 2rem 0 3rem;
    margin-top: -2px;
    /* Fix gap between wave and stats */
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.home-stats-section .stat-item {
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-100);
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-stats-section .stat-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.home-stats-section .stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.home-stats-section .stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

@media (max-width: 768px) {
    .home-hero .hero-emblem {
        width: 100px;
    }

    .home-hero .hero-title {
        font-size: 2rem;
    }

    .home-hero .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stats-row {
        gap: 1rem;
    }

    .home-stats-section .stat-item {
        min-width: 140px;
        padding: 1rem 1.25rem;
    }

    .home-stats-section .stat-number {
        font-size: 1.75rem;
    }

    .home-stats-section .stat-icon {
        font-size: 1.25rem;
    }
}

.page-hero .hero-bg-pattern,
.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.page-hero .hero-content {
    position: relative;
    z-index: 1;
}

.page-hero .hero-badge {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.page-hero.home-hero .hero-badge {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.03em;
    margin-bottom: 1.2rem;
}

.page-hero .hero-title {
    font-size: 2.75rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-hero .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.page-hero.home-hero .hero-subtitle {
    margin: 0 auto 3.5rem;
}

.page-hero .hero-subtitle p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

.page-hero .hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.page-hero .hero-wave svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 62px;
}

/* Hero Breadcrumb */
.hero-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.hero-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-breadcrumb .breadcrumb-item a:hover {
    color: var(--accent);
}

.hero-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.5);
}

.hero-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* Hero Meta */
.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-meta-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ==================== FILTER SECTION ==================== */
.filter-section {
    background: transparent;
    padding: 1.5rem 0;
    position: relative;
    z-index: 10;
    margin-top: -60px;
}

.filter-section .filter-card {
    margin-top: 0;
}

.filter-section+section {
    background: var(--gray-50);
}

.filter-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.filter-card .form-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.filter-card .form-select,
.filter-card .form-control {
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    padding: 0.625rem 1rem;
}

.filter-card .form-select:focus,
.filter-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.filter-label {
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(30, 58, 95, 0.05);
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ==================== NEWS GRID SECTION ==================== */
.news-grid-section {
    padding: 3rem 0 5rem;
    background: var(--gray-50);
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.news-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(30, 58, 95, 0.08);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
}

/* ==================== ARTICLE HERO ==================== */
.article-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.article-hero .hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.article-hero .hero-wave svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 62px;
}

.article-hero .hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.article-breadcrumb {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.article-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.article-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumb .breadcrumb-item a:hover {
    color: var(--accent);
}

.article-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.5);
}

.article-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

.article-header {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

.meta-tags {
    display: flex;
    gap: 0.5rem;
}

.meta-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-intro {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ==================== ARTICLE CONTENT ==================== */
.article-content-section {
    padding: 3rem 0 5rem;
    background: var(--gray-50);
    margin-top: -2px;
}

.article-featured-image {
    margin-bottom: 2.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-body {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--gray-700);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--gray-900);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-600);
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* Article Footer */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.share-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-label {
    font-weight: 600;
    color: var(--gray-700);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* ==================== DOCUMENTS GRID ==================== */
.documents-grid-section {
    padding: 3rem 0 5rem;
    background: var(--gray-50);
}

.document-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.12);
    border-color: var(--accent);
}

.document-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}

.document-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 12px;
    z-index: -1;
    top: 4px;
    left: 4px;
}

.document-icon-wrapper i {
    color: var(--white);
    font-size: 1.5rem;
}

.document-content {
    flex: 1;
}

.document-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.document-title a {
    color: var(--gray-800);
    text-decoration: none;
    transition: color 0.2s ease;
}

.document-title a:hover {
    color: var(--primary);
}

.document-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.document-meta .meta-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.document-meta .meta-year {
    background: var(--gray-100);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.document-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0;
    line-height: 1.5;
}

.document-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.document-type {
    background: rgba(30, 58, 95, 0.1);
    color: var(--primary);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.document-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.document-link:hover {
    color: var(--accent);
}

.document-link i {
    transition: transform 0.2s ease;
}

.document-link:hover i {
    transform: translateX(3px);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 16px;
    border: 2px dashed var(--gray-200);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
    display: block;
}

.empty-state h4 {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* Filter form styling */
.filter-form .form-label {
    color: var(--gray-700);
    font-size: 0.875rem;
}

.filter-form .form-select,
.filter-form .form-control {
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
}

.filter-form .form-select:focus,
.filter-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

/* ==================== APPLICATION FORM ==================== */
.application-section {
    padding: 3rem 0 5rem;
    background: var(--gray-50);
}

.rules-card {
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
}

.rules-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rules-header i {
    font-size: 1.25rem;
}

.rules-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

.rules-card .rules-content {
    padding: 1.5rem;
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.7;
}

.rules-card .rules-content ul {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.rules-card .rules-content li {
    margin-bottom: 0.5rem;
}

.intro-text {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.intro-text p {
    margin-bottom: 0;
    color: var(--gray-700);
}

.form-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
}

.form-card-header {
    background: linear-gradient(135deg, var(--accent) 0%, #c4a030 100%);
    color: var(--white);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-card-header i {
    font-size: 1.25rem;
}

.form-card form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group .form-label {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    display: block;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.form-card input,
.form-card select,
.form-card textarea {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    transition: all 0.2s ease;
    background: var(--white);
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

.form-card textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
    text-align: center;
}

.form-submit .btn {
    padding: 0.875rem 3rem;
    font-size: 1.1rem;
}

/* ==================== CONTENT PAGES ==================== */
/* Smaller page-hero variant */
.page-hero-sm {
    padding: 4rem 0 5rem;
}

.page-hero-sm .hero-title {
    font-size: 2.25rem;
}

.standard-content-section,
.content-page-section {
    padding: 3rem 0 5rem;
    background: var(--gray-50);
}

.content-article {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.content-featured-image {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.content-featured-image img {
    width: 100%;
    display: block;
}

.child-pages-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-100);
}

.child-pages-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.child-page-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-100);
    text-decoration: none;
    transition: all 0.2s ease;
}

.child-page-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.1);
    border-color: var(--accent);
}

.child-page-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.child-page-icon i {
    color: var(--white);
    font-size: 1.25rem;
}

.child-page-content {
    flex: 1;
}

.child-page-content h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.child-page-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.child-page-arrow {
    color: var(--gray-400);
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.child-page-card:hover .child-page-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .content-article {
        padding: 1.5rem;
    }

    .page-hero-sm {
        padding: 3rem 0 4rem;
    }

    .page-hero-sm .hero-title {
        font-size: 1.75rem;
    }
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.cta-shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.cta-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -50px;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--accent);
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn-light {
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-light:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==================== FOOTER ==================== */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    margin-top: auto;
}

.footer-main {
    padding: 4rem 0 3rem;
}

/* Brand Section */
.footer-brand-section {
    padding-right: 0;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-emblem {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand-text .brand-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Social Buttons */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Footer Sections */
.footer-section {
    height: 100%;
}

.footer-title {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

/* Footer Navigation */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-nav a i {
    font-size: 0.7rem;
    opacity: 0;
    transition: all 0.2s ease;
    transform: translateX(-5px);
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-nav a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Contact List */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-text a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
}

.contact-text a:hover {
    color: var(--accent);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.25rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

.footer-bottom-links .divider {
    color: rgba(255, 255, 255, 0.3);
}

/* Footer Responsive */
@media (max-width: 991.98px) {
    .footer-main {
        padding: 4rem 0 2.5rem;
    }

    .footer-brand-section {
        padding-right: 0;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .footer-wave svg {
        height: 40px;
    }

    .footer-main {
        padding: 3rem 0 2rem;
    }

    .footer-emblem {
        height: 55px;
    }

    .footer-brand-text .brand-name {
        font-size: 1.1rem;
    }

    .footer-title {
        margin-top: 1rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== UTILITY ==================== */
.container {
    max-width: 1140px;
}

/* ==================== PAGE CONTENT ==================== */
.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.display-4 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.display-5 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .hero-section {
        padding: 4rem 0 6rem;
        min-height: auto;
    }

    .min-vh-75 {
        min-height: auto;
    }

    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .stats-wrapper {
        padding: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem;
    }

    body {
        font-size: 15px;
    }

    .hero-section {
        padding: 2.5rem 0 4rem;
    }

    .hero-title {
        font-size: 1.875rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-stats {
        display: none;
    }

    .hero-stat-divider {
        display: none;
    }

    .stats-section {
        margin-top: -2rem;
        padding: 2rem 0;
    }

    .stats-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stat-box {
        width: 100%;
        justify-content: flex-start;
        padding: 1.25rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .feature-card,
    .news-card {
        margin-bottom: 1.25rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    /* Better card layouts */
    .row > [class*='col-'] {
        margin-bottom: 1.5rem;
    }

    /* Improve form inputs */
    input[type="text"],
    input[type="email"],
    textarea,
    select {
        font-size: 16px !important;
        min-height: 44px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2.5rem 0 4rem;
    }

    .hero-badge {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.625rem;
    }

    .hero-stat .stat-number {
        font-size: 1.5rem;
    }

    .hero-stats {
        padding-top: 1.5rem;
        gap: 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn-primary-custom,
    .btn-outline-light {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        min-height: 44px;
    }

    .hero-buttons .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        min-height: 48px;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .quick-link-card {
        padding: 1.5rem 1rem;
    }
}

/* Custom Button Overrides */
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-outline-secondary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:active,
.btn-outline-secondary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Outline dark button for filters */
.btn-outline-dark {
    color: #1e3a5f;
    border: 2px solid #1e3a5f;
    background: #ffffff;
}

.btn-outline-dark:hover {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #ffffff;
}

.btn-outline-dark:focus,
.btn-outline-dark:active {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 95, 0.25);
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background-color: #1e3a5f !important;
    color: #ffffff !important;
}

.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:hover {
    background-color: #2d4a6f !important;
    color: #ffffff !important;
}

/* Week tabs on schedule page */
.btn-week {
    background: transparent;
    color: #1e3a5f;
    border: 1px solid #1e3a5f;
}

.btn-week:hover {
    background: #2d4a6f;
    color: #ffffff;
    border-color: #2d4a6f;
}

.btn-week-active {
    background: #1e3a5f;
    color: #ffffff;
    border: 1px solid #1e3a5f;
}

.btn-week-active:hover {
    background: #0f2744;
    color: #ffffff;
    border-color: #0f2744;
}

/* Form select styling */
.form-select:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 95, 0.25);
}

.form-select option:checked,
.form-select option:hover {
    background: #1e3a5f;
    color: #ffffff;
}

/* ==================== STAFF PAGES ==================== */
.teacher-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.teacher-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.admin-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.portrait-container {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.badge-primary-custom {
    background-color: var(--primary) !important;
    color: #fff !important;
    font-weight: 500;
    border: none;
    box-shadow: 0 2px 8px 0 rgba(26, 58, 95, 0.08);
    letter-spacing: 0.01em;
}

.badge-primary-custom:hover {
    background-color: #163052 !important;
    color: #fff !important;
}

/* Position Badge - Distinguished from subjects */
.position-badge {
    background: linear-gradient(135deg, var(--accent) 0%, #e5c158 100%);
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 1rem !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
    border: none;
    letter-spacing: 0.02em;
}

.position-badge:hover {
    background: linear-gradient(135deg, #e5c158 0%, var(--accent) 100%);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
}

/* Subject Badges - Lighter styling */
.subject-badge {
    background-color: var(--gray-100) !important;
    color: var(--primary) !important;
    font-weight: 500;
    border: 1.5px solid var(--gray-200);
    box-shadow: none;
    transition: all 0.3s ease;
}

.subject-badge:hover {
    background-color: var(--gray-200) !important;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Info Cards - Better layout for Education, Category, Experience */
.info-card {
    padding: 1.2rem;
    background: var(--gray-50);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.teacher-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.teacher-photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-400);
}

.icon-bubble {
    width: 70px;
    height: 70px;
    background: var(--gray-100);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* Person Page Styles */
.person-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a5f 100%);
    padding: 4rem 0 3rem;
    color: var(--white);
}

.person-profile-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.person-profile-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.profile-portrait-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-100);
    border-radius: 20px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-primary-soft {
    background-color: rgba(var(--primary-rgb), 0.1) !important;
    color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.bio-content {
    line-height: 1.8;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delayed {
    animation: fadeIn 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* About Page Styles */
.about-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a5f 100%);
    padding: 5rem 0 4rem;
    color: var(--white);
}

.about-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.3rem;
    font-weight: 300;
}

.about-content {
    background: var(--white);
}

.about-content .article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.about-content h2 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.about-content h3 {
    color: var(--primary-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-content p {
    margin-bottom: 1.2rem;
}

.about-content ul,
.about-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
    line-height: 1.9;
}

.about-content li {
    margin-bottom: 0.8rem;
}

.about-content strong {
    color: var(--primary);
    font-weight: 600;
}

.about-actions {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding-top: 4rem;
}

.action-buttons {
    margin-top: 2rem;
}

.action-buttons .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-buttons .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.action-buttons .btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.action-buttons .btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
}

.action-buttons .btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==================== GALLERY MARQUEE ==================== */
.gallery-marquee-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

.gallery-marquee-section .section-header {
    margin-bottom: 2rem;
}

.gallery-marquee-wrapper {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.gallery-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 60s linear infinite;
    align-items: center;
    height: 100%;
    will-change: transform;
}

.gallery-marquee-track:hover {
    animation-play-state: paused;
}

.gallery-marquee-image {
    flex: 0 0 auto;
    width: 400px;
    height: 280px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.gallery-marquee-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-marquee-image:hover::before {
    opacity: 1;
}

.gallery-marquee-image:hover {
    transform: scale(1.08) translateY(-5px);
    z-index: 2;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-marquee-image:focus {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.gallery-marquee-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-marquee-image:hover img {
    transform: scale(1.1);
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 768px) {
    .gallery-marquee-section {
        padding: 2.5rem 0;
    }

    .gallery-marquee-image {
        width: 300px;
        height: 220px;
        border-radius: 14px;
        margin-right: 1rem;
    }

    .gallery-marquee-wrapper {
        height: 240px;
        -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
        mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    }

    .gallery-marquee-track {
        animation-duration: 40s;
    }
}

@media (max-width: 480px) {
    .gallery-marquee-image {
        width: 240px;
        height: 170px;
    }
    
    .gallery-marquee-wrapper {
        height: 190px;
        -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
        mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    }
}

/* ==================== LIGHTBOX ==================== */
.marquee-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
}

.marquee-lightbox-modal.show {
    opacity: 1;
}

.marquee-lightbox-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 60px 80px;
    pointer-events: none;
}

.marquee-lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: lightbox-zoom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: auto;
    transition: opacity 0.15s ease;
}

.marquee-lightbox-content.lightbox-transition {
    opacity: 0.5;
}

#marqueeLightboxCaption {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: auto;
    line-height: 1.5;
}

.marquee-lightbox-counter {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.marquee-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 32px;
    font-weight: 300;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: none;
}

.marquee-lightbox-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Navigation arrows */
.marquee-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.marquee-lightbox-prev {
    left: 25px;
}

.marquee-lightbox-next {
    right: 25px;
}

@media (max-width: 768px) {
    .marquee-lightbox-content-wrapper {
        padding: 60px 20px;
    }
    
    .marquee-lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    
    .marquee-lightbox-prev {
        left: 10px;
    }
    
    .marquee-lightbox-next {
        right: 10px;
    }
    
    .marquee-lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .marquee-lightbox-content {
        max-height: 70vh;
    }
}

@keyframes lightbox-zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==================== CUSTOM BUTTONS ==================== */
.btn-outline-primary-custom {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.2);
}

/* ==================== 2026 LAYOUT IMPROVEMENTS ==================== */
.has-sidebar .sidebar {
    width: 248px;
}

.has-sidebar .main-wrapper {
    margin-left: 248px;
    width: calc(100% - 248px);
}

.has-sidebar .sidebar-header {
    padding: 1.1rem 1rem;
}

.has-sidebar .sidebar-brand {
    gap: 0.65rem;
    font-size: 1rem;
}

.has-sidebar .sidebar-brand img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
}

.has-sidebar .sidebar-nav {
    padding: 1rem 0;
}

.has-sidebar .sidebar-link {
    padding: 0.72rem 0.9rem;
}

.sidebar-item-secondary .sidebar-link {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.86rem;
}

.sidebar-item-secondary .sidebar-link i:first-child {
    font-size: 1rem;
    opacity: 0.8;
}

.home-hero.page-hero {
    padding: clamp(2rem, 3vw, 3rem) 0 clamp(2.5rem, 4vw, 4rem);
    isolation: isolate;
}

.home-hero.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(7, 20, 34, 0.5) 0%, rgba(8, 23, 41, 0.28) 52%, rgba(8, 23, 41, 0.46) 100%);
    z-index: 0;
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 1;
}

.home-hero-grid {
    min-height: clamp(380px, 56vh, 600px);
    row-gap: clamp(1.5rem, 4vw, 3rem);
}

.home-hero .hero-content.home-hero-copy {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    /* Reduced vertical padding here: */
    padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.5rem); 
    border-radius: 20px;
    background: rgba(8, 22, 39, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-hero .hero-badge {
    display: inline-block;
    font-size: clamp(1rem, 1.8vw, 1.4rem); /* Slightly scaled down */
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--accent);
    margin: 0 auto 0.5rem auto;
    white-space: nowrap;
}

.home-hero .hero-title {
    font-size: clamp(1.8rem, 2.8vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.15;
    max-width: 100%; /* Kills any old character limits */
    text-wrap: balance; /* Magic CSS property for perfect line breaks */
}

.home-hero .hero-subtitle {
    max-width: 60ch; /* Optimal reading length */
    margin: 0 auto 0.75rem; /* Pushes the buttons further down */
    line-height: 1.6;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85); /* Recedes slightly to let title pop */
}

.home-hero .hero-buttons {
    justify-content: flex-start;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.home-hero .hero-buttons .btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    flex: 1 1 180px;
}

.home-hero .hero-secondary-actions {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.home-hero .hero-btn-secondary {
    border-radius: 999px;
    border-color: rgba(255, 255, 255, 0.36) !important;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.62rem 1rem;
    font-size: 0.9rem;
}

.home-hero .hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.72) !important;
    transform: none;
}

.home-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding-right: 0;
    z-index: 1;
}

.home-hero-visual::before {
    content: "";
    position: absolute;
    width: clamp(220px, 40vw, 360px);
    height: clamp(220px, 40vw, 360px);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0) 60%);
    pointer-events: none;
    z-index: 0;
}

.home-hero .home-hero-visual .hero-emblem-wrapper {
    margin: 0;
    padding: 1.75rem;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(4px);
    box-shadow: 0 20px 50px rgba(6, 18, 32, 0.35);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 520px;
}

.home-hero .hero-emblem {
    width: min(100%, 300px);
    display: block;
    margin: 0 auto;
}

.home-hero .hero-buttons .btn {
    width: 100%;
}

.home-hero .custom-emblem-scale {
    transform: none;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .has-sidebar .sidebar {
        width: 272px;
    }

    .has-sidebar .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .home-hero.page-hero {
        padding: 3rem 0 4.5rem;
    }

    .home-hero .hero-content.home-hero-copy {
        text-align: center;
        margin: 0 auto;
        padding: 1.5rem 1.25rem;
    }

    .home-hero .hero-subtitle {
        margin: 0 auto 1.75rem;
    }

    .home-hero .hero-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .home-hero .hero-secondary-actions {
        justify-content: center;
    }

    .home-hero .home-hero-visual .hero-emblem-wrapper {
        padding: 1.2rem;
    }

    .home-hero-visual {
        justify-content: center;
    }

    .home-hero-visual::before {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
    }
}

@media (min-width: 768px) {
    .home-hero .hero-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
        width: 100%;
        max-width: 500px; /* Keeps the buttons from stretching too wide */
        margin: 0 auto;
    }

    .home-hero .hero-buttons .btn-full {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1200px) {
    .home-hero .custom-emblem-scale {
        max-width: 560px;
    }
}

@media (max-width: 575.98px) {
    .home-hero .hero-content.home-hero-copy {
        padding: 1.25rem 1rem !important;
        border-radius: 16px;
    }

    .home-hero .hero-badge {
        font-size: 1.1rem !important;
    }

    .home-hero .hero-buttons .btn {
        max-width: 100% !important;
    }

    .home-hero .hero-btn-secondary {
        width: 100%;
    }
}

.template-home .section-header:not(.text-center) {
    text-align: left;
    max-width: 680px;
    margin: 0 0 2.5rem;
}

.template-home .section-header:not(.text-center) .section-subtitle {
    margin-left: 0;
    margin-right: 0;
}

.template-home .section-header:not(.text-center) .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
}

.template-home .home-stats-section {
    padding: 2.75rem 0 3.5rem;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.template-home .stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.template-home .home-stats-section .stat-item {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    padding: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.template-home .home-stats-section .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(15, 39, 68, 0.15);
    border-color: var(--accent);
}

.template-home .home-stats-section .stat-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Constrain the images so they are uniform in size and don't stretch */
.template-home .home-stats-section .stat-item img,
.template-home .home-stats-section .stat-item svg {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain; /* Prevents stretching */
    transition: transform 0.3s ease;
}

/* Slight zoom effect on the logo when hovering */
.template-home .home-stats-section .stat-item:hover img,
.template-home .home-stats-section .stat-item:hover svg {
    transform: scale(1.08);
}

.template-home .home-stats-section .stat-number {
    font-size: 2.1rem;
}

.template-home .features-section {
    position: relative;
    overflow: hidden;
}

.template-home .features-section::before,
.template-home .features-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.template-home .features-section::before {
    width: 360px;
    height: 360px;
    top: -140px;
    right: -120px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0) 60%);
}

.template-home .features-section::after {
    width: 420px;
    height: 420px;
    bottom: -180px;
    left: -160px;
    background: radial-gradient(circle, rgba(30, 58, 95, 0.2), rgba(30, 58, 95, 0) 65%);
}

.template-home .feature-card {
    padding: 2.25rem;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.template-home .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

@media (max-width: 991.98px) {
    .template-home .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .template-home .section-header:not(.text-center) {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .template-home .section-header:not(.text-center) .section-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 575.98px) {
    .template-home .stats-row {
        grid-template-columns: 1fr;
    }
}

/* ==================== GLOBAL MOBILE REFINEMENTS ==================== */
@media (max-width: 991.98px) {
    .application-section .sticky-top {
        position: static !important;
        top: auto !important;
    }
}

@media (max-width: 767.98px) {
    .filter-section {
        margin-top: -36px;
        padding: 1rem 0;
    }

    .filter-card {
        padding: 1rem;
        border-radius: 14px;
    }

    .filter-wrapper {
        align-items: stretch;
        gap: 0.75rem;
    }

    .filter-label {
        width: 100%;
        font-size: 0.8rem;
    }

    .filter-chips {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
    }

    .filter-chip {
        white-space: nowrap;
    }

    .hero-breadcrumb .breadcrumb {
        justify-content: center;
        row-gap: 0.35rem;
    }

    .hero-breadcrumb .breadcrumb-item {
        font-size: 0.875rem;
    }

    .hero-meta {
        gap: 0.5rem;
    }

    .hero-meta-item,
    .hero-meta-tag {
        font-size: 0.78rem;
    }

    .news-card-image {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .news-card-body {
        padding: 1.25rem;
    }

    .article-body {
        padding: 1.25rem;
        font-size: 1rem;
        line-height: 1.75;
    }

    .article-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 1.25rem;
    }

    .share-section {
        width: 100%;
        justify-content: space-between;
    }

    .article-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .document-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .document-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .document-download-card {
        padding: 1.5rem 1.25rem;
    }

    .document-download-card .btn {
        width: 100%;
        justify-content: center;
    }

    .form-card form {
        padding: 1.25rem;
    }

    .form-card input,
    .form-card select,
    .form-card textarea {
        min-height: 48px;
        font-size: 16px;
    }

    .footer-main .row {
        row-gap: 1.25rem;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom-links .divider {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .filter-chips {
        -webkit-overflow-scrolling: touch;
    }

    .quick-link-icon {
        width: 58px;
        height: 58px;
        font-size: 1.5rem;
    }

    .quick-link-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .template-home .home-hero .hero-buttons {
        gap: 0.6rem;
    }

    .template-home .home-hero .hero-buttons .btn-lg {
        flex: 1 1 100%;
        width: 100%;
    }

    .template-home .home-hero .hero-title {
        max-width: none;
    }
}
