
/* ==========================================================================
 * 17.0 Slideshow Component Styles
 * Contains all visual styling for the dynamic slideshow component including:
 * - Main container and layout structure
 * - Slide transitions and visibility control
 * - Background images and overlay effects
 * - Content positioning and styling
 * - Navigation controls and interactive elements
 * ==========================================================================
 */

/* Main Container */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

/* Static Background with Overlay */
.static-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/headerbackground/optimized/webp/slide2.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Background Overlay */
.background-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent black overlay */
    z-index: 2;
}

/* Slides Container */
.slides {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* Individual Slides */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

/* Slide Image Container */
.slide-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 2;
    pointer-events: none;
}

/* Specific slide images */
.slide-1 .slide-image { background-image: url('/assets/images/headerbackground/optimized/webp/bgslide1.webp'); }
.slide-2 .slide-image { background-image: url('/assets/images/headerbackground/optimized/webp/bgslide2.webp'); }
.slide-3 .slide-image { background-image: url('/assets/images/headerbackground/optimized/webp/bgslide3.webp'); }

/* Slide Content Container */
.slide-content-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    bottom:60px;
}

/* Slide Content */
.slide-content {
    background-color: transparent;
    padding: 2rem;
    border-radius: 10px;
    color: white;
    text-align: center;
    max-width: 80%;
    position: relative;
}

/* Make sure links are clickable */
.cta-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
}

/* Navigation Controls Container */
.slide-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 5;
}

/* Navigation Dots */
.slide-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Hide radio inputs but keep them accessible */
.slideshow input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Active slide styling */
#slide1:checked ~ .slides .slide:nth-child(1),
#slide2:checked ~ .slides .slide:nth-child(2),
#slide3:checked ~ .slides .slide:nth-child(3) {
    opacity: 1;
    z-index: 1;
}

/* Active dot styling */
#slide1:checked ~ .slide-controls label[for="slide1"],
#slide2:checked ~ .slide-controls label[for="slide2"],
#slide3:checked ~ .slide-controls label[for="slide3"] {
    background-color: white;
}
