.banner-carousel {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 320px;
    overflow: hidden;
    background: var(--banner-bg);
}

.banner-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-carousel__slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.banner-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.banner-carousel__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-carousel__controls {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.banner-carousel__button,
.banner-carousel__dot {
    border: 0;
    cursor: pointer;
}

.banner-carousel__button {
    padding: 10px 14px;
    background: var(--banner-button-bg);
    color: var(--banner-button-text-color);
}

.banner-carousel__dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-carousel__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    background: var(--banner-dot-bg);
}

.banner-carousel__dot.is-active {
    background: var(--banner-dot-active-bg);
}

@media (max-width: 767px) {
    .banner-carousel {
        min-height: 240px;
    }

    .banner-carousel__controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}
