/* =============================================================================== */
/* ROOT VARIABLES
/* =============================================================================== */

:root {
    --primary-color: #32639F;
    --secondary-color: #df7b1d;
    --accent-color: #e67e22;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
    --white: #ffffff;
    --border: #E0E0E0;
    --text: #333333;
    --text-light: #666666;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --overlay: rgba(52, 152, 219, 0.85);
    --primary: #32639F;
    --secondary: #9b59b6;
    --accent: #e67e22;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --brand-blue: #32639F;
    --brand-blue-strong: #2832BB;
    --brand-blue-soft: #EEF4FF;
}

/* =============================================================================== */
/* GLOBAL RESET
/* =============================================================================== */

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

body {
    background: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================================================== */
/* ANNOUNCEMENT BAR
/* =============================================================================== */

.announcement-bar {
    background: #03224d;
    color: var(--white);
    padding: 8px 0;
}

.announcement-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.announcement-content {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.announcement-tag,
.announcement-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.announcement-tag {
    justify-self: start;
}

.announcement-text {
    justify-self: center;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.announcement-link {
    justify-self: end;
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.announcement-link:hover {
    opacity: 0.82;
}

/* Social Links in Announcement Bar */
@keyframes socialFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.announcement-bar .social-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.announcement-bar .social-links a {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    animation: socialFloat 3s ease-in-out infinite;
}

.announcement-bar .social-links a:nth-child(2) { animation-delay: 0.12s; }
.announcement-bar .social-links a:nth-child(3) { animation-delay: 0.24s; }
.announcement-bar .social-links a:nth-child(4) { animation-delay: 0.36s; }
.announcement-bar .social-links a:nth-child(5) { animation-delay: 0.48s; }

.announcement-bar .social-links a:hover {
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transform: translateY(-3px) scale(1.05);
}

@media (max-width: 768px) {
    .announcement-content {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .announcement-tag,
    .announcement-text,
    .announcement-link {
        justify-self: center;
    }

    .announcement-text {
        letter-spacing: 0.03em;
    }
}

/* =============================================================================== */
/* HEADER
/* =============================================================================== */

 .header-modern {
     width: 100%;
     background: #ffffff;
     border-bottom: 1px solid #e2e8f0;
     position: sticky;
     top: 0;
     z-index: 1000;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
 }

.header-modern__nav {
    max-width: 90rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 2rem;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: flex-start;
    text-decoration: none;
}

.logo-image {
    width: clamp(220px, 18vw, 285px);
    height: auto;
    aspect-ratio: 1920 / 500;
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    display: block;
    flex-shrink: 0;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: contrast(1.08) saturate(1.06);
}

/* Desktop Navigation */
.header-modern__menu-btn {
    display: none;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-modern__menu-btn:hover {
    background: var(--brand-blue-soft);
    border-color: var(--brand-blue);
}

.header-modern__menu-icon {
    width: 1.75rem;
    height: 1.75rem;
    display: block;
    stroke: #475569;
}

.header-modern__links {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: 2rem;
}

/* ---- Navigation Link Base ---- */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 0.78rem;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    background: transparent;
    position: relative;
    transition: color 0.2s ease;
}

/* Animated underline via ::after — prevents layout jumps */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 0.78rem);
    height: 2px;
    background: var(--brand-blue-strong);
    border-radius: 2px;
    transition: transform 0.25s ease;
    transform-origin: center;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-blue-strong);
}

.nav-link i {
    font-size: 0.85rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.nav-link:hover i,
.nav-link.active i {
    color: var(--brand-blue-strong);
}

/* ---- Header Utility Icons (search, language) ---- */
.header-utilities {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.75rem;
}

.header-utility-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 1.05rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.header-utility-btn:hover {
    background: var(--brand-blue-soft);
    color: var(--brand-blue-strong);
    transform: translateY(-1px);
}

.header-utility-btn:focus-visible {
    outline: 2px solid var(--brand-blue-strong);
    outline-offset: 2px;
}

/* ---- CTA Button ---- */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    background: var(--brand-blue, #32639F);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    border-radius: 0.5rem;
    border: 2px solid var(--brand-blue, #32639F);
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    cursor: pointer;
    margin-left: 0.25rem;
}

.nav-cta:hover {
    background: #1a4a7a;
    border-color: #1a4a7a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(50, 99, 159, 0.3);
}

.nav-cta:focus-visible {
    outline: 2px solid var(--brand-blue-strong);
    outline-offset: 2px;
}

.nav-cta i {
    color: inherit !important;
    font-size: 0.85rem;
}

/* ---- Accessibility: Focus indicators ---- */
.nav-link:focus-visible {
    outline: 2px solid var(--brand-blue-strong);
    outline-offset: 2px;
    border-radius: 4px;
}

.dropdown-content a:focus-visible {
    outline: 2px solid var(--brand-blue-strong);
    outline-offset: -2px;
}

/* Dropdowns */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid #dbe2ea;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    padding: 0.35rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.1rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: var(--brand-blue-soft);
    color: var(--brand-blue-strong);
}

.dropdown-content a i {
    color: #64748b;
}

.dropdown-content a:hover i {
    color: var(--brand-blue-strong);
}

/* Nested Dropdown */
.nested-dropdown {
    position: relative;
}

.nested-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nested-dropdown-toggle i:last-child {
    font-size: 0.75rem;
    margin-left: auto;
}

.nested-dropdown-content {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 240px;
    background: #ffffff;
    border: 1px solid #dbe2ea;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    padding: 0.35rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    z-index: 1002;
}

.nested-dropdown:hover .nested-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Desktop - Hide Mobile Elements */
@media (min-width: 768px) {
    .header-modern__mobile-menu,
    .mobile-menu-overlay,
    .header-mobile-actions {
        display: none !important;
    }
}

/* =============================================================================== */
/* MOBILE MENU - INCREASED HEADER HEIGHT AND LOGO SIZE
/* =============================================================================== */

@media (max-width: 767px) {
    .header-modern__links {
        display: none;
    }

    /* MOBILE HEADER: taller to fit larger logo */
    .header-modern {
        background: #ffffff;
        overflow: visible;
    }
    .header-modern__nav {
        justify-content: space-between;
        padding: 0.4rem 0.6rem;
        min-height: 86px;
        height: auto;
    }
    
    /* --- Mobile Search icon (always visible) --- */
    .header-mobile-search {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.2rem;
        height: 2.2rem;
        border: none;
        background: transparent;
        color: #475569;
        font-size: 1.1rem;
        border-radius: 0.5rem;
        cursor: pointer;
        margin-right: 0.25rem;
        margin-left: auto;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .header-mobile-search:hover {
        background: var(--brand-blue-soft);
        color: var(--brand-blue-strong);
    }

    /* Mobile: wrap hamburger + search in a flex group */
    .header-mobile-actions {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        margin-left: auto;
        flex-shrink: 0;
    }

    /* HAMBURGER MENU */
    .header-modern__menu-btn {
        display: inline-flex;
        padding: 0.45rem;
        margin: 0;
        transform: none;
        border: none;
        background: transparent;
        box-shadow: none;
        align-items: center;
        justify-content: center;
    }

    .header-modern__menu-icon {
        width: 2.0rem;
        height: 2.0rem;
    }
    
    /* LOGO - medium-big on mobile */
    .logo {
        margin-right: 0;
        margin-left: 0;
        position: relative;
        left: 0;
        padding-left: 0;
        flex-shrink: 0;
    }
    
    .logo a {
        justify-content: flex-start;
        margin-left: 0;
        transform: none;
    }
    
    .header-modern .logo-image {
        width: auto;
        height: 78px;
        min-height: 56px;
        max-width: 240px;
        margin-left: 0;
        display: block;
        transform: translateX(-12px);
    }
    
    .logo-image img {
        object-fit: contain;
    }
    
    /* Mobile Menu Panel */
    .header-modern__mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        /* ensure it covers the full viewport height to avoid clipping */
        height: 100vh;
        max-height: 100vh;
        /* make the mobile menu background match the mobile header so no white gap appears */
        background: #8B0000;
        z-index: 10002;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        overflow-y: auto;
        border-radius: 0; /* remove rounded corners so it doesn't clip on some devices */
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }
    
    .header-modern__mobile-menu.open {
        transform: translateY(0);
    }
    
    .header-modern__mobile-menu::-webkit-scrollbar {
        width: 4px;
    }
    
    .header-modern__mobile-menu::-webkit-scrollbar-track {
        background: #f1f5f9;
    }
    
    .header-modern__mobile-menu::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        background: #8B0000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 10px; /* more vertical padding to accommodate larger logo */
    }
    
    .header-modern .mobile-logo-img {
        /* mobile logo in menu header: allow slightly larger width */
        width: min(320px, 70vw);
        height: auto;
        max-width: 70vw;
        object-fit: contain;
        object-position: left center;
        background: #ffffff;
        filter: contrast(1.08) saturate(1.06);
    }

    /* Hero slide navigation: ensure it stays below sticky header on mobile */
    .slide-nav {
        z-index: 100;
    }

    .slide-prev,
    .slide-next {
        z-index: 101;
        pointer-events: auto;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slide-prev { left: 12px; }
    .slide-next { right: 12px; }
    
    .mobile-logo-img:hover {
        transform: scale(1.02);
    }
    
    .mobile-close-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        background: none;
        border: 1.5px solid rgba(255, 255, 255, 0.5);
        border-radius: 20px;
        padding: 6px 14px;
        color: white;
        font-size: 13px;
        cursor: pointer;
        transition: background 0.2s;
    }
    
    .mobile-close-btn:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    /* Mobile Links Container */
    .header-modern__mobile-links {
        padding: 12px 14px 20px 14px;
        display: flex;
        flex-direction: column;
        gap: 7px;
    }
    
    /* Mobile Nav Items */
    .mobile-nav-item {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 100%;
        background: #8B0000;
        color: white;
        border: none;
        border-radius: 8px;
        padding: 13px 16px;
        font-size: 14px;
        font-weight: 500;
        font-family: inherit;
        text-decoration: none;
        text-align: center;
        cursor: pointer;
        transition: background 0.2s;
    }
    
    .mobile-nav-item:hover {
        background: #a00000;
    }
    
    .mobile-arrow {
        position: absolute;
        right: 16px;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.6);
        transition: transform 0.25s ease;
    }
    
    .mobile-dropdown-toggle.active .mobile-arrow {
        transform: rotate(180deg);
    }
    
    /* Mobile Dropdown Content */
    .mobile-dropdown-content {
        display: none;
        background: #1C2E5E;
        border-radius: 8px;
        overflow: hidden;
        margin-top: -4px;
    }
    
    .mobile-dropdown-content.show {
        display: block;
    }
    
    .mobile-dropdown-content .mobile-dropdown-content {
        background: #162347;
    }
    
    .mobile-sub-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 10px 16px;
        color: rgba(255, 255, 255, 0.85);
        font-size: 13px;
        font-family: inherit;
        text-decoration: none;
        background: transparent;
        border-bottom: 0.5px solid rgba(255, 255, 255, 0.07);
        cursor: pointer;
        text-align: center;
        transition: background 0.2s, color 0.2s;
    }
    
    .mobile-sub-item:last-child {
        border-bottom: none;
    }
    
    .mobile-sub-item:hover {
        background: rgba(255, 255, 255, 0.08);
        color: white;
    }
    
    .mobile-sub-item i {
        font-size: 12px;
        opacity: 0.8;
    }
    
    .mobile-deep-item {
        padding-left: 24px;
    }
    
    .mobile-contact-item {
        background: #8B0000;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10001;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}


/* Mobile - Small Screens (<=480px): compact header, left-shifted logo, smaller hamburger, blue bottom border */
@media (max-width: 480px) {
    .header-modern { background: #ffffff; border-bottom: 3px solid #03224d; }
    .header-modern__nav {
        padding: 0.2rem 0.45rem;
        min-height: 67px; /* compact header height */
        height: auto;
        align-items: center;
        display: flex;
        justify-content: space-between;
    }

    .header-modern__menu-btn {
        display: inline-flex;
        padding: 0.4rem;
        margin: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        margin-left: 0;
        margin-right: 12px; /* hamburger slightly inset from edge */
        align-self: center;
    }

    .header-modern__menu-icon {
        width: 2.0rem;
        height: 3.0rem;
    }

    .logo { padding-left: 0; }

    .header-modern .logo-image {
        width: auto;
        height: 60px; /* fits within compact header */
        min-height: 40px;
        max-width: 190px;
        margin-left: 0;
        display: block;
        transform: translateX(-28px); /* nudge logo left */
    }

    .header-modern .mobile-logo-img {
        width: min(220px, 65vw);
        height: auto;
        max-width: 65vw;
    }

    .header-modern__mobile-links {
        padding: 10px 12px 18px 12px;
    }

    .mobile-nav-item {
        font-size: 14px;
        padding: 12px 14px;
    }

    .mobile-sub-item {
        font-size: 13px;
        padding: 10px 14px;
    }

    /* Prevent horizontal overflow and constrain media on small screens */
    html, body { overflow-x: hidden; }
    img, picture, video, iframe, svg { max-width: 100%; height: auto; display: block; }
    .header-modern, .header-modern__mobile-menu, .container { box-sizing: border-box; max-width: 100%; }

    /* Move hero slide arrows very close to edges on small screens, make visible and touch-friendly */
    .slide-prev, .slide-next {
        width: 44px !important; /* larger touch area */
        height: 44px !important;
        z-index: 1200 !important; /* above hero content */
       
        color: #fff !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
      
        opacity: 0.98 !important;
    }

    .slide-prev { left: -15px !important; }
    .slide-next { right: -15px !important; }

    /* Ensure inner icon scales to the container */
    .slide-prev svg, .slide-next svg, .slide-prev i, .slide-next i {
        width: 18px !important;
        height: 18px !important;
        fill: currentColor !important;
    }
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet: make logo larger so it doesn't appear tiny between mobile and desktop */
    .logo-image {
        width: auto;
        height: 92px;
        min-height: 64px;
        max-width: 220px;
    }
    
    .header-modern__links {
        margin-left: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.82rem;
    }

    .nav-cta {
        padding: 0.45rem 0.9rem;
        font-size: 0.82rem;
    }
}

/* Mid-size screens: reduce logo buffer */
@media (min-width: 1024px) and (max-width: 1199px) {
    .header-modern__links {
        margin-left: 1rem;
    }
    
    .nav-link {
        padding: 0.72rem 0.6rem;
        font-size: 0.88rem;
    }
}

/* =============================================================================== */
/* SEARCH OVERLAY
/* =============================================================================== */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay__inner {
    width: 100%;
    max-width: 640px;
    padding: 0 1.5rem;
}

.search-overlay__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-overlay__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-overlay__form {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 0 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.search-overlay__icon {
    font-size: 1.2rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.search-overlay__input {
    flex: 1;
    padding: 1.1rem 0.75rem;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-family: inherit;
    color: #1f2937;
    outline: none;
}

.search-overlay__input::placeholder {
    color: #94a3b8;
}

.search-overlay__results {
    margin-top: 1rem;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-height: 50vh;
    overflow-y: auto;
    display: none;
}

.search-overlay__results.active {
    display: block;
}

.search-overlay__result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.search-overlay__result-item:last-child {
    border-bottom: none;
}

.search-overlay__result-item:hover {
    background: var(--brand-blue-soft);
    color: var(--brand-blue-strong);
}

.search-overlay__result-item i {
    width: 1.25rem;
    text-align: center;
    color: #64748b;
}

.search-overlay__result-item:hover i {
    color: var(--brand-blue-strong);
}

.search-overlay__no-results {
    padding: 1.5rem 1.25rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
}

/* =============================================================================== */
/* FOOTER
/* =============================================================================== */

.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer .social-links {
    display: flex;
    gap: 15px;
}

.footer .social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.contact-info i {
    color: var(--success-color);
    margin-top: 4px;
    width: 16px;
}

.newsletter-form {
    display: flex;
    margin: 20px 0;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px 0 0 6px;
    font-family: inherit;
    font-size: 0.95rem;
}

.newsletter-form button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #2980b9;
}

.hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hashtags span {
    color: var(--success-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .footer-links {
    display: flex;
    gap: 25px;
}

.footer-bottom .footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

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

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-bottom .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =============================================================================== */
/* GLOBAL RESPONSIVE CONTAINER
/* =============================================================================== */

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Safety responsive rules: ensure program/service grids stack on small screens
   in case other stylesheet order caused desktop grid to persist */
@media (max-width: 767px) {
    .programs-grid,
    .services-grid,
    .positions-grid,
    .overview-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .program-card,
    .service,
    .position-card,
    .overview-image {
        width: 100% !important;
        margin: 0 !important;
    }

    .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}


/* Duplicate small-screen tuning removed — consolidated rules live earlier in this file. */ 
