/* Homepage hero — #MainBanner */

#MainBanner.home-hero {
    --hh-blue: #005d9f;
    --hh-blue-dark: #003e73;
    --hh-ink: #fff;
    position: relative;
    width: 100%;
    height: 88svh;
    min-height: 620px;
    max-height: none;
    margin: 0;
    padding: 0 !important;
    overflow: hidden;
    background: var(--hh-blue-dark);
    color: var(--hh-ink);
    font-family: Barlow, "Segoe UI", sans-serif;
}

#MainBanner.home-hero .slick-list,
#MainBanner.home-hero .slick-track,
#MainBanner.home-hero .slick-slide {
    height: auto !important;
    width: auto !important;
    transform: none !important;
}

.home-hero__viewport {
    position: absolute;
    inset: 0;
}

.home-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility .7s ease;
    pointer-events: none;
}

.home-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.home-hero__media {
    position: absolute;
    inset: 0;
    background: var(--hh-blue-dark) center / cover no-repeat;
    transform: scale(1.04);
    transition: transform 6.5s ease-out;
}

.home-hero__slide.is-active .home-hero__media {
    transform: scale(1);
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(1, 28, 45, 0.35) 0%, rgba(2, 91, 147, 0.55) 45%, rgba(2, 91, 147, 0.88) 100%),
        linear-gradient(90deg, rgba(0, 62, 115, 0.35), rgba(0, 62, 115, 0.15));
    pointer-events: none;
}

.home-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    min-height: inherit;
    padding: calc(var(--tf-header-height, 72px) + 40px) max(32px, calc((100% - 1200px) / 2)) 160px;
    text-align: left;
}

.home-hero__copy {
    width: min(820px, 100%);
    margin-bottom: 12px;
}

.home-hero__text,
.home-hero__title {
    margin: 0 0 28px;
    color: #fff;
    font-size: clamp(28px, 4.2vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 24px rgba(0, 20, 40, 0.35);
}

.home-hero__text p,
.home-hero__text h1,
.home-hero__text h2,
.home-hero__text h3,
.home-hero__text span,
.home-hero__text strong {
    color: inherit;
    font: inherit;
}

.home-hero__text p {
    margin: 0 0 0.4em;
}

.home-hero__text p:last-child {
    margin-bottom: 0;
}

.home-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: 6px;
    background: #fff;
    color: #005d9f !important;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.home-hero__cta:hover,
.home-hero__cta:focus-visible {
    background: #eaf3f8;
    color: #003e73 !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.home-hero__chrome {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 0 max(32px, calc((100% - 1200px) / 2)) 40px;
    pointer-events: none;
}

.home-hero__chrome > * {
    pointer-events: auto;
}

.home-hero__search {
    display: flex;
    align-items: stretch;
    width: min(640px, 100%);
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    box-sizing: border-box;
    box-shadow: 0 16px 40px rgba(0, 24, 48, 0.28);
}

.home-hero__search-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 56px;
    margin: 0;
    padding: 12px 18px;
    border: 0;
    background: #fff;
    color: #1d2a33;
    font: inherit;
    font-size: 16px;
    outline: none;
}

.home-hero__search-input::placeholder {
    color: #6b7c88;
}

.home-hero__search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 148px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    background: #c80c0f;
    color: #fff !important;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.home-hero__search-btn span,
.home-hero__search-btn i,
.home-hero__search-btn .fa-magnifying-glass,
.home-hero__search-btn svg {
    color: #fff !important;
    fill: #fff !important;
}

.home-hero__search-btn:hover {
    background: #a50a0c;
    color: #fff !important;
}

.home-hero__bars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(280px, 70%);
}

.home-hero__bar {
    position: relative;
    flex: 1 1 0;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    overflow: hidden;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.home-hero__bar-fill {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: #fff;
    border-radius: inherit;
}

.home-hero__bar.is-active .home-hero__bar-fill {
    animation: homeHeroBarFill var(--hh-autoplay, 6s) linear forwards;
}

.home-hero__bar.is-complete .home-hero__bar-fill {
    animation: none;
    transform: scaleX(1);
}

.home-hero.is-paused .home-hero__bar.is-active .home-hero__bar-fill {
    animation-play-state: paused;
}

@keyframes homeHeroBarFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.home-hero__fse,
#logo_fse.home-hero__fse {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 5vw, 72px);
    width: 100%;
    box-sizing: border-box;
    padding: 22px 24px;
    clip-path: none;
    background: #fff;
    border-radius: 0;
    border-bottom: 1px solid #e3eaf0;
    box-shadow: none;
}

.home-hero__fse a,
#logo_fse.home-hero__fse a {
    display: block;
    line-height: 0;
}

.home-hero__fse img,
#logo_fse.home-hero__fse img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: none;
}

.home-hero .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    #MainBanner.home-hero {
        height: 88svh;
        min-height: 620px;
    }

    .home-hero__content {
        padding: calc(var(--tf-header-height, 72px) + 32px) 24px 180px;
    }

    .home-hero__text,
    .home-hero__title {
        margin-bottom: 22px;
        font-size: clamp(24px, 7vw, 34px);
    }

    .home-hero__search {
        flex-direction: row;
    }

    .home-hero__search-btn {
        min-width: 52px;
        padding: 0 14px;
    }

    .home-hero__search-btn span {
        display: none;
    }

    .home-hero__fse img,
    #logo_fse.home-hero__fse img {
        height: 28px;
        max-width: 110px;
    }

    .home-hero__chrome {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__slide,
    .home-hero__media,
    .home-hero__bar-fill {
        transition: none !important;
        animation: none !important;
    }

    .home-hero__bar.is-active .home-hero__bar-fill,
    .home-hero__bar.is-complete .home-hero__bar-fill {
        transform: scaleX(1);
    }
}

/* Menus are appended to body: never clip suggestions inside the hero. */
.home-search-suggestions.ui-autocomplete {
    z-index: 100050;
    max-height: min(320px, 40vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 6px;
    border: 1px solid #d5e0ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 36, 64, .2);
    color: #1d2a33;
    font-family: Barlow, "Segoe UI", sans-serif;
    text-align: left;
}
.home-search-suggestions .ui-menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 0;
}
.home-search-suggestions .home-search-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 0;
    border-radius: 7px;
    font-size: 16px;
    line-height: 1.4;
    white-space: normal;
    cursor: pointer;
}
.home-search-suggestion__label { min-width: 0; overflow-wrap: anywhere; }
.home-search-suggestions .home-search-suggestion.ui-state-active {
    margin: 0;
    border: 0;
    background: #eaf3f8;
    color: #005d9f;
}
.home-search-suggestions mark {
    padding: 0;
    background: transparent;
    color: #005d9f;
    font-weight: 700;
}
.home-hero__search:focus-within {
    outline: 3px solid rgba(255, 255, 255, .6);
    outline-offset: 5px;
}
.home-hero :is(a, button):focus-visible {
    outline: 3px solid #fff;
    outline-offset: 5px;
}
@media (prefers-reduced-motion: reduce) {
    .home-hero__cta { transition: none; }
}
