
/* =========================================================
   ADI YOGPEETH — HEADER DESIGN 5 REFINED
   Green edition — isolated test CSS
   ========================================================= */

.ayp-header5,
.ayp-header5 * {
    box-sizing:border-box;
}

.ayp-header5 {
    --h5-forest:#173F35;
    --h5-forest-dark:#102F28;
    --h5-forest-light:#24584B;
    --h5-ivory:#FAF8F3;
    --h5-sand:#F4EFE6;
    --h5-gold:#B79A63;
    --h5-gold-light:#D5BE8B;
    --h5-charcoal:#252825;
    --h5-border:rgba(23,63,53,.14);
    --h5-shadow:0 12px 36px rgba(16,47,40,.12);

    position:relative;
    z-index:1000;
    color:var(--h5-charcoal);
    font-family:var(--font-body);
}

.ayp-header5 a {
    color:inherit;
    text-decoration:none;
}

.ayp-header5 button {
    font:inherit;
}

.ayp-header5__utility {
    position:relative;
    z-index:3;
    min-height:34px;
    background:var(--h5-forest);
    color:var(--h5-ivory);
    overflow:hidden;
    transition:max-height .3s ease, opacity .25s ease, transform .3s ease;
    max-height:80px;
}

.ayp-header5__utility-inner {
    min-height:34px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.ayp-header5__contact,
.ayp-header5__actions,
.ayp-header5__social {
    display:flex;
    align-items:center;
}

.ayp-header5__contact {
    gap:14px;
}

.ayp-header5__utility-link {
    display:inline-flex;
    align-items:center;
    gap:7px;
    font-size:10px;
    font-weight: var(--font-weight-medium);
    letter-spacing:.01em;
    white-space:nowrap;
    opacity:.95;
}

.ayp-header5__utility-link:hover {
    color:var(--h5-gold-light);
}

.ayp-header5__utility-link svg {
    width:14px;
    height:14px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.6;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.ayp-header5__separator {
    width:1px;
    height:15px;
    background:rgba(250,248,243,.3);
}

.ayp-header5__actions {
    gap:18px;
}

.ayp-header5__social {
    gap:7px;
}

.ayp-header5__social a {
    width:25px;
    height:25px;
    display:grid;
    place-items:center;
    color:var(--h5-gold-light);
    border:1px solid rgba(213,190,139,.28);
    border-radius:50%;
    transition:background .2s ease,color .2s ease,border-color .2s ease;
}

.ayp-header5__social a:hover {
    background:var(--h5-gold);
    color:var(--h5-forest-dark);
    border-color:var(--h5-gold);
}

.ayp-header5__social svg {
    width:12px;
    height:12px;
    fill:currentColor;
    stroke:currentColor;
    stroke-width:1.4;
}

.ayp-header5__social .ayp-icon-fill,
.ayp-header5__social .ayp-icon-play {
    fill:var(--h5-forest);
    stroke:none;
}

.ayp-header5__utility-apply {
    min-height:25px;
    padding:2px 15px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    border-radius:5px;
    background:var(--h5-gold);
    color:var(--h5-forest-dark) !important;
    font-size:11px;
    font-weight: var(--font-weight-bold);
}

.ayp-header5__utility-apply:hover {
    background:var(--h5-gold-light);
}

.ayp-header5__nav-shell {
    position:relative;
    z-index:2;
    min-height:86px;
    background:var(--h5-ivory);
    border-bottom:1px solid rgba(183,154,99,.45);
    transition:box-shadow .25s ease, min-height .25s ease;
}

.ayp-header5__nav-inner {
    min-height:86px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 180px minmax(0,1fr);
    align-items:center;
    gap:28px;
}

.ayp-header5__logo {
    justify-self:center;
    display:grid;
    place-items:center;
    width:180px;
    height:100%;
}

.ayp-header5__logo img {
    display:block;
    width:auto;
    height:72px;
    max-width:175px;
    object-fit:contain;
}

.ayp-header5__desktop-nav {
    min-width:0;
}

.ayp-header5__desktop-nav nav,
.ayp-header5__nav-list {
    min-width:0;
}

.ayp-header5__nav-list {
    margin:0;
    padding:0;
    list-style:none;
    display:flex;
    align-items:center;
    gap:1px;
}

.ayp-header5__desktop-nav--right .ayp-header5__nav-list {
    justify-content:flex-end;
}

/* Right-side dropdowns stay anchored to their own menu item and open inward. */
.ayp-header5__desktop-nav--right .ayp-header5__nav-item > .ayp-header5__dropdown {
    left:auto;
    right:0;
}

.ayp-header5__desktop-nav--left .ayp-header5__nav-item > .ayp-header5__dropdown {
    left:0;
    right:auto;
}

.ayp-header5__nav-list > li {
    position:relative;
}

.ayp-header5__home,
.ayp-header5__nav-trigger {
    min-height:38px;
    padding:6px 9px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border:0;
    background:transparent;
    color:var(--h5-forest);
    font-size:11.5px;
    font-weight:650;
    letter-spacing:-.01em;
    white-space:nowrap;
    cursor:pointer;
}

.ayp-header5__home svg,
.ayp-header5__nav-trigger svg {
    width:14px;
    height:14px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.ayp-header5__nav-trigger svg {
    width:12px;
    height:12px;
    transition:transform .2s ease;
}

.ayp-header5__nav-trigger[aria-expanded="true"] svg {
    transform:rotate(180deg);
}

.ayp-header5__home:hover,
.ayp-header5__nav-trigger:hover {
    color:var(--h5-gold);
}

.ayp-header5__apply {
    min-height:40px;
    padding:8px 15px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    border-radius:6px;
    background:var(--h5-forest);
    color:var(--h5-ivory) !important;
    font-size:11px;
    font-weight: var(--font-weight-bold);
    white-space:nowrap;
    transition:background .2s ease,transform .2s ease;
}

.ayp-header5__apply span {
    color:var(--h5-gold-light);
}

.ayp-header5__apply:hover {
    background:var(--h5-forest-dark);
    transform:translateY(-1px);
}

.ayp-header5__search {
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    border:0;
    background:transparent;
    color:var(--h5-forest);
    cursor:pointer;
}

.ayp-header5__search svg {
    width:16px;
    height:16px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
}

.ayp-header5__search:hover {
    color:var(--h5-gold);
}

/* Premium desktop proportions: compact navigation with generous whitespace. */
@media (min-width:992px) {
    .ayp-header5__utility {
        min-height:34px;
    }

    .ayp-header5__utility-inner {
        min-height:34px;
    }

    .ayp-header5__nav-shell,
    .ayp-header5__nav-inner {
        min-height:86px;
    }

    .ayp-header5__logo {
        height:86px;
    }

    .ayp-header5__logo img {
        height:72px;
    }

    .ayp-header5__home,
    .ayp-header5__nav-trigger {
        min-height:38px;
        font-size:11.5px;
        letter-spacing:0;
    }

    .ayp-header5__apply {
        min-height:40px;
        font-size:11px;
        padding:8px 15px;
    }

    .ayp-header5__search {
        width:36px;
        height:36px;
    }
}

/* ---------- Dropdowns ---------- */

.ayp-header5__dropdown {
    position:absolute;
    top:calc(100% + 1px);
    left:0;
    z-index:1200;
    width:250px;
    padding:10px;
    background:var(--h5-ivory);
    border:1px solid rgba(23,63,53,.14);
    border-top:2px solid var(--h5-gold);
    border-radius:0 0 8px 8px;
    box-shadow:var(--h5-shadow);
}

.ayp-header5__dropdown a {
    display:block;
    padding:10px 11px;
    border-radius:4px;
    color:var(--h5-forest);
    font-size:12px;
    line-height:1.35;
}

.ayp-header5__dropdown a:hover {
    background:var(--h5-sand);
    color:var(--h5-gold);
}

.ayp-header5__dropdown-label {
    display:block;
    padding:6px 11px 7px;
    color:var(--h5-gold);
    font-size:9px;
    font-weight:800;
    letter-spacing:.14em;
}

.ayp-header5__dropdown-label--space {
    margin-top:7px;
    border-top:1px solid var(--h5-border);
    padding-top:13px;
}

/* Mega menu */
.ayp-header5__dropdown--mega {
    width:min(900px,70vw);
    left:0;
    transform:translateX(-8%);
    padding:0;
    display:grid;
    grid-template-columns:230px 1fr;
}

.ayp-header5__mega-intro {
    padding:25px 22px;
    background:var(--h5-forest);
    color:var(--h5-ivory);
}

.ayp-header5__mega-intro > span {
    display:block;
    margin-bottom:12px;
    color:var(--h5-gold-light);
    font-size:9px;
    font-weight:800;
    letter-spacing:.14em;
}

.ayp-header5__mega-intro strong {
    display:block;
    margin-bottom:10px;
    font-family:var(--font-display);
    font-size:29px;
    line-height:.98;
    font-weight: var(--font-weight-medium);
}

.ayp-header5__mega-intro p {
    margin:0 0 17px;
    color:rgba(250,248,243,.78);
    font-size:11px;
    line-height:1.6;
}

.ayp-header5__mega-intro > a {
    display:inline-flex;
    gap:7px;
    color:var(--h5-gold-light);
    font-size:11px;
    font-weight: var(--font-weight-bold);
}

.ayp-header5__mega-columns {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    padding:25px 22px;
}

.ayp-header5__mega-columns h3 {
    margin:0 0 10px;
    color:var(--h5-forest);
    font-family:var(--font-display);
    font-size:20px;
    line-height:1.05;
    font-weight: var(--font-weight-semibold);
}

.ayp-header5__mega-columns a {
    padding:6px 0;
    border-radius:0;
    font-size:11px;
}

.ayp-header5__mega-columns a:hover {
    background:transparent;
    color:var(--h5-gold);
}

/* ---------- Sticky behavior ---------- */

.ayp-header5.is-scrolled .ayp-header5__utility {
    max-height:0;
    opacity:0;
    transform:translateY(-100%);
    pointer-events:none;
}

.ayp-header5.is-scrolled .ayp-header5__nav-shell {
    position:fixed;
    top:0;
    left:0;
    right:0;
    min-height:62px;
    box-shadow:0 8px 28px rgba(16,47,40,.12);
}

.ayp-header5.is-scrolled .ayp-header5__nav-inner {
    min-height:62px;
    grid-template-columns:minmax(0,1fr) 135px minmax(0,1fr);
}

.ayp-header5.is-scrolled .ayp-header5__logo {
    width:135px;
}

.ayp-header5.is-scrolled .ayp-header5__logo img {
    height:54px;
    max-width:130px;
}

.ayp-header5.is-scrolled .ayp-header5__home,
.ayp-header5.is-scrolled .ayp-header5__nav-trigger {
    min-height:38px;
    font-size:11px;
}

.ayp-header5.is-scrolled .ayp-header5__apply {
    min-height:38px;
    padding-inline:13px;
}

/* ---------- Mobile ---------- */

.ayp-header5__mobile-toggle,
.ayp-header5__mobile {
    display:none;
}

@media (max-width:1100px) {
    .ayp-header5__nav-inner {
        grid-template-columns:minmax(0,1fr) 165px minmax(0,1fr);
        gap:10px;
    }

    .ayp-header5__logo {
        width:165px;
    }

    .ayp-header5__logo img {
        max-width:155px;
    }

    .ayp-header5__home,
    .ayp-header5__nav-trigger {
        padding-inline:7px;
        font-size:12px;
    }

    .ayp-header5__apply {
        padding-inline:12px;
    }

    .ayp-header5__search {
        display:none;
    }
}

@media (max-width:991px) {
    .ayp-header5__utility-inner {
        min-height:70px;
        padding-block:8px;
        align-items:flex-start;
    }

    .ayp-header5__contact {
        display:grid;
        grid-template-columns:auto auto;
        gap:5px 12px;
    }

    .ayp-header5__separator {
        display:none;
    }

    .ayp-header5__utility-link {
        font-size:9px;
    }

    .ayp-header5__utility-link svg {
        width:13px;
        height:13px;
    }

    .ayp-header5__actions {
        gap:8px;
    }

    .ayp-header5__utility-apply {
        display:none;
    }

    .ayp-header5__social a {
        width:24px;
        height:24px;
    }

    .ayp-header5__nav-shell {
        min-height:74px;
    }

    .ayp-header5__nav-inner {
        min-height:74px;
        display:flex;
        justify-content:space-between;
    }

    .ayp-header5__desktop-nav {
        display:none;
    }

    .ayp-header5__logo {
        justify-self:auto;
        justify-content:flex-start;
        width:auto;
        height:74px;
    }

    .ayp-header5__logo img {
        height:62px;
        max-width:205px;
    }

    .ayp-header5__mobile-toggle {
        width:48px;
        height:48px;
        padding:0;
        display:grid;
        place-content:center;
        gap:5px;
        border:1px solid var(--h5-forest);
        border-radius:6px;
        background:transparent;
        color:var(--h5-forest);
        cursor:pointer;
    }

    .ayp-header5__mobile-toggle span {
        width:22px;
        height:2px;
        display:block;
        background:currentColor;
        transition:transform .2s ease,opacity .2s ease;
    }

    .ayp-header5__mobile-toggle.is-active span:nth-child(1) {
        transform:translateY(7px) rotate(45deg);
    }

    .ayp-header5__mobile-toggle.is-active span:nth-child(2) {
        opacity:0;
    }

    .ayp-header5__mobile-toggle.is-active span:nth-child(3) {
        transform:translateY(-7px) rotate(-45deg);
    }

    .ayp-header5.is-scrolled .ayp-header5__nav-shell {
        min-height:68px;
    }

    .ayp-header5.is-scrolled .ayp-header5__nav-inner {
        min-height:68px;
    }

    .ayp-header5.is-scrolled .ayp-header5__logo {
        width:auto;
        height:68px;
    }

    .ayp-header5.is-scrolled .ayp-header5__logo img {
        height:54px;
        max-width:180px;
    }

    .ayp-header5__mobile {
        position:fixed;
        inset:0;
        z-index:5000;
        display:block;
        overflow-y:auto;
        padding:16px 18px 28px;
        background:var(--h5-ivory);
    }

    .ayp-header5__mobile[hidden] {
        display:none;
    }

    .ayp-header5__mobile-head {
        min-height:60px;
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:20px;
        padding-bottom:12px;
        border-bottom:1px solid var(--h5-border);
    }

    .ayp-header5__mobile-head img {
        display:block;
        width:auto;
        height:52px;
        max-width:175px;
        object-fit:contain;
    }

    .ayp-header5__mobile-head button {
        width:44px;
        height:44px;
        border:0;
        background:transparent;
        color:var(--h5-forest);
        font-size:34px;
        line-height:1;
        cursor:pointer;
    }

    .ayp-header5__mobile-home {
        min-height:52px;
        display:flex;
        align-items:center;
        gap:10px;
        border-bottom:1px solid var(--h5-border);
        color:var(--h5-forest);
        font-size:16px;
        font-weight: var(--font-weight-bold);
    }

    .ayp-header5__mobile-home svg {
        width:17px;
        height:17px;
        fill:none;
        stroke:currentColor;
        stroke-width:1.8;
        stroke-linecap:round;
        stroke-linejoin:round;
    }

    .ayp-header5__mobile-group {
        border-bottom:1px solid var(--h5-border);
    }

    .ayp-header5__mobile-group > button {
        width:100%;
        min-height:56px;
        padding:0;
        display:flex;
        align-items:center;
        justify-content:space-between;
        border:0;
        background:transparent;
        color:var(--h5-charcoal);
        text-align:left;
        font-size:16px;
        font-weight:650;
        cursor:pointer;
    }

    .ayp-header5__mobile-group > button b {
        color:var(--h5-gold);
        font-size:21px;
        font-weight: var(--font-weight-regular);
    }

    .ayp-header5__mobile-group > div {
        padding:0 0 9px 15px;
    }

    .ayp-header5__mobile-group > div a {
        display:block;
        padding:8px 0;
        color:var(--h5-forest);
        font-size:14px;
        line-height:1.35;
    }

    .ayp-header5__mobile-group > div a:hover {
        color:var(--h5-gold);
    }

    .ayp-header5__mobile-apply {
        min-height:54px;
        margin-top:20px;
        display:flex;
        align-items:center;
        justify-content:center;
        gap:8px;
        border-radius:6px;
        background:var(--h5-forest);
        color:var(--h5-ivory) !important;
        font-size:14px;
        font-weight: var(--font-weight-bold);
    }

    .ayp-header5__mobile-apply span {
        color:var(--h5-gold-light);
    }

    .ayp-header5__mobile-contact {
        display:grid;
        gap:8px;
        margin-top:18px;
        padding-top:16px;
        border-top:1px solid var(--h5-border);
    }

    .ayp-header5__mobile-contact a {
        color:var(--h5-forest);
        font-size:12px;
    }

    body.ayp-header5-menu-open {
        overflow:hidden;
    }
}

@media (max-width:480px) {
    .ayp-header5__utility-inner {
        gap:8px;
    }

    .ayp-header5__contact {
        grid-template-columns:1fr;
        gap:4px;
    }

    .ayp-header5__utility-link {
        font-size:8.5px;
    }

    .ayp-header5__social {
        gap:4px;
    }

    .ayp-header5__social a {
        width:22px;
        height:22px;
    }

    .ayp-header5__logo img {
        height:58px;
        max-width:185px;
    }

    .ayp-header5__mobile-toggle {
        width:46px;
        height:46px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .ayp-header5 *,
    .ayp-header5 *::before,
    .ayp-header5 *::after {
        scroll-behavior:auto !important;
        transition-duration:.01ms !important;
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
    }
}


/* =========================================================
   PREMIUM MENU V2 — desktop visual refinement
   Keeps Design 5 structure/functionality intact.
   ========================================================= */
@media (min-width:992px) {
    .ayp-header5__nav-shell {
        min-height:80px;
        background:rgba(250,248,243,.98);
        border-bottom:1px solid rgba(183,154,99,.28);
    }
    .ayp-header5__nav-inner { min-height:80px; gap:24px; }
    .ayp-header5__logo { width:172px; height:80px; }
    .ayp-header5__logo img { height:68px; max-width:168px; }

    .ayp-header5__nav-list { gap:4px; }
    .ayp-header5__nav-list > li { display:flex; align-items:center; }
    .ayp-header5__home,
    .ayp-header5__nav-trigger {
        position:relative;
        min-height:42px;
        padding:7px 10px;
        gap:6px;
        color:var(--h5-forest);
        font-size:11px;
        font-weight:650;
        letter-spacing:.055em;
        text-transform:uppercase;
        transition:color .2s ease;
    }
    .ayp-header5__home::after,
    .ayp-header5__nav-trigger::after {
        content:"";
        position:absolute;
        left:10px;
        right:10px;
        bottom:1px;
        height:1px;
        background:var(--h5-gold);
        transform:scaleX(0);
        transform-origin:center;
        transition:transform .22s ease;
    }
    .ayp-header5__home:hover::after,
    .ayp-header5__nav-trigger:hover::after,
    .ayp-header5__nav-trigger[aria-expanded="true"]::after { transform:scaleX(1); }
    .ayp-header5__home:hover,
    .ayp-header5__nav-trigger:hover,
    .ayp-header5__nav-trigger[aria-expanded="true"] { color:var(--h5-gold); }

    .ayp-header5__menu-icon {
        width:16px;
        height:16px;
        display:grid;
        place-items:center;
        flex:0 0 16px;
        color:var(--h5-gold);
        opacity:.9;
    }
    .ayp-header5__menu-icon svg {
        width:15px !important;
        height:15px !important;
        fill:none !important;
        stroke:currentColor !important;
        stroke-width:1.35 !important;
        stroke-linecap:round;
        stroke-linejoin:round;
    }
    .ayp-header5__home svg { width:15px; height:15px; stroke-width:1.45; }
    .ayp-header5__nav-trigger > svg:last-child {
        width:10px;
        height:10px;
        margin-left:1px;
        stroke-width:1.5;
    }

    .ayp-header5__apply {
        min-height:38px;
        padding:8px 14px;
        border:1px solid var(--h5-forest);
        border-radius:3px;
        background:var(--h5-forest);
        font-size:10.5px;
        letter-spacing:.075em;
        text-transform:uppercase;
        box-shadow:none;
    }
    .ayp-header5__apply:hover {
        background:var(--h5-gold);
        border-color:var(--h5-gold);
        color:var(--h5-forest-dark) !important;
    }
    .ayp-header5__search {
        width:34px;
        height:34px;
        margin-left:2px;
    }
    .ayp-header5__search svg { width:15px; height:15px; stroke-width:1.45; }

    /* Refined dropdowns: flatter, editorial, less "boxy". */
    .ayp-header5__dropdown {
        top:calc(100% + 10px);
        padding:14px;
        background:rgba(250,248,243,.99);
        border:1px solid rgba(23,63,53,.10);
        border-top:2px solid var(--h5-gold);
        border-radius:0 0 3px 3px;
        box-shadow:0 18px 44px rgba(16,47,40,.13), 0 2px 8px rgba(16,47,40,.06);
        animation:ayp5MenuIn .18s ease both;
    }
    .ayp-header5__dropdown::before {
        content:"";
        position:absolute;
        top:-7px;
        width:11px;
        height:11px;
        background:var(--h5-ivory);
        border-left:1px solid rgba(23,63,53,.10);
        border-top:1px solid var(--h5-gold);
        transform:rotate(45deg);
    }
    .ayp-header5__desktop-nav--left .ayp-header5__dropdown::before { left:18px; }
    .ayp-header5__desktop-nav--right .ayp-header5__dropdown::before { right:18px; }
    .ayp-header5__dropdown a {
        position:relative;
        padding:9px 10px;
        border-radius:2px;
        font-size:11.5px;
        transition:padding-left .18s ease, background .18s ease, color .18s ease;
    }
    .ayp-header5__dropdown a::before {
        content:"";
        display:inline-block;
        width:0;
        height:1px;
        margin-right:0;
        vertical-align:middle;
        background:var(--h5-gold);
        transition:width .18s ease, margin-right .18s ease;
    }
    .ayp-header5__dropdown a:hover {
        padding-left:12px;
        background:var(--h5-sand);
        color:var(--h5-forest);
    }
    .ayp-header5__dropdown a:hover::before { width:8px; margin-right:7px; }
    .ayp-header5__dropdown-label {
        padding:5px 10px 8px;
        font-size:8.5px;
        letter-spacing:.18em;
    }
    .ayp-header5__dropdown-label--space { margin-top:9px; padding-top:14px; }

    .ayp-header5__dropdown--mega {
        width:min(920px,72vw);
        grid-template-columns:225px 1fr;
        padding:0;
        overflow:hidden;
    }
    .ayp-header5__mega-intro { padding:28px 24px; }
    .ayp-header5__mega-intro > span { font-size:8.5px; letter-spacing:.18em; }
    .ayp-header5__mega-intro strong { font-size:30px; line-height:1; }
    .ayp-header5__mega-intro p { font-size:10.5px; line-height:1.65; }
    .ayp-header5__mega-intro > a { font-size:10.5px; letter-spacing:.02em; }
    .ayp-header5__mega-columns { gap:20px; padding:28px 25px; }
    .ayp-header5__mega-columns h3 { font-size:20px; margin-bottom:11px; }
    .ayp-header5__mega-columns a { padding:5px 0; font-size:11px; }
    .ayp-header5__mega-columns a:hover { padding-left:0; }
    .ayp-header5__mega-columns a::before { display:none; }
}

@keyframes ayp5MenuIn {
    from { opacity:0; transform:translateY(-5px); }
    to { opacity:1; transform:translateY(0); }
}

@media (min-width:992px) and (max-width:1100px) {
    .ayp-header5__nav-inner { grid-template-columns:minmax(0,1fr) 158px minmax(0,1fr); gap:8px; }
    .ayp-header5__logo { width:158px; }
    .ayp-header5__logo img { max-width:150px; height:64px; }
    .ayp-header5__home, .ayp-header5__nav-trigger { padding-inline:6px; font-size:10px; letter-spacing:.035em; }
    .ayp-header5__menu-icon { display:none; }
}

/* Keep the existing mobile design unchanged; desktop-only icon treatment. */

/* =========================================================
   DESIGN 5 — E LOCKED / PREMIUM EDITORIAL MENU
   Desktop-only visual refinement.
   Mobile rules from the working Design 5 are preserved.
   ========================================================= */

@media (min-width: 992px) {
    /* Hard typography reset: prevents global CSS inheritance. */
    .ayp-header5 .ayp-header5__desktop-nav,
    .ayp-header5 .ayp-header5__desktop-nav *,
    .ayp-header5 .ayp-header5__desktop-nav button {
        font-family: var(--font-body);
    }

    .ayp-header5 .ayp-header5__desktop-nav {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .ayp-header5 .ayp-header5__desktop-nav nav {
        width: 100%;
    }

    .ayp-header5 .ayp-header5__nav-list {
        width: 100%;
        gap: 0;
        align-items: stretch;
    }

    .ayp-header5 .ayp-header5__nav-list > li {
        display: flex;
        align-items: center;
        position: relative;
    }

    /* Fine gold separators — editorial rather than boxed navigation. */
    .ayp-header5 .ayp-header5__nav-list > li + li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 1px;
        height: 24px;
        transform: translateY(-50%);
        background: rgba(183, 154, 99, .42);
    }

    .ayp-header5 .ayp-header5__home,
    .ayp-header5 .ayp-header5__nav-trigger {
        position: relative;
        min-height: 48px;
        height: 48px;
        padding: 5px 14px 7px;
        gap: 7px;
        border-radius: 0;
        font-size: 10.5px !important;
        line-height: 1 !important;
        font-weight: 650 !important;
        letter-spacing: .115em !important;
        text-transform: uppercase;
        white-space: nowrap;
        color: var(--h5-forest);
        overflow: visible;
    }

    .ayp-header5 .ayp-header5__home::after,
    .ayp-header5 .ayp-header5__nav-trigger::after {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 1px;
        height: 1px;
        background: var(--h5-gold);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform .22s ease;
    }

    .ayp-header5 .ayp-header5__home:hover::after,
    .ayp-header5 .ayp-header5__nav-trigger:hover::after,
    .ayp-header5 .ayp-header5__nav-trigger[aria-expanded="true"]::after {
        transform: scaleX(1);
    }

    /* Home stays icon-led and intentionally has no text. */
    .ayp-header5 .ayp-header5__home span {
        display: none;
    }

    .ayp-header5 .ayp-header5__home svg {
        width: 17px;
        height: 17px;
        stroke-width: 1.45;
    }

    /* Remove the larger category icons from the V2 concept. */
    .ayp-header5 .ayp-header5__nav-trigger .ayp-header5__menu-icon {
        display: none;
    }

    /* Only the final SVG is the dropdown V/chevron. */
    .ayp-header5 .ayp-header5__nav-trigger > svg:last-child {
        width: 11px;
        height: 11px;
        flex: 0 0 11px;
        margin-left: 1px;
        stroke: var(--h5-gold);
        stroke-width: 1.8;
        transition: transform .22s ease, stroke .22s ease;
    }

    .ayp-header5 .ayp-header5__nav-trigger[aria-expanded="true"] > svg:last-child {
        transform: rotate(180deg);
        stroke: var(--h5-forest);
    }

    .ayp-header5 .ayp-header5__nav-trigger:hover > svg:last-child {
        stroke: var(--h5-gold);
    }

    /* Premium Apply treatment: quiet outline, not a filled dashboard button. */
    .ayp-header5 .ayp-header5__apply {
        min-height: 36px;
        height: 36px;
        margin-left: 13px;
        padding: 0 14px;
        border: 1px solid var(--h5-gold);
        border-radius: 2px;
        background: transparent;
        color: var(--h5-forest) !important;
        font-size: 9.5px !important;
        line-height: 1 !important;
        font-weight: var(--font-weight-bold) !important;
        letter-spacing: .13em !important;
        text-transform: uppercase;
        transition: background .22s ease, color .22s ease, border-color .22s ease;
    }

    .ayp-header5 .ayp-header5__apply span {
        color: var(--h5-gold);
    }

    .ayp-header5 .ayp-header5__apply:hover {
        background: var(--h5-forest);
        color: var(--h5-ivory) !important;
        border-color: var(--h5-forest);
        transform: none;
    }

    .ayp-header5 .ayp-header5__apply:hover span {
        color: var(--h5-gold-light);
    }

    /* Search becomes a deliberate terminal mark. */
    .ayp-header5 .ayp-header5__search {
        width: 36px;
        height: 36px;
        margin-left: 7px;
        border: 1px solid var(--h5-forest);
        border-radius: 2px;
        background: var(--h5-forest);
        color: var(--h5-ivory);
    }

    .ayp-header5 .ayp-header5__search svg {
        width: 15px;
        height: 15px;
        stroke-width: 1.45;
    }

    .ayp-header5 .ayp-header5__search:hover {
        background: var(--h5-gold);
        border-color: var(--h5-gold);
        color: var(--h5-forest);
    }

    /* Logo is the visual anchor. */
    .ayp-header5 .ayp-header5__nav-inner {
        grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
        gap: 18px;
    }

    .ayp-header5 .ayp-header5__logo img {
        height: 70px;
        max-width: 172px;
    }

    /* Dropdown V is visually highlighted even before opening. */
    .ayp-header5 .ayp-header5__nav-item > .ayp-header5__dropdown {
        margin-top: 2px;
        border-top: 1px solid var(--h5-gold);
        border-right: 1px solid rgba(183,154,99,.22);
        border-bottom: 1px solid rgba(183,154,99,.22);
        border-left: 1px solid rgba(183,154,99,.22);
        border-radius: 0 0 4px 4px;
        box-shadow: 0 18px 48px rgba(16,47,40,.13);
    }

    .ayp-header5 .ayp-header5__dropdown a {
        position: relative;
        padding: 9px 12px 9px 15px;
        font-size: 10.5px !important;
        line-height: 1.4 !important;
        letter-spacing: .015em;
    }

    .ayp-header5 .ayp-header5__dropdown a::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 2px;
        height: 0;
        background: var(--h5-gold);
        transform: translateY(-50%);
        transition: height .18s ease;
    }

    .ayp-header5 .ayp-header5__dropdown a:hover::before {
        height: 17px;
    }

    .ayp-header5 .ayp-header5__dropdown-label {
        font-size: 8.5px !important;
        letter-spacing: .16em !important;
    }

    .ayp-header5 .ayp-header5__mega-intro strong {
        font-size: 28px;
    }

    .ayp-header5 .ayp-header5__mega-columns h3 {
        font-size: 19px;
    }

    .ayp-header5 .ayp-header5__mega-columns a {
        font-size: 10.5px !important;
    }

    /* Keep left and right menu groups visually balanced. */
    .ayp-header5__desktop-nav--left .ayp-header5__nav-list > li:first-child {
        padding-left: 1px;
    }

    .ayp-header5__desktop-nav--right .ayp-header5__nav-list > li:first-child {
        padding-left: 0;
    }

    /* 1100–1199px: slightly tighter without changing hierarchy. */
    @media (max-width: 1199px) {
        .ayp-header5 .ayp-header5__nav-inner {
            grid-template-columns: minmax(0, 1fr) 165px minmax(0, 1fr);
            gap: 8px;
        }

        .ayp-header5 .ayp-header5__logo {
            width: 165px;
        }

        .ayp-header5 .ayp-header5__logo img {
            height: 64px;
            max-width: 155px;
        }

        .ayp-header5 .ayp-header5__home,
        .ayp-header5 .ayp-header5__nav-trigger {
            padding-inline: 10px;
            font-size: 9.8px !important;
            letter-spacing: .095em !important;
        }

        .ayp-header5 .ayp-header5__home::after,
        .ayp-header5 .ayp-header5__nav-trigger::after {
            left: 10px;
            right: 10px;
        }

        .ayp-header5 .ayp-header5__apply {
            margin-left: 8px;
            padding-inline: 10px;
            font-size: 8.8px !important;
        }
    }
}


