/* Site header — authenticated toolbar (loads via asset('css/site-header.css')) */

.header .site-header-actions,
.portal-root .site-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.65rem;
    margin-inline-start: auto;
    flex-shrink: 0;
}

/* Override legacy: .toggle, .dropdown-menu { width: 100% } */
.header .site-header-actions .toggle,
.header .site-header-actions .dropdown-menu,
.portal-root .site-header-actions .toggle,
.portal-root .site-header-actions .dropdown-menu {
    width: auto !important;
}

.site-header-actions__lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.55rem;
    border-radius: 10px;
    border: 1px solid #d5dde8;
    background: #fff;
    color: #002d58 !important;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    line-height: 1;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.site-header-actions__lang:hover {
    border-color: var(--primary, #002d58);
    color: var(--primary, #002d58) !important;
    background: #f4f7fb;
}

.site-header-actions__tools {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.2rem;
    border-radius: 12px;
    background: #f3f6fa;
    border: 1px solid #e2e8f0;
}

.site-header-actions__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #334155 !important;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s;
}

.site-header-actions__icon:hover {
    background: #fff;
    color: var(--primary, #002d58) !important;
    box-shadow: 0 1px 4px rgba(0, 45, 88, 0.1);
}

.site-header-actions__icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.site-header-actions__icon i {
    font-size: 1rem;
}

.site-header-actions__badge {
    position: absolute;
    top: 0.05rem;
    inset-inline-end: 0.05rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.22rem;
    border-radius: 999px;
    background: var(--primary, #002d58);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1rem;
    text-align: center;
    pointer-events: none;
}

.site-header-actions__login {
    padding: 0.48rem 1.1rem !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    white-space: nowrap;
}

/* Profile chip */
.site-header-actions__user {
    position: relative;
}

.site-header-actions__profile {
    display: inline-flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0.28rem 0.7rem 0.28rem 0.32rem;
    border: 1px solid #d5dde8;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 45, 88, 0.08);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    max-width: 15rem;
    line-height: 1.2;
}

.site-header-actions__profile:hover,
.site-header-actions__user.is-active .site-header-actions__profile {
    border-color: rgba(0, 45, 88, 0.45);
    box-shadow: 0 4px 14px rgba(0, 45, 88, 0.12);
}

.site-header-actions__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #002d58, #001a33);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    flex-shrink: 0;
}

.site-header-actions__avatar--lg {
    width: 2.65rem;
    height: 2.65rem;
    font-size: 0.86rem;
}

.site-header-actions__profile-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    text-align: start;
}

.site-header-actions__name {
    display: block;
    max-width: 8.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f2744;
}

.site-header-actions__role {
    display: block;
    font-size: 0.67rem;
    font-weight: 600;
    color: var(--primary, #002d58);
}

.site-header-actions__chevron {
    font-size: 0.6rem;
    color: #9ca3af;
    margin-inline-end: 0.1rem;
    transition: transform 0.2s, color 0.2s;
}

.site-header-actions__user.is-active .site-header-actions__chevron {
    transform: rotate(180deg);
    color: var(--primary, #002d58);
}

/* Dropdown */
.site-header-actions__menu {
    position: absolute !important;
    top: calc(100% + 0.5rem) !important;
    inset-inline-end: 0 !important;
    inset-inline-start: auto !important;
    min-width: 16rem !important;
    padding: 0.45rem !important;
    margin: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 16px 40px rgba(0, 26, 51, 0.14) !important;
    z-index: 1050;
}

.site-header-actions__menu-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.65rem 0.7rem;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid #eef1f5;
}

.site-header-actions__menu-head strong {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f2744;
    line-height: 1.3;
}

.site-header-actions__menu-head span {
    display: block;
    font-size: 0.71rem;
    color: #6b7280;
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header-actions__menu-item {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem !important;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155 !important;
    text-decoration: none !important;
    transition: background 0.15s;
}

.site-header-actions__menu-item i {
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 45, 88, 0.08);
    color: var(--primary, #002d58);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.site-header-actions__menu-item:hover {
    background: rgba(0, 45, 88, 0.08) !important;
    color: #001a33 !important;
}

.site-header-actions__menu-divider {
    height: 1px;
    background: #eef1f5;
    margin: 0.3rem 0.2rem;
}

.site-header-actions__menu-item--logout {
    color: #dc2626 !important;
}

.site-header-actions__menu-item--logout i {
    background: #fef2f2;
    color: #dc2626;
}

.site-header-actions__menu-item--logout:hover {
    background: #fef2f2 !important;
}

/* Public sticky header — keep appearance stable; stay fixed so main-wrapper offset stays correct */
.header.fixed,
.header.site-header--auth.fixed,
.header.profile-header.fixed,
.header.new-header {
    z-index: 1030;
}

.header.new-header,
.header.profile-header,
.header.site-header--auth,
.header.new-header.fixed,
.header.profile-header.fixed,
.header.site-header--auth.fixed {
    position: fixed;
    top: 0;
    inset-inline: 0;
    width: 100%;
    background: #fff !important;
    border-bottom: 1px solid #eceff1;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header.new-header .header-nav,
.header.profile-header .header-nav,
.header.site-header--auth .header-nav {
    min-height: 0;
    padding-block: 0.35rem;
}

.header.new-header .logo img,
.header.profile-header .logo img,
.header.site-header--auth .logo img,
.header.new-header.fixed .logo img,
.header.profile-header.fixed .logo img,
.header.site-header--auth.fixed .logo img {
    filter: none !important;
}

.header.new-header .main-nav li a,
.header.profile-header .main-nav li a,
.header.site-header--auth .main-nav li a,
.header.new-header.fixed .main-nav li a,
.header.profile-header.fixed .main-nav li a,
.header.site-header--auth.fixed .main-nav li a {
    color: var(--primary, #002d58) !important;
}

.header-nav {
    gap: 0.75rem;
}

/* Ensure page content offset matches measured header height */
.main-wrapper:has(> .header.new-header),
.main-wrapper:has(> .header.profile-header) {
    margin-top: var(--header-height, 85px);
}

/* Mobile: keep hamburger + logo as one aligned group */
@media (max-width: 1199.98px) {
    .header .header-nav {
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding-block: 0.35rem;
        min-height: 0;
    }

    .header .navbar-header {
        display: inline-flex !important;
        align-items: center;
        justify-content: flex-start;
        gap: 0.55rem;
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 9.5rem);
    }

    .header #mobile_btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        margin: 0 !important;
        padding: 0;
        flex: 0 0 2.5rem;
        border-radius: 10px;
        line-height: 1;
        color: var(--primary, #002d58);
    }

    .header #mobile_btn:hover,
    .header #mobile_btn:focus-visible {
        background: color-mix(in oklab, var(--primary, #002d58) 10%, #fff);
    }

    .header .bar-icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        width: 1.35rem;
        height: 1.05rem;
        gap: 0.28rem;
        float: none;
    }

    .header .bar-icon span,
    .header.fixed .bar-icon span,
    .header.new-header .bar-icon span,
    .header.profile-header .bar-icon span {
        float: none !important;
        display: block;
        width: 100% !important;
        height: 2px !important;
        margin: 0 !important;
        border-radius: 999px;
        background-color: var(--primary, #002d58) !important;
    }

    .header .navbar-brand.logo {
        display: inline-flex !important;
        align-items: center;
        margin: 0 !important;
        padding: 0;
        min-width: 0;
        max-width: 100%;
    }

    .header .navbar-brand.logo img,
    .header .navbar-brand.logo .platform-logo--primary {
        max-height: 52px !important;
        max-width: min(160px, 42vw) !important;
    }

    .header .navbar-brand.logo-small {
        display: none !important;
    }

    .site-header-actions__profile-text,
    .site-header-actions__chevron {
        display: none !important;
    }

    .site-header-actions__profile {
        padding: 0.2rem !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* القائمة الجوال — فتح القوائم الفرعية */
    .main-nav li.has-submenu > ul.submenu {
        display: none !important;
    }

    .main-nav li.has-submenu.active > ul.submenu {
        display: block !important;
    }

    .main-nav li.has-submenu > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .main-nav li.has-submenu > a .fa-chevron-down {
        font-size: 0.72rem;
        opacity: 0.75;
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }

    .main-nav li.has-submenu.active > a {
        color: var(--primary, #002d58) !important;
    }

    .main-nav li.has-submenu.active > a .fa-chevron-down {
        transform: rotate(180deg);
    }
}

@media (max-width: 767.98px) {
    .site-header-actions {
        gap: 0.35rem;
    }

    .site-header-actions__tools {
        padding: 0.12rem;
    }

    .site-header-actions__icon {
        width: 2.1rem;
        height: 2.1rem;
    }

    .site-header-actions__lang {
        min-width: 2.1rem;
        height: 2.1rem;
        font-size: 0.65rem;
    }
}

@media (max-width: 520px) {
    .site-header-actions__lang {
        display: none;
    }
}

/* Platform logos — preserve aspect ratio and override legacy fixed heights */
.navbar-brand.logo,
.menu-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
    max-width: none;
}

img.platform-logo {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: none;
    object-fit: contain;
    object-position: center;
}

img.platform-logo--primary {
    max-height: 72px;
    max-width: 260px;
}

img.platform-logo--secondary {
    max-height: 63px !important;
    max-width: 80px !important;
    height: auto !important;
    margin-inline-start: -12px;
}

html[dir="ltr"] img.platform-logo--secondary {
    margin-inline-start: 0;
}

img.platform-logo--footer {
    max-height: 100px;
    max-width: 280px;
}

img.platform-logo--vision {
    max-height: 100px;
    max-width: 200px;
}

img.platform-logo--favicon {
    max-height: 32px;
    max-width: 32px;
}

.admin-sidebar__logo-link img.platform-logo--primary {
    max-height: 56px;
    max-width: 200px;
}

@media (min-width: 992px) and (max-width: 1680px) {
    img.platform-logo--secondary {
        max-height: 55px !important;
        max-width: 70px !important;
    }
}

@media (max-width: 566.98px) {
    img.platform-logo--primary {
        max-height: 60px;
    }
}

@media (max-width: 575.98px) {
    .header .navbar-header {
        max-width: calc(100% - 8.25rem);
        gap: 0.4rem;
    }

    .header #mobile_btn {
        width: 2.35rem;
        height: 2.35rem;
        flex-basis: 2.35rem;
    }

    .header .navbar-brand.logo img,
    .header .navbar-brand.logo .platform-logo--primary {
        max-height: 46px !important;
        max-width: min(140px, 38vw) !important;
    }

    .header .header-nav {
        min-height: 0;
        padding-block: 0.3rem;
    }
}

.footer-logos img.platform-logo {
    width: auto !important;
    height: auto !important;
    max-height: 90px;
    max-width: min(100%, 280px);
    object-fit: contain;
}

.footer-logos,
.row.footer-logos {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 0.75rem 1rem;
}

.row.footer-logos > [class*="col"],
.footer-logos__item {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
}

/* -------------------------------------------------------------------------
   Primary navigation — AOU navy, readable type, tablet/phone drawer
   ------------------------------------------------------------------------- */

.header .header-nav {
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header .main-menu-wrapper {
    flex: 1 1 auto;
    min-width: 0;
}

.header .sidebar-overlay {
    z-index: 20;
}

.header .site-header-actions__login.btn-primary {
    background: var(--primary, #002d58) !important;
    border-color: var(--primary, #002d58) !important;
    min-height: 2.45rem;
    box-shadow: 0 8px 18px rgba(0, 45, 88, 0.16);
}

.header.new-header .main-nav.site-nav > li > a,
.header.profile-header .main-nav.site-nav > li > a,
.header.site-header--auth .main-nav.site-nav > li > a,
.header.new-header .main-nav > li > a.site-nav__link,
.header.profile-header .main-nav > li > a.site-nav__link,
.header.site-header--auth .main-nav > li > a.site-nav__link,
.header.new-header .main-nav > li > a.nav-link,
.header.profile-header .main-nav > li > a.nav-link {
    color: var(--primary, #002d58) !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    text-decoration: none !important;
}

.header .main-nav > li > a.site-nav__link:hover,
.header .main-nav > li > a.nav-link:hover,
.header .main-nav > li.is-current > a.site-nav__link,
.header .main-nav > li.is-current > a.nav-link,
.header .main-nav > li.active > a.site-nav__link,
.header .main-nav > li.has-submenu.is-current > a {
    color: var(--primary, #002d58) !important;
}

@media (min-width: 1200px) {
    .header #mobile_btn,
    .header .menu-header,
    .header .main-nav li.responsive-link {
        display: none !important;
    }

    .header .main-menu-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 0.75rem;
        background: transparent !important;
    }

    .header .main-nav.site-nav,
    .header .main-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 0.15rem;
    }

    .header .main-menu-wrapper .main-nav > li + li {
        margin-inline-start: 0 !important;
    }

    .header .main-nav > li {
        position: relative;
        display: flex;
        align-items: center;
    }

    .header .main-nav > li > a,
    .header .main-nav > li > a.site-nav__link,
    .header .main-nav > li > a.nav-link {
        position: relative;
        display: inline-flex !important;
        align-items: center;
        gap: 0.4rem;
        min-height: 2.75rem;
        padding: 0.45rem 0.9rem !important;
        line-height: 1.25 !important;
        border-radius: 10px;
        white-space: nowrap;
        transition: background 0.18s ease, color 0.18s ease;
    }

    .header .main-nav > li > a > span {
        position: relative;
        z-index: 1;
    }

    .header .main-nav > li > a .fa-chevron-down {
        font-size: 0.62rem;
        opacity: 0.72;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .header .main-nav > li > a::after {
        content: "";
        position: absolute;
        inset-inline: 0.9rem;
        bottom: 0.28rem;
        height: 2px;
        border-radius: 999px;
        background: var(--secondary, #c5a572);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.18s ease;
        pointer-events: none;
    }

    .header .main-nav > li > a:hover,
    .header .main-nav > li.is-current > a,
    .header .main-nav > li.has-submenu:hover > a {
        background: color-mix(in srgb, var(--primary, #002d58) 7%, #fff);
    }

    .header .main-nav > li > a:hover::after,
    .header .main-nav > li.is-current > a::after,
    .header .main-nav > li.has-submenu:hover > a::after {
        transform: scaleX(1);
    }

    .header .main-nav > li.has-submenu:hover > a .fa-chevron-down,
    .header .main-nav > li.is-current > a .fa-chevron-down {
        transform: rotate(180deg);
        opacity: 1;
    }

    .header .main-nav li > ul.submenu,
    .header .main-nav li > ul.site-nav__submenu {
        display: block !important;
        position: absolute !important;
        top: calc(100% - 0.15rem);
        inset-inline-start: 0;
        min-width: 17rem;
        margin: 0;
        padding: 0.45rem;
        background: #fff !important;
        backdrop-filter: none;
        border: 1px solid rgba(0, 45, 88, 0.1);
        border-radius: 14px;
        box-shadow: 0 18px 44px rgba(0, 26, 51, 0.16);
        opacity: 0;
        visibility: hidden;
        transform: translateY(0.55rem);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
        z-index: 1040;
    }

    .header .main-nav li.has-submenu:hover > .submenu,
    .header .main-nav li.has-submenu:focus-within > .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header .main-nav > li .submenu li {
        margin: 0;
    }

    .header .main-nav > li .submenu li a,
    .header .main-nav > li .submenu li a.site-nav__link {
        display: flex !important;
        align-items: center;
        width: 100%;
        padding: 0.7rem 0.85rem !important;
        border-radius: 10px;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        color: #1e3a5f !important;
        background: transparent;
    }

    .header .main-nav > li .submenu li a:hover,
    .header .main-nav > li .submenu li.is-current > a {
        background: color-mix(in srgb, var(--primary, #002d58) 8%, #fff) !important;
        color: var(--primary, #002d58) !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .header .main-nav > li > a,
    .header .main-nav > li > a.site-nav__link,
    .header .main-nav > li > a.nav-link {
        padding: 0.4rem 0.58rem !important;
        font-size: 0.88rem !important;
        min-height: 2.5rem;
    }
}

@media (max-width: 1199.98px) {
    .header,
    html.menu-opened .header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
        transform: none !important;
    }

    html.menu-opened .header {
        z-index: 1200 !important;
    }

    .sidebar-overlay.opened {
        display: block;
        z-index: 1100;
    }

    .header .sidebar-overlay {
        z-index: 0;
    }

    .header .menu-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        min-height: 4.25rem;
        padding: 0.65rem 1rem;
        background: #fff;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: inset 0 -3px 0 var(--secondary, #c5a572);
    }

    .header .menu-header .menu-logo img,
    .header .menu-header .menu-logo .platform-logo--primary {
        max-height: 44px !important;
    }

    .header .menu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 10px;
        color: var(--primary, #002d58) !important;
        font-size: 1.15rem;
        background: color-mix(in srgb, var(--primary, #002d58) 8%, #fff);
    }

    .header .main-menu-wrapper {
        order: 3;
        width: min(22rem, 88vw);
        max-width: 100%;
        position: fixed;
        top: 0;
        bottom: 0;
        inset-inline-start: 0;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 1080;
        margin: 0 !important;
        padding: 0;
        background: #fff !important;
        backdrop-filter: none;
        box-shadow: -16px 0 40px rgba(0, 26, 51, 0.2);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        -webkit-overflow-scrolling: touch;
    }

    html[dir="ltr"] .header .main-menu-wrapper {
        transform: translateX(-100%);
        box-shadow: 16px 0 40px rgba(0, 26, 51, 0.2);
    }

    html.menu-opened .header .main-menu-wrapper,
    html.menu-opened .menu-opened .main-menu-wrapper {
        transform: translateX(0) !important;
    }

    .header .main-nav,
    .header .main-nav.site-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0.65rem 0.85rem 1.5rem;
        gap: 0.2rem;
    }

    .header .main-menu-wrapper .main-nav > li + li,
    .header .main-nav li + li {
        margin-inline-start: 0 !important;
    }

    .header .main-nav > li {
        width: 100%;
        margin: 0;
    }

    .header .main-nav > li > a,
    .header .main-nav > li > a.site-nav__link,
    .header .main-nav > li > a.nav-link,
    .header .main-nav > li.active > a,
    .header .main-nav .has-submenu.active > a {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 3rem;
        padding: 0.85rem 0.95rem !important;
        line-height: 1.4 !important;
        font-size: 1.02rem !important;
        font-weight: 700 !important;
        color: var(--primary, #002d58) !important;
        border-radius: 12px;
        background: transparent;
    }

    .header .main-nav > li.is-current > a,
    .header .main-nav > li.has-submenu.active > a {
        background: color-mix(in srgb, var(--primary, #002d58) 8%, #fff);
        box-shadow: inset 3px 0 0 var(--secondary, #c5a572);
    }

    html[dir="rtl"] .header .main-nav > li.is-current > a,
    html[dir="rtl"] .header .main-nav > li.has-submenu.active > a {
        box-shadow: inset -3px 0 0 var(--secondary, #c5a572);
    }

    .header .main-nav li > ul.submenu,
    .header .main-nav li > ul.site-nav__submenu {
        position: static !important;
        inset: auto !important;
        display: none !important;
        min-width: 0;
        margin: 0.15rem 0 0.35rem;
        padding: 0.3rem;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: #f4f7fb !important;
        backdrop-filter: none;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: none;
    }

    .header .main-nav li.has-submenu.active > ul.submenu {
        display: block !important;
    }

    .header .main-nav > li .submenu li a,
    .header .main-nav > li .submenu li a.site-nav__link {
        display: block;
        padding: 0.75rem 0.9rem !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: #1e3a5f !important;
        border-radius: 10px;
    }

    .header .main-nav > li .submenu li.is-current > a,
    .header .main-nav > li .submenu li a:hover {
        background: #fff !important;
        color: var(--primary, #002d58) !important;
    }

    .header .main-nav li.responsive-link {
        display: block;
        margin-top: 0.45rem;
        padding-top: 0.45rem;
        border-top: 1px solid #e2e8f0;
    }

    html.menu-opened body {
        overflow: hidden;
    }
}

@media (max-width: 767.98px) {
    .header .main-menu-wrapper {
        width: min(20.5rem, 92vw);
    }
}
