/* MAIN WRAPPER */
.bt-mobile-hero-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* HERO CONTAINER */
#bt-mobile-hero.bt-mobile-hero {
    position: relative;
    width: 100%;
    height: 68vh;
    max-height: 560px;
    min-height: 360px;
    overflow: hidden;
    color: #ffffff;
    font-family: inherit;
}

/* SLIDES */
#bt-mobile-hero .bt-mobile-hero__slides {
    position: absolute;
    inset: 0;
}

/* Each slide uses the image as a background */
#bt-mobile-hero .bt-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 5%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

#bt-mobile-hero .bt-slide.is-active {
    opacity: 1;
}

/* OVERLAY: text block sitting over the image */
#bt-mobile-hero .bt-mobile-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1.25rem 1.75rem;
    /* remove gradient – let the image speak */
    background: none;
}

/* TITLE & SUBTITLE */
#bt-mobile-hero .bt-mobile-hero__title {
    margin: 0 0 0.35rem;
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
}

#bt-mobile-hero .bt-mobile-hero__subtitle {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    color: #ffffff;
}

/* SEARCH UNDER HERO */
.bt-mobile-hero-search {
    margin: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: #ffffff;
}

/* Flatten corners on search form under hero */
.bt-mobile-hero-search .lp-search-bar,
.bt-mobile-hero-search form,
.bt-mobile-hero-search .custom-lp-search-form,
.bt-mobile-hero-search .form-group,
.bt-mobile-hero-search .input-group,
.bt-mobile-hero-search input,
.bt-mobile-hero-search select,
.bt-mobile-hero-search button {
    border-radius: 0 !important;
}

/* MOBILE TUNING */
@media (max-width: 991px) {
    #bt-mobile-hero.bt-mobile-hero {
        height: 70vh;
        max-height: 560px;
        min-height: 380px;
    }

    #bt-mobile-hero .bt-slide {
        background-position: center 0%;
    }
}

/* Slight tweaks for very small phones */
@media (max-width: 480px) {
    #bt-mobile-hero.bt-mobile-hero {
        height: 72vh;
        max-height: 580px;
        min-height: 380px;
    }

    #bt-mobile-hero .bt-mobile-hero__title {
        font-size: 1.6rem;
    }

    #bt-mobile-hero .bt-mobile-hero__subtitle {
        font-size: 0.95rem;
    }
}
