/* assets/css/slider.css */

.sub-slider-container {
    position: relative;
    max-width: 100%;
    width: 98%;
    margin: 15px auto;
    background: transparent;
}

.s-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.s-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.s-slide {
    min-width: 100%;
}

.s-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


/* --- 2  Flipkart Style Progressive Dots --- */
.s-dots-wrapper {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Base style for all dots */
.s-dot {
    height: 5px;
    background: #e0e0e0; /* Inactive color */
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: width 0.3s ease;
    width: 8px; /* Default small round for inactive */
}

/* Active Capsule Style */
.s-dot.s-active {
    width: 35px; /* Active dot becomes a long capsule */
    background: #e0e0e0; /* Background stays light, inner bar fills it */
}

/* The Loading Bar inside the Capsule */
.s-dot::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #f4a51c; /* SubDukan Theme Color */
    border-radius: 10px;
}

/* Animation only for the active capsule */
.s-dot.s-active::after {
    width: 100%;
    transition: width 5s linear; /* Sync with SLIDE_TIME in JS */
}

/* Passed dots stay filled */
.s-dot.s-passed {
    width: 8px; /* Back to small round */
}
.s-dot.s-passed::after {
    width: 100%;
    transition: none;
}

/* Desktop View */
@media (min-width: 1200px) {
    .sub-slider-container {
        max-width: 1240px;
    }
    .s-slide img {
        height: 400px;
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .sub-slider-container {
        width: 94%;
    }
    .s-slide img {
        height: 200px;
    }
}