/* Slider Container */
.wbs-slider-container {
    position: relative;
    /* NAYA: Max width ab variable se control hoga (default 100%) */
    max-width: var(--wbs-max-width, 100%);
    
    /* NAYA: Margin controls (auto = center) */
    margin: var(--wbs-margin-top, 0px) auto var(--wbs-margin-bottom, 0px);
    
    overflow: hidden; /* Sabse zaroori */
    
    /* NAYE: CSS Variables se Border aur Radius control */
    border-radius: var(--wbs-radius, 8px); 
    border: var(--wbs-border-size, 0px) solid var(--wbs-border-color, #dddddd);
    
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Optional */
}

/* Slider Wrapper (jo slides ko hold karta hai) */
.wbs-slider-wrapper {
    display: flex;
    /* NAYA: Transition speed ko variable se control karein */
    transition: transform var(--wbs-transition-speed, 500ms) ease-in-out; 
}

/* Har ek Slide */
.wbs-slide {
    min-width: 100%; /* Har slide container ki 100% width lega */
    box-sizing: border-box;
}

/* NAYA: Link ke liye style (taaki image pura area le) */
.wbs-slide a {
    display: block;
    line-height: 0; /* Image links ke beech extra space hatane ke liye */
}

.wbs-slide img {
    width: 100%;
    display: block;
    /* NAYA: Image par bhi Border Radius lagana (taaki corners smooth rahein) */
    border-radius: var(--wbs-radius, 8px); 
    /* aspect-ratio aur object-fit ab inline style se aayenge */
}

/* Next & Previous Buttons */
.wbs-prev,
.wbs-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 12px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 0 3px 3px 0;
    user-select: none;
    transition: background-color 0.3s ease;
    z-index: 10; /* Dots ke upar rahein */
    
    /* YEH HAI FIX: !important jodkar specificity badhai gayi hai, taaki arrow hide ho sake */
    display: var(--wbs-show-arrows, block) !important;
}

.wbs-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.wbs-prev:hover,
.wbs-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Navigation Dots */
.wbs-dots-container {
    text-align: center;
    padding: 10px 0;
    position: absolute;
    bottom: 10px;
    width: 100%;
    z-index: 10; /* Buttons ke upar rahein (agar overlap ho) */
    
    /* NAYA: Visibility ko arrows ke saath link karein */
    display: var(--wbs-show-dots, block) !important;
}

.wbs-dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.wbs-dot.active,
.wbs-dot:hover {
    background-color: rgba(255, 255, 255, 0.9);
}


/* NAYA: VISIBILITY CONTROLS */
/* Default: .wbs-show-all hamesha visible rahega */

/* Sirf Desktop: Mobile par hide karein (767px se neeche) */
@media (max-width: 767px) {
    .wbs-show-desktop {
        display: none !important;
    }
}

/* Sirf Mobile: Desktop par hide karein (768px se upar) */
@media (min-width: 768px) {
    .wbs-show-mobile {
        display: none !important;
    }
}