/* =========================================================
   Header wrapper
   ========================================================= */

.st-header-wrapper {
    position: relative;
    width: 100%;
}

/* =========================================================
   Fixed header
   ========================================================= */

header#masthead.st-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;

    width: 100%;
    /*padding-top: 35px;*/

    overflow: visible;

    background: rgb(255 255 255 / 96%);
    font-family: "Rubik", sans-serif;

    backdrop-filter: blur(10px);
    transition:
        padding 300ms ease,
        background-color 300ms ease,
        box-shadow 300ms ease;
}

header#masthead.addshadow {
    padding-top:0;
}

.st-header *,
.st-header *::before,
.st-header *::after {
    box-sizing: border-box;
}

/* =========================================================
   Header inner
   ========================================================= */

.st-header__inner {
    position: relative;
    z-index: 20;

    display: flex;
    align-items: center;

    width: 100%;
    max-width: 1440px;
    min-height: 98px;
    margin: 0 auto;
    padding: 0 72px;
}

/* =========================================================
   Branding
   ========================================================= */

.st-header__branding {
    flex: 0 0 auto;
}

.st-header__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.st-header__logo-link .custom-logo-link {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.st-header__logo-link .custom-logo {
    display: block;

    width: auto;
    max-width: 160px;
    height: auto;
    max-height: 52px;
}

.st-header__fallback-logo {
    color: #000000;
    font-size: 20px;
    font-weight: 700;
}

/* =========================================================
   Header navigation
   ========================================================= */

.st-header__content {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;

    min-width: 0;
}

.st-header__navigation {
    margin-left: auto;
}

.st-header__menu {
    display: flex;
    align-items: center;
    gap: 30px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.st-header__menu-item {
    position: relative;

    margin: 0;
    padding: 0;
}

.st-header__menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 0;

    border: 0;
    background: transparent;

    color: #111111;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    transition:
        color 200ms ease,
        opacity 200ms ease;
}

.st-header__menu-link:hover,
.st-header__menu-link:focus-visible,
.st-header__menu-link.is-active,
.st-header__menu-link.is-current {
    color: #ef0011;
}

.st-header__menu-link:focus-visible {
    outline: 2px solid #ef0011;
    outline-offset: 5px;
}

/*
 * Láthatatlan átkötő terület a menüpont és a panel között.
 * Ez segít, hogy az egér lefelé mozgatásakor ne záródjon be.
 */
.st-header__menu-item--mega::after {
    position: absolute;
    top: 100%;
    right: -20px;
    left: -20px;

    height: 42px;

    content: "";
}

/* =========================================================
   Header actions
   ========================================================= */

.st-header__actions {
    display: flex;
    align-items: center;
    gap: 24px;

    margin-left: 38px;
}

.st-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    min-height: 48px;
    padding: 14px 24px;

    border: 1px solid #ef0011;
    border-radius: 4px;
    background: #ef0011;

    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    transition:
        background-color 200ms ease,
        color 200ms ease,
        border-color 200ms ease;
}

.st-header__cta:hover,
.st-header__cta:focus-visible {
    border-color: #c9000e;
    background: #c9000e;
    color: #ffffff;
}

.st-header__cta svg {
    flex: 0 0 auto;
}

.st-header__language {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    min-width: 52px;
    min-height: 48px;
    padding: 10px 9px;

    border: 0;
    border-radius: 4px;
    background: #f1f3f6;

    color: #727272;
    font: inherit;
    font-size: 14px;
    font-weight: 400;

    cursor: pointer;

    transition:
        background-color 200ms ease,
        color 200ms ease;
}

.st-header__language:hover,
.st-header__language:focus-visible {
    background: #e7e9ed;
    color: #111111;
}

/* =========================================================
   Mobile toggle
   ========================================================= */

.st-header__mobile-toggle {
    display: none;

    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 10px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.st-header__mobile-toggle span {
    display: block;

    width: 24px;
    height: 2px;
    margin: 5px auto;

    background: #111111;

    transition:
        transform 250ms ease,
        opacity 250ms ease;
}

.st-header__mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.st-header__mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.st-header__mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   Mega menu panel
   ========================================================= */

/*
 * A panel a fixed header gyereke.
 * Emiatt a top: 100% mindig a header aktuális alsó élét jelenti.
 */
header#masthead.st-header > .st-mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 10;

    width: 100%;
    /*padding: 12px 20px 30px;*/
    padding:0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transform: translateY(-8px);

    transition:
        opacity 200ms ease,
        visibility 200ms ease,
        transform 200ms ease;
}

header#masthead.st-header > .st-mega-menu.is-open,
header#masthead.st-header > .st-mega-menu[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;

    transform: translateY(0);
}

header#masthead.st-header > .st-mega-menu[aria-hidden="true"] {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transform: translateY(-8px);
}

/* =========================================================
   Mega menu inner box
   ========================================================= */

.st-mega-menu__inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;

    border-radius: 18px;
    background: #ffffff;

    box-shadow:
        0 18px 45px rgb(0 0 0 / 16%),
        0 4px 12px rgb(0 0 0 / 8%);
}

/* =========================================================
   Mega menu cards
   ========================================================= */

.st-mega-menu__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* column variants (controlled by PHP via class st-mega-menu__cols-N) */
.st-mega-menu__cards.st-mega-menu__cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.st-mega-menu__cards.st-mega-menu__cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.st-mega-menu__cards.st-mega-menu__cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Type-specific panel layouts */
/* 2-column panel where the CTA sits to the right — ratio 2:1 */
.st-mega-menu--mega_2 .st-mega-menu__inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: start;
}
.st-mega-menu--mega_2 .st-mega-menu__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.st-mega-menu--mega_2 .st-mega-menu__cta {
    margin-top: 0;
}

/* 3col + 1row: cards on top, CTA below */
.st-mega-menu--mega_3_1 .st-mega-menu__inner {
    display: block;
}
.st-mega-menu--mega_3_1 .st-mega-menu__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.st-mega-menu--mega_3_1 .st-mega-menu__cta {
    margin-top: 28px;
}
.st-mega-menu--mega_3_1 .st-mega-menu__cta-title,
.st-mega-menu--mega_3_1 .st-mega-menu__cta-description,
.st-mega-menu--mega_3_1 .st-mega-menu__quote {
    color: #ffffff;
}

/* 4-column cards (full-width grid) */
.st-mega-menu--mega_4 .st-mega-menu__cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.st-mega-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    /*min-height: 368px;*/
    min-height: auto;
    padding: 24px;

    border-radius: 10px;
    /*background: #f4f4f4;*/
    background: #F2F6FC;

    
}

.st-mega-card--cta {
    background: #ef0011;
    color: #ffffff;
}

.st-mega-card--cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.st-mega-card--cta .st-mega-card__content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding-top: 0;
}

.st-mega-card--cta .st-mega-card__title {
    color: #ffffff;
}

.st-mega-card--cta .st-mega-card__description,
.st-mega-card--cta .st-mega-card__quote {
    color: rgba(255, 255, 255, 0.92);
}

.st-mega-card--cta .st-mega-card__link {
    color: #ef0011;
    background: #ffffff;
    border-radius: 8px;
    padding: 14px 22px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 180ms ease, transform 180ms ease, color 180ms ease;
}

.st-mega-menu--mega_3_1 .st-mega-card--cta .st-mega-card__link {
    margin-top: 0 !important;
}

.st-mega-card--cta .st-mega-card__link:hover,
.st-mega-card--cta .st-mega-card__link:focus-visible {
    background: #f1f1f1;
    transform: translateY(-1px);
    color: #c4000e;
}

.st-mega-card--cta .st-mega-card__link svg {
    filter: none;
}

.st-mega-card--cta .st-mega-card__links {
    gap: 0;
}

.st-mega-card__image-link {
    display: block;
    width: 100%;
    text-align: left;
    overflow: hidden;
    border-radius: 4px;
}

.st-mega-card__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0;
    object-fit: cover;
    transition: transform 350ms ease;
}

.st-mega-card:hover .st-mega-card__image {
    transform: scale(1.025);
}

.st-mega-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding-top: 16px;
}

.st-mega-card__title {
    margin: 0;

    color: #111111;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.2;
}

.st-mega-card__title a {
    color: inherit;
    text-decoration: none;
}

.st-mega-card__title a:hover,
.st-mega-card__title a:focus-visible {
    color: #ef0011;
}

.st-mega-card__description {
    margin: 10px 0 20px;

    color: #252525;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.35;
}

.st-mega-card__link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;

    text-decoration: none;
    transition: color 180ms ease;
}

.st-mega-card__link svg,
.st-mega-card__links li a svg,
.st-mega-menu__cta-link svg {
    width: 7px;
    height: 12px;
    flex-shrink: 0;
    transition: transform 200ms ease;
}

.st-mega-card__link:hover,
.st-mega-card__link:focus-visible,
.st-mega-card__links li a:hover,
.st-mega-card__links li a:focus-visible {
    color: #c4000e;
}

.st-mega-card__link:hover svg,
.st-mega-card__link:focus-visible svg,
.st-mega-card__links li a:hover svg,
.st-mega-card__links li a:focus-visible svg,
.st-mega-menu__cta-link:hover svg,
.st-mega-menu__cta-link:focus-visible svg {
    transform: translateX(3px);
}

/* link list inside a card */
.st-mega-card__links {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto !important;
}
.st-mega-card__links li {
    margin: 0 !important;
    padding: 0 !important;
}
.st-mega-card__links li a {
    color: #ef0011;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 180ms ease;
}
.st-mega-card__links li a:hover,
.st-mega-card__links li a:focus-visible {
    text-decoration: none;
}

/* =========================================================
   Mega menu bottom CTA
   ========================================================= */

.st-mega-menu__cta {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(0, 2fr);
    gap: 32px;
    align-items: start;

    margin-top: 24px;
    padding: 36px;

    border-radius: 14px;
    background: #ef0011;

    color: #ffffff;
}

.st-mega-menu__cta-content {
    min-width: 0;
}

.st-mega-menu__quote {
    max-width: 420px;

    font-size: 34px;
    font-weight: 300;
    line-height: 1.15;
}

.st-mega-menu__cta-title {
    margin: 0 0 14px;

    color: #ffffff;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.3;
}

.st-mega-menu__cta-description {
    margin: 0 0 18px;

    color: #ffffff;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.45;
}

.st-mega-menu__cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 48px;
    padding: 14px 22px;

    border-radius: 8px;
    background: #ffffff;

    color: #ef0011;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color 180ms ease, transform 180ms ease, color 180ms ease;
}

.st-mega-menu__cta-link:hover,
.st-mega-menu__cta-link:focus-visible {
    background: #f1f1f1;
    transform: translateY(-1px);
    color: #c4000e;
}

.st-mega-menu__cta-link svg {
    transition: transform 200ms ease;
}

.st-mega-menu__cta-link:hover svg,
.st-mega-menu__cta-link:focus-visible svg {
    transform: translateX(4px);
}

/* =========================================================
   Page overlay
   ========================================================= */

body.st-mega-menu-open::after {
    position: fixed;
    inset: 0;
    z-index: 900;

    background: rgb(0 0 0 / 0%);

    content: "";
    pointer-events: none;
}

/*
 * A header eleve 1000-es z-indexen van.
 * Nem írjuk át sem a header, sem a panel position értékét.
 */
body.st-mega-menu-open header#masthead.st-header {
    z-index: 1000;
}

/* =========================================================
   Responsive: medium desktop
   ========================================================= */

@media (max-width: 1200px) {
    .st-header__inner {
        padding-right: 32px;
        padding-left: 32px;
    }

    .st-header__menu {
        gap: 20px;
    }

    .st-header__actions {
        gap: 14px;
        margin-left: 24px;
    }

    .st-header__cta {
        padding-right: 18px;
        padding-left: 18px;
    }

    .st-mega-menu__inner {
        padding: 24px;
    }

    .st-mega-menu__cards {
        gap: 18px;
    }

    .st-mega-card {
        padding: 18px;
    }

    .st-mega-card__title {
        font-size: 20px;
    }

    .st-mega-card__description {
        font-size: 14px;
    }

    .st-mega-menu__quote {
        font-size: 26px;
    }

    .st-mega-menu__cta {
        gap: 32px;
    }
}

/* =========================================================
   Tablet and mobile navigation
   ========================================================= */

@media (max-width: 1024px) {
    header#masthead.st-header {
        padding-top: 20px;
    }

    .st-header__inner {
        min-height: 82px;
        padding-right: 24px;
        padding-left: 24px;
    }

    .st-header__mobile-toggle {
        display: block;
    }

    .st-header__content {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 30;

        display: none;
        align-items: stretch;

        padding: 24px;

        border-top: 1px solid #eeeeee;
        background: #ffffff;

        box-shadow: 0 14px 30px rgb(0 0 0 / 10%);
    }

    .st-header__content.is-open {
        display: block;
    }

    .st-header__navigation {
        width: 100%;
        margin: 0;
    }

    .st-header__menu {
        display: block;
    }

    .st-header__menu-item {
        border-bottom: 1px solid #eeeeee;
    }

    .st-header__menu-link {
        justify-content: flex-start;

        width: 100%;
        padding: 16px 0;

        font-size: 16px;
        text-align: left;
    }

    .st-header__actions {
        display: flex;
        align-items: stretch;

        margin: 24px 0 0;
    }

    .st-header__cta {
        flex: 1;
    }

    /*
     * Mobil: stacked accordion panels under the navigation.
     * Panels are hidden by default; JS toggles `.is-open` on the panel to reveal it.
     */
    header#masthead.st-header > .st-mega-menu {
        display: block;
        position: static;
        top: auto;
        right: auto;
        left: auto;
        z-index: 10;

        width: 100%;
        padding: 0;

        visibility: visible;
        opacity: 1;
        pointer-events: auto;

        transform: none;

        box-shadow: none;
        background: transparent;
    }

    /* hide panel inner by default on mobile; animate open via max-height */
    header#masthead.st-header > .st-mega-menu .st-mega-menu__inner {
        max-height: 0;
        overflow: hidden;
        margin: 0 0 12px 0;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 8px 20px rgb(0 0 0 / 8%);
        transition: max-height 360ms cubic-bezier(.2,.9,.2,1), padding 280ms ease;
        padding: 0 16px;
    }

    header#masthead.st-header > .st-mega-menu.is-open .st-mega-menu__inner {
        max-height: 1400px; /* large enough to fit inner content; keeps animation smooth */
        padding: 18px 16px;
    }

    /* also ensure when navigation is closed panels are collapsed */
    .st-header__content:not(.is-open) ~ .st-mega-menu .st-mega-menu__inner {
        display: none;
    }

    body.st-mega-menu-open::after {
        display: none;
    }
}

/* =========================================================
   Small mobile
   ========================================================= */

@media (max-width: 600px) {
    header#masthead.st-header {
        padding-top: 12px;
    }

    .st-header__inner {
        min-height: 72px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .st-header__logo-link .custom-logo {
        max-width: 130px;
        max-height: 44px;
    }

    .st-header__content {
        padding: 18px;
    }

    .st-header__actions {
        flex-wrap: wrap;
    }

    .st-header__cta {
        width: calc(100% - 66px);
    }
}
/* =========================================================
   Mobile multistep mega menu
   ========================================================= */

.st-mega-menu__mobile-header {
    display: none;
}

@media (max-width: 1024px) {
    body.st-mobile-menu-open {
        overflow: hidden;
    }

    header#masthead.st-header {
        padding-top: 0;
        background: #ffffff;
    }

    .st-header__inner {
        z-index: 60;
        min-height: 92px;
        padding: 24px 28px 16px;
        background: #ffffff;
    }

    .st-header__logo-link .custom-logo {
        max-width: 116px;
        max-height: 42px;
    }

    .st-header__mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin-left: auto;
        padding: 0;
    }

    .st-header__mobile-toggle-icon {
        display: block;
        width: 42px;
        height: 42px;
    }

    .st-header__mobile-toggle-icon rect {
        transition: transform 220ms ease, opacity 180ms ease;
        transform-box: fill-box;
        transform-origin: center;
    }

    .st-header__mobile-toggle[aria-expanded="true"] .st-header__mobile-toggle-icon rect:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .st-header__mobile-toggle[aria-expanded="true"] .st-header__mobile-toggle-icon rect:nth-child(2) {
        opacity: 0;
    }

    .st-header__mobile-toggle[aria-expanded="true"] .st-header__mobile-toggle-icon rect:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .st-header__mobile-toggle span {
        display: none;
    }

    .st-header__content {
        position: fixed;
        inset: 0;
        z-index: 40;
        display: none;
        padding: 106px 28px 30px;
        overflow-y: auto;
        border-top: 0;
        background: #ffffff;
        box-shadow: none;
    }

    .st-header__content.is-open {
        display: block;
    }

    .st-header.is-mobile-panel-open .st-header__content {
        pointer-events: none;
    }

    .st-header__actions {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 18px 16px;
        margin: 0;
    }

    .st-header__cta {
        grid-column: 1;
        justify-self: start;
        width: auto;
        min-height: 45px;
        padding: 14px 20px;
        border-radius: 4px;
        font-size: 13px;
        font-weight: 700;
    }

    .st-header__language {
        grid-column: 2;
        justify-self: end;
        min-width: 45px;
        min-height: 45px;
        padding: 10px 8px;
        font-size: 12px;
    }

    .st-header__menu-trigger,
    .st-header__action-link {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-height: 46px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #111111;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        text-align: left;
        text-decoration: none;
    }

    .st-header__menu-trigger::after,
    .st-header__action-link::after {
        content: "";
        flex: 0 0 auto;
        width: 7px;
        height: 12px;
        margin-left: 10px;
        background-image: url("data:image/svg+xml,%3Csvg width='7' height='12' viewBox='0 0 7 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.375 5.28125C6.65625 5.59375 6.65625 6.0625 6.375 6.34375L1.375 11.3438C1.0625 11.6562 0.59375 11.6562 0.3125 11.3438C0 11.0625 0 10.5938 0.3125 10.3125L4.78125 5.84375L0.3125 1.34375C0 1.0625 0 0.59375 0.3125 0.3125C0.59375 0 1.0625 0 1.34375 0.3125L6.375 5.28125Z' fill='black'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 7px 12px;
    }

    header#masthead.st-header > .st-mega-menu {
        position: fixed;
        inset: 0;
        z-index: 45;
        display: none;
        width: 100%;
        min-height: 100vh;
        padding: 106px 28px 30px;
        overflow-y: auto;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        background: #ffffff;
        box-shadow: none;
        transform: none;
    }

    header#masthead.st-header > .st-mega-menu.is-open {
        display: block;
    }

    header#masthead.st-header > .st-mega-menu[aria-hidden="true"] {
        display: none;
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .st-mega-menu__mobile-header {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 16px;
        margin-bottom: 22px;
    }

    .st-mega-menu__mobile-back {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #111111;
        font: inherit;
        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        cursor: pointer;
    }

    .st-mega-menu__mobile-back span {
        font-size: 22px;
        line-height: 1;
    }

    .st-mega-menu__mobile-title {
        color: #f2000c;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
    }

    header#masthead.st-header > .st-mega-menu .st-mega-menu__inner,
    header#masthead.st-header > .st-mega-menu.is-open .st-mega-menu__inner {
        max-height: none;
        margin: 0;
        padding: 0;
        overflow: visible;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transition: none;
    }

    .st-mega-menu__cards,
    .st-mega-menu__cards.st-mega-menu__cols-2,
    .st-mega-menu__cards.st-mega-menu__cols-3,
    .st-mega-menu__cards.st-mega-menu__cols-4,
    .st-mega-menu--mega_2 .st-mega-menu__cards,
    .st-mega-menu--mega_3_1 .st-mega-menu__cards,
    .st-mega-menu--mega_4 .st-mega-menu__cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .st-mega-menu--mega_2 .st-mega-menu__inner,
    .st-mega-menu--mega_3_1 .st-mega-menu__inner {
        display: block;
    }

    .st-mega-card {
        min-height: 0;
        padding: 16px;
        border-radius: 6px;
        background: #f3f6fb;
    }

    .st-mega-card__image-link,
    .st-mega-card__image {
        display: none;
    }

    .st-mega-card__content {
        padding-top: 0;
    }

    .st-mega-card__title,
    .st-mega-menu__cta-title {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.18;
    }

    .st-mega-card__description,
    .st-mega-menu__cta-description {
        margin: 8px 0 0;
        color: #1f2933;
        font-size: 12px;
        font-weight: 400;
        line-height: 1.28;
    }

    .st-mega-card__links {
        gap: 10px;
        margin-top: 12px !important;
    }

    .st-mega-card__links li a,
    .st-mega-card__link,
    .st-mega-menu__cta-link {
        color: #f2000c;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
    }

    .st-mega-card--cta,
    .st-mega-menu__cta {
        display: block;
        min-height: 0;
        margin-top: 12px;
        padding: 16px;
        border-radius: 6px;
        background: #f2000c;
        color: #ffffff;
    }

    .st-mega-card--cta .st-mega-card__content {
        display: block;
    }

    .st-mega-card--cta .st-mega-card__title,
    .st-mega-card--cta .st-mega-card__description,
    .st-mega-card--cta .st-mega-card__quote,
    .st-mega-menu__quote,
    .st-mega-menu__cta-title,
    .st-mega-menu__cta-description {
        color: #ffffff;
    }

    .st-mega-menu__quote {
        max-width: none;
        margin-bottom: 8px;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.18;
    }

    .st-mega-card--cta .st-mega-card__link,
    .st-mega-menu__cta-link {
        display: inline-flex;
        min-height: 0;
        margin-top: 12px;
        padding: 0;
        background: transparent;
        color: #ffffff;
        font-size: 12px;
    }

    .st-mega-card--cta .st-mega-card__link:hover,
    .st-mega-card--cta .st-mega-card__link:focus-visible,
    .st-mega-menu__cta-link:hover,
    .st-mega-menu__cta-link:focus-visible {
        background: transparent;
        color: #ffffff;
        transform: none;
    }

    body.st-mega-menu-open::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .st-header__inner {
        min-height: 92px;
        padding: 24px 24px 16px;
    }

    .st-header__content,
    header#masthead.st-header > .st-mega-menu {
        padding-right: 24px;
        padding-left: 24px;
    }
}

/* Language switcher inside the new mega header */
.st-header__language-switcher {
    position: relative;
    display: inline-flex;
}

.st-header__language-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    display: none;
    min-width: 52px;
    padding: 6px;
    border-radius: 4px;
    background: #f1f3f6;
    box-shadow: 0 8px 20px rgb(0 0 0 / 10%);
}

.st-header__language-switcher:hover .st-header__language-dropdown,
.st-header__language-switcher:focus-within .st-header__language-dropdown {
    display: grid;
    gap: 4px;
}

.st-header__language-dropdown a {
    display: block;
    padding: 6px 8px;
    color: #727272;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
}

.st-header__language-dropdown a:hover,
.st-header__language-dropdown a:focus-visible {
    color: #111111;
}

@media (max-width: 1024px) {
    .st-header__language-switcher {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .st-header__language-dropdown {
        position: static;
        margin-top: 6px;
        box-shadow: none;
    }
}
/* Mobile menu fixes: full-height level screens and SVG chevrons */
@media (max-width: 1024px) {
    .st-header__content,
    header#masthead.st-header > .st-mega-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .st-header__content {
        z-index: 40 !important;
        padding-top: 106px !important;
    }

    header#masthead.st-header > .st-mega-menu {
        z-index: 55 !important;
        padding-top: 106px !important;
    }

    header#masthead.st-header > .st-mega-menu.is-open {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .st-mega-menu__mobile-header {
        position: sticky;
        top: 0;
        z-index: 2;
        display: grid !important;
        background: #ffffff;
    }

    .st-mega-menu__mobile-back svg {
        transform: rotate(180deg);
    }

    .st-header__menu-trigger::after,
    .st-header__action-link::after {
        content: "" !important;
        flex: 0 0 auto;
        width: 7px;
        height: 12px;
        margin-left: 10px;
        background-image: url("data:image/svg+xml,%3Csvg width='7' height='12' viewBox='0 0 7 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.375 5.28125C6.65625 5.59375 6.65625 6.0625 6.375 6.34375L1.375 11.3438C1.0625 11.6562 0.59375 11.6562 0.3125 11.3438C0 11.0625 0 10.5938 0.3125 10.3125L4.78125 5.84375L0.3125 1.34375C0 1.0625 0 0.59375 0.3125 0.3125C0.59375 0 1.0625 0 1.34375 0.3125L6.375 5.28125Z' fill='black'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 7px 12px;
    }
}
/* Mobile click-state hardening */
@media (max-width: 1024px) {
    .st-header.is-mobile-panel-open .st-header__content {
        pointer-events: auto !important;
    }

    header#masthead.st-header > .st-mega-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    header#masthead.st-header > .st-mega-menu.is-open,
    header#masthead.st-header > .st-mega-menu[aria-hidden="false"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    header#masthead.st-header > .st-mega-menu.is-open * {
        pointer-events: auto;
    }
}

/* Mobile header controls and action ordering */
@media (max-width: 1024px) {
    .st-header.is-mobile-navigation-open .st-header__inner {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 70;
        min-height: 92px;
        background: #ffffff;
        pointer-events: none;
    }

    .st-header.is-mobile-navigation-open .st-header__branding,
    .st-header.is-mobile-navigation-open .st-header__mobile-toggle {
        pointer-events: auto;
    }

    .st-header.is-mobile-navigation-open .st-header__mobile-toggle {
        position: relative;
        z-index: 1;
    }

    .st-header__actions .st-header__cta {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        background: #f2000c !important;
        border-color: #f2000c !important;
        color: #ffffff !important;
    }

    .st-header__actions .st-header__cta span,
    .st-header__actions .st-header__cta svg {
        color: #ffffff !important;
        fill: none;
    }

    .st-header__actions .st-header__language-switcher {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
    }

    .st-header__actions .st-header__menu-trigger,
    .st-header__actions .st-header__action-link {
        grid-column: 1 / -1;
    }
}

/* Keep the mobile navigation interactive and header controls above it. */
@media (max-width: 1024px) {
    .st-header.is-mobile-navigation-open .st-header__content {
        pointer-events: auto !important;
    }

    .st-header.is-mobile-navigation-open .st-header__branding,
    .st-header.is-mobile-navigation-open .st-header__mobile-toggle {
        position: relative;
        z-index: 80;
    }
}

/* The opened sub-menu must replace, not sit behind, the first mobile level. */
@media (max-width: 1024px) {
    .st-header.is-mobile-panel-open .st-header__content {
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Keep the mobile CTA and language picker visible on every sub-menu level. */
@media (max-width: 1024px) {
    .st-header.is-mobile-panel-open .st-header__content {
        visibility: visible !important;
        z-index: 75 !important;
        background: transparent !important;
        pointer-events: none !important;
    }

    .st-header.is-mobile-panel-open .st-header__menu-trigger,
    .st-header.is-mobile-panel-open .st-header__action-link {
        display: none !important;
    }

    .st-header.is-mobile-panel-open .st-header__cta,
    .st-header.is-mobile-panel-open .st-header__language-switcher,
    .st-header.is-mobile-panel-open .st-header__language,
    .st-header.is-mobile-panel-open .st-header__language-dropdown,
    .st-header.is-mobile-panel-open .st-header__language-dropdown a {
        pointer-events: auto !important;
    }

    header#masthead.st-header > .st-mega-menu.is-open {
        padding-top: 174px !important;
    }
}

/* Opaque mobile control bars while the sub-menu content scrolls underneath. */
@media (max-width: 1024px) {
    .st-header.is-mobile-panel-open .st-header__actions {
        position: relative;
        z-index: 2;
        padding-bottom: 16px;
        background: #ffffff;
    }

    header#masthead.st-header > .st-mega-menu .st-mega-menu__mobile-header {
        z-index: 20;
        width: calc(100% + 48px);
        margin-right: -24px;
        margin-left: -24px;
        padding: 14px 24px;
        background: #ffffff;
        /*box-shadow: 0 8px 12px rgb(255 255 255 / 96%);*/
    }
}

/* Remove all scroll-through gaps between the mobile action and back bars. */
@media (max-width: 1024px) {
    .st-header.is-mobile-panel-open .st-header__actions {
        padding-bottom: 32px;
        box-shadow: 0 48px 0 #ffffff;
    }

    header#masthead.st-header > .st-mega-menu .st-mega-menu__mobile-header {
        padding-bottom: 22px;
        box-shadow: 0 44px 0 #ffffff, 0 8px 12px rgb(255 255 255 / 96%);
    }
}

/* One sticky mobile panel bar for actions and sub-menu navigation. */
@media (max-width: 1024px) {
    .st-header.is-mobile-panel-open .st-header__content {
        visibility: hidden !important;
        pointer-events: none !important;
    }

    header#masthead.st-header > .st-mega-menu.is-open {
        padding-top: 106px !important;
    }

    header#masthead.st-header > .st-mega-menu .st-mega-menu__mobile-topbar {
        position: sticky;
        top: 92px;
        z-index: 30;
        width: calc(100% + 48px);
        margin: 0 -24px 18px;
        padding: 14px 24px 16px;
        background: #ffffff;
    }

    .st-mega-menu__mobile-controls {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 18px;
    }

    .st-mega-menu__mobile-controls .st-header__cta {
        margin: 0;
    }

    .st-mega-menu__mobile-controls .st-header__language-switcher {
        position: relative;
        display: inline-flex;
        flex: 0 0 auto;
    }

    header#masthead.st-header > .st-mega-menu .st-mega-menu__mobile-header {
        position: static;
        width: auto;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
}

/* Restored mobile sub-menu controls: fixed first-level CTA plus a separate back row. */
@media (max-width: 1024px) {
    .st-header.is-mobile-panel-open .st-header__content {
        visibility: visible !important;
        z-index: 75 !important;
        background: transparent !important;
        pointer-events: none !important;
    }

    .st-header.is-mobile-panel-open .st-header__menu-trigger,
    .st-header.is-mobile-panel-open .st-header__action-link {
        display: none !important;
    }

    .st-header.is-mobile-panel-open .st-header__cta,
    .st-header.is-mobile-panel-open .st-header__language-switcher,
    .st-header.is-mobile-panel-open .st-header__language,
    .st-header.is-mobile-panel-open .st-header__language-dropdown,
    .st-header.is-mobile-panel-open .st-header__language-dropdown a {
        pointer-events: auto !important;
    }

    .st-header.is-mobile-panel-open .st-header__actions {
        padding-bottom: 18px;
        background: #ffffff;
        box-shadow: 0 18px 0 #ffffff;
    }

    header#masthead.st-header > .st-mega-menu.is-open {
        padding-top: 174px !important;
    }

    header#masthead.st-header > .st-mega-menu .st-mega-menu__mobile-header {
        position: sticky;
        top: 0;
        z-index: 20;
        width: calc(100% + 48px);
        margin: 0 -24px 18px;
        padding: 14px 24px 18px;
        background: #ffffff;
        box-shadow: 0 18px 0 #ffffff;
    }
}

/* Override the theme mobile navigation offset. */
@media (max-width: 1024px) {
    header#masthead.st-header .st-header__content {
        padding-top: 90px !important;
    }
}

@media (max-width: 1024px) {
    .st-header__actions {
        padding-top: 20px;
    }
}

@media (max-width: 1024px) {
    header#masthead.st-header > .st-mega-menu.is-open {
        padding-top: 194px !important;
    }
}

/* Mobile language picker: open downward without following the current-language link. */
@media (max-width: 1024px) {
    .st-header__language-switcher {
        position: relative !important;
        display: inline-flex !important;
    }

    .st-header__language-switcher .st-header__language-dropdown {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        right: 0 !important;
        left: auto !important;
        display: none !important;
        min-width: 45px;
        margin: 0 !important;
        background: #f1f3f6;
        box-shadow: 0 8px 20px rgb(0 0 0 / 10%);
    }

    .st-header__language-switcher.is-open .st-header__language-dropdown {
        display: grid !important;
        gap: 4px;
    }
}

/* Match the desktop CTA-card button treatment on mobile. */
@media (max-width: 1024px) {
    .st-mega-card--cta .st-mega-card__link,
    .st-mega-menu__cta-link {
        min-height: 48px;
        padding: 14px 22px;
        border-radius: 8px;
        background: #ffffff !important;
        color: #ef0011 !important;
    }

    .st-mega-card--cta .st-mega-card__link svg,
    .st-mega-menu__cta-link svg {
        color: #ef0011;
    }

    .st-mega-card--cta .st-mega-card__link:hover,
    .st-mega-card--cta .st-mega-card__link:focus-visible,
    .st-mega-menu__cta-link:hover,
    .st-mega-menu__cta-link:focus-visible {
        background: #f1f1f1 !important;
        color: #c4000e !important;
    }
}

/* Figma dimensions for the mobile CTA-card button. */
@media (max-width: 1024px) {
    .st-mega-card--cta .st-mega-card__link,
    .st-mega-menu__cta-link {
        gap: 8px;
        min-height: 0;
        padding: 12px 24px;
        border-radius: 4px;
        font-family: "Rubik", sans-serif;
        font-size: 15px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: 0;
    }
}

/* Figma typography for mobile mega-menu cards. */
@media (max-width: 1024px) {
    .st-mega-card:not(.st-mega-card--cta) .st-mega-card__title,
    .st-mega-card:not(.st-mega-card--cta) .st-mega-card__title a {
        font-family: "Rubik", sans-serif;
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0;
    }

    .st-mega-card:not(.st-mega-card--cta) .st-mega-card__description {
        font-family: "Rubik", sans-serif;
        font-size: 14px;
        font-weight: 300;
        line-height: 1.3;
        letter-spacing: 0;
    }
}

@media (max-width: 1024px) {
    .st-mega-card--cta .st-mega-card__title,
    .st-mega-card--cta .st-mega-card__title a,
    .st-mega-menu__cta-title {
        font-family: "Rubik", sans-serif;
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0;
    }

    .st-mega-card--cta .st-mega-card__description,
    .st-mega-card--cta .st-mega-card__quote,
    .st-mega-menu__cta-description,
    .st-mega-menu__quote {
        font-family: "Rubik", sans-serif;
        font-size: 14px;
        font-weight: 300;
        line-height: 1;
        letter-spacing: 0;
    }
}

/* Figma typography for links inside standard mobile mega-menu cards. */
@media (max-width: 1024px) {
    .st-mega-card:not(.st-mega-card--cta) .st-mega-card__link,
    .st-mega-card:not(.st-mega-card--cta) .st-mega-card__links li a {
        font-family: "Rubik", sans-serif;
        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: 0;
    }
}

/* Mobile navigation typography using Rubik as the available Articulat fallback. */
@media (max-width: 1024px) {
    .st-mega-menu__mobile-title {
        font-family: "Rubik", sans-serif;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.5;
        letter-spacing: 0;
    }

    .st-mega-menu__mobile-back,
    .st-header__menu-trigger,
    .st-header__action-link {
        font-family: "Rubik", sans-serif;
        font-size: 17px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: 0;
    }
}

@media (max-width: 1024px) {
    .st-header__actions {
        row-gap: 20px;
    }
}

@media (max-width: 1024px) {
    .st-header__actions > .st-header__menu-trigger:first-of-type {
        margin-top: 20px;
    }
}

.st-mega-card__title p {
    margin-top: 0;
}

/* Desktop primary navigation typography and 32px item spacing. */
@media (min-width: 1025px) {
    .st-header__menu-trigger,
    .st-header__action-link {
        font-family: "Rubik", sans-serif;
        font-size: 17px;
        font-weight: 400;
        line-height: 1;
        letter-spacing: 0;
    }

    .st-header__actions > :is(.st-header__menu-trigger, .st-header__action-link) + :is(.st-header__menu-trigger, .st-header__action-link) {
        margin-left: 8px;
    }
}

@media (min-width: 1025px) {
    .st-header__actions {
        gap: 32px;
    }

    .st-header__actions > :is(.st-header__menu-trigger, .st-header__action-link) + :is(.st-header__menu-trigger, .st-header__action-link) {
        margin-left: 0;
    }
}

/* Desktop header CTA from Figma. */
@media (min-width: 1025px) {
    .st-header__cta {
        gap: 8px;
        padding: 14px 24px;
        border-radius: 4px;
        color: #ffffff;
    }

    .st-header__cta svg {
        color: #ffffff;
    }
}

@media (min-width: 1025px) {
    .st-header__cta {
        font-family: "Rubik", sans-serif;
        font-size: 15px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: 0;
    }
}

@media (min-width: 1025px) {
    .st-header__cta,
    .st-header__cta:visited,
    .st-header__cta:hover,
    .st-header__cta:visited:hover,
    .st-header__cta:focus-visible {
        color: #ffffff !important;
    }
}

/* Enforce the desktop mega_2 layout: two card columns plus one CTA column. */
@media (min-width: 1025px) {
    header#masthead.st-header > .st-mega-menu--mega_2 .st-mega-menu__inner {
        display: grid !important;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
        gap: 28px;
        align-items: stretch;
    }

    header#masthead.st-header > .st-mega-menu--mega_2 .st-mega-menu__cards {
        grid-column: 1;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    header#masthead.st-header > .st-mega-menu--mega_2 .st-mega-menu__cta {
        grid-column: 2;
        grid-row: 1;
        align-self: stretch;
        margin-top: 0;
    }
}

@media (min-width: 1025px) {
    header#masthead.st-header .st-mega-menu__cards.st-mega-menu__cols-2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* mega_2 without a separate CTA: the two cards themselves use the 2:1 ratio. */
@media (min-width: 1025px) {
    header#masthead.st-header > .st-mega-menu--mega_2 .st-mega-menu__inner {
        display: block !important;
    }

    header#masthead.st-header > .st-mega-menu--mega_2 .st-mega-menu__cards.st-mega-menu__cols-2 {
        width: 100%;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
    }
}

/* Put the extracted mega_2 CTA in the right-hand 1/3 column. */
@media (min-width: 1025px) {
    header#masthead.st-header > .st-mega-menu--mega_2 .st-mega-menu__inner:has(> .st-mega-menu__cta) {
        display: grid !important;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
        gap: 28px;
        align-items: stretch;
    }

    header#masthead.st-header > .st-mega-menu--mega_2 .st-mega-menu__inner:has(> .st-mega-menu__cta) > .st-mega-menu__cards {
        grid-column: 1;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    header#masthead.st-header > .st-mega-menu--mega_2 .st-mega-menu__inner:has(> .st-mega-menu__cta) > .st-mega-menu__cta {
        grid-column: 2;
        grid-row: 1;
        align-self: stretch;
        margin-top: 0;
    }
}

/* WYSIWYG cards own their complete surface and spacing. */
.st-mega-card--wysiwyg {
    padding: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

.st-mega-card--wysiwyg .st-mega-card__content {
    padding: 0;
}

/* A WYSIWYG contact card occupies both cells of the left 2/3 mega_2 area. */
@media (min-width: 1025px) {
    header#masthead.st-header > .st-mega-menu--mega_2 .st-mega-menu__inner:has(> .st-mega-menu__cta) .st-mega-card--wysiwyg {
        grid-column: 1 / -1;
    }

    header#masthead.st-header > .st-mega-menu--mega_2 .st-mega-menu__cta {
        display: block;
    }

    header#masthead.st-header > .st-mega-menu--mega_2 .st-mega-menu__quote {
        margin-bottom: 18px;
    }
}

@media (max-width: 1024px) {
    .st-mega-menu--mega_2 .st-mega-menu__cta {
        margin-top: 28px;
    }
}

/* Subtle mobile level transitions. */
@media (max-width: 1024px) {
    @keyframes st-mobile-menu-level-in {
        from {
            opacity: 0;
            translate: 18px 0;
        }

        to {
            opacity: 1;
            translate: 0 0;
        }
    }

    @keyframes st-mobile-menu-root-in {
        from {
            opacity: 0;
            translate: -12px 0;
        }

        to {
            opacity: 1;
            translate: 0 0;
        }
    }

    header#masthead.st-header > .st-mega-menu.is-open {
        animation: st-mobile-menu-level-in 220ms ease-out both;
        will-change: opacity, translate;
    }

    .st-header.is-mobile-navigation-open:not(.is-mobile-panel-open) .st-header__content.is-open {
        animation: st-mobile-menu-root-in 180ms ease-out both;
        will-change: opacity, translate;
    }
}

@media (prefers-reduced-motion: reduce) {
    header#masthead.st-header > .st-mega-menu.is-open,
    .st-header.is-mobile-navigation-open:not(.is-mobile-panel-open) .st-header__content.is-open {
        animation: none;
    }
}

/* Keep the mobile menu surface opaque during level transitions. */
@media (max-width: 1024px) {
    @keyframes st-mobile-menu-level-in {
        from { translate: 18px 0; }
        to { translate: 0 0; }
    }

    @keyframes st-mobile-menu-root-in {
        from { translate: -12px 0; }
        to { translate: 0 0; }
    }

    header#masthead.st-header > .st-mega-menu.is-open,
    .st-header.is-mobile-navigation-open:not(.is-mobile-panel-open) .st-header__content.is-open {
        opacity: 1;
        will-change: translate;
    }
}

/* Fixed white backing layer prevents page content from showing during mobile slides. */
@media (max-width: 1024px) {
    body.st-mobile-menu-open header#masthead.st-header::before {
        position: fixed;
        inset: 0;
        z-index: 0;
        display: block;
        background: #ffffff;
        content: "";
        pointer-events: none;
    }

    @keyframes st-mobile-menu-level-in {
        from {
            opacity: 0;
            translate: 18px 0;
        }

        to {
            opacity: 1;
            translate: 0 0;
        }
    }

    @keyframes st-mobile-menu-root-in {
        from {
            opacity: 0;
            translate: -12px 0;
        }

        to {
            opacity: 1;
            translate: 0 0;
        }
    }
}

/* Disable mobile menu level transitions. */
@media (max-width: 1024px) {
    header#masthead.st-header > .st-mega-menu.is-open,
    .st-header.is-mobile-navigation-open:not(.is-mobile-panel-open) .st-header__content.is-open {
        animation: none !important;
        opacity: 1 !important;
        translate: 0 0 !important;
        will-change: auto;
    }
}

.st-mega-card__image {
    display: block;
    width: 100%;
    height: auto;
}

/* Article-card metadata and permalink. */
.st-mega-card__article-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #ef0011;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
}

.st-mega-card__article-label:hover,
.st-mega-card__article-label:focus-visible {
    color: #c4000e;
}

.st-mega-card__article-read-more,
.st-mega-card__article-read-more:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: #ef0011;
    font-family: "Rubik", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.st-mega-card__article-read-more:hover,
.st-mega-card__article-read-more:focus-visible {
    color: #c4000e;
}

.st-mega-card__article-read-more svg {
    width: 7px;
    height: 12px;
}

/* Icon presentation is selected explicitly through the ACF image_display field. */
.st-mega-card__image--icon {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: none;
    min-height:44px;
}

/* Keep the language dropdown attached to its trigger so hover does not break. */
.st-header__language-dropdown {
    top: 100%;
}

@media (max-width: 1024px) {
    .st-header__language-switcher .st-header__language-dropdown {
        top: 100% !important;
    }
}

/* Full-card interaction for cards with a single unique destination. */
 .is-single-link-card {
    cursor: pointer;
}

.is-single-link-card:hover .st-mega-card__link,
.is-single-link-card:focus-visible .st-mega-card__link,
.is-single-link-card:hover .st-mega-card__links li a,
.is-single-link-card:focus-visible .st-mega-card__links li a {
    color: #c4000e;
}

.is-single-link-card:hover .st-mega-card__link svg,
.is-single-link-card:focus-visible .st-mega-card__link svg,
.is-single-link-card:hover .st-mega-card__links li a svg,
.is-single-link-card:focus-visible .st-mega-card__links li a svg {
    transform: translateX(3px);
}

.st-mega-card--cta.is-single-link-card:hover .st-mega-card__link,
.st-mega-card--cta.is-single-link-card:focus-visible .st-mega-card__link,
.st-mega-menu__cta.is-single-link-card:hover .st-mega-menu__cta-link,
.st-mega-menu__cta.is-single-link-card:focus-visible .st-mega-menu__cta-link {
    background: #f1f1f1 !important;
    color: #c4000e !important;
    transform: translateY(-1px);
}

@media (min-width: 911px) and (max-width: 1350px) {
    header#masthead {
        padding-bottom: 0px !important;
    }
}


.st-mega-menu ul:not(.menu):not(.sub-menu):not(.list-no) li {
    font-size: 15px;
}
