/* Image Slider / Carousel Styles */

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Testimonials Slider */
.testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.testimonial-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.testimonial-info p {
    margin: 0.3rem 0 0;
    color: var(--text-lighter);
    font-size: 0.95rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.testimonial-arrow:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Image Gallery Grid */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.gallery-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
}

/* Partners/Sponsors Slider */
.partners-slider {
    overflow: hidden;
    padding: 3rem 0;
    background: var(--bg-light);
}

.partners-track {
    display: flex;
    gap: 4rem;
    animation: scroll 30s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    height: 80px;
    width: 180px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    transition: var(--transition);
}

.partner-logo:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover img {
    opacity: 1;
}

/* Program Images Enhancement */
.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .program-image img {
    transform: scale(1.05);
}

/* Stats Counter Animation Enhancement */
.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.team-member {
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--text-light);
    line-height: 1.6;
}

/* Before/After Slider for Impact */
.before-after-slider {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.after-image {
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.3s ease;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    cursor: ew-resize;
    z-index: 10;
}

.slider-handle::before {
    content: '⟷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial-text {
        font-size: 1.1rem;
    }

    .testimonial-author {
        flex-direction: column;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }

    .partner-logo {
        height: 60px;
        width: 140px;
    }

    .team-photo {
        width: 150px;
        height: 150px;
    }

    .before-after-slider {
        height: 350px;
    }
}

