/* Slider Container ko adjust karein taaki controls sahi dikhein */
.custom-slider-container {
    width: 100%;
    position: relative;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 0px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.mySlides {
    display: none;
    position: relative;
    overflow: hidden;
    height: 500px; /* Default height for Desktop */
}

/* Image styling to fill container */
.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute; /* Image position center karne ke liye */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoomInOut 8s infinite alternate;
}

/* Modern Fade + Slide Animation */
.animate-slide {
    animation-name: slideFade;
    animation-duration: 1.2s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideFade {
    from {
        opacity: 0;
        transform: scale(1.1) translateX(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* Background Zoom Animation */
@keyframes zoomInOut {
    from { transform: translate(-50%, -50%) scale(1); }
    to { transform: translate(-50%, -50%) scale(1.1); }
}

/* Caption Animation (Fixed positioning) */
.caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 35, 126, 0.8); /* Dark Blue matching theme */
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: fadeInUp 1s ease;
    z-index: 10; /* Text image ke upar dikhe */
    max-width: 90%; /* Mobile par correct size */
    text-align: center;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 30px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Arrow Buttons Modern Look (Fixed Horizontal alignment) */
.prev, .next {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #1a237e; /* Dark Blue icon */
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border: none;
    z-index: 10; /* Buttons image ke upar dikhein */
}

/* Horizontal positions fixed */
.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.prev:hover, .next:hover {
    background: #2196f3;
    color: white;
}

/* Dot Navigation indicators (Fixed position and look) */
.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #2196f3;
}

/* Modern looking dots container at bottom */
.custom-slider-container .dots-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

/* Mobile Responsive adjustments */
@media screen and (max-width: 768px) {
    .custom-slider-container {
        border-radius: 0px; /* Slightly smoother corners on mobile */
    }

    .mySlides {
        height: 250px; /* Reduced height for mobile */
    }

    .caption {
        bottom: 20px;
        font-size: 14px;
        padding: 8px 15px;
    }

    /* Smaller buttons on mobile to not cover the image */
    .prev, .next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    /* Fixed mobile dots position */
    .custom-slider-container .dots-container {
        bottom: 10px;
    }
    
    .dot {
        height: 8px;
        width: 8px;
        margin: 0 3px;
    }
}