/* Universal Slideshow Styles - Works on all devices */

/* Base Slideshow Container */
.slideshow-container {
    position: relative !important;
    width: 100% !important;
    height: 550px !important;
    overflow: hidden !important;
    margin-bottom: 30px !important;
}

/* Slide Styling */
.slide {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    transition: opacity 0.7s ease-in-out !important;
}

/* Animation delays for slides */
.slide.active {
    opacity: 1 !important;
    z-index: 2 !important;
}

/* Images inside slides */
.slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Slide overlay for better text visibility */
.slide::before {
    content: '';
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.3) !important;
    z-index: 1 !important;
}

/* Slide content positioning */
.slide-content {
    position: absolute !important;
    bottom: 20% !important;
    left: 10% !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important;
    z-index: 2 !important;
}

/* Text styling */
.slide-title {
    font-size: 24px !important;
    margin-bottom: 10px !important;
}

.slide-description {
    font-size: 16px !important;
    max-width: 600px !important;
}

/* Animation for slideshow */
/* No keyframes needed; JS toggles the slide states */

/* Responsive adjustments */
@media (max-width: 768px) {
    .slideshow-container {
        height: 400px !important;
    }
    
    .slide-content {
        bottom: 10% !important;
        left: 5% !important;
    }
    
    .slide-title {
        font-size: 20px !important;
    }
    
    .slide-description {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        height: 300px !important;
    }
    
    .slide-content {
        bottom: 0 !important;
        left: 0 !important;
        padding: 15px !important;
        width: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
    }
}
