/* ═══════════════════════════════════════════════════════════════════════════
   logo-branding.css — Single source of truth for header/nav/branding
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 0. BASE ────────────────────────────────────────────────────────────── */
html, body { overflow-x: hidden !important; width: 100% !important; max-width: 100% !important; }
*, *::before, *::after { box-sizing: border-box !important; }
#wrapper { padding-top: 0 !important; margin-top: 0 !important; overflow-x: hidden !important; max-width: 100% !important; }

/* ─── 1. HEADER ──────────────────────────────────────────────────────────── */
#header, header,
#wrapper .header-with-megamenu,
#wrapper .header-with-megamenu.new-header,
.header-with-megamenu.new-header {
    background: linear-gradient(135deg, #08142e, #123b8f) !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.35) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1001 !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    height: auto !important;
}

/* ─── 2. KILL WHITE GAP ──────────────────────────────────────────────────── */
.header-with-megamenu.new-header .stx-main-bar::after,
#wrapper .header-with-megamenu.new-header .stx-main-bar::after {
    display: none !important; content: none !important;
}
#header *, .stx-main-bar *, .stx-navigation * { border-color: transparent !important; }

/* ─── 3. MAIN BAR ────────────────────────────────────────────────────────── */
#wrapper .header-with-megamenu.new-header .stx-main-bar,
.header-with-megamenu.new-header .stx-main-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1002 !important;
    min-height: 72px !important;
    padding: 10px 24px !important;
}

/* ─── 4. TOP BAR ─────────────────────────────────────────────────────────── */
.header-with-megamenu.new-header .stx-top-bar {
    background: rgba(0,0,0,0.25) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.header-with-megamenu.new-header .stx-top-bar a,
.header-with-megamenu.new-header .stx-top-bar label,
.header-with-megamenu.new-header .stx-top-bar button { color: rgba(255,255,255,0.85) !important; }

/* ─── 5. LOGO ────────────────────────────────────────────────────────────── */
#header .stx-logo, #header .stx-logo a,
#wrapper .header-with-megamenu.new-header .stx-logo,
.header-with-megamenu.new-header .stx-logo {
    width: 160px !important; min-width: 120px !important; height: 72px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    overflow: hidden !important; padding: 0 !important;
    flex-shrink: 0 !important; flex-grow: 0 !important;
    text-decoration: none !important;
    background: rgba(255,255,255,0.07) !important;
    border-right: 1px solid rgba(255,255,255,0.12) !important;
    border-top: none !important; border-bottom: none !important; border-left: none !important;
    border-radius: 0 !important; box-shadow: none !important;
    position: relative !important; max-height: none !important;
}
#header .stx-logo img, #header .stx-logo .logo-desktop,
#wrapper .header-with-megamenu.new-header .stx-logo img,
.header-with-megamenu.new-header .stx-logo img,
.header-with-megamenu.new-header .stx-logo .logo-desktop {
    height: 60px !important; width: auto !important;
    max-width: 140px !important; max-height: 60px !important;
    object-fit: contain !important; display: block !important;
    transform: none !important; margin: 0 auto !important;
    filter: none !important;
}

/* ─── 6. KILL OVERLAY ────────────────────────────────────────────────────── */
.header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main > .stx-megamenu__inner::after,
#wrapper .header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main > .stx-megamenu__inner::after {
    display: none !important; content: none !important;
    background: none !important; opacity: 0 !important;
}

/* ─── 7. NAVIGATION ──────────────────────────────────────────────────────── */
.header-with-megamenu.new-header .stx-navigation {
    flex: 1 1 auto !important; min-width: 0 !important;
    position: relative !important; overflow: visible !important;
    background: transparent !important;
}
.header-with-megamenu.new-header .stx-navigation ul {
    display: flex !important; align-items: center !important; gap: 4px !important;
}
.header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main > label,
.header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main > a {
    color: rgba(255,255,255,0.92) !important; font-weight: 500 !important;
    font-size: 14px !important; cursor: pointer !important;
    padding: 8px 14px !important; display: block !important;
    white-space: nowrap !important;
}
/* Contact Us link inside label */
.header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main > label a {
    color: rgba(255,255,255,0.92) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}
.header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main:hover > label,
.header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main.active > label {
    color: #ffffff !important;
}
.header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main:hover > label a,
.header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main.active > label a {
    color: #ffffff !important;
}

/* ─── 8. CTA BUTTONS ─────────────────────────────────────────────────────── */
.header-with-megamenu.new-header .stx-ctas {
    flex-shrink: 0 !important; display: flex !important;
    align-items: center !important; gap: 8px !important; white-space: nowrap !important;
}
.header-with-megamenu.new-header .stx-ctas .button a {
    display: inline-block !important; border-radius: 6px !important;
    padding: 9px 18px !important; font-weight: 600 !important;
    font-size: 13px !important; text-decoration: none !important; cursor: pointer !important;
}
.header-with-megamenu.new-header .stx-ctas .button.button-solid a,
.header-with-megamenu.new-header .stx-ctas .button.button-primary a,
.header-with-megamenu.new-header .stx-ctas .button:last-child a {
    background: linear-gradient(135deg, #1e95cb 0%, #0f6fa0 100%) !important;
    color: #fff !important; border: none !important;
    box-shadow: 0 3px 10px rgba(30,149,203,0.4) !important;
}
/* Log In button — solid white background, dark navy text (maximum visibility) */
.header-with-megamenu.new-header .stx-ctas .button.button-bordered-primary a,
.header-with-megamenu.new-header .stx-ctas .button:first-child:not(:only-child) a {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0b2a6f !important;
    border: 2px solid #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}
.header-with-megamenu.new-header .stx-ctas .button.button-bordered-primary a:hover,
.header-with-megamenu.new-header .stx-ctas .button:first-child:not(:only-child) a:hover {
    background: #e8f0ff !important;
    background-color: #e8f0ff !important;
    border-color: #e8f0ff !important;
    color: #0b2a6f !important;
}
.header-with-megamenu.new-header .stx-ctas .button:only-child a {
    background: linear-gradient(135deg, #1e95cb 0%, #0f6fa0 100%) !important;
    color: #fff !important; border: none !important;
}

/* ─── 9. HAMBURGER ───────────────────────────────────────────────────────── */
.header-with-megamenu.new-header .navTrigger,
.header-with-megamenu.new-header .stx-hamburger,
.navTrigger.stx-hamburger {
    width: 44px !important; height: 44px !important;
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important; gap: 5px !important;
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 8px !important; z-index: 9999 !important;
    cursor: pointer !important; flex-shrink: 0 !important;
    padding: 0 !important; box-sizing: border-box !important;
}
.header-with-megamenu.new-header .navTrigger i,
.navTrigger.stx-hamburger i {
    width: 22px !important; height: 2px !important;
    background: #fff !important; border-radius: 2px !important;
    display: block !important; opacity: 1 !important; visibility: visible !important;
    flex-shrink: 0 !important; margin: 0 !important;
    transition: transform 0.28s ease, opacity 0.28s ease !important;
}
.header-with-megamenu.new-header .navTrigger > span,
.navTrigger.stx-hamburger > span {
    color: #fff !important; font-size: 7px !important; font-weight: 700 !important;
    letter-spacing: 0.5px !important; text-transform: uppercase !important;
    line-height: 1 !important; display: block !important; margin-top: 1px !important;
}

/* ─── 10. DESKTOP DROPDOWN (≥1025px) ────────────────────────────────────── */
@media (min-width: 1025px) {
    .header-with-megamenu.new-header .navTrigger,
    .header-with-megamenu.new-header .stx-hamburger { display: none !important; }

    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main {
        position: relative !important; padding: 0 !important;
    }

    /* Dropdown — let headerwithmegamenu CSS handle show/hide, we just style it */
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main > .stx-megamenu__inner {
        position: absolute !important;
        left: 0 !important; width: 100vw !important;
        background: #fff !important; color: #000 !important;
        box-shadow: 0 8px 32px rgba(0,0,0,.18) !important;
        border-top: 3px solid #1e95cb !important;
        z-index: 99999 !important;
        padding: 24px 40px !important;
        pointer-events: auto !important;
        /* Hidden by default */
        display: none !important;
        top: 100% !important;
    }

    /* Show on hover AND on .active (set by JS mouseenter) */
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main:hover > .stx-megamenu__inner,
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main.active > .stx-megamenu__inner,
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main:focus-within > .stx-megamenu__inner {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Dropdown content layout */
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__container {
        display: flex !important; gap: 32px !important; max-width: 1200px !important;
        margin: 0 auto !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__submenu-container {
        display: flex !important; gap: 24px !important; flex: 1 !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__submenu { flex: 1 !important; }
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__inner-title {
        font-weight: 600 !important; font-size: 13px !important;
        color: rgba(0,0,0,0.5) !important; margin-bottom: 8px !important;
        text-transform: uppercase !important; letter-spacing: 0.5px !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__link {
        display: block !important; padding: 6px 0 !important;
        color: #12225c !important; font-size: 14px !important;
        text-decoration: none !important; transition: color 0.15s !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__link:hover { color: #1e95cb !important; }
    .stx-back-button { display: none !important; }
    .stx-main--megamenu__inner_iconlinks {
        display: flex !important; flex-direction: column !important;
        gap: 8px !important; min-width: 200px !important;
    }
    .button-with-image-gradient {
        display: flex !important; align-items: center !important;
        gap: 10px !important; padding: 10px 14px !important;
        background: linear-gradient(135deg, #08142e, #123b8f) !important;
        color: #fff !important; border-radius: 8px !important;
        text-decoration: none !important; font-size: 13px !important;
        font-weight: 500 !important; transition: opacity 0.2s !important;
    }
    .button-with-image-gradient:hover { opacity: 0.85 !important; }
    .button-with-image-gradient img { width: 24px !important; height: 24px !important; flex-shrink: 0 !important; }
}

/* ─── 11. MOBILE NAV (≤1024px) ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .header-with-megamenu.new-header .navTrigger,
    .navTrigger.stx-hamburger {
        display: flex !important; margin-left: auto !important;
    }
    /* Mobile nav drawer */
    .header-with-megamenu.new-header .stx-navigation {
        position: fixed !important; top: 72px !important; left: 0 !important;
        width: 100% !important; max-width: 100vw !important;
        max-height: calc(100vh - 72px) !important;
        overflow-y: auto !important; overflow-x: hidden !important;
        background: #08142e !important; z-index: 10000 !important;
        display: none !important; flex-direction: column !important;
        padding: 0 0 32px 0 !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
    }
    .header-with-megamenu.new-header.menu-visible .stx-navigation {
        display: flex !important;
    }
    /* Mobile nav items */
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu {
        width: 100% !important; box-sizing: border-box !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main {
        width: 100% !important; border-bottom: 1px solid rgba(255,255,255,0.07) !important;
        box-sizing: border-box !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main > label,
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main > a {
        color: #fff !important; font-size: 15px !important; font-weight: 500 !important;
        padding: 16px 20px !important; display: flex !important;
        justify-content: space-between !important; align-items: center !important;
        cursor: pointer !important; width: 100% !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(255,255,255,0.1) !important;
        user-select: none !important; -webkit-user-select: none !important;
        min-height: 52px !important; box-sizing: border-box !important;
    }
    /* Arrow indicator */
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main > label::after {
        content: '›' !important; font-size: 20px !important; line-height: 1 !important;
        transition: transform 0.25s ease !important; display: inline-block !important;
        flex-shrink: 0 !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main.open > label::after {
        transform: rotate(90deg) !important;
    }
    /* Mobile dropdown — hidden by default, shown when .open */
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main > .stx-megamenu__inner {
        display: none !important; position: static !important;
        width: 100% !important; background: rgba(255,255,255,0.05) !important;
        padding: 10px 20px 16px 20px !important; border-top: none !important;
        box-shadow: none !important; opacity: 1 !important; pointer-events: auto !important;
        box-sizing: border-box !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main.open > .stx-megamenu__inner,
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main.active > .stx-megamenu__inner {
        display: block !important;
    }
    /* Mobile submenu links */
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__link,
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu a {
        color: rgba(255,255,255,0.85) !important; font-size: 14px !important;
        padding: 12px 0 !important; display: block !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
        min-height: 48px !important; line-height: 24px !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(255,255,255,0.1) !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__inner-title {
        color: rgba(255,255,255,0.5) !important; font-size: 11px !important;
        text-transform: uppercase !important; letter-spacing: 0.5px !important;
        padding: 10px 0 4px 0 !important; font-weight: 600 !important;
    }
    /* Hide icon buttons on mobile — too complex */
    .stx-main--megamenu__inner_iconlinks { display: none !important; }
    .stx-back-button { display: none !important; }

    /* ── MOBILE CTA BUTTONS — high-contrast, fully visible ── */
    .header-with-megamenu.new-header .stx-navigation .stx-ctas {
        flex-direction: column !important;
        padding: 20px 16px 24px 16px !important;
        width: 100% !important;
        gap: 12px !important;
        box-sizing: border-box !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        margin-top: 8px !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* All CTA links — shared base */
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        min-height: 52px !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        text-decoration: none !important;
        cursor: pointer !important;
        transition: opacity 0.2s ease, transform 0.15s ease !important;
    }
    /* LOG IN button — white background, dark navy text (maximum contrast) */
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button.button-bordered-primary a,
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button:first-child:not(:only-child) a {
        background: #ffffff !important;
        color: #0b2a6f !important;
        border: 2px solid #ffffff !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.25) !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button.button-bordered-primary a:hover,
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button:first-child:not(:only-child) a:hover {
        background: #f0f4ff !important;
        color: #0b2a6f !important;
        border-color: #f0f4ff !important;
        opacity: 0.95 !important;
    }
    /* OPEN AN ACCOUNT button — solid blue gradient */
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button.button-solid a,
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button.button-primary a,
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button:last-child:not(:first-child) a {
        background: linear-gradient(135deg, #1e95cb 0%, #0f6fa0 100%) !important;
        color: #ffffff !important;
        border: 2px solid transparent !important;
        box-shadow: 0 3px 14px rgba(30,149,203,0.45) !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button.button-solid a:hover,
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button.button-primary a:hover,
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button:last-child:not(:first-child) a:hover {
        opacity: 0.9 !important;
        transform: translateY(-1px) !important;
    }

    /* Hamburger X animation */
    .header-with-megamenu.new-header.menu-visible .navTrigger i:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }
    .header-with-megamenu.new-header.menu-visible .navTrigger i:nth-child(2) {
        opacity: 0 !important; transform: scaleX(0) !important;
    }
    .header-with-megamenu.new-header.menu-visible .navTrigger i:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }
    body.menu-open { overflow: hidden !important; }
    .header-with-megamenu.new-header.menu-visible { overflow: visible !important; }
    /* Submenu container stacks vertically on mobile */
    .stx-megamenu__submenu-container { display: block !important; }
    .stx-megamenu__submenu { margin-bottom: 8px !important; }
}

/* ─── 12. SMALL MOBILE (≤480px) ─────────────────────────────────────────── */
@media (max-width: 480px) {
    #wrapper .header-with-megamenu.new-header .stx-main-bar,
    .header-with-megamenu.new-header .stx-main-bar {
        min-height: 60px !important; padding: 8px 12px !important;
    }
    #header .stx-logo, .header-with-megamenu.new-header .stx-logo {
        width: 120px !important; min-width: 100px !important; height: 60px !important;
    }
    #header .stx-logo img, .header-with-megamenu.new-header .stx-logo img {
        height: 44px !important; max-width: 110px !important;
    }
    .header-with-megamenu.new-header .stx-navigation {
        top: 60px !important; max-height: calc(100vh - 60px) !important;
    }
    .header-with-megamenu.new-header .stx-top-bar { display: none !important; }

    /* Buttons stay full-width and readable on tiny screens */
    .header-with-megamenu.new-header .stx-navigation .stx-ctas {
        padding: 16px 12px 20px 12px !important;
        gap: 10px !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button a {
        font-size: 15px !important;
        padding: 13px 16px !important;
        min-height: 50px !important;
    }
}

/* ─── 12b. EXTRA SMALL (≤375px) ─────────────────────────────────────────── */
@media (max-width: 375px) {
    #wrapper .header-with-megamenu.new-header .stx-main-bar,
    .header-with-megamenu.new-header .stx-main-bar {
        min-height: 56px !important; padding: 6px 10px !important;
    }
    #header .stx-logo, .header-with-megamenu.new-header .stx-logo {
        width: 110px !important; min-width: 90px !important; height: 56px !important;
    }
    #header .stx-logo img, .header-with-megamenu.new-header .stx-logo img {
        height: 40px !important; max-width: 100px !important;
    }
    .header-with-megamenu.new-header .stx-navigation {
        top: 56px !important; max-height: calc(100vh - 56px) !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-ctas {
        padding: 14px 10px 18px 10px !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button a {
        font-size: 14px !important;
        padding: 12px 14px !important;
        min-height: 48px !important;
    }
    /* Nav labels slightly smaller */
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main > label,
    .header-with-megamenu.new-header .stx-navigation .stx-megamenu__item--main > a {
        font-size: 14px !important;
        padding: 14px 16px !important;
        min-height: 48px !important;
    }
}

/* ─── 12c. MINIMUM (≤320px) ──────────────────────────────────────────────── */
@media (max-width: 320px) {
    #wrapper .header-with-megamenu.new-header .stx-main-bar,
    .header-with-megamenu.new-header .stx-main-bar {
        min-height: 52px !important; padding: 6px 8px !important;
    }
    #header .stx-logo, .header-with-megamenu.new-header .stx-logo {
        width: 100px !important; min-width: 80px !important; height: 52px !important;
    }
    #header .stx-logo img, .header-with-megamenu.new-header .stx-logo img {
        height: 36px !important; max-width: 90px !important;
    }
    .header-with-megamenu.new-header .stx-navigation {
        top: 52px !important; max-height: calc(100vh - 52px) !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button a {
        font-size: 13px !important;
        padding: 11px 12px !important;
        min-height: 46px !important;
    }
}

/* ─── 13. TAB ICONS ──────────────────────────────────────────────────────── */
.personalization-tabs .tabs-nav .tab-nav .icon {
    width: 28px !important; height: 28px !important; min-width: 28px !important;
    flex-shrink: 0 !important; display: flex !important;
    align-items: center !important; justify-content: center !important; overflow: hidden !important;
}
.personalization-tabs .tabs-nav .tab-nav .icon img {
    width: 24px !important; height: 24px !important;
    max-width: 24px !important; max-height: 24px !important;
    object-fit: contain !important; display: block !important;
}
.personalization-tabs .tabs-item .image { overflow: hidden !important; border-radius: 8px !important; }
.personalization-tabs .tabs-item .image img {
    width: 100% !important; height: auto !important;
    max-height: 410px !important; object-fit: cover !important; display: block !important;
}

/* ─── 14. DASHBOARD HEADER ───────────────────────────────────────────────── */
.dashboard-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 24px !important;
    min-height: 58px !important;
    background: linear-gradient(244.81deg, #1E95CB 16%, #11377C 84%) !important;
    color: #fff !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 900 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100vw !important;
}
.dashboard-header h1, .dashboard-header .dashboard-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #fff !important;
    white-space: nowrap !important;
    margin: 0 !important;
}
.dashboard-header .user-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}
.dashboard-header .user-info a, .dashboard-header a {
    color: #fff !important;
    text-decoration: none !important;
    padding: 7px 14px !important;
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
}
/* Dashboard hamburger button — must be visible on mobile */
.dashboard-header .mobile-toggle {
    display: none !important;
    color: #fff !important;
    background: rgba(255,255,255,0.15) !important;
    border: none !important;
    border-radius: 6px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 22px !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}
@media (max-width: 768px) {
    .dashboard-header { padding: 0 14px !important; min-height: 56px !important; }
    .dashboard-header h1, .dashboard-header .dashboard-title { font-size: 17px !important; }
    .dashboard-header .user-info span { display: none !important; }
    .dashboard-header .user-info a { padding: 6px 10px !important; font-size: 12px !important; }
    /* Show hamburger on mobile */
    .dashboard-header .mobile-toggle { display: flex !important; }
}

/* ─── 15. ADMIN HEADER ───────────────────────────────────────────────────── */
.admin-header {
    display: flex !important; align-items: center !important;
    justify-content: space-between !important; padding: 0 24px !important;
    min-height: 56px !important;
    background: linear-gradient(135deg, #0b1d51 0%, #1e95cb 100%) !important;
    color: #fff !important; box-shadow: 0 2px 12px rgba(0,0,0,0.15) !important;
    flex-wrap: wrap !important; gap: 10px !important;
    box-sizing: border-box !important; width: 100% !important; max-width: 100vw !important;
}
.admin-header h1 { font-size: 20px !important; font-weight: 600 !important; color: #fff !important; margin: 0 !important; }
.admin-header a {
    color: #fff !important; text-decoration: none !important; padding: 7px 14px !important;
    background: rgba(255,255,255,0.15) !important; border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 7px !important; font-size: 13px !important; font-weight: 500 !important; white-space: nowrap !important;
}
@media (max-width: 768px) {
    .admin-header { padding: 10px 14px !important; min-height: auto !important; }
    .admin-header h1 { font-size: 16px !important; }
    .admin-header a { padding: 6px 10px !important; font-size: 12px !important; }
}

/* ─── END ────────────────────────────────────────────────────────────────── */


/* ═══════════════════════════════════════════════════════════════════════════
   LOGIN BUTTON FIX — high contrast white button on dark header
   ═══════════════════════════════════════════════════════════════════════════ */

/* Desktop: LOG IN button — solid white, dark navy text */
.header-with-megamenu.new-header .stx-ctas .button.button-bordered-primary a,
.header-with-megamenu.new-header .stx-ctas .button:first-child:not(:only-child) a {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0b2a6f !important;
    border: 2px solid #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
    border-radius: 6px !important;
    padding: 9px 18px !important;
    display: inline-block !important;
    text-decoration: none !important;
    cursor: pointer !important;
}
.header-with-megamenu.new-header .stx-ctas .button.button-bordered-primary a:hover,
.header-with-megamenu.new-header .stx-ctas .button:first-child:not(:only-child) a:hover {
    background: #e8f0ff !important;
    background-color: #e8f0ff !important;
    border-color: #e8f0ff !important;
    color: #0b2a6f !important;
}

/* Mobile drawer: LOG IN button — solid white, dark navy text */
@media (max-width: 1024px) {
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button.button-bordered-primary a,
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button:first-child:not(:only-child) a {
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #0b2a6f !important;
        border: 2px solid #ffffff !important;
        font-weight: 700 !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.25) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
        min-height: 52px !important;
        text-decoration: none !important;
        cursor: pointer !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button.button-bordered-primary a:hover,
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button:first-child:not(:only-child) a:hover {
        background: #f0f4ff !important;
        background-color: #f0f4ff !important;
        color: #0b2a6f !important;
        border-color: #f0f4ff !important;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   LOGIN BUTTON FINAL FIX — white text, transparent bg, white border
   Overrides all previous rules in this file
   ═══════════════════════════════════════════════════════════════════════════ */

/* Desktop */
.header-with-megamenu.new-header .stx-ctas .button.button-bordered-primary a,
.header-with-megamenu.new-header .stx-ctas .button:first-child:not(:only-child) a {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}
.header-with-megamenu.new-header .stx-ctas .button.button-bordered-primary a:hover,
.header-with-megamenu.new-header .stx-ctas .button:first-child:not(:only-child) a:hover {
    background: rgba(255,255,255,0.15) !important;
    background-color: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Mobile drawer */
@media (max-width: 1024px) {
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button.button-bordered-primary a,
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button:first-child:not(:only-child) a {
        background: transparent !important;
        background-color: transparent !important;
        color: #ffffff !important;
        border: 2px solid #ffffff !important;
        font-weight: 600 !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 52px !important;
        border-radius: 8px !important;
        font-size: 16px !important;
    }
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button.button-bordered-primary a:hover,
    .header-with-megamenu.new-header .stx-navigation .stx-ctas .button:first-child:not(:only-child) a:hover {
        background: rgba(255,255,255,0.12) !important;
        background-color: rgba(255,255,255,0.12) !important;
        color: #ffffff !important;
        border-color: #ffffff !important;
    }
}


