/* ===== Mitek Banner Slider ===== */
.bs-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    --bs-speed: 600ms; /* overridden inline per slider */
}

.bs-track {
    display: flex;
    transition: transform var(--bs-speed) ease;
    will-change: transform;
}

.bs-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.bs-slide a,
.bs-slide picture {
    display: block;
}

.bs-slide img {
    display: block;
    width: 100%;
    height: auto;
}

/* ----- Fade mode ----- */
.bs-slider.bs-fade .bs-track {
    display: grid; /* stack all slides in one cell; height follows the image */
    transform: none !important;
    transition: none;
}

.bs-slider.bs-fade .bs-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--bs-speed) ease, visibility 0s linear var(--bs-speed);
}

.bs-slider.bs-fade .bs-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transition: opacity var(--bs-speed) ease, visibility 0s;
}

/* Before JS runs (or if it fails), only show the first slide */
.bs-slider:not(.bs-ready) .bs-slide ~ .bs-slide {
    display: none;
}

/* ----- Arrows ----- */
.bs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    z-index: 2;
    transition: background .2s;
}

.bs-arrow:hover {
    background: rgba(0, 0, 0, .8);
}

.bs-prev { left: 3%; }
.bs-next { right: 3%; }

/* ----- Dots ----- */
.bs-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.bs-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    background: #bbb;
    cursor: pointer;
}

.bs-dot.active {
    background: #fff;
    border-color: #555;
}

@media (max-width: 767px) {
    .bs-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .bs-dot {
        width: 10px;
        height: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bs-track,
    .bs-slider.bs-fade .bs-slide {
        transition-duration: 0s !important;
    }
}
