/* ============================================================
   New Header — suppress old header when this file is loaded
   ============================================================ */
main > section.header,
main > .header-mobile-menu {
    display: none !important;
}

body.nh-body-lock {
    overflow: hidden;
}

/* ============================================================
   Top Bar
   ============================================================ */
.new-header {
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.new-header__logo-img {
    transition: opacity 0.25s ease;
}

.new-header__bar {
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    z-index: 9100;
    height: 68px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    font-family: "Product Sans", Arial, sans-serif;
    transition: background 0.35s ease, backdrop-filter 0.35s ease,
                box-shadow 0.35s ease;
}

.new-header__bar.is-scrolled {
    background: rgb(255 255 255 / 12%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
    margin: 0 15px;
    border-radius: 49px;
}

/* Left */
.new-header__bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Hamburger */
.new-header__burger {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #014088;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.2s ease;
}

.new-header__burger:hover {
    background: #004b9f;
}

.new-header__burger span {
    display: block;
    width: 18px;
    height: 1px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.36s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.28s ease,
                width 0.28s ease;
    transform-origin: center;
}

.new-header__burger.is-active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.new-header__burger.is-active span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.new-header__burger.is-active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Logo */
.new-header__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.new-header__logo-img {
    height: 63px;
    width: auto;
    object-fit: contain;
}

/* Center — pill nav */
.new-header__bar-center {
    display: flex;
    justify-content: center;
}

.new-header__pill-nav {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
       background: rgb(255 255 255 / 80%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
}

.new-header__pill-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 17px;
    border-radius: 50px;
    color: rgba(0, 0, 0, 0.877);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
    font-family: "Product Sans", Arial, sans-serif;
    transition: background 0.2s ease, color 0.2s ease;
}

.new-header__pill-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #014088;
}

/* Right — CTA */
.new-header__bar-right {
    display: flex;
    justify-content: flex-end;
}

.new-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 50px;
    background: #014088;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    font-family: "Product Sans", Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.new-header__cta:hover {
    background: #004b9f;
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* ============================================================
   Mega Menu
   ============================================================ */

.new-header__mega {
    position: fixed;
    inset: 0;
    z-index: 9099;
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.38s ease, visibility 0.38s ease;
    font-family: "Product Sans", Arial, sans-serif;
}

.new-header__mega.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ---- Left sidebar ---- */
.new-header__mega-left {
    width: 380px;
    flex-shrink: 0;
    background: #edf5fd;
    display: flex;
    flex-direction: column;
    padding: 22px 24px 30px;
    overflow-y: auto;
    transform: translateX(-22px);
    opacity: 0;
    transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.42s ease;
}

.new-header__mega.is-open .new-header__mega-left {
    transform: translateX(0);
    opacity: 1;
}

/* Close + logo row */
.new-header__mega-toprow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
    flex-shrink: 0;
}

.new-header__mega-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1d2e;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.new-header__mega-close:hover {
    background: #fff;
}

.new-header__mega-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.new-header__mega-logo img {
    height: 53px;
    width: auto;
}

/* Nav items */
.new-header__mega-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.new-header__mega-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #1a1d3e;
    font-size: 17px;
    font-weight: 500;
    font-family: "Product Sans", Arial, sans-serif;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    letter-spacing: -0.01em;
    transition: background 0.2s ease, padding-left 0.18s ease,
                border-left-color 0.18s ease;
    border-left: 3px solid transparent;
}

.new-header__mega-item:hover {
    background: rgba(255, 255, 255, 0.55);
}

.new-header__mega-item.is-active {
    background: #fff;
    font-weight: 600;
    color: #031d3b;
    border-left-color: #014088;
    padding-left: 13px;
    box-shadow: 0 2px 14px rgba(44, 52, 110, 0.10);
}

.nh-chevron {
    flex-shrink: 0;
    opacity: 0.36;
    transition: opacity 0.2s ease;
}

.new-header__mega-item.is-active .nh-chevron,
.new-header__mega-item:hover .nh-chevron {
    opacity: 0.70;
}

.new-header__mega-item--link {
    justify-content: flex-start;
}

/* Footer */
.new-header__mega-footer {
    flex-shrink: 0;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.09);
}

.new-header__mega-direct {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.new-header__mega-direct a {
    color: #3c405e;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    font-family: "Product Sans", Arial, sans-serif;
    transition: color 0.2s ease;
}

.new-header__mega-direct a:hover {
    color: #014088;
}

.new-header__mega-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-header__mega-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3c405e;
    background: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.new-header__mega-social a:hover {
    background: #fff;
    color: #014088;
}

/* ---- Right panel container ---- */
.new-header__mega-right {
    flex: 1;
    background: #fff;
    overflow-y: auto;
    position: relative;
    transform: translateX(18px);
    opacity: 0;
    transition: transform 0.44s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.06s,
                opacity 0.44s ease 0.06s;
}

.new-header__mega.is-open .new-header__mega-right {
    transform: translateX(0);
    opacity: 1;
}

/* Mobile back button (hidden on desktop) */
.new-header__panel-back {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    border: none;
    border-bottom: 1px solid #eaecf4;
    background: transparent;
    color: #014088;
    font-size: 14px;
    font-weight: 600;
    font-family: "Product Sans", Arial, sans-serif;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

/* Individual panels */
.new-header__mega-panel {
    position: absolute;
    inset: 0;
    padding: 52px 56px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.new-header__mega-panel.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.new-header__panel-title {
    margin: 0 0 36px;
    font-size: 32px;
    font-weight: 300;
    color: #0c1848;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.new-header__panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
}

.new-header__panel-link {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 0;
    border-bottom: 1px solid #eef0f8;
    text-decoration: none;
    transition: padding-left 0.2s ease;
}

.new-header__panel-link:hover {
    padding-left: 6px;
}

.nh-link-name {
    font-size: 14.5px;
    font-weight: 600;
    color: #0c1848;
    font-family: "Product Sans", Arial, sans-serif;
    transition: color 0.2s ease;
}

.new-header__panel-link:hover .nh-link-name {
    color: #014088;
}

.nh-link-sub {
    font-size: 12px;
    color: #7c809e;
    line-height: 1.4;
    font-family: "Product Sans", Arial, sans-serif;
}
.new-header__bar {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.new-header:has(.new-header__mega.is-open) .new-header__bar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
}
/* ============================================================
   Tablet — hide pill nav
   ============================================================ */

@media (max-width: 1023px) {
    .new-header__bar-center {
        display: none;
    }

    .new-header__bar {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }
}

/* ============================================================
   Mobile — full-screen sliding panels
   ============================================================ */

@media (max-width: 767px) {

    .new-header__bar {
        height: 60px;
        padding: 0 16px;
    }

    .new-header__cta-text {
        display: none;
    }

    .new-header__mega {
        flex-direction: column;
    }

    /* Left panel fills the whole screen */
    .new-header__mega-left {
        position: absolute;
        inset: 0;
        width: auto;
        z-index: 1;
        transform: none;
        opacity: 1;
        transition: none;
        padding: 18px 18px 28px;
    }

    .new-header__mega.is-open .new-header__mega-left {
        transform: none;
        opacity: 1;
    }

    .new-header__mega-item {
        font-size: 19px;
        padding: 16px 14px;
    }

    .new-header__mega-toprow {
        margin-bottom: 20px;
    }

    /* Right panel slides over the left panel from the right */
    .new-header__mega-right {
        position: absolute;
        inset: 0;
        z-index: 2;
        transform: translateX(100%);
        opacity: 1;
        transition: transform 0.36s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .new-header__mega.is-open .new-header__mega-right {
        transform: translateX(100%);
        opacity: 1;
    }

    .new-header__mega-right.is-mobile-open {
        transform: translateX(0) !important;
    }

    .new-header__panel-back {
        display: flex;
    }

    /* Panels: static flow inside the sliding right container */
    .new-header__mega-panel {
        position: static;
        inset: auto;
        padding: 0;
        transform: none;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        height: 0;
        overflow: hidden;
    }

    .new-header__mega-panel.is-active {
        opacity: 1;
        pointer-events: auto;
        height: auto;
        overflow: visible;
        padding: 0 18px 32px;
    }

    .new-header__panel-title {
        font-size: 22px;
        margin: 22px 0 18px;
    }

    .new-header__panel-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .new-header__burger {
    width: 35px;
    height: 35px;}
    .new-header__logo-img {
    height: 33px;
}
.new-header__bar.is-scrolled {
    height: 47px;
    padding: 0 7px;
}

}
