

/* ==========================================================================
 * Slideshow Component Styles - SEO Optimized with Original Images
 * ========================================================================== */

/* Performance & SEO Optimizations */
.slideshow-container {
    contain: layout style paint;
    will-change: transform;
}

.slide {
    backface-visibility: hidden;
    transform: translateZ(0);
}

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

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

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

/* Ultra-Lightweight SVG Pattern Backgrounds (SEO & Performance Optimized) */


.slide-1 {
    background-color: #3730a3; /* Deep indigo */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.slide-2 {
    background-color: #7c3aed; /* Vibrant purple */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.slide-3 {
    background-color: #0369a1; /* Ocean blue */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.1' fill='none'/%3E%3Ccircle cx='50' cy='50' r='25' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.1' fill='none'/%3E%3Ccircle cx='50' cy='50' r='10' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.1' fill='none'/%3E%3C/svg%3E");
}

/* Slide Image Container - Keep your original images */
.slide-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Specific slide images with professional positioning */
.slide-1 .slide-image { 
    background-image: url('/assets/images/headerbackground/optimized/webp/bgslide1.webp');
    background-position: center 35%;
}

.slide-2 .slide-image { 
    background-image: url('/assets/images/headerbackground/optimized/webp/bgslide2.webp');
    background-position: center 40%;
}

.slide-3 .slide-image { 
    background-image: url('/assets/images/headerbackground/optimized/webp/bgslide3.webp');
    background-position: center 30%;
}

/* Enhanced overlay for better text readability */
.slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Subtle dark overlay */
    z-index: 1;
}

/* Slide Content Container */
.slide-content-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3; /* Increased z-index to be above both background and image */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    text-align: center;
}

/* Slide Content - Clean Professional Style */
.slide-content {
    /* Remove all backgrounds, borders, and shadows */
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    
    /* Text styling */
    color: #ffffff;
    text-align: center;
    max-width: 900px; /* Wider for better readability */
    padding: 0 40px;
}

/* Professional Heading */
.slide-content h2 {
    font-size: 3.5rem; /* Larger for impact */
    font-weight: 700; /* Bold but not too heavy */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    letter-spacing: -0.5px; /* Tighter letter spacing for elegance */
}

/* Professional Paragraph */
.slide-content p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-weight: 400;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Professional CTA Button */
.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: #ffffff; /* Clean white background */
    color: #1a365d; /* Dark blue text for contrast */
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px; /* Subtle rounded corners */
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.cta-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #1a365d;
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

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

/* Professional Navigation Dots */
.slide-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slide-dot:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.slide-dot:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Hide radio inputs */
.slideshow-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Active slide styling */
#slide1:checked ~ .slides .slide-1,
#slide2:checked ~ .slides .slide-2,
#slide3:checked ~ .slides .slide-3 {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

/* 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: #ffffff;
    transform: scale(1.3);
}

/* Clean fade-in animation for content */
.slide-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

#slide1:checked ~ .slides .slide-1 .slide-content > *,
#slide2:checked ~ .slides .slide-2 .slide-content > *,
#slide3:checked ~ .slides .slide-3 .slide-content > * {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for professional feel */
#slide1:checked ~ .slides .slide-1 .slide-content h2,
#slide2:checked ~ .slides .slide-2 .slide-content h2,
#slide3:checked ~ .slides .slide-3 .slide-content h2 {
    transition-delay: 0.3s;
}

#slide1:checked ~ .slides .slide-1 .slide-content p,
#slide2:checked ~ .slides .slide-2 .slide-content p,
#slide3:checked ~ .slides .slide-3 .slide-content p {
    transition-delay: 0.5s;
}

#slide1:checked ~ .slides .slide-1 .slide-content .cta-button,
#slide2:checked ~ .slides .slide-2 .slide-content .cta-button,
#slide3:checked ~ .slides .slide-3 .slide-content .cta-button {
    transition-delay: 0.7s;
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: opacity 0.1s ease;
    }
    
    .slide-content > * {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .cta-button {
        transition: none;
    }
    
    .slide-dot {
        transition: none;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .slideshow-container {
        height: 550px;
    }
    
    .slide-content h2 {
        font-size: 3rem;
    }
    
    .slide-content p {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .slideshow-container {
        height: 500px;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.2rem;
    }
    
    .slide-content {
        padding: 0 30px;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .slideshow-container {
        height: 450px;
    }
    
    .slide-content h2 {
        font-size: 2.2rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .slide-content {
        padding: 0 20px;
    }
    
    .cta-button {
        padding: 14px 32px;
        font-size: 1rem;
    }
    
    .slide-dot {
        width: 10px;
        height: 10px;
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 28px;
    }
    
    .slide-image::after {
        background: rgba(0, 0, 0, 0.4); /* Darker overlay for mobile readability */
    }
}

/* Fallback for image loading */
.slide-image {
    background-color: transparent; /* Remove fallback since we have SVG backgrounds */
}



/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* Ensure dots are focusable and have proper focus styles */
.slide-dot {
    cursor: pointer;
    outline: none;
}

.slide-dot:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}




.slide-1 {
    background-color: #1e40af; /* Deep royal blue */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.slide-2 {
    background-color: #2563eb; /* Bright corporate blue */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.slide-3 {
    background-color: #1d4ed8; /* Professional navy blue */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.1' fill='none'/%3E%3Ccircle cx='50' cy='50' r='25' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.1' fill='none'/%3E%3Ccircle cx='50' cy='50' r='10' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.1' fill='none'/%3E%3C/svg%3E");
}