/**
 * Banner Slider Styles
 * Auto-sliding banner for homepage
 */

#banner-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
    margin-bottom: 0;
    background: #000000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Gradient Overlays for each slide */
.slide:nth-child(1) .slide-content {
    background: #000000;
}

.slide:nth-child(2) .slide-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide:nth-child(3) .slide-content {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.slide:nth-child(4) .slide-content {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Memorial slide specific styling */
.memorial-slide .slide-content {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.memorial-slide .slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.slide-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 40px 20px;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-text h2 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.slide-text p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.slide-btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow svg {
    width: 24px;
    height: 24px;
    color: white;
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

/* Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #banner-slider {
        height: 50vh;
        min-height: 350px;
        max-height: 600px;
    }

    .slide-text {
        max-width: 700px;
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    #banner-slider {
        height: 45vh;
        min-height: 300px;
        max-height: 500px;
    }

    .slide-text {
        max-width: 600px;
        padding: 25px 15px;
    }

    .slide-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-arrow.prev {
        left: 15px;
    }

    .slider-arrow.next {
        right: 15px;
    }

    .memorial-slide .slide-content {
        padding: 0;
    }
}

@media (max-width: 480px) {
    #banner-slider {
        height: 40vh;
        min-height: 280px;
        max-height: 400px;
    }

    .slide-text {
        max-width: 100%;
        padding: 20px 10px;
    }

    .slide-text p {
        margin-bottom: 20px;
    }

    .slide-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
    }

    .slider-dots {
        bottom: 15px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 24px;
    }

    .memorial-slide .slide-content {
        padding: 0;
    }
}
