/* Professional Slideshow - Inspired by W3Schools */
.hero-slideshow-section {
    position: relative;
    overflow: hidden;
    margin-top: -80px; /* Counteract page-content padding-top */
    padding-top: 80px; /* Add back the space needed for fixed nav */
}

/* Slideshow container */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    background: linear-gradient(135deg, #183661 0%, #2c5aa0 100%);
}

/* Hide slides by default */
.hero-slide {
    display: none;
    position: relative;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Show active slide */
.hero-slide.active {
    display: block;
}

/* Slide overlay for text readability */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(24, 54, 97, 0.85) 0%, 
        rgba(44, 92, 160, 0.7) 50%, 
        rgba(24, 54, 97, 0.85) 100%);
    z-index: 1;
}

/* Slide content */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    width: 90%;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.slide-content h3 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: white;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

/* CTA buttons */
.slide-cta {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.slide-cta .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.slide-cta .btn-primary {
    background: #28a745;
    color: white;
}

.slide-cta .btn-primary:hover {
    background: #218838;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.slide-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    margin-left: 1rem;
}

.slide-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.music-bowl-teaser {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 1rem 0 0 0;
    font-style: italic;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Navigation arrows */
.slide-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -35px;
    padding: 20px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: all 0.3s ease;
    border-radius: 0 8px 8px 0;
    user-select: none;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 3;
    border: none;
}

.slide-nav:hover {
    background: rgba(0, 0, 0, 0.6);
    color: #28a745;
}

/* Position the "next button" to the right */
.slide-nav.next {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.slide-nav.prev {
    left: 0;
}

/* Slide indicators/dots */
.slide-indicators {
    text-align: center;
    position: absolute;
    bottom: 30px;
    width: 100%;
    z-index: 3;
}

.slide-dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slide-dot.active,
.slide-dot:hover {
    background-color: #28a745;
    border-color: white;
    transform: scale(1.2);
}

/* Slide number indicator */
.slide-number {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    padding: 8px 12px;
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

/* Fade animation */
.hero-slide {
    animation-name: slideshow-fade;
    animation-duration: 1s;
}

@keyframes slideshow-fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Individual slide backgrounds */
.hero-slide.slide-foundation {
    background-image: url('../images/mountain.png');
}

.hero-slide.slide-teacher {
    background-image: url('../images/teacher_of_year_bg.png');
}

.hero-slide.slide-connected {
    background-image: url('../images/stay_connected.png');
}

.hero-slide.slide-library {
    background-image: url('../images/music_library_0001.png');
}

/* Search section below slideshow */
.hero-search-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
}

.hero-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.site-search {
    display: flex;
    gap: 1rem;
    align-items: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.site-search input[type="search"] {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    outline: none;
    background: transparent;
}

.site-search input[type="search"]::placeholder {
    color: #666;
}

.site-search button {
    background: #28a745;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.site-search button:hover {
    background: #218838;
    transform: scale(1.05);
}

.welcome-text {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-slide {
        min-height: 60vh;
        background-attachment: scroll;
    }
    
    .slide-content {
        padding: 1rem;
        width: 95%;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
    
    .slide-content h3 {
        font-size: 1.2rem;
    }
    
    .slide-cta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .slide-cta .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .slide-cta .btn-secondary {
        margin-left: 0;
    }
    
    .slide-nav {
        padding: 15px;
        font-size: 18px;
        margin-top: -25px;
    }
    
    .site-search {
        flex-direction: column;
        padding: 1rem;
        border-radius: 20px;
    }
    
    .site-search input[type="search"],
    .site-search button {
        width: 100%;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .hero-slide {
        min-height: 50vh;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content h3 {
        font-size: 1.1rem;
    }
    
    .slide-nav {
        padding: 12px;
        font-size: 16px;
    }
    
    .slide-indicators {
        bottom: 20px;
    }
    
    .slide-dot {
        height: 12px;
        width: 12px;
        margin: 0 3px;
    }
}
