/* ========================================================
   SAHIL SCHOOLS — HEADER & TOPBAR STYLESHEET
   Clean, modern, responsive international school header
   ======================================================== */
:root {
    --primary-blue:    #0b2545;
    --secondary-blue:  #13315c;
    --accent-yellow:   #ffb800;
    --accent-dark:     #e5a500;
    --text-dark:       #1e293b;
    --text-muted:      #64748b;
    --body-bg:         #ffffff;
    --white:           #ffffff;
    --border-color:    #e2e8f0;
    --font-main:       'Plus Jakarta Sans', 'Poppins', system-ui, -apple-system, sans-serif;
    --header-bg:       #ffffff;
    --topbar-bg:       #0b2545;
}

* {
    font-family: var(--font-main);
}

/* ────────────────────────────────────────────────────────
   1. TOP CONTACT & ANNOUNCEMENT BAR
   ──────────────────────────────────────────────────────── */
.site-top-bar {
    background: linear-gradient(90deg, #07192f 0%, #0b2545 45%, #103463 100%) !important;
    color: #ffffff;
    font-size: 12.5px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 1040;
}
.site-top-bar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-top-bar a:hover {
    color: #fbbf24;
}
.site-top-bar .top-contact {
    display: flex;
    align-items: center;
    gap: 16px;
}
.site-top-bar .top-contact span,
.topbar-chip-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: #e2e8f0;
    transition: color 0.2s ease;
}
.topbar-chip-link:hover {
    color: #fbbf24 !important;
}
.site-top-bar .top-contact i {
    color: #fbbf24;
    font-size: 12px;
}
.topbar-chip {
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24 !important;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.4px;
    border: 1px solid rgba(251, 191, 36, 0.35);
}
.site-top-bar .top-login {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.topbar-notice {
    font-size: 11.5px;
    color: #fef08a !important;
    background: rgba(251, 191, 36, 0.15) !important;
    border: 1px solid rgba(251, 191, 36, 0.35) !important;
    padding: 3px 12px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.topbar-live-dot {
    width: 7px;
    height: 7px;
    background: #fbbf24;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    animation: topbarDotPulse 2s infinite;
}
@keyframes topbarDotPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(251, 191, 36, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.topbar-portal-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.topbar-portal-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.topbar-portal-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.topbar-portal-pill.active {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border-color: #fbbf24;
}
.topbar-link {
    font-weight: 500;
    font-size: 12px;
}
.site-top-bar span.sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
}
.site-top-bar .dark-icon {
    color: var(--accent-yellow);
    font-size: 13px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.site-top-bar .dark-icon:hover {
    transform: rotate(20deg);
}

/* ────────────────────────────────────────────────────────
   2. MAIN NAVBAR & STICKY HEADER
   ──────────────────────────────────────────────────────── */
.site-header {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 25px rgba(11, 37, 69, 0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 9px 0;
    transition: all 0.25s ease;
}

/* Brand Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    transition: transform 0.25s ease;
}
.site-logo:hover {
    transform: translateY(-1px);
}
.site-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(11, 37, 69, 0.1);
    border: 1.5px solid rgba(251, 191, 36, 0.3);
    padding: 2px;
}
.site-logo-icon img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(11, 37, 69, 0.12));
}
.site-logo-text .brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-blue, #0b2545);
    line-height: 1.1;
    display: block;
    letter-spacing: -0.4px;
}
.site-logo-text .brand-name span {
    color: #2563eb;
}
.site-logo-text .brand-sub {
    font-size: 9.5px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

/* ────────────────────────────────────────────────────────
   3. DESKTOP NAVIGATION MENU
   ──────────────────────────────────────────────────────── */
.site-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}
.site-nav-link {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    padding: 8px 13px !important;
    border-radius: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background: transparent !important;
    border: none !important;
    white-space: nowrap !important;
    position: relative !important;
}
.site-nav-link:hover {
    color: #1d4ed8 !important;
    background: rgba(37, 99, 235, 0.06) !important;
    transform: translateY(-1px);
}

/* Active Nav Item - Modern Subtle Highlight */
.site-nav-link.is-active {
    color: var(--primary-blue, #1e3a8a) !important;
    background: rgba(37, 99, 235, 0.08) !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}
.site-nav-link.is-active::after {
    display: none !important;
}

.site-nav-arrow {
    font-size: 9px;
    margin-left: 4px;
    color: inherit;
    transition: transform 0.2s ease;
    opacity: 0.75;
    display: inline-block;
}
.nav-item.dropdown:hover .site-nav-arrow,
.nav-item.dropdown-mega:hover .site-nav-arrow,
.nav-item.dropdown.show .site-nav-arrow,
.nav-item.dropdown-mega.show .site-nav-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* ────────────────────────────────────────────────────────
   4. DROPDOWN MENUS & MULTI-LEVEL MEGA MENU
   ──────────────────────────────────────────────────────── */

/* Hide Bootstrap default duplicate caret arrow */
.site-nav-link.dropdown-toggle::after {
    display: none !important;
}

.site-header {
    position: relative;
    z-index: 1030;
}
.site-header.header-sticky-sticky {
    position: sticky !important;
    top: 0;
    z-index: 1030;
}
.site-header.header-sticky-static {
    position: relative !important;
    top: auto !important;
    z-index: 1030 !important;
}

.site-header .container-fluid,
.site-header .container-xl,
.site-header .container-lg,
.site-header > div {
    position: relative;
}

.nav-item.dropdown,
.nav-item.dropdown-mega {
    position: relative;
}
.nav-item.dropdown-mega {
    position: static;
}

/* Hover bridge: keeps menu open while cursor transitions into dropdown */
.nav-item.dropdown::after,
.nav-item.dropdown-mega::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    display: none;
    z-index: 1045;
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover::after,
    .nav-item.dropdown.show::after,
    .nav-item.dropdown-mega:hover::after,
    .nav-item.dropdown-mega.show::after {
        display: block;
    }

    /* Auto Dropdown on Hover & on .show */
    .nav-item.dropdown:hover > .site-dropdown-menu,
    .nav-item.dropdown.show > .site-dropdown-menu,
    .nav-item.dropdown-mega:hover > .site-mega-menu,
    .nav-item.dropdown-mega.show > .site-mega-menu,
    .site-dropdown-menu.show,
    .site-mega-menu.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        animation: megaFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }
}
@keyframes megaFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Standard Dropdown */
.site-dropdown-menu {
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    border-top: 3px solid var(--accent-yellow) !important;
    box-shadow: 0 20px 50px rgba(11, 37, 69, 0.18) !important;
    border-radius: 0 0 16px 16px !important;
    padding: 10px !important;
    min-width: 270px !important;
    margin-top: 0 !important;
    top: 100% !important;
    left: 0 !important;
    background: #ffffff !important;
    color: #1e293b !important;
    z-index: 1055 !important;
    display: none;
}
.site-dropdown-menu::before,
.site-mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 24px;
    background: transparent;
    display: block;
    z-index: 1060;
}
.site-dropdown-item {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: var(--primary-blue, #0b2545) !important;
    padding: 9px 14px !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.site-dropdown-item:hover {
    background: #fff8e1 !important;
    color: var(--primary-blue, #0b2545) !important;
    transform: translateX(3px);
}

/* Big Multi-Level Mega Menu */
.site-mega-menu {
    position: absolute !important;
    top: 100% !important;
    left: 20px !important;
    right: 20px !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-radius: 0 0 20px 20px !important;
    box-shadow: 0 25px 70px rgba(11, 37, 69, 0.22), 0 5px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    border-top: 3px solid var(--accent-yellow) !important;
    padding: 26px 30px !important;
    z-index: 1055 !important;
    display: none;
}

.mega-col-heading {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mega-col-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.mega-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}
.mega-link-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}
.mega-icon-chip {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #edf4fe;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.mega-thumb-chip {
    width: 46px;
    height: 38px;
    border-radius: 9px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}
.mega-thumb-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mega-link-item:hover .mega-icon-chip {
    background: var(--accent-yellow);
    color: var(--primary-blue);
    transform: scale(1.05);
}
.mega-link-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.25;
}
.mega-link-sub {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.2;
    margin-top: 1px;
}

/* Visual Image Card on the right of Mega Menu */
.mega-image-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mega-image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(11, 37, 69, 0.12);
}
.mega-image-img-wrap {
    height: 140px;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.mega-image-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.mega-image-card:hover .mega-image-img-wrap img {
    transform: scale(1.06);
}
.mega-image-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.mega-image-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 4px;
}
.mega-image-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 14px;
    flex: 1;
}
.mega-image-btn {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--accent-yellow);
    border-radius: 25px;
    align-self: flex-start;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.35);
}
.mega-image-btn:hover {
    background: var(--accent-dark);
    color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(255, 193, 7, 0.45);
}

/* ────────────────────────────────────────────────────────
   5. RIGHT HEADER ACTIONS (Search, Dark Toggle, User, Apply)
   ──────────────────────────────────────────────────────── */
.header-action {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.site-search-btn,
.header-theme-toggle {
    width: 38px;
    height: 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 50%;
    background: #f8fafc;
    color: var(--primary-blue, #0b2545);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
}
.site-search-btn:hover,
.header-theme-toggle:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* User Portal Icon & Dropdown */
.btn-user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: var(--primary-blue, #0b2545);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 0;
    outline: none;
    position: relative;
    box-shadow: 0 2px 6px rgba(11, 37, 69, 0.06);
}
.btn-user-icon:hover,
.btn-user-icon[aria-expanded="true"] {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}
.portal-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
}
.user-logged-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--accent-yellow);
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-dropdown-menu {
    min-width: 320px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 20px 55px rgba(11, 37, 69, 0.16);
    margin-top: 10px;
    background: #ffffff;
}
.user-dropdown-header {
    padding: 6px 8px 10px;
}
.user-dropdown-item {
    padding: 10px 12px;
    border-radius: 12px;
    transition: all 0.15s ease;
}
.user-dropdown-item:hover {
    background: #f8fafc;
}
.portal-icon-chip {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.si-blue   { background: #edf4fe; color: #2563eb; }
.si-green  { background: #f0fdf4; color: #16a34a; }
.si-purple { background: #faf5ff; color: #7c3aed; }
.si-orange { background: #fff7ed; color: #ea580c; }
.portal-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}
.portal-item-sub {
    font-size: 11px;
    color: #718096;
    line-height: 1.2;
    margin-top: 2px;
}
.avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--accent-yellow);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.user-dropdown-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
}
.user-dropdown-email {
    font-size: 11.5px;
    color: #718096;
}

/* Apply Now CTA Button */
.btn-header-apply {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    border: none !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
}
.btn-header-apply:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5) !important;
}

@media (max-width: 575.98px) {
    .btn-header-apply {
        padding: 7px 14px !important;
        font-size: 12px !important;
    }
}

/* ────────────────────────────────────────────────────────
   6. MOBILE HEADER & LEFT OFFCANVAS DRAWER
   ──────────────────────────────────────────────────────── */
.btn-mobile-toggler {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.btn-mobile-toggler:hover {
    background: #edf4fe;
    color: var(--primary-blue);
    border-color: #cbd5e1;
}

.mobile-nav-offcanvas {
    width: 320px !important;
    max-width: 86vw !important;
    border-right: 1px solid #e2e8f0 !important;
    border-left: none !important;
    background: #ffffff;
    box-shadow: 10px 0 35px rgba(11, 37, 69, 0.18);
}
.mobile-nav-offcanvas .offcanvas-header {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}
.mobile-nav-offcanvas .offcanvas-body {
    padding: 1.15rem 1.25rem 2rem;
    overflow-y: auto;
}

/* Mobile Role Portal Cards */
.mobile-portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 1.25rem;
}
.mobile-portal-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.mobile-portal-card:hover {
    background: #fff8e1;
    border-color: var(--accent-yellow);
    transform: translateY(-1px);
}
.mobile-portal-card i {
    font-size: 16px;
}
.text-purple {
    color: #7c3aed !important;
}

.mobile-nav-direct-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
    background: #f8fafc;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}
.mobile-nav-direct-link:hover,
.mobile-nav-direct-link.is-active {
    background: #fff8e1;
    color: var(--primary-blue);
    border-left: 3px solid var(--accent-yellow);
}

/* ────────────────────────────────────────────────────────
   7. DARK MODE THEME SUPPORT
   ──────────────────────────────────────────────────────── */
html[data-theme="dark"] .site-header {
    background: rgba(11, 23, 42, 0.96) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .site-logo-text .brand-name {
    color: #ffffff;
}
html[data-theme="dark"] .site-nav-link {
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .site-nav-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}
html[data-theme="dark"] .site-nav-link.is-active {
    background: rgba(255, 184, 0, 0.15) !important;
    color: var(--accent-yellow) !important;
}
html[data-theme="dark"] .site-dropdown-menu,
html[data-theme="dark"] .site-mega-menu,
html[data-theme="dark"] .user-dropdown-menu,
html[data-theme="dark"] .mobile-nav-offcanvas {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
html[data-theme="dark"] .site-dropdown-item,
html[data-theme="dark"] .mega-link-title,
html[data-theme="dark"] .portal-item-title,
html[data-theme="dark"] .user-dropdown-name {
    color: #f1f5f9 !important;
}
html[data-theme="dark"] .mega-image-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .site-search-btn,
html[data-theme="dark"] .header-theme-toggle,
html[data-theme="dark"] .btn-user-icon,
html[data-theme="dark"] .btn-mobile-toggler {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
}

/* ────────────────────────────────────────────────────────
   7. LIVE PULSE & MICRO-INTERACTION ANIMATIONS
   ──────────────────────────────────────────────────────── */
@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
        box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.7);
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(255, 184, 0, 0);
    }
}

.topbar-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffc107;
    animation: pulseGlow 1.8s infinite ease-in-out;
}

.topbar-live-dot.green {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation-name: pulseGlowGreen;
}

@keyframes pulseGlowGreen {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

/* Polished Header Action Pill Buttons */
.site-search-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-search-btn:hover {
    border-color: var(--accent-yellow) !important;
    color: var(--primary-blue) !important;
    box-shadow: 0 3px 12px rgba(255, 184, 0, 0.2);
}

.btn-header-apply {
    position: relative;
    overflow: hidden;
}
.btn-header-apply::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: transform 0.6s ease;
}
.btn-header-apply:hover::after {
    transform: translateX(380%) rotate(30deg);
}

/* Dropdown Menu Top Accent Line */
.site-mega-menu,
.site-dropdown-menu {
    border-top: 3px solid var(--accent-yellow) !important;
    border-radius: 0 0 16px 16px !important;
}

/* ========================================================
   DYNAMIC HEADER SIZING & DESIGN PRESET STYLES
   Managed via Admin Header Design & Modules Studio
   ======================================================== */

/* ── 1. Sizing Presets ── */
.site-header {
    --nav-item-font-size: var(--nav-font-size, 13.5px);
}
.site-header .site-nav-link {
    font-size: var(--nav-item-font-size) !important;
}

/* Compact Sizing Preset */
.header-size-compact {
    padding: 4px 0 !important;
    min-height: 52px;
}
.header-size-compact .site-logo-icon img {
    height: var(--header-logo-height, 36px) !important;
    max-height: 44px !important;
}
.header-size-compact .site-logo-text .brand-name {
    font-size: 18px !important;
}
.header-size-compact .site-logo-text .brand-sub {
    font-size: 9px !important;
}
.header-size-compact .site-nav-link {
    padding: 6px 9px !important;
}
.header-size-compact .btn-header-apply {
    padding: 7px 16px !important;
    font-size: 13px !important;
}

/* Balanced Sizing Preset (Default) */
.header-size-balanced {
    padding: 8px 0 !important;
    min-height: 68px;
}
.header-size-balanced .site-logo-icon img {
    height: var(--header-logo-height, 46px) !important;
    max-height: 64px !important;
}
.header-size-balanced .site-logo-text .brand-name {
    font-size: 21px !important;
}
.header-size-balanced .site-nav-link {
    padding: 8px 11px !important;
}

/* Spacious Sizing Preset */
.header-size-spacious {
    padding: 15px 0 !important;
    min-height: 86px;
}
.header-size-spacious .site-logo-icon img {
    height: var(--header-logo-height, 58px) !important;
    max-height: 80px !important;
}
.header-size-spacious .site-logo-text .brand-name {
    font-size: 24px !important;
}
.header-size-spacious .site-logo-text .brand-sub {
    font-size: 11px !important;
}
.header-size-spacious .site-nav-link {
    padding: 10px 14px !important;
}
.header-size-spacious .btn-header-apply {
    padding: 11px 24px !important;
    font-size: 14.5px !important;
}

/* ── 2. Scroll Behaviors ── */
.header-sticky-sticky {
    position: sticky !important;
    top: 0;
    z-index: 1030;
}
.header-sticky-static {
    position: relative !important;
    top: auto !important;
    z-index: 1030 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
}

/* ── 3. Visual Layout Presets ── */

/* Style 1: Modern Classic */
.header-style-modern_classic {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 20px rgba(11, 37, 69, 0.05);
}

/* Style 2: Sleek Compact */
.header-style-sleek_compact {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.header-style-sleek_compact .site-logo-text .brand-name {
    letter-spacing: -0.5px;
}

/* Style 3: Floating Glassmorphic Pill */
.header-style-floating_glass {
    position: sticky !important;
    top: 14px !important;
    margin: 14px auto !important;
    width: 95% !important;
    max-width: 1360px !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 12px 35px rgba(11, 37, 69, 0.12), 0 2px 6px rgba(11, 37, 69, 0.06) !important;
    z-index: 1030;
    transition: all 0.3s ease;
}
.header-style-floating_glass .site-nav-link {
    border-radius: 9999px !important;
}

/* Style 4: Center Brand Grand */
.header-style-center_brand {
    background: #ffffff !important;
    border-bottom: 2px solid var(--accent-yellow);
    box-shadow: 0 8px 30px rgba(11, 37, 69, 0.08);
}
.header-style-center_brand .site-logo {
    margin: 0 auto;
    text-align: center;
}
.header-style-center_brand .site-logo-text .brand-name {
    font-size: 24px;
    letter-spacing: 0.5px;
}

/* Style 5: Executive Royal Navy */
.header-style-executive_navy {
    background: #091e3a !important;
    color: #ffffff !important;
    border-bottom: 2px solid rgba(255, 184, 0, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.header-style-executive_navy .site-logo-text .brand-name {
    color: #ffffff !important;
}
.header-style-executive_navy .site-logo-text .brand-name span {
    color: var(--accent-yellow) !important;
}
.header-style-executive_navy .site-logo-text .brand-sub {
    color: rgba(255, 255, 255, 0.65) !important;
}
.header-style-executive_navy .site-nav-link {
    color: #ffffff !important;
}
.header-style-executive_navy .site-nav-link:hover,
.header-style-executive_navy .site-nav-link.is-active {
    color: var(--accent-yellow) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}
.header-style-executive_navy .btn-user-icon {
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}
.header-style-executive_navy .site-search-btn {
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* Footer Trust Badges Micro-Interactions */
.footer-trust-strip .avatar-chip {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.footer-trust-strip > div:hover .avatar-chip {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

