
/* Slider wrapper */
.bh-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: inherit;
    /* keep site colors */
}

/* Maintain aspect ratio with graceful fallback */
.bh-slider__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 800;
    background: var(--bh-slider-bg, transparent);
}

@supports not (aspect-ratio: 1920 / 800) {
    .bh-slider__viewport::before {
        content: "";
        display: block;
        padding-bottom: 41.67%;
        /* 800/1920 */
    }
}

/* Slides */
.bh-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
}

.bh-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.bh-slide__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bh-slide__overlay {
    display: none;
    /* show image as-is, no overlay */
}

.bh-slide__content {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    /* vertical center only */
}

.bh-slide__inner {
    width: min(70ch, 90%);
    text-align: center;
    color: inherit;
    /* keep site colors */
}

.bh-slide__title,
.bh-slide__subtitle {
    color: #ff5e15;
    /* orange color */
    font-family: 'Poppins', sans-serif;
}

.bh-slide__inner--right {
    margin-left: auto;
    text-align: right;
}

.bh-slide__inner--left {
    margin-right: auto;
    text-align: left;
}

.bh-slide__title {
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.2;
    margin: 10px 0 0 0;
    font-weight: bold;
}

.bh-slide__subtitle {
    font-size: clamp(18px, 2.5vw, 28px);
    margin: 0 0 8px 0;
    font-weight: bold;
}

.bh-slide__actions {
    margin-top: 16px;
}

/* Navigation */
.bh-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.bh-slider__nav--prev {
    left: 12px;
}

.bh-slider__nav--next {
    right: 12px;
}

.bh-slider__nav:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .9);
    outline-offset: 2px;
}

/* Dots */
.bh-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.bh-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    border: 0;
    cursor: pointer;
}

.bh-slider__dot.is-active {
    background: rgba(255, 255, 255, .95);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .bh-slider__nav {
        display: none;
    }

    .bh-slide__actions .thm-btn {
        display: none;
    }

    .bh-slide__subtitle {
        display: none;
    }
}

@media (min-width: 1200px) {
    .bh-slide__inner {
        width: min(60ch, 70%);
    }
}

