/* =========================================
   SB WORDPRESS-LIKE HEADER COMPONENT
========================================= */

.sb-wp-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1500;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.06);
}

.sb-wp-header-spacer {
    height: 118px;
}

.sb-wp-header__bar {
    height: 118px;
    background: #ffffff;
    transition: height 0.28s ease, box-shadow 0.28s ease;
}

.sb-wp-header.is-compact .sb-wp-header__bar {
    height: 76px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sb-wp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 36px;
}

.sb-wp-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.sb-wp-logo img {
    display: block;
    width: auto;
    height: auto;
    transition: width 0.28s ease, max-height 0.28s ease;
}

.sb-wp-logo__desktop {
    width: 300px;
    max-height: 78px;
}

.sb-wp-header.is-compact .sb-wp-logo__desktop {
    width: 205px;
    max-height: 54px;
}

.sb-wp-logo__mobile {
    display: none !important;
}

/* Desktop nav */

.sb-wp-desktop-nav {
    display: flex;
    align-items: stretch;
    margin-left: auto;
    height: 100%;
}

.sb-wp-desktop-nav__list {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sb-wp-desktop-nav__item {
    position: relative;
    display: flex;
    align-items: stretch;
}

.sb-wp-desktop-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    padding: 0 15px;
    border: 0;
    background: transparent;
    color: #8f8f8f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s ease;
}

.sb-wp-header.is-compact .sb-wp-desktop-nav__link {
    padding-inline: 14px;
    font-size: 13px;
}

.sb-wp-desktop-nav__link:hover,
.sb-wp-desktop-nav__item:hover > .sb-wp-desktop-nav__link,
.sb-wp-desktop-nav__item:focus-within > .sb-wp-desktop-nav__link,
.sb-wp-desktop-nav__item.is-active > .sb-wp-desktop-nav__link {
    color: #4b4b4b;
}

.sb-wp-desktop-nav__link::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 27px;
    height: 3px;
    background: #9a9a9a;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.18s ease;
}

.sb-wp-header.is-compact .sb-wp-desktop-nav__link::after {
    left: 14px;
    right: 14px;
    bottom: 17px;
    height: 2px;
}

.sb-wp-desktop-nav__item:hover > .sb-wp-desktop-nav__link::after,
.sb-wp-desktop-nav__item:focus-within > .sb-wp-desktop-nav__link::after,
.sb-wp-desktop-nav__item.is-active > .sb-wp-desktop-nav__link::after {
    transform: scaleX(1);
}

.sb-wp-desktop-nav__link--icon {
    width: 46px;
    padding-inline: 0;
}

.sb-wp-desktop-nav__link--icon::after {
    left: 11px;
    right: 11px;
}

.sb-wp-desktop-nav__link--icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.sb-wp-header.is-compact .sb-wp-desktop-nav__link--icon svg {
    width: 14px;
    height: 14px;
}

.sb-wp-desktop-nav__button {
    appearance: none;
}

.sb-wp-desktop-nav__item--flag {
    align-items: center;
}

.sb-wp-flag-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.sb-wp-flag-link img {
    display: block;
    width: 21px;
    height: auto;
}

.sb-wp-lang-button {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.sb-wp-lang-button:not(.is-active) {
    opacity: 0.82;
}

.sb-wp-lang-button:hover,
.sb-wp-lang-button.is-active {
    opacity: 1;
}

/* Resources / About dropdown */

.sb-wp-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    display: grid;
    width: 300px;
    padding: 0;
    background: #ffffff;
    border-top: 3px solid #969696;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.sb-wp-desktop-nav__item--dropdown:hover .sb-wp-dropdown,
.sb-wp-desktop-nav__item--dropdown:focus-within .sb-wp-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.sb-wp-dropdown a {
    display: block;
    padding: 7px 20px;
    border-bottom: 1px solid #ffffff;
    color: #555555;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 19px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sb-wp-dropdown a:hover {
    background: #f6f6f6;
    color: #555555;
}

/* Our Solutions mega menu */

/* Our Solutions mega menu */

.sb-wp-megamenu {
    position: fixed;
    top: 118px;
    left: 34px;
    right: 34px;
    z-index: 29;
    width: auto;
    background: #ffffff;
    border-top: 3px solid #969696;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease, top 0.28s ease;
}

.sb-wp-header.is-compact .sb-wp-megamenu {
    top: 76px;
}

.sb-wp-desktop-nav__item--mega:hover .sb-wp-megamenu,
.sb-wp-desktop-nav__item--mega:focus-within .sb-wp-megamenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.sb-wp-megamenu__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 34px 43px 0;
}

.sb-wp-megamenu__grid {
    --mega-col-pad: clamp(18px, 2.25vw, 43px);

    display: grid;
    grid-template-columns: 1.08fr 1fr 1.05fr 1.12fr 1.12fr;
    gap: 0;
    min-height: 300px;
    margin-inline: calc(var(--mega-col-pad) * -1);
}

.sb-wp-megamenu__col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding-inline: var(--mega-col-pad);
}

.sb-wp-megamenu__title {
    display: block;
    align-self: flex-start;
    margin: 0 0 21px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    text-decoration: none;
}

.sb-wp-megamenu__col:nth-child(1) .sb-wp-megamenu__title,
.sb-wp-megamenu__col:nth-child(2) .sb-wp-megamenu__title,
.sb-wp-megamenu__col:nth-child(3) .sb-wp-megamenu__title {
    color: #f6bd3c !important;
}

.sb-wp-megamenu__col:nth-child(4) .sb-wp-megamenu__title {
    color: #005597 !important;
}

.sb-wp-megamenu__col:nth-child(5) .sb-wp-megamenu__title {
    color: #df1c48 !important;
}

.sb-wp-megamenu__col a:not(.sb-wp-megamenu__title) {
    display: flex;
    align-items: center;
    width: auto;
    min-height: 34px;
    margin: 0 calc(var(--mega-col-pad) * -1) 2px;
    padding: 0 var(--mega-col-pad);
    color: #555555;
    background: transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sb-wp-megamenu__col a:not(.sb-wp-megamenu__title):hover,
.sb-wp-megamenu__col a:not(.sb-wp-megamenu__title):focus-visible {
    background: #f6f6f6;
    color: #555555;
    outline: none;
}

.sb-wp-megamenu__bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    min-height: 140px;
    margin: 22px -43px 0;
    padding: 0 43px;
    border-top: 1px solid #dddddd;
    color: #666666;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 400;
}

.sb-wp-megamenu__bottom a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 50px;
    padding: 0 24px;
    background: #df1c48;
    border: 1px solid #df1c48;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.sb-wp-megamenu__bottom a:hover {
    background: #ffffff;
    color: #df1c48;
    border-color: #df1c48;
}

.sb-wp-megamenu__bottom a:hover {
    background: #ffffff;
    color: #df1c48;
    border-color: #df1c48;
}

/* Mobile */

.sb-wp-mobile-toggle,
.sb-wp-mobile-panel {
    display: none;
}

@media (max-width: 1320px) {
    .sb-wp-desktop-nav__link {
        padding-inline: 12px;
        font-size: 13px;
    }

    .sb-wp-desktop-nav__link::after {
        left: 12px;
        right: 12px;
    }

    .sb-wp-logo__desktop {
        width: 260px;
    }

    .sb-wp-megamenu__grid {
        --mega-col-pad: 17px;
        gap: 0;
    }

    .sb-wp-megamenu__title {
        font-size: 18px !important;
    }

    .sb-wp-megamenu__col a:not(.sb-wp-megamenu__title) {
        font-size: 13px;
    }
}

@media (max-width: 1023px) {
    main {
        padding-top: 0 !important;
    }

    .sb-wp-header {
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    }

    .sb-wp-header-spacer {
        height: 112px;
    }

    .sb-wp-header__bar,
    .sb-wp-header.is-compact .sb-wp-header__bar {
        height: 112px;
        box-shadow: none;
    }

    .sb-wp-header__inner {
        padding: 0 38px;
    }

    .sb-wp-desktop-nav {
        display: none;
    }

    .sb-wp-logo__desktop {
        display: none !important;
    }

    .sb-wp-logo__mobile {
        display: block !important;
        width: 185px;
        max-height: 47px;
    }

    .sb-wp-mobile-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #efbf43;
        cursor: pointer;
    }

    .sb-wp-mobile-toggle span {
        display: block;
        width: 22px;
        height: 3px;
        border-radius: 999px;
        background: #efbf43;
        transition: transform 0.24s ease, opacity 0.2s ease;
    }

    .sb-wp-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .sb-wp-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .sb-wp-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .sb-wp-mobile-panel {
        display: block;
        max-height: 0;
        overflow: hidden;
        background: #ffffff;
        transition: max-height 0.28s ease;
    }

    .sb-wp-header.is-mobile-open .sb-wp-mobile-panel {
        max-height: calc(100vh - 112px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .sb-wp-mobile-nav {
        display: block;
        padding: 0;
        background: #ffffff;
        font-family: Arial, Helvetica, sans-serif;
    }

    .sb-wp-mobile-link,
    .sb-wp-mobile-parent,
    .sb-wp-mobile-submenu a,
    .sb-wp-mobile-flag {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 50px;
        padding: 0 38px;
        border: 0;
        background: #ffffff;
        color: #000000;
        font-size: 20px;
        font-weight: 400;
        line-height: 1.2;
        text-align: left;
        text-decoration: none;
    }

    .sb-wp-mobile-link.is-active {
        background: #f5f5f5;
    }

    .sb-wp-mobile-parent {
        justify-content: space-between;
        cursor: pointer;
    }

    .sb-wp-mobile-parent--strong {
        padding-left: 58px;
        font-weight: 700;
    }

    .sb-wp-mobile-caret {
        position: relative;
        flex: 0 0 auto;
        width: 12px;
        height: 12px;
        margin-left: 16px;
        border-right: 2px solid #000000;
        border-bottom: 2px solid #000000;
        transform: rotate(45deg) translateY(-3px);
        transition: transform 0.2s ease;
    }

    .sb-wp-mobile-parent[aria-expanded="true"] .sb-wp-mobile-caret {
        transform: rotate(-135deg) translateY(-1px);
    }

    .sb-wp-mobile-submenu {
        display: none;
        padding: 0;
        background: #ffffff;
    }

    .sb-wp-mobile-submenu.is-open {
        display: block;
    }

    .sb-wp-mobile-submenu a {
        min-height: 48px;
        padding-left: 76px;
        color: #4b4b4b;
        font-size: 16px;
        line-height: 1.3;
    }

    .sb-wp-mobile-nested > .sb-wp-mobile-submenu a {
        padding-left: 90px;
    }

    .sb-wp-mobile-flag {
        min-height: 50px;
        cursor: pointer;
    }

    .sb-wp-mobile-flag img {
        width: 24px;
        height: auto;
    }
}

@media (max-width: 640px) {
    .sb-wp-header-spacer {
        height: 112px;
    }

    .sb-wp-header__inner {
        padding: 0 38px;
    }

    .sb-wp-logo__mobile {
        width: 185px;
    }

    .sb-wp-mobile-link,
    .sb-wp-mobile-parent,
    .sb-wp-mobile-submenu a,
    .sb-wp-mobile-flag {
        padding-left: 38px;
        padding-right: 38px;
        font-size: 20px;
    }

    .sb-wp-mobile-parent--strong {
        padding-left: 58px;
    }

    .sb-wp-mobile-submenu a {
        padding-left: 76px;
        font-size: 16px;
    }

    .sb-wp-mobile-nested > .sb-wp-mobile-submenu a {
        padding-left: 90px;
    }
}

@media (max-width: 420px) {
    .sb-wp-header__inner {
        padding-inline: 26px;
    }

    .sb-wp-logo__mobile {
        width: 170px;
    }

    .sb-wp-mobile-link,
    .sb-wp-mobile-parent,
    .sb-wp-mobile-flag {
        padding-inline: 30px;
        font-size: 18px;
    }

    .sb-wp-mobile-parent--strong {
        padding-left: 48px;
    }

    .sb-wp-mobile-submenu a {
        padding-left: 62px;
        font-size: 15px;
    }

    .sb-wp-mobile-nested > .sb-wp-mobile-submenu a {
        padding-left: 74px;
    }
}

@media print {
    .sb-wp-header,
    .sb-wp-header-spacer {
        display: none !important;
    }
}