/* anybanner.css */
.banner-slideshow-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto ;
}

.slides {
    width: 100%;
    position: relative;
}

.slide {
    display: none;
    width: 100%;
    transition: opacity 1s ease-in-out;
    opacity: 0;
     /* Centering techniques */
    margin-left: auto;     /* Horizontal centering */
    margin-right: auto;    /* Horizontal centering */
}

.slide.active {
    display: block;
    opacity: 1;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hide the desktop image on mobile and vice versa */
.slide .desktop-image {
    display: none;
}

.slide .mobile-image {
    display: block;
}

/* Show desktop images on larger screens */
@media (min-width: 768px) {
    .slide .desktop-image {
        display: block;
    }

    .slide .mobile-image {
        display: none;
    }
}

/* Navigation - hidden by default */
.slideshow-navigation {
    display: none !important;
}

/* Navigation styling (if ever needed) */
.prev-arrow, .next-arrow {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    margin: 0 5px;
    border-radius: 4px;
}

.slide-dots {
    display: flex;
    justify-content: center;
    margin: 0 10px;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #717171;
}
.slide img {
    width: 25%;
    height: auto;
    display: block;
    border: 4px solid darkblue;  /* Added border to images */
    border-radius: 25px;  /* Added border radius to images */
    box-sizing: border-box;  /* Ensures border is included in the element's total width and height */
}
/* Updated Mobile Banner CSS */
@media (max-width: 767px) {
    .slide img {
        width: 100%; /* Full width on mobile */
        height: auto;
        max-height: 500px; /* Optional: set a maximum height */
        object-fit: cover; /* Ensures image covers the area without distortion */

        /* Enhanced image styling */
        border: 6px solid darkblue;
        border-radius: 15px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Optional subtle shadow */
    }

    .slide .mobile-image {
        display: block;
        width: 50%;
        margin: 0 auto; /* Center the image */
    }

    .banner-slideshow-container {
        width: 100%;
        padding: 0 10px; /* Optional: add some padding */
    }
}

/* Desktop Styling */
@media (min-width: 768px) {
    .slide img {
        width: 25%;
        height: auto;
        border: 4px solid darkblue;
        border-radius: 25px;
    }
}

/* Responsive Image Container */
.slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
