/* ==========================================================
   DILLA UNIVERSITY HEADER REDESIGN
   Stage 1: Utility Row + Main Identity Row
   Isolated layer - existing header/navigation functionality
   is intentionally preserved.
========================================================== */

:root {
    --du-header-brand-green: #176B36;
    --du-header-deep-green: #124B2B;
    --du-header-hover-green: #145B2E;
    --du-header-accent-yellow: #F0E820;
    --du-header-white: #FFFFFF;
    --du-header-text: #1F2937;
    --du-header-muted: #64748B;
    --du-header-border: #E5E7EB;
}

/* ----------------------------------------------------------
   UTILITY ROW
---------------------------------------------------------- */

.shfb-header .shfb-above_header_row {
    background: var(--du-header-deep-green) !important;
    color: var(--du-header-white) !important;
    padding: 4px 16px !important;
    margin: 0 12px !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    border-bottom: 1px solid rgba(255,255,255,.10) !important;
}

.shfb-header .shfb-above_header_row a {
    color: var(--du-header-white) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color .2s ease !important;
}

.shfb-header .shfb-above_header_row a:hover,
.shfb-header .shfb-above_header_row a:focus-visible {
    color: var(--du-header-accent-yellow) !important;
}

.shfb-header .shfb-above_header_row .header-contact-inline {
    align-items: center !important;
}

/* SOCIAL ICONS - UTILITY ROW */
.shfb-header .shfb-above_header_row .shfb-column-2 .social-profile {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

.shfb-header .shfb-above_header_row .shfb-column-2 .social-profile a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #FFFFFF !important;
    transition: color 0.2s ease !important;
}

.shfb-header .shfb-above_header_row .shfb-column-2 .social-profile .sydney-svg-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 0 !important;
}

.shfb-header .shfb-above_header_row .shfb-column-2 .social-profile svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    overflow: visible !important;
}

.shfb-header .shfb-above_header_row .shfb-column-2 .social-profile svg path {
    fill: currentColor !important;
}



/* ----------------------------------------------------------
   MAIN IDENTITY ROW
---------------------------------------------------------- */

.shfb-header .shfb-main_header_row {
    background: var(--du-header-white) !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--du-header-border) !important;
    box-shadow: 0 2px 8px rgba(15,23,42,.04) !important;
}

.shfb-header .shfb-main_header_row .site-branding > a {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.shfb-header .shfb-main_header_row .site-logo {
    width: 82px !important;
    height: 82px !important;
    object-fit: contain !important;
}

.shfb-header .shfb-main_header_row .site-title {
    color: var(--du-header-brand-green) !important;
    font-size: clamp(1.45rem, 2vw, 2rem) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -.025em !important;
}

.shfb-header .shfb-main_header_row .site-description {
    color: var(--du-header-muted) !important;
    font-size: .92rem !important;
    font-style: normal !important;
    line-height: 1.5 !important;
    margin-top: 4px !important;
}

/* Search */

.shfb-header .shfb-main_header_row .shfb-component-search a {
    width: 44px !important;
    height: 44px !important;
    background: var(--du-header-brand-green) !important;
    border: 1px solid var(--du-header-brand-green) !important;
    box-shadow: none !important;
    transition: background .2s ease, transform .2s ease !important;
}

.shfb-header .shfb-main_header_row .shfb-component-search a:hover,
.shfb-header .shfb-main_header_row .shfb-component-search a:focus-visible {
    background: var(--du-header-hover-green) !important;
    transform: translateY(-1px) !important;
}

.shfb-header .shfb-main_header_row .shfb-component-search a {
    color: #FFFFFF !important;
}

.shfb-header .shfb-main_header_row .shfb-component-search a svg path {
    fill: currentColor !important;
}

/* Apply Now */

.shfb-header .shfb-main_header_row .shfb-component-button .button {
    background: var(--du-header-brand-green) !important;
    color: var(--du-header-white) !important;
    border: 1px solid var(--du-header-brand-green) !important;
    border-radius: 5px !important;
    padding: 12px 22px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: background .2s ease, border-color .2s ease !important;
}

.shfb-header .shfb-main_header_row .shfb-component-button .button:hover,
.shfb-header .shfb-main_header_row .shfb-component-button .button:focus-visible {
    background: var(--du-header-hover-green) !important;
    border-color: var(--du-header-hover-green) !important;
    transform: none !important;
}

/* ----------------------------------------------------------
   TABLET
---------------------------------------------------------- */

@media (max-width: 992px) {
    .shfb-header .shfb-main_header_row {
        padding: 12px 0 !important;
    }

    .shfb-header .shfb-main_header_row .site-logo {
        width: 72px !important;
        height: 72px !important;
    }

    .shfb-header .shfb-main_header_row .site-title {
        font-size: 1.45rem !important;
    }
}

/* ----------------------------------------------------------
   MOBILE - visual adjustments only
---------------------------------------------------------- */

@media (max-width: 768px) {
    .shfb-header .shfb-above_header_row {
        padding: 5px 12px !important;
        margin: 0 8px !important;
        border-radius: 10px !important;
    }

    .shfb-header .shfb-above_header_row a {
        font-size: 12px !important;
    }

    .shfb-header .shfb-main_header_row {
        padding: 10px 0 !important;
    }

    .shfb-header .shfb-main_header_row .site-logo {
        width: 64px !important;
        height: 64px !important;
    }

    .shfb-header .shfb-main_header_row .site-title {
        font-size: 1.25rem !important;
    }

    .shfb-header .shfb-main_header_row .site-description {
        font-size: .82rem !important;
    }

    .shfb-header .shfb-main_header_row .shfb-component-search a {
        width: 40px !important;
        height: 40px !important;
    }

    .shfb-header .shfb-main_header_row .shfb-component-button .button {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
}

/* ==========================================================
   DILLA UNIVERSITY HEADER REDESIGN
   Stage 2: Primary Navigation Visual Layer
   Preserve Sydney menu structure and submenu behavior.
========================================================== */

@media (min-width: 769px) {

    /* Navigation bar */
    .shfb-header .shfb-below_header_row {
        background: var(--du-header-deep-green) !important;
        border-top: 3px solid var(--du-header-accent-yellow) !important;
        border-bottom: 1px solid rgba(255,255,255,.10) !important;
        box-shadow: 0 4px 12px rgba(18,75,43,.12) !important;
        padding: 0 !important;
    }

    /* Primary navigation alignment */
    .shfb-header .shfb-below_header_row .main-navigation {
        text-align: center !important;
    }

    /* Top-level menu layout only */
    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: center !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        list-style: none !important;
    }

    /* Top-level menu items only */
    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu > li {
        display: flex !important;
        align-items: stretch !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    /* Top-level links */
    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu > li > a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        min-height: 54px !important;
        padding: 14px 18px !important;
        margin: 0 !important;
        color: #FFFFFF !important;
        background: transparent !important;
        border-radius: 0 !important;
        font-family: 'Inter', sans-serif !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        letter-spacing: .015em !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        transition: background .2s ease, color .2s ease !important;
    }

    /* Remove old hover background behavior */
    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu > li > a:hover {
        background: rgba(255,255,255,.08) !important;
        color: #FFFFFF !important;
    }

    /* Gold underline indicator */
    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu > li > a::after {
        content: '' !important;
        position: absolute !important;
        left: 16px !important;
        right: 16px !important;
        bottom: 7px !important;
        width: auto !important;
        height: 2px !important;
        background: var(--du-header-accent-yellow) !important;
        transform: none !important;
        opacity: 0 !important;
        transition: opacity .2s ease !important;
    }

    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu > li:hover > a::after,
    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu > li:focus-within > a::after,
    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu > li.current-menu-item > a::after,
    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu > li.current-menu-ancestor > a::after {
        opacity: 1 !important;
    }

    /* Active navigation item */
    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu > li.current-menu-item > a,
    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu > li.current-menu-ancestor > a {
        color: #FFFFFF !important;
        background: rgba(255,255,255,.07) !important;
    }

    /* Dropdown indicator */
    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu > li > .dropdown-symbol {
        display: flex !important;
        align-items: center !important;
        position: absolute !important;
        right: 5px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        pointer-events: none !important;
        color: #FFFFFF !important;
    }

    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu > li > .dropdown-symbol svg {
        width: 9px !important;
        height: 9px !important;
        fill: #FFFFFF !important;
    }

    /* Keyboard focus */
    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu > li > a:focus-visible {
        outline: 2px solid var(--du-header-accent-yellow) !important;
        outline-offset: -4px !important;
        border-radius: 3px !important;
    }
}

/* ----------------------------------------------------------
   TABLET NAVIGATION
---------------------------------------------------------- */

@media (min-width: 769px) and (max-width: 1023px) {

    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu {
        gap: 0 !important;
        padding: 0 6px !important;
    }

    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu > li > a {
        padding: 12px 10px !important;
        font-size: 13px !important;
        min-height: 48px !important;
    }
}

/* ----------------------------------------------------------
   REDUCED MOTION ACCESSIBILITY
---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu > li > a,
    .shfb-header .shfb-below_header_row .main-navigation > div > ul.menu > li > a::after {
        transition: none !important;
    }
}


/* ==========================================================
   STAGE 8: PRIMARY DESKTOP DROPDOWN VISUAL REFINEMENT
   Preserve existing positioning, grid and overflow logic.
========================================================== */

@media (min-width: 1024px) {

    /* Dropdown panel surfaces */
    .shfb-header .shfb-below_header_row .main-navigation .sub-menu {
        background: #FFFFFF !important;
        border: 1px solid #E5E7EB !important;
        border-top: 3px solid #F0E820 !important;
        border-radius: 8px !important;
        box-shadow: 0 12px 32px rgba(18, 75, 43, .14),
                    0 3px 10px rgba(15, 23, 42, .06) !important;
        padding: 10px !important;
    }

    /* Small, single-column dropdowns */
    .shfb-header .shfb-below_header_row .main-navigation
    .sub-menu:not(.has-many-items):not(.has-lots-of-items) {
        min-width: 280px !important;
        max-width: 380px !important;
    }

    /* Preserve the existing grid sizing and positioning.
       Refine only spacing and panel appearance. */
    .shfb-header .shfb-below_header_row .main-navigation
    .sub-menu.has-many-items,
    .shfb-header .shfb-below_header_row .main-navigation
    .sub-menu.has-lots-of-items {
        gap: 5px !important;
    }

    /* Submenu items */
    .shfb-header .shfb-below_header_row .main-navigation
    .sub-menu > li {
        border: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Submenu links */
    .shfb-header .shfb-below_header_row .main-navigation
    .sub-menu > li > a {
        display: flex !important;
        align-items: center !important;
        min-height: 42px !important;
        padding: 10px 14px !important;
        margin: 0 !important;
        border-radius: 5px !important;
        background: transparent !important;
        color: #1F2937 !important;
        font-family: 'Inter', sans-serif !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.45 !important;
        text-align: left !important;
        text-decoration: none !important;
        white-space: normal !important;
        word-break: normal !important;
        transition: background-color .18s ease,
                    color .18s ease !important;
    }

    /* Hover and keyboard-focus states */
    .shfb-header .shfb-below_header_row .main-navigation
    .sub-menu > li > a:hover,
    .shfb-header .shfb-below_header_row .main-navigation
    .sub-menu > li > a:focus,
    .shfb-header .shfb-below_header_row .main-navigation
    .sub-menu > li > a:focus-visible {
        background: #E8F2E9 !important;
        color: #176B36 !important;
        padding-left: 17px !important;
        outline: none !important;
    }

    /* Active submenu links */
    .shfb-header .shfb-below_header_row .main-navigation
    .sub-menu > li.current-menu-item > a,
    .shfb-header .shfb-below_header_row .main-navigation
    .sub-menu > li.current-menu-ancestor > a {
        background: #F1F5F9 !important;
        color: #176B36 !important;
        font-weight: 600 !important;
    }

    /* Keep nested dropdowns visually consistent */
    .shfb-header .shfb-below_header_row .main-navigation
    .sub-menu .sub-menu {
        border-radius: 8px !important;
    }

    /* Keyboard focus indication */
    .shfb-header .shfb-below_header_row .main-navigation
    .sub-menu > li > a:focus-visible {
        outline: 2px solid #176B36 !important;
        outline-offset: -2px !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .shfb-header .shfb-below_header_row .main-navigation
    .sub-menu > li > a {
        transition: none !important;
    }
}


/* =========================================================
   STAGE 9 — ISOLATED QUICK LINKS DROPDOWN
   Target: menu-item-17593 only
   ========================================================= */

.shfb-header .shfb-above_header_row .shfb-column-3
.secondary-navigation #menu-item-17593 {
    position: relative !important;
}

.shfb-header .shfb-above_header_row .shfb-column-3
.secondary-navigation #menu-item-17593 > .sub-menu {

    position: absolute !important;

    top: 100% !important;
    right: 0 !important;
    left: auto !important;

    width: 360px !important;
    min-width: 320px !important;
    max-width: calc(100vw - 24px) !important;

    box-sizing: border-box !important;

    margin: 6px 0 0 !important;
    padding: 8px !important;

    background: #ffffff !important;
    border-top: 3px solid #F0E820 !important;
    border-radius: 12px !important;

    box-shadow: 0 12px 35px rgba(0,0,0,0.18) !important;

    max-height: 70vh !important;
    overflow-y: auto !important;

    z-index: 99999 !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transform: translateY(8px) !important;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease !important;
}

/* Desktop hover and keyboard focus */
@media (min-width: 1024px) {

    .shfb-header .shfb-above_header_row .shfb-column-3
    .secondary-navigation #menu-item-17593:hover > .sub-menu,

    .shfb-header .shfb-above_header_row .shfb-column-3
    .secondary-navigation #menu-item-17593:focus-within > .sub-menu,

    .shfb-header .shfb-above_header_row .shfb-column-3
    .secondary-navigation #menu-item-17593.sydney-dropdown-li--expanded > .sub-menu {

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(4px) !important;
    }
}

/* Tablet and mobile: preserve theme click-toggle behavior */
@media (max-width: 1023px) {

    .shfb-header .shfb-above_header_row .shfb-column-3
    .secondary-navigation #menu-item-17593 > .sub-menu {

        width: min(360px, calc(100vw - 24px)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 24px) !important;
    }

    .shfb-header .shfb-above_header_row .shfb-column-3
    .secondary-navigation #menu-item-17593.sydney-dropdown-li--expanded > .sub-menu,

    .shfb-header .shfb-above_header_row .shfb-column-3
    .secondary-navigation #menu-item-17593.is-open > .sub-menu,

    .shfb-header .shfb-above_header_row .shfb-column-3
    .secondary-navigation #menu-item-17593:focus-within > .sub-menu {

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(4px) !important;
    }
}

/* Dropdown link presentation */
.shfb-header .shfb-above_header_row .shfb-column-3
.secondary-navigation #menu-item-17593 > .sub-menu > li {

    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.shfb-header .shfb-above_header_row .shfb-column-3
.secondary-navigation #menu-item-17593 > .sub-menu > li > a {

    display: flex !important;
    align-items: center !important;

    padding: 12px 14px !important;
    min-height: 44px !important;

    box-sizing: border-box !important;

    border-radius: 8px !important;

    color: #1a1a2e !important;
    background: transparent !important;

    font-size: 0.94rem !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;

    text-decoration: none !important;
    white-space: normal !important;

    transition: background 0.18s ease, color 0.18s ease !important;
}

.shfb-header .shfb-above_header_row .shfb-column-3
.secondary-navigation #menu-item-17593 > .sub-menu > li > a:hover,

.shfb-header .shfb-above_header_row .shfb-column-3
.secondary-navigation #menu-item-17593 > .sub-menu > li > a:focus {

    background: #E8F2E9 !important;
    color: #145B2E !important;
}

@media (prefers-reduced-motion: reduce) {

    .shfb-header .shfb-above_header_row .shfb-column-3
    .secondary-navigation #menu-item-17593 > .sub-menu {

        transition: none !important;
    }
}


/* =========================================================
   STAGE 10 — QUICK LINKS TRIGGER TYPOGRAPHY AND BACKGROUND
   Target: Quick Links menu item 17593 only
   ========================================================= */

.shfb-header .shfb-above_header_row .shfb-column-3
.secondary-navigation #menu-item-17593 {
    background: transparent !important;
}

.shfb-header .shfb-above_header_row .shfb-column-3
.secondary-navigation #menu-item-17593 > a.sydney-dropdown-link {
    background: transparent !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.shfb-header .shfb-above_header_row .shfb-column-3
.secondary-navigation #menu-item-17593 > a.sydney-dropdown-link::before {
    font-size: 13px !important;
}

.shfb-header .shfb-above_header_row .shfb-column-3
.secondary-navigation #menu-item-17593 > a.sydney-dropdown-link::after {
    font-size: 10px !important;
}


/* =========================================================
   STAGE 11 — QUICK LINKS: MATCH UTILITY ROW EXACTLY
   ========================================================= */

.shfb-header .shfb-above_header_row .shfb-column-3
.secondary-navigation #menu-item-17593,
.shfb-header .shfb-above_header_row .shfb-column-3
.secondary-navigation #menu-item-17593 > a.sydney-dropdown-link {
    background-color: #124B2B !important;
    background-image: none !important;
}

.shfb-header .shfb-above_header_row .shfb-column-3
.secondary-navigation #menu-item-17593 > a.sydney-dropdown-link {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.shfb-header .shfb-above_header_row .shfb-column-3
.secondary-navigation #menu-item-17593 > a.sydney-dropdown-link::before,
.shfb-header .shfb-above_header_row .shfb-column-3
.secondary-navigation #menu-item-17593 > a.sydney-dropdown-link::after {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}




/* SOCIAL ICONS: YELLOW CIRCULAR BACKGROUND HOVER */
.shfb-header .shfb-above_header_row .shfb-column-2 .social-profile a:hover,
.shfb-header .shfb-above_header_row .shfb-column-2 .social-profile a:focus-visible {
    color: #FFFFFF !important;
    background-color: var(--du-header-accent-yellow) !important;
    border-radius: 50% !important;
}

.shfb-header .shfb-above_header_row .shfb-column-2 .social-profile a:hover svg path,
.shfb-header .shfb-above_header_row .shfb-column-2 .social-profile a:focus-visible svg path {
    fill: #FFFFFF !important;
}

/* HEADER SEARCH FORM */
.shfb-header .header-search-form {
    background: #ffffff !important;
    padding: 18px 24px !important;
    border-top: 3px solid #176B36 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}

.shfb-header .header-search-form .search-form {
    display: flex !important;
    align-items: stretch !important;
    gap: 10px !important;
    max-width: 760px !important;
    margin: 0 auto !important;
}

.shfb-header .header-search-form .search-form label {
    display: block !important;
    flex: 1 !important;
    margin: 0 !important;
}

.shfb-header .header-search-form .search-field {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0 16px !important;
    border: 1px solid #d5ded8 !important;
    border-radius: 5px !important;
    background: #f8faf8 !important;
    color: #26352b !important;
    font-size: 15px !important;
    box-shadow: none !important;
}

.shfb-header .header-search-form .search-field:focus {
    border-color: #176B36 !important;
    outline: 2px solid rgba(23,107,54,.12) !important;
    background: #ffffff !important;
}

.shfb-header .header-search-form .search-submit {
    min-height: 48px !important;
    padding: 0 25px !important;
    border: 1px solid #176B36 !important;
    border-radius: 5px !important;
    background: #176B36 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.shfb-header .header-search-form .search-submit:hover {
    background: #145B2E !important;
    border-color: #145B2E !important;
}

@media (max-width: 600px) {
    .shfb-header .header-search-form {
        padding: 12px !important;
    }

    .shfb-header .header-search-form .search-form {
        gap: 7px !important;
    }

    .shfb-header .header-search-form .search-submit {
        padding: 0 14px !important;
    }
}

/* COMPACT HEADER SEARCH FORM */
.shfb-header .header-search-form {
    padding: 8px 12px !important;
    min-height: 0 !important;
}

.shfb-header .header-search-form form {
    margin: 0 !important;
}

.shfb-header .header-search-form .search-field {
    height: 38px !important;
    min-height: 38px !important;
    padding: 6px 12px !important;
    line-height: 24px !important;
    font-size: 14px !important;
}

.shfb-header .header-search-form .search-submit {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 14px !important;
}

/* COMPACT ABOVE-HEADER UTILITY ROW */
.shfb-header .shfb-above_header_row {
    min-height: 0 !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}

.shfb-header .shfb-above_header_row .shfb-column,
.shfb-header .shfb-above_header_row .shfb-builder-item {
    min-height: 0 !important;
}

.shfb-header .shfb-above_header_row a,
.shfb-header .shfb-above_header_row span {
    line-height: 1.3 !important;
}


/* GENTLE CURVED EDGE — UTILITY + IDENTITY SECTION */
@media (min-width: 769px) {
    .shfb-header.shfb-desktop .shfb-main_header_row {
        position: relative !important;
        z-index: 2 !important;
        overflow: visible !important;
    }

    .shfb-header.shfb-desktop .shfb-main_header_row::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -14px;
        height: 28px;
        background: #FFFFFF;
        border-radius: 0 0 50% 50% / 0 0 100% 100%;
        pointer-events: none;
        z-index: 5;
    }

    .shfb-header.shfb-desktop .shfb-below_header_row {
        position: relative;
        z-index: 1;
    }
}

/* ==========================================================
   PRIMARY NAVIGATION — WHITE IDENTITY ROW (TWO-ROW HEADER)
========================================================== */

@media (min-width: 769px) {

    .shfb-header .shfb-main_header_row #mainnav {
        display: flex !important;
        justify-content: center !important;
        background: transparent !important;
        width: 100% !important;
    }

    .shfb-header .shfb-main_header_row #primary-menu {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 0 8px !important;
        list-style: none !important;
    }

    .shfb-header .shfb-main_header_row #primary-menu > li {
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .shfb-header .shfb-main_header_row #primary-menu > li > a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        min-height: 52px !important;
        padding: 12px 15px !important;
        color: #176B36 !important;
        background: transparent !important;
        font-family: 'Inter', sans-serif !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        transition: color .2s ease !important;
    }

    .shfb-header .shfb-main_header_row #primary-menu > li > a:hover,
    .shfb-header .shfb-main_header_row #primary-menu > li:focus-within > a,
    .shfb-header .shfb-main_header_row #primary-menu > li.current-menu-item > a,
    .shfb-header .shfb-main_header_row #primary-menu > li.current-menu-ancestor > a {
        color: #145B2E !important;
        background: transparent !important;
    }

    .shfb-header .shfb-main_header_row #primary-menu > li > a::after {
        content: '' !important;
        position: absolute !important;
        left: 15px !important;
        right: 15px !important;
        bottom: 7px !important;
        height: 2px !important;
        background: #F0E820 !important;
        opacity: 0 !important;
        transition: opacity .2s ease !important;
    }

    .shfb-header .shfb-main_header_row #primary-menu > li:hover > a::after,
    .shfb-header .shfb-main_header_row #primary-menu > li:focus-within > a::after,
    .shfb-header .shfb-main_header_row #primary-menu > li.current-menu-item > a::after,
    .shfb-header .shfb-main_header_row #primary-menu > li.current-menu-ancestor > a::after {
        opacity: 1 !important;
    }

    .shfb-header .shfb-main_header_row #primary-menu > li > .dropdown-symbol {
        color: #176B36 !important;
    }

    .shfb-header .shfb-main_header_row #primary-menu > li > .dropdown-symbol svg {
        fill: #176B36 !important;
    }

    .shfb-header .shfb-main_header_row #primary-menu > li > a:focus-visible {
        outline: 2px solid #F0E820 !important;
        outline-offset: -4px !important;
    }

    /* Tablet spacing */
    @media (max-width: 1023px) {
        .shfb-header .shfb-main_header_row #primary-menu {
            gap: 0 !important;
        }

        .shfb-header .shfb-main_header_row #primary-menu > li > a {
            padding: 10px 9px !important;
            font-size: 13px !important;
            min-height: 46px !important;
        }
    }
}

/* FIX: KEEP PRIMARY MENU DROPDOWN ARROWS INLINE */
@media (min-width: 769px) {
    .shfb-header .shfb-main_header_row #primary-menu > li {
        align-items: center !important;
    }

    .shfb-header .shfb-main_header_row #primary-menu > li > a {
        padding-right: 22px !important;
    }

    .shfb-header .shfb-main_header_row #primary-menu > li > .dropdown-symbol {
        position: absolute !important;
        right: 8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        align-items: center !important;
        pointer-events: none !important;
    }
}

/* DEFINITIVE INLINE DROPDOWN ARROW ALIGNMENT */
@media (min-width: 769px) {
    .shfb-header .shfb-main_header_row nav#mainnav ul#primary-menu > li.menu-item-has-children {
        display: block !important;
        position: relative !important;
        padding-right: 16px !important;
    }

    .shfb-header .shfb-main_header_row nav#mainnav ul#primary-menu > li.menu-item-has-children > a.sydney-dropdown-link {
        display: inline-flex !important;
        width: auto !important;
        max-width: 100% !important;
        padding-right: 5px !important;
        align-items: center !important;
    }

    .shfb-header .shfb-main_header_row nav#mainnav ul#primary-menu > li.menu-item-has-children > span.dropdown-symbol {
        position: absolute !important;
        display: inline-flex !important;
        width: 12px !important;
        height: 12px !important;
        right: 2px !important;
        top: 50% !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: translateY(-50%) !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ==========================================================
   GRID SUBMENUS — MAIN IDENTITY ROW
   Restore multi-column dropdowns after primary nav relocation
========================================================== */

@media (min-width: 1024px) {

    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li > .sub-menu.has-many-items,
    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li > .sub-menu.has-many-items {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
        gap: 5px !important;
        width: 620px !important;
        min-width: 620px !important;
        max-width: calc(100vw - 40px) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        left: 0 !important;
        right: auto !important;
        transform: none !important;
    }

    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li > .sub-menu.has-lots-of-items {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(240px, 1fr)) !important;
        gap: 5px !important;
        width: 840px !important;
        min-width: 840px !important;
        max-width: calc(100vw - 40px) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        left: 0 !important;
        right: auto !important;
        transform: none !important;
    }

    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li:hover > .sub-menu.has-many-items,
    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li:hover > .sub-menu.has-lots-of-items,
    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li:focus-within > .sub-menu.has-many-items,
    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li:focus-within > .sub-menu.has-lots-of-items {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* ==========================================================
   SINGLE DROPDOWN HOVER BRIDGE + YELLOW ACCENTS
========================================================== */

@media (min-width: 1024px) {

    /* Prevent a gap when moving the mouse from parent to dropdown */
    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li.menu-item-has-children {
        position: relative !important;
    }

    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li.menu-item-has-children::after {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: -12px !important;
        height: 12px !important;
        background: transparent !important;
        pointer-events: auto !important;
    }

    /* Keep single-column dropdown attached directly to its parent */
    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li.menu-item-has-children > .sub-menu:not(.has-many-items):not(.has-lots-of-items) {
        margin-top: 0 !important;
    }

    /* Yellow submenu top accent */
    .shfb-header .shfb-main_header_row nav#mainnav .sub-menu {
        border-top-color: #F0E820 !important;
    }

    /* Yellow dropdown arrow when parent is hovered or focused */
    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li.menu-item-has-children:hover > .dropdown-symbol,
    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li.menu-item-has-children:focus-within > .dropdown-symbol {
        color: #F0E820 !important;
    }

    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li.menu-item-has-children:hover > .dropdown-symbol svg,
    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li.menu-item-has-children:focus-within > .dropdown-symbol svg {
        fill: #F0E820 !important;
        color: #F0E820 !important;
    }
}

/* ==========================================================
   MIGRATED SUBMENU STYLING — MAIN HEADER NAVIGATION
   Replaces legacy Additional CSS submenu styling
========================================================== */

@media (min-width: 1024px) {

    /* Grid layout for multi-column submenus */
    .shfb-header .shfb-main_header_row .sub-menu.has-many-items,
    .sydney-dropdown-li .sydney-dropdown-ul.has-many-items {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
        gap: 6px !important;
        min-width: 620px !important;
        max-width: calc(100vw - 60px) !important;
        left: 0 !important;
        transform: none !important;
    }

    .shfb-header .shfb-main_header_row .sub-menu.has-lots-of-items,
    .sydney-dropdown-li .sydney-dropdown-ul.has-lots-of-items {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(240px, 1fr)) !important;
        gap: 6px !important;
        min-width: 840px !important;
        max-width: calc(100vw - 60px) !important;
        left: 0 !important;
        transform: none !important;
    }

    /* Flip dropdowns toward the left when required */
    .shfb-header .shfb-main_header_row li.submenu-opens-left > .sub-menu,
    .sydney-dropdown-li.submenu-opens-left > .sydney-dropdown-ul {
        left: auto !important;
        right: 0 !important;
        transform: none !important;
    }

    /* Submenu item reset */
    .shfb-header .shfb-main_header_row .sub-menu > li,
    .sydney-dropdown-li .sydney-dropdown-ul > li {
        border-bottom: none !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    /* Submenu links */
    .shfb-header .shfb-main_header_row .sub-menu > li > a,
    .sydney-dropdown-li .sydney-dropdown-ul > li > a {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 10px 14px !important;
        border-radius: 10px !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.35 !important;
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        color: #1a1a2e !important;
        text-align: left !important;
        background: transparent !important;
        transition: all 0.2s ease !important;
        position: relative !important;
    }

    /* Link hover */
    .shfb-header .shfb-main_header_row .sub-menu > li > a:hover,
    .sydney-dropdown-li .sydney-dropdown-ul > li > a:hover {
        background: #e8f5e9 !important;
        color: #1a5c3a !important;
        padding-left: 18px !important;
        transform: translateX(2px) !important;
    }

    /* Accent bar */
    .shfb-header .shfb-main_header_row .sub-menu > li > a::before,
    .sydney-dropdown-li .sydney-dropdown-ul > li > a::before {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        top: 18% !important;
        bottom: 18% !important;
        width: 3px !important;
        background: #F0E820 !important;
        border-radius: 0 2px 2px 0 !important;
        opacity: 0 !important;
        transform: translateX(-3px) !important;
        transition: all 0.25s ease !important;
        pointer-events: none !important;
        display: block !important;
    }

    .shfb-header .shfb-main_header_row .sub-menu > li > a:hover::before,
    .sydney-dropdown-li .sydney-dropdown-ul > li > a:hover::before {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    /* Submenu icon boxes */
    .shfb-header .shfb-main_header_row .sub-menu > li > a .menu-icon,
    .sydney-dropdown-li .sydney-dropdown-ul > li > a .menu-icon {
        flex-shrink: 0 !important;
        width: 36px !important;
        height: 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #e8f5e9 0%, #f0fdf4 100%) !important;
        color: #1a5c3a !important;
        border-radius: 8px !important;
        font-size: 15px !important;
        transition: all 0.2s ease !important;
        line-height: 1 !important;
    }

    /* Icon hover */
    .shfb-header .shfb-main_header_row .sub-menu > li > a:hover .menu-icon,
    .sydney-dropdown-li .sydney-dropdown-ul > li > a:hover .menu-icon {
        background: linear-gradient(135deg, #1a5c3a 0%, #0d3d26 100%) !important;
        color: #F0E820 !important;
        transform: scale(1.08) !important;
    }

    /* Arrow/icon hover accent */
    .shfb-header .shfb-main_header_row .sub-menu > li > a:hover .menu-icon svg,
    .shfb-header .shfb-main_header_row .sub-menu > li > a:hover .menu-icon i,
    .sydney-dropdown-li .sydney-dropdown-ul > li > a:hover .menu-icon svg,
    .sydney-dropdown-li .sydney-dropdown-ul > li > a:hover .menu-icon i {
        color: #F0E820 !important;
        fill: #F0E820 !important;
    }

    /* Scrollbars */
    .shfb-header .shfb-main_header_row .sub-menu::-webkit-scrollbar,
    .sydney-dropdown-li .sydney-dropdown-ul::-webkit-scrollbar {
        width: 6px !important;
    }

    .shfb-header .shfb-main_header_row .sub-menu::-webkit-scrollbar-track,
    .sydney-dropdown-li .sydney-dropdown-ul::-webkit-scrollbar-track {
        background: #f3f4f6 !important;
        border-radius: 3px !important;
    }

    .shfb-header .shfb-main_header_row .sub-menu::-webkit-scrollbar-thumb,
    .sydney-dropdown-li .sydney-dropdown-ul::-webkit-scrollbar-thumb {
        background: #F0E820 !important;
        border-radius: 3px !important;
    }
}

/* Grid dropdown visibility — main header navigation */
@media (min-width: 1024px) {

    .shfb-header .shfb-main_header_row .sub-menu.has-many-items,
    .shfb-header .shfb-main_header_row .sub-menu.has-lots-of-items {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .shfb-header .shfb-main_header_row li:hover > .sub-menu.has-many-items,
    .shfb-header .shfb-main_header_row li:hover > .sub-menu.has-lots-of-items,
    .shfb-header .shfb-main_header_row li:focus-within > .sub-menu.has-many-items,
    .shfb-header .shfb-main_header_row li:focus-within > .sub-menu.has-lots-of-items {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* SINGLE-COLUMN DROPDOWNS — CENTERED DIRECTLY BELOW PARENT */
@media (min-width: 1024px) {
    .shfb.shfb-header.shfb-desktop .shfb-main_header_row nav#mainnav
    #primary-menu > li > .sub-menu:not(.has-many-items):not(.has-lots-of-items) {
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
    }
}

/* SINGLE-COLUMN DROPDOWN — NEUTRAL TOP BORDER */
@media (min-width: 1024px) {
    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li > .sub-menu:not(.has-many-items):not(.has-lots-of-items) {
        border-top: 1px solid #E5E7EB !important;
    }
}

/* SINGLE-COLUMN SUBMENU CONTAINER — NEUTRAL TOP EDGE */
@media (min-width: 1024px) {
    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li > .sub-menu:not(.has-many-items):not(.has-lots-of-items) {
        border-top: 1px solid #E5E7EB !important;
        border-top-color: #E5E7EB !important;
    }
}

/* DESKTOP MAIN MENU — NEUTRAL SINGLE-COLUMN DROPDOWN TOP EDGE */
@media (min-width: 1024px) {
    .shfb-header .shfb-main_header_row nav#site-navigation
    #primary-menu > li > .sub-menu:not(.has-many-items):not(.has-lots-of-items) {
        border-top: 1px solid #E5E7EB !important;
        border-top-color: #E5E7EB !important;
    }
}

/* DESKTOP DROPDOWNS — CONSISTENT BRIGHT YELLOW TOP ACCENT */
@media (min-width: 1024px) {
    .shfb.shfb-header.shfb-desktop .shfb-main_header_row
    nav#site-navigation #primary-menu .sub-menu {
        border-top: 4px solid #F0E820 !important;
        border-top-color: #F0E820 !important;
    }
}

/* DESKTOP SINGLE-COLUMN DROPDOWNS — CENTER UNDER PARENT */
@media (min-width: 1024px) {
    .shfb.shfb-header.shfb-desktop .shfb-main_header_row
    nav#site-navigation #primary-menu > li > .sub-menu:not(.has-many-items):not(.has-lots-of-items) {
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
    }
}

/* MOBILE QUICK LINKS — BOTTOM ROW, SECOND COLUMN */
@media (max-width: 768px) {
    .shfb-header .shfb-row-wrapper.shfb-below_header_row
    .shfb-column-2 a.sydney-dropdown-link {
        font-size: 12px !important;
        background: #124B2B !important;
        color: #ffffff !important;
        padding: 6px 12px !important;
        border-radius: 5px !important;
        line-height: 1.4 !important;
    }
}

/* MOBILE QUICK LINKS TRIGGER ONLY — NOT SUBMENU */
@media (max-width: 768px) {
    .shfb-header .shfb-below_header_row .shfb-column-2
    li.menu-item-17593 > a.sydney-dropdown-link {
        font-size: 12px !important;
        background-color: #124B2B !important;
        color: #ffffff !important;
        padding: 6px 12px !important;
        border-radius: 5px !important;
        line-height: 1.4 !important;
    }
}

/* MOBILE QUICK LINKS — FINAL REFINEMENT */
@media (max-width: 768px) {

    /* Trigger: blend with the header row background */
    .shfb-header .shfb-below_header_row .shfb-column-2
    li.menu-item-17593 > a.sydney-dropdown-link {
        background: transparent !important;
        color: #ffffff !important;
        font-size: 12px !important;
    }

    /* Dropdown items: reduce oversized SIMS, Portal, etc. text */
    .shfb-header .shfb-below_header_row .shfb-column-2
    li.menu-item-17593 .sub-menu a {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
}

/* MOBILE QUICK LINKS — REUSE THE PROVEN TOP-ROW FIX */
@media (max-width: 768px) {

    /* Parent item carries the same background as the header row */
    .shfb-header .shfb-below_header_row .shfb-column-2
    .secondary-navigation .menu > li.menu-item-has-children {
        background: #124B2B !important;
    }

    /* Quick Links trigger */
    .shfb-header .shfb-below_header_row .shfb-column-2
    .secondary-navigation .menu > li.menu-item-has-children > a.sydney-dropdown-link {
        background: transparent !important;
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 500 !important;
    }

    /* SIMS, Portal and other dropdown entries */
    .shfb-header .shfb-below_header_row .shfb-column-2
    .secondary-navigation .menu > li.menu-item-has-children > .sub-menu a {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
}

/* MOBILE QUICK LINKS — SAME PROVEN TOP-ROW STYLING */
@media (max-width: 768px) {

    /* Quick Links parent item */
    .shfb-header .shfb-below_header_row .shfb-column-2
    .secondary-navigation .menu > li.menu-item-has-children {
        background: #124B2B !important;
    }

    /* Quick Links text/trigger ONLY */
    .shfb-header .shfb-below_header_row .shfb-column-2
    .secondary-navigation .menu > li.menu-item-has-children > a.sydney-dropdown-link {
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        padding: 5px 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* FINAL MOBILE QUICK LINKS TRIGGER CORRECTION */
@media (max-width: 768px) {

    /* Match the actual header row green */
    .shfb-header .shfb-below_header_row .shfb-column-2
    .secondary-navigation .menu > li.menu-item-has-children {
        background-color: #0d3d26 !important;
    }

    /* QUICK LINKS TEXT AND TRIGGER ONLY */
    .shfb-header .shfb-below_header_row .shfb-column-2
    .secondary-navigation .menu > li.menu-item-has-children > a.sydney-dropdown-link {
        background: transparent !important;
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        padding: 10px 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* MOBILE QUICK LINKS — MATCH ROW AND CORRECT TRIGGER TYPOGRAPHY */
@media (max-width: 768px) {

    .shfb-header .shfb-below_header_row .shfb-column-2
    .secondary-navigation .menu > li.menu-item-has-children {
        background: transparent !important;
    }

    .shfb-header .shfb-below_header_row .shfb-column-2
    .secondary-navigation .menu > li.menu-item-has-children > a.sydney-dropdown-link {
        background: transparent !important;
        color: #ffffff !important;
        font-family: Inter, sans-serif !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        line-height: 1.4 !important;
        padding: 10px 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* ==========================================================
   FIX 1 — GRID SUBMENU HOVER BRIDGE + NO GAP
   Fixes: dropdown vanishing when moving mouse toward submenu
   ========================================================== */
@media (min-width: 1024px) {

    /* A. Grid submenus: pin to parent's bottom edge, no gap */
    .shfb-header .shfb-main_header_row nav#mainnav #primary-menu > li > .sub-menu.has-many-items,
    .shfb-header .shfb-main_header_row nav#mainnav #primary-menu > li > .sub-menu.has-lots-of-items,
    .shfb-header .shfb-main_header_row nav#site-navigation #primary-menu > li > .sub-menu.has-many-items,
    .shfb-header .shfb-main_header_row nav#site-navigation #primary-menu > li > .sub-menu.has-lots-of-items {
        top: 100% !important;
        margin-top: 0 !important;
        transform: none !important;
    }

    /* B. Wide centered hover bridge */
    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li.menu-item-has-children::after,
    .shfb-header .shfb-main_header_row nav#site-navigation
    #primary-menu > li.menu-item-has-children::after {
        content: "" !important;
        position: absolute !important;
        left: -500px !important;
        right: -500px !important;
        bottom: -22px !important;
        top: auto !important;
        width: auto !important;
        height: 22px !important;
        background: transparent !important;
        pointer-events: auto !important;
        z-index: 40 !important;
    }

    /* C. Keep submenu above the bridge */
    .shfb-header .shfb-main_header_row nav#mainnav #primary-menu > li > .sub-menu,
    .shfb-header .shfb-main_header_row nav#site-navigation #primary-menu > li > .sub-menu {
        z-index: 60 !important;
    }

    /* D. Bridge is a hover connector, not a click target */
    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li.menu-item-has-children::after,
    .shfb-header .shfb-main_header_row nav#site-navigation
    #primary-menu > li.menu-item-has-children::after {
        cursor: default !important;
    }
}

/* ==========================================================
   FIX 2 — MOBILE QUICK LINKS: MATCH THE BELOW-ROW STYLING
   Fixes: oversize text / dark background pill on mobile
   ========================================================== */
@media (max-width: 768px) {

    /* Parent li — remove any pill background */
    .shfb-header .shfb-below_header_row .shfb-column-2 .menu > li.menu-item-has-children,
    .shfb-header .shfb-below_header_row .shfb-column-2 .secondary-navigation .menu > li.menu-item-has-children,
    .shfb-header .shfb-below_header_row .shfb-column-2 .secondary-navigation > .menu > li.menu-item-has-children {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Trigger link — match utility row typography */
    .shfb-header .shfb-below_header_row .shfb-column-2 .menu > li.menu-item-has-children > a.sydney-dropdown-link,
    .shfb-header .shfb-below_header_row .shfb-column-2 .secondary-navigation .menu > li.menu-item-has-children > a.sydney-dropdown-link {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        line-height: 1.4 !important;
        letter-spacing: normal !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        min-height: 32px !important;
    }

    /* Trigger pseudo-icons */
    .shfb-header .shfb-below_header_row .shfb-column-2 .menu > li.menu-item-has-children > a.sydney-dropdown-link::before,
    .shfb-header .shfb-below_header_row .shfb-column-2 .secondary-navigation .menu > li.menu-item-has-children > a.sydney-dropdown-link::before {
        font-size: 12px !important;
        color: #ffffff !important;
        margin-right: 4px !important;
    }

    .shfb-header .shfb-below_header_row .shfb-column-2 .menu > li.menu-item-has-children > a.sydney-dropdown-link::after,
    .shfb-header .shfb-below_header_row .shfb-column-2 .secondary-navigation .menu > li.menu-item-has-children > a.sydney-dropdown-link::after {
        font-size: 10px !important;
        color: #ffffff !important;
        margin-left: 4px !important;
    }

    /* Dropdown panel */
    .shfb-header .shfb-below_header_row .shfb-column-2 .menu > li.menu-item-has-children .sub-menu,
    .shfb-header .shfb-below_header_row .shfb-column-2 .secondary-navigation .menu > li.menu-item-has-children .sub-menu {
        position: absolute !important;
        top: 100% !important;
        left: auto !important;
        right: 0 !important;
        width: auto !important;
        min-width: 240px !important;
        max-width: calc(100vw - 24px) !important;

        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-top: 3px solid #F0E820 !important;
        border-radius: 10px !important;
        box-shadow: 0 10px 28px rgba(0,0,0,0.16) !important;

        padding: 6px !important;
        margin: 6px 0 0 !important;

        max-height: 70vh !important;
        overflow-y: auto !important;
        z-index: 99999 !important;

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(6px) !important;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease !important;
    }

    /* Show on tap or hover */
    .shfb-header .shfb-below_header_row .shfb-column-2 .menu > li.menu-item-has-children.sydney-dropdown-li--expanded > .sub-menu,
    .shfb-header .shfb-below_header_row .shfb-column-2 .menu > li.menu-item-has-children.is-open > .sub-menu,
    .shfb-header .shfb-below_header_row .shfb-column-2 .menu > li.menu-item-has-children:hover > .sub-menu,
    .shfb-header .shfb-below_header_row .shfb-column-2 .secondary-navigation .menu > li.menu-item-has-children.sydney-dropdown-li--expanded > .sub-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(4px) !important;
    }

    /* Dropdown li resets */
    .shfb-header .shfb-below_header_row .shfb-column-2 .menu > li.menu-item-has-children .sub-menu > li,
    .shfb-header .shfb-below_header_row .shfb-column-2 .secondary-navigation .menu > li.menu-item-has-children .sub-menu > li {
        background: transparent !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    /* Dropdown links */
    .shfb-header .shfb-below_header_row .shfb-column-2 .menu > li.menu-item-has-children .sub-menu > li > a,
    .shfb-header .shfb-below_header_row .shfb-column-2 .secondary-navigation .menu > li.menu-item-has-children .sub-menu > li > a {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-height: 42px !important;
        padding: 10px 14px !important;
        margin: 0 !important;

        background: transparent !important;
        color: #1a1a2e !important;
        -webkit-text-fill-color: #1a1a2e !important;
        font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        line-height: 1.4 !important;

        text-decoration: none !important;
        white-space: normal !important;
        word-break: break-word !important;
        border-radius: 6px !important;
        border: none !important;
        box-shadow: none !important;
        transition: background 0.18s ease, color 0.18s ease !important;
    }

    .shfb-header .shfb-below_header_row .shfb-column-2 .menu > li.menu-item-has-children .sub-menu > li > a:hover,
    .shfb-header .shfb-below_header_row .shfb-column-2 .menu > li.menu-item-has-children .sub-menu > li > a:focus,
    .shfb-header .shfb-below_header_row .shfb-column-2 .secondary-navigation .menu > li.menu-item-has-children .sub-menu > li > a:hover {
        background: #F0FDF4 !important;
        color: #176B36 !important;
        -webkit-text-fill-color: #176B36 !important;
    }

    /* Neutralize older mobile trigger overrides */
    .shfb-header .shfb-below_header_row .shfb-column-2 a.sydney-dropdown-link {
        background: transparent !important;
        color: #ffffff !important;
        font-size: 13px !important;
        padding: 8px 0 !important;
        border-radius: 0 !important;
        line-height: 1.4 !important;
    }

    .shfb-header .shfb-row-wrapper.shfb-below_header_row .shfb-column-2 a.sydney-dropdown-link {
        background: transparent !important;
        color: #ffffff !important;
        font-size: 13px !important;
        padding: 8px 0 !important;
        border-radius: 0 !important;
        line-height: 1.4 !important;
    }

    /* Neutralize legacy green pill on Quick Links */
    .shfb-header .shfb-below_header_row .shfb-column-2 li.menu-item-17593 > a.sydney-dropdown-link {
        background: transparent !important;
        background-color: transparent !important;
        color: #ffffff !important;
        font-size: 13px !important;
        padding: 8px 0 !important;
        border-radius: 0 !important;
    }

    .shfb-header .shfb-below_header_row .shfb-column-2 li.menu-item-17593 .sub-menu a {
        font-size: 13px !important;
        line-height: 1.4 !important;
        padding: 10px 14px !important;
    }
}


/* DESKTOP GRID SUBMENU — HOVER STABILITY FIX */
@media (min-width: 1024px) {
    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li.menu-item-has-children {
        position: relative !important;
    }

    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li.menu-item-has-children:hover > .sub-menu,
    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li.menu-item-has-children:focus-within > .sub-menu {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        display: grid !important;
    }

    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li > .sub-menu.has-many-items,
    .shfb-header .shfb-main_header_row nav#mainnav
    #primary-menu > li > .sub-menu.has-lots-of-items {
        top: 100% !important;
        margin-top: 0 !important;
        transform: none !important;
    }
}

/* MOBILE QUICK LINKS — EXACT BOTTOM ROW BACKGROUND */
@media (max-width: 768px) {
    .shfb-header .shfb-below_header_row .shfb-column-2
    .secondary-navigation .menu > li.menu-item-has-children,
    .shfb-header .shfb-below_header_row .shfb-column-2
    .secondary-navigation .menu > li.menu-item-has-children > a.sydney-dropdown-link,
    .shfb-header .shfb-below_header_row .shfb-column-2
    .secondary-navigation .menu > li.menu-item-has-children > a.sydney-dropdown-link:hover,
    .shfb-header .shfb-below_header_row .shfb-column-2
    .secondary-navigation .menu > li.menu-item-has-children > a.sydney-dropdown-link:focus {
        background-color: #1a5c3a !important;
        background-image: none !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
    }
}
