/* HFC Hero Banner Slider */
.hfc-hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    min-height: 760px;
    isolation: isolate;
    background: #06006e;
}

.hfc-hero-banner__slides,
.hfc-hero-banner__slide {
    position: absolute;
    inset: 0;
}

.hfc-hero-banner__slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 650ms ease, visibility 650ms ease, transform 650ms ease;
    z-index: 1;
    min-height: 100%;
}

.hfc-hero-banner__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.hfc-hero-banner__overlay {
    position: absolute;
    inset: 0;
    opacity: 0.78;
    z-index: 1;
}

.hfc-hero-banner__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    height: 100%;
    box-sizing: border-box;
    gap: 36px;
    padding: 56px 64px 96px;
}

.hfc-hero-banner__content {
    max-width: 38%;
}

.hfc-hero-banner__eyebrow {
    display: inline-block;
    margin-bottom: 28px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #f2d34f;
}

.hfc-hero-banner__title {
    margin: 0;
    color: #fff;
    font-size: clamp(52px, 6vw, 112px);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.hfc-hero-banner__description {
    margin-top: 28px;
    color: #fff;
    font-size: 22px;
    line-height: 1.55;
    max-width: 95%;
}

.hfc-hero-banner__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.hfc-hero-banner__btn,
.hfc-hero-banner__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 14px 24px;
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
    font-family: inherit;
}

.hfc-hero-banner__btn:hover,
.hfc-hero-banner__pill:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.hfc-hero-banner__btn--primary {
    background: #f2d34f;
    color: #070066 !important;
    border: 1px solid #f2d34f;
}

.hfc-hero-banner__btn--secondary {
    background: #fff;
    color: #070066 !important;
    border: 1px solid #fff;
}

.hfc-hero-banner__pills {
    position: absolute;
    right: 64px;
    bottom: 48px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
    max-width: calc(100% - 128px);
}

.hfc-hero-banner__pill {
    appearance: none;
    border: 1px solid #fff;
    cursor: pointer;
    min-height: 48px;
    padding: 12px 22px;
    background: #fff;
    color: #070066 !important;
    font-size: 18px;
}

.hfc-hero-banner__pill.is-active {
    background: #f2d34f;
    color: #070066 !important;
    border-color: #f2d34f;
}

.hfc-hero-banner .hfc-hero-banner__btn--secondary,
.hfc-hero-banner .hfc-hero-banner__btn--secondary:visited,
.hfc-hero-banner .hfc-hero-banner__btn--secondary:hover,
.hfc-hero-banner .hfc-hero-banner__btn--secondary:focus,
.hfc-hero-banner .hfc-hero-banner__pill:not(.is-active),
.hfc-hero-banner .hfc-hero-banner__pill:not(.is-active):visited,
.hfc-hero-banner .hfc-hero-banner__pill:not(.is-active):hover,
.hfc-hero-banner .hfc-hero-banner__pill:not(.is-active):focus,
.elementor .hfc-hero-banner .hfc-hero-banner__btn--secondary,
.elementor .hfc-hero-banner .hfc-hero-banner__pill:not(.is-active),
.hfc-hero-banner .hfc-hero-banner__btn--primary,
.hfc-hero-banner .hfc-hero-banner__btn--primary:visited,
.hfc-hero-banner .hfc-hero-banner__btn--primary:hover,
.hfc-hero-banner .hfc-hero-banner__btn--primary:focus,
.hfc-hero-banner .hfc-hero-banner__pill.is-active,
.hfc-hero-banner .hfc-hero-banner__pill.is-active:visited,
.hfc-hero-banner .hfc-hero-banner__pill.is-active:hover,
.hfc-hero-banner .hfc-hero-banner__pill.is-active:focus,
.elementor .hfc-hero-banner .hfc-hero-banner__btn--primary,
.elementor .hfc-hero-banner .hfc-hero-banner__pill.is-active {
    color: #070066 !important;
}

.hfc-hero-banner .hfc-hero-banner__btn *,
.hfc-hero-banner .hfc-hero-banner__pill * {
    color: inherit !important;
}

@media (max-width: 1279px) {
    .hfc-hero-banner__inner {
        padding: 48px 48px 88px;
    }

    .hfc-hero-banner__content {
        max-width: 48%;
    }

    .hfc-hero-banner__description {
        font-size: 20px;
    }

    .hfc-hero-banner__pills {
        right: 48px;
        bottom: 40px;
        max-width: calc(100% - 96px);
    }
}

@media (max-width: 1024px) {
    .hfc-hero-banner {
        min-height: 640px;
    }

    .hfc-hero-banner__inner {
        padding: 40px 36px 84px;
    }

    .hfc-hero-banner__content {
        max-width: 56%;
    }

    .hfc-hero-banner__title {
        font-size: clamp(44px, 8vw, 84px);
    }

    .hfc-hero-banner__description {
        font-size: 18px;
    }

    .hfc-hero-banner__btn,
    .hfc-hero-banner__pill {
        min-height: 52px;
        padding: 12px 20px;
        font-size: 16px;
    }

    .hfc-hero-banner__pills {
        right: 36px;
        bottom: 36px;
        max-width: calc(100% - 72px);
    }
}

@media (max-width: 767px) {
    .hfc-hero-banner {
        min-height: 620px;
        border-radius: 26px;
    }

    .hfc-hero-banner__inner {
        padding: 28px 24px 136px;
        justify-content: center;
        gap: 24px;
    }

    .hfc-hero-banner__content {
        max-width: 100%;
    }

    .hfc-hero-banner__eyebrow {
        margin-bottom: 16px;
        font-size: 14px;
    }

    .hfc-hero-banner__title {
        font-size: clamp(38px, 13vw, 64px);
        line-height: 0.96;
    }

    .hfc-hero-banner__description {
        margin-top: 18px;
        font-size: 16px;
        max-width: 100%;
    }

    .hfc-hero-banner__buttons {
        margin-top: 24px;
        gap: 12px;
    }

    .hfc-hero-banner__btn {
        width: 100%;
    }

    .hfc-hero-banner__pills {
        left: 24px;
        right: 24px;
        bottom: 24px;
        justify-content: flex-start;
        gap: 10px;
        max-width: none;
    }

    .hfc-hero-banner__pill {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 14px;
    }
}


/* v1.3 vertical centring fix */
.hfc-hero-banner .hfc-hero-banner__slide {
    min-height: 100% !important;
}

.hfc-hero-banner .hfc-hero-banner__inner {
    min-height: 100% !important;
    height: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}


/* v1.4: compact Liquid Glass pill navigation */
.hfc-hero-banner .hfc-hero-banner__pills {
    gap: 10px !important;
    right: 46px !important;
    bottom: 34px !important;
}

.hfc-hero-banner .hfc-hero-banner__pill,
.elementor .hfc-hero-banner .hfc-hero-banner__pill {
    min-height: 34px !important;
    padding: 7px 13px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.26), rgba(255,255,255,0.10)) !important;
    border: 1px solid rgba(255,255,255,0.44) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.40), 0 8px 24px rgba(0,0,0,0.16) !important;
    -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
    backdrop-filter: blur(18px) saturate(150%) !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.25) !important;
}

.hfc-hero-banner .hfc-hero-banner__pill.is-active,
.elementor .hfc-hero-banner .hfc-hero-banner__pill.is-active {
    color: #070066 !important;
    background: linear-gradient(135deg, rgba(242,211,79,0.86), rgba(255,255,255,0.34)) !important;
    border-color: rgba(255,255,255,0.64) !important;
    text-shadow: none !important;
}

.hfc-hero-banner .hfc-hero-banner__pill:hover,
.hfc-hero-banner .hfc-hero-banner__pill:focus {
    transform: translateY(-1px) scale(1.02) !important;
}

/* v1.4: stop mobile text feeling cramped */
@media (max-width: 767px) {
    .hfc-hero-banner {
        min-height: 640px !important;
        border-radius: 24px !important;
    }

    .hfc-hero-banner__overlay {
        opacity: 0.84 !important;
    }

    .hfc-hero-banner__inner {
        padding: 34px 24px 122px !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .hfc-hero-banner__content {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .hfc-hero-banner__eyebrow {
        display: block !important;
        margin: 0 auto 16px !important;
        font-size: 12px !important;
        letter-spacing: 0.16em !important;
        text-align: center !important;
    }

    .hfc-hero-banner__title {
        font-size: clamp(38px, 11.2vw, 54px) !important;
        line-height: 0.98 !important;
        letter-spacing: -0.045em !important;
        max-width: 10.8em !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .hfc-hero-banner__description {
        font-size: 15.5px !important;
        line-height: 1.45 !important;
        max-width: 31em !important;
        margin: 18px auto 0 !important;
        text-align: center !important;
    }

    .hfc-hero-banner__buttons {
        justify-content: center !important;
        gap: 10px !important;
        margin-top: 24px !important;
    }

    .hfc-hero-banner__btn {
        width: auto !important;
        min-width: 0 !important;
        min-height: 44px !important;
        padding: 11px 17px !important;
        font-size: 14px !important;
    }

    .hfc-hero-banner__pills {
        left: 16px !important;
        right: 16px !important;
        bottom: 18px !important;
        justify-content: center !important;
        gap: 8px !important;
        max-width: none !important;
    }

    .hfc-hero-banner .hfc-hero-banner__pill,
    .elementor .hfc-hero-banner .hfc-hero-banner__pill {
        min-height: 30px !important;
        padding: 7px 10px !important;
        font-size: 11.5px !important;
        max-width: calc(50% - 6px) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

@media (max-width: 420px) {
    .hfc-hero-banner {
        min-height: 620px !important;
    }

    .hfc-hero-banner__inner {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .hfc-hero-banner__title {
        font-size: clamp(34px, 11vw, 46px) !important;
    }

    .hfc-hero-banner__description {
        font-size: 14.5px !important;
    }

    .hfc-hero-banner__buttons {
        flex-direction: column !important;
        align-items: center !important;
    }

    .hfc-hero-banner__btn {
        width: 100% !important;
        max-width: 250px !important;
    }
}
