.mff-site-header {
    --mff-green: #389E87;
    --mff-blue: #1A6788;
    --mff-soft: #DFF2DE;
    --mff-text: #1f1f1f;
    position: relative;
    width: 100%;
    direction: rtl;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(26, 103, 136, .10);
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px)
}

.mff-site-header--sticky {
    position: sticky;
    top: 0;
    box-shadow: 0 8px 30px rgba(31, 31, 31, .07)
}

.mff-site-header__top {
    background: #1A6788;
    color: #fff;
    font-size: 12px
}

.mff-site-header__top-inner {
    width: min(1200px, calc(100% - 40px));
    min-height: 30px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

.mff-site-header__inner {
    width: min(1240px, calc(100% - 40px));
    min-height: var(--mff-header-desktop);
    margin: auto;
    display: flex;
    align-items: center;
    gap: 24px
}

.mff-site-header__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mff-text);
    text-decoration: none;
    flex: 0 0 auto
}

.mff-site-header__logo img {
    height: 58px;
    width: auto;
    max-width: 190px;
    object-fit: contain
}

.mff-site-header__logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #389E87, #1A6788);
    color: #fff;
    font-weight: 900;
    font-size: 21px;
    box-shadow: 0 8px 22px rgba(26, 103, 136, .20)
}

.mff-site-header__logo-text {
    font-size: 17px;
    font-weight: 850;
    white-space: nowrap
}

.mff-site-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2.4vw, 34px);
    margin-inline: auto
}

.mff-site-header__nav a {
    position: relative;
    padding: 9px 2px;
    color: var(--mff-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 650;
    white-space: nowrap;
    transition: color .2s ease
}

.mff-site-header__nav a:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--mff-green);
    transition: width .22s ease
}

.mff-site-header__nav a:hover {
    color: var(--mff-green)
}

.mff-site-header__nav a:hover:after {
    width: 100%;
    background: var(--mff-nav-underline, #389E87) !important
}

.mff-site-header__cta,
.mff-site-header__mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: 12px;
    background: var(--mff-green);
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 9px 24px rgba(56, 158, 135, .20);
    transition: transform .2s, box-shadow .2s
}

.mff-site-header__cta:hover,
.mff-site-header__mobile-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(56, 158, 135, .26)
}

.mff-site-header__menu-button {
    display: none;
    border: 1px solid rgba(26, 103, 136, .12);
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    width: 46px;
    height: 46px;
    margin-inline-start: auto;
    cursor: pointer
}

.mff-site-header__menu-button span:not(.mff-visually-hidden) {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    background: #1f1f1f;
    border-radius: 2px
}

.mff-site-header__mobile-nav {
    width: min(1240px, calc(100% - 28px));
    margin: auto;
    padding: 8px 0 18px;
    gap: 5px
}

.mff-site-header__mobile-nav[hidden] {
    display: none
}

.mff-site-header__mobile-nav a {
    padding: 14px 16px;
    border-radius: 11px;
    color: var(--mff-text);
    text-decoration: none;
    font-weight: 700
}

.mff-site-header__mobile-nav a:hover {
    background: var(--mff-soft)
}

.mff-site-header__mobile-cta {
    margin-top: 6px;
    width: 100%
}

@media(max-width:900px) {
    .mff-site-header__inner {
        width: calc(100% - 28px);
        min-height: var(--mff-header-mobile);
        gap: 12px
    }

    .mff-site-header__nav,
    .mff-site-header__cta {
        display: none
    }

    .mff-site-header__menu-button {
        display: block
    }

    .mff-site-header__logo img {
        height: 48px;
        max-width: 155px
    }

    .mff-site-header__logo-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px
    }

    .mff-site-header__logo-text {
        font-size: 15px
    }

    .mff-site-header__top-inner {
        width: calc(100% - 28px)
    }
}

@media(max-width:520px) {
    .mff-site-header__top {
        display: none
    }

    .mff-site-header__logo-text {
        display: none
    }
}

@media(max-width:900px) {
    .mff-site-header__inner {
        padding-block: 5px
    }

    .mff-site-header__mobile-nav {
        padding: 10px 0 20px
    }

    .mff-site-header__mobile-nav a {
        display: block
    }

    .mff-site-header__mobile-cta {
        width: max-content;
        max-width: 100%;
        padding-inline: 22px
    }
}

/* V5 independent header styling */
.mff-site-header {
    background: var(--mff-header-bg, #fff);
    color: var(--mff-header-text, #1f1f1f)
}

.mff-site-header__top {
    background: var(--mff-top-bg, #1A6788);
    color: var(--mff-top-text, #fff)
}

.mff-site-header__logo {
    color: var(--mff-header-text, #1f1f1f)
}

.mff-site-header__logo img {
    height: auto;
    max-height: var(--mff-logo-desktop, 58px);
    max-width: var(--mff-logo-max, 190px);
    width: auto;
    object-fit: contain;
    display: block
}

.mff-site-header__nav a {
    color: var(--mff-nav-color, #1f1f1f)
}

.mff-site-header__nav a:after {
    background: var(--mff-nav-underline, #389E87)
}

.mff-site-header__nav a:hover {
    color: var(--mff-nav-hover, #389E87) !important
}

.mff-site-header__cta {
    background: var(--mff-cta-bg, #389E87);
    color: var(--mff-cta-text, #fff) !important
}

.mff-site-header__cta:hover,
.mff-site-header__mobile-cta:hover {
    background: var(--mff-cta-hover, #1A6788) !important;
    color: var(--mff-cta-text, #fff) !important
}

.mff-site-header__menu-button {
    background: var(--mff-menu-bg, #fff)
}

.mff-site-header__menu-button span:not(.mff-visually-hidden) {
    background: var(--mff-menu-icon, #1f1f1f)
}

.mff-site-header__mobile-nav a:hover {
    background: var(--mff-mobile-hover, #DFF2DE) !important
}

@media(max-width:900px) {
    .mff-site-header__logo img {
        max-height: var(--mff-logo-mobile, 48px);
        max-width: min(var(--mff-logo-max, 190px), 155px)
    }
}