.ba-demo-wrapper {
    width: 100%;
    position: relative;
    font-family: 'Noto Sans Bengali', sans-serif;
}

.ba-demo-wrapper .container-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    padding: 32px 16px 48px;
}

.ba-demo-wrapper .ba-demo {
    width: 100%;
    max-width: 100%;
    position: relative;
}

.ba-demo-wrapper .swiper {
    width: 100%;
    height: auto; 
    min-height: 450px;
    border-radius: 20px;
    overflow: hidden;
    padding-bottom: 50px; 
}

.ba-demo-wrapper .swiper .swiper-wrapper { height: 100%; }
.ba-demo-wrapper .swiper .swiper-slide,
.ba-demo-wrapper .swiper .swiper-slide-duplicate {
    visibility: visible !important;
}


.ba-demo-wrapper .swiper .swiper-slide {
    height: auto; 
    display: flex;
    align-items: stretch;
}


.ba-demo-wrapper .ba-slide-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}


.ba-demo-wrapper .swiper .ba-slider {
    width: 100%;
    background: transparent;
    cursor: default;
    position: relative;
    overflow: hidden;
    background: #0b0e19;
    touch-action: none;
    flex-shrink: 0;
}


.ba-demo-wrapper .ba-slide-inner.no-testimonial .ba-slider {
    height: 450px;
    border-radius: 20px;
}


.ba-demo-wrapper .ba-slide-inner.has-testimonial .ba-slider {
    height: 350px;
    border-radius: 20px 20px 0 0;
}


.ba-demo-wrapper .ba-testimonial {
    padding: 24px 20px;
    text-align: center;
    background: #fdfdfd;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0 0 20px 20px;
}

.ba-demo-wrapper .ba-testi-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 12px;
    font-style: italic;
}

.ba-demo-wrapper .ba-testi-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.ba-demo-wrapper .swiper .swiper-slide:not(.swiper-slide-active) .ba-slider {
    cursor: default;
}

.ba-demo-wrapper .swiper-pagination-bullets .swiper-pagination-bullet { background: #a6a29f; opacity: 1; width: 12px; height: 12px; margin: 0 6px; }
.ba-demo-wrapper .swiper-pagination-bullets .swiper-pagination-bullet-active { background: #222222; width: 28px; border-radius: 999px; }

.ba-demo-wrapper .swiper .swiper-pagination {
    bottom: 0px !important;
}

.ba-demo-wrapper .carousel-controls {
    position: absolute;
    top: 50%; 
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    pointer-events: none;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.ba-demo-wrapper .carousel-prev,
.ba-demo-wrapper .carousel-next {
    pointer-events: auto;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: #25adb1;
    color: #ffffff;
    font-size: 30px;
    display: flex; 
    justify-content: center;
    align-items: center;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    z-index: 11;
    transition: all 0.3s ease;
}


.ba-demo-wrapper .carousel-prev span,
.ba-demo-wrapper .carousel-next span {
    display: block;
    line-height: 1;
}

.ba-demo-wrapper .carousel-prev:hover,
.ba-demo-wrapper .carousel-next:hover { opacity: 0.85; }

.ba-demo-wrapper .ba-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.ba-demo-wrapper .ba-before {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: polygon(
        0 0,
        calc(var(--pos, 50) * 1%) 0,
        calc(var(--pos, 50) * 1%) 100%,
        0 100%
    );
    backface-visibility: hidden;
    transform: translateZ(0);
    z-index: 1;
}

.ba-demo-wrapper .ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--pos, 50) * 1%);
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    pointer-events: none;
    z-index: 2;
}

.ba-demo-wrapper .ba-handle-line {
    width: 3px;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
}

.ba-demo-wrapper .ba-handle-grip {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    display: grid;
    place-items: center;
}

.ba-demo-wrapper .ba-handle-grip::before,
.ba-demo-wrapper .ba-handle-grip::after {
    content: "";
    position: absolute;
    display: block;
    width: 10px;
    height: 10px;
    border: 2px solid #1b1f2e;
    border-top: 0;
    border-left: 0;
    box-sizing: border-box;
}

.ba-demo-wrapper .ba-handle-grip::before {
    left: 8px;
    transform: rotate(135deg);
}
.ba-demo-wrapper .ba-handle-grip::after {
    right: 8px;
    transform: rotate(-45deg);
}

.ba-demo-wrapper .ba-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    appearance: none;
    background: transparent;
    cursor: ew-resize;
    outline: none;
    z-index: 2;
    pointer-events: none;
}

.ba-demo-wrapper .ba-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; }
.ba-demo-wrapper .ba-range::-moz-range-thumb { appearance: none; }
.ba-demo-wrapper .ba-range::-ms-thumb { appearance: none; }

.ba-demo-wrapper .ba-range:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: -2px;
}

.ba-demo-wrapper .ba-legend {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.ba-demo-wrapper .ba-legend span {
    position: absolute;
    top: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    color: #000000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.ba-demo-wrapper .ba-legend span:first-child { left: 12px; }
.ba-demo-wrapper .ba-legend span:last-child { right: 12px; }

@media (max-width: 600px) {
    .ba-demo-wrapper .ba-handle-grip {
        width: 38px;
        height: 38px;
    }
    
    .ba-demo-wrapper .carousel-prev, 
    .ba-demo-wrapper .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}