/* Slideshow container */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Hide all slides by default */
.mySlides {
    display: none;
    position: relative;
    animation: fade 0.5s ease-in-out;
}

/* Show the active slide */
.mySlides.active {
    display: block;
}

/* Images in slides */
.mySlides img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Fade animation */
@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    padding: 0;
    color: white !important;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    border-radius: 3px;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Font Awesome 5 Free', Arial, sans-serif;
    border:0 none  !important
}

.prev::before {
    content: '\f053'; /* chevron-left - works for both FA4 and FA5 */
    font-weight: 900;
}

.next::before {
    content: '\f054'; /* chevron-right - works for both FA4 and FA5 */
    font-weight: 900;
}

/* Position the buttons */
.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Hover effect on buttons */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Dots/bullets container */
.dots-container {
    text-align: center;
    padding: 20px 0;
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Active dot and hover effect */
.dot.active, .dot:hover {
    background-color: #717171;
    transform: scale(1.2);
}

/* Slide number indicator */
.slide-number {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 0 0 0 5px;
}

/* Caption text */
.slide-caption {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .slideshow-container {
        max-width: 100%;
        margin: 10px;
    }
    
    .mySlides img {
        height: 250px;
    }
    
    .prev, .next {
        padding: 12px;
        font-size: 18px;
        margin-top: -25px;
    }
    
    .slide-number {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    .slide-caption {
        font-size: 13px;
        padding: 5px 8px;
    }
}

@media screen and (max-width: 480px) {
    .mySlides img {
        height: 200px;
    }
    
    .prev, .next {
        padding: 8px;
        font-size: 16px;
        margin-top: -20px;
    }
    
    .dot {
        height: 12px;
        width: 12px;
        margin: 0 3px;
    }
}

/* Loading animation for images */
.mySlides img {
    transition: opacity 0.3s ease;
}

.mySlides.loading img {
    opacity: 0.5;
}

/* Auto-play indicator */


/* Smooth hover effects */
.slideshow-container:hover .prev,
.slideshow-container:hover .next {
    opacity: 1;
}

.prev, .next {
    opacity: 0.7;
}

/* Touch-friendly improvements */
.slideshow-container {
    touch-action: pan-y;
}

/* Accessibility improvements */
.prev:focus, .next:focus, .dot:focus {
    outline: 2px solid #717171;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .prev, .next {
        background-color: rgba(0, 0, 0, 0.9);
        border: 2px solid white;
    }
    
    .dot {
        border: 2px solid #000;
    }
    
    .dot.active {
        background-color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mySlides,
    .dot,
    .prev,
    .next {
        transition: none;
    }
    
    @keyframes fade {
        from { opacity: 1; }
        to { opacity: 1; }
    }
}