/* =================================================================
   HEADER & NAVIGATION STYLES (v6 - Final with Perfect Alignment)
   ================================================================= */

/* --- Default Desktop Styles --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

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

.site-header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-header .custom-logo {
    max-height: 45px;
    width: auto;
}

.site-header .main-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .nav-item {
    position: relative;
}

.site-header .nav-link {
    display: flex;
    align-items: center;
    height: 80px;
    padding: 0 1rem;
    color: #003366;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.site-header .nav-item:hover>.nav-link {
    color: #1B6B93;
}

.site-header .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #1B6B93;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.site-header .nav-item:hover>.sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header .sub-menu .nav-link {
    height: auto;
    padding: 0.8rem 1.5rem;
}

/* Style for third-level menus */
.site-header .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    border-top: none;
    border-left: 3px solid #1B6B93;
}

.site-header .sub-menu .nav-item:hover > .sub-menu {
    display: block;
}

.site-header .sub-menu .sub-menu .nav-link {
    padding-left: 2.5rem;
    /* background-color: #f8f9fa;  */
}

/* .site-header .sub-menu .sub-menu .nav-link:hover {
    background-color: #e9ecef;
} */

.site-header .sub-menu .sub-menu.opens-left {
    left: auto;
    right: 100%;
}

@media screen and (min-width: 991px) {
    .site-header .has-dropdown .sub-menu .has-dropdown .caret {
        transform: rotate(-45deg);
    }
}

.site-header .has-dropdown .sub-menu .has-dropdown a{
    display: flex;
    justify-content: space-between;
}

.site-header .has-dropdown .caret {
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    margin-left: 8px;
    transform: rotate(45deg);
}

.site-header .header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-header .menu-toggle {
    display: none;
}

/* --- DEFINITIVE CTA BUTTON STYLE WITH PERFECT ALIGNMENT --- */
.site-header .call-header-cta .btn {
    background: linear-gradient(135deg, #006f96 0%, #004a66 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 111, 150, 0.3);

    /* Alignment and Spacing Fixes */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* Modern spacing instead of &nbsp; */
}

.site-header .call-header-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 111, 150, 0.4);
}


/* =================================================================
   AGGRESSIVE RESPONSIVE OVERRIDES
   ================================================================= */
@media (max-width: 991px) {
    body.mobile-menu-open {
        overflow: hidden !important;
    }

    .site-header .header-inner {
        height: 70px !important;
    }

    /* --- Hamburger Menu Icon --- */
    .site-header .menu-toggle {
        display: block !important;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .site-header .hamburger-box {
        width: 100%;
        height: 24px;
        display: inline-block;
        position: relative;
    }

    .site-header .hamburger-inner,
    .site-header .hamburger-inner::before,
    .site-header .hamburger-inner::after {
        content: '';
        position: absolute;
        width: 28px;
        height: 3px;
        background-color: #003366;
        border-radius: 4px;
        transition: transform 0.25s ease-in-out;
        left: 50%;
        transform: translateX(-50%);
    }

    .site-header .hamburger-inner {
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .site-header .hamburger-inner::before {
        top: -8px;
    }

    .site-header .hamburger-inner::after {
        bottom: -8px;
    }

    .site-header .menu-toggle.is-active .hamburger-inner {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .site-header .menu-toggle.is-active .hamburger-inner::before {
        top: 0;
        opacity: 0;
    }

    .site-header .menu-toggle.is-active .hamburger-inner::after {
        bottom: 0;
        transform: rotate(90deg);
    }

    /* --- Mobile Navigation Container --- */
    .site-header .main-navigation {
        display: block !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background-color: #ffffff !important;
        transform: translateX(-100%) !important;
        transition: transform 0.35s ease !important;
        overflow-y: auto !important;
    }

    .site-header .main-navigation.is-active {
        transform: translateX(0) !important;
    }

    /* --- Mobile Menu List & Items --- */
    .site-header .main-menu {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 1rem 0 !important;
        width: 100% !important;
    }

    .site-header .nav-item {
        width: 100% !important;
        border-bottom: 1px solid #eef2f7 !important;
    }

    .site-header .nav-link {
        height: auto !important;
        padding: 1rem 1.5rem !important;
        width: 100% !important;
        justify-content: space-between !important;
    }

    /* --- Mobile Dropdowns --- */
    .site-header .sub-menu {
        display: none !important;
        position: static !important;
        width: 100% !important;
        background-color: #f5faff !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .site-header .nav-item.open>.sub-menu {
        display: block !important;
    }

    .site-header .sub-menu .nav-link {
        padding-left: 2.5rem !important;
    }

    .site-header .has-dropdown.open>.nav-link .caret {
        transform: rotate(-135deg) !important;
    }

    /* --- Mobile CTA Button (Icon Only) --- */
    .site-header .call-header-cta {
        display: none !important;
    }

    .site-header .call-header-cta .btn {
        background: linear-gradient(135deg, #006f96 0%, #004a66 100%);
        color: white;
        padding: 12px 24px;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        border: none;
        box-shadow: 0 4px 15px rgba(0, 111, 150, 0.3);
    }
}

/* FINAL FIX: Force the CTA button text and icon to be white */
.site-header .call-header-cta .btn,
.site-header .call-header-cta .btn span,
.site-header .call-header-cta .btn i {
    color: #ffffff !important;
}