/* ====== TESTIMONIALS CAROUSEL STYLES ====== */

.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonials-carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.testimonials-carousel {
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
}

.testimonial-card {
    flex: 0 0 calc(50% - 15px);
    min-width: calc(50% - 15px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.parent-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.parent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content blockquote {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    flex-grow: 1;
}

.testimonial-info {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-info .name {
    font-weight: 600;
    font-size: 18px;
    color: #fff;
    margin: 0 0 5px 0;
}

.testimonial-info .course {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.2);
    border: 2px solid rgba(168, 85, 247, 0.5);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
    background: rgba(168, 85, 247, 0.4);
    border-color: rgba(168, 85, 247, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

.carousel-arrow-left {
    left: 0;
}

.carousel-arrow-right {
    right: 0;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

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

.carousel-dot:hover {
    background: rgba(168, 85, 247, 0.5);
    border-color: rgba(168, 85, 247, 0.7);
}

.carousel-dot.active {
    background: rgba(168, 85, 247, 0.8);
    border-color: rgba(168, 85, 247, 1);
    width: 30px;
    border-radius: 6px;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .testimonials-carousel-container {
        padding: 0 50px;
    }
    
    .carousel-arrow {
        width: 45px;
        height: 45px;
    }
    
    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .testimonials-carousel-container {
        padding: 0 45px;
    }
    
    .testimonials-track {
        gap: 20px;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 25px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .parent-avatar {
        width: 60px;
        height: 60px;
    }
    
    .testimonial-content blockquote {
        font-size: 15px;
    }
    
    .testimonial-info .name {
        font-size: 16px;
    }
    
    .carousel-dots {
        margin-top: 30px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-dot.active {
        width: 25px;
    }
}

@media (max-width: 480px) {
    .testimonials-carousel-container {
        padding: 0 40px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    
    .carousel-arrow svg {
        width: 16px;
        height: 16px;
    }
    
    .parent-avatar {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }
    
    .testimonial-content blockquote {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .testimonial-info .name {
        font-size: 15px;
    }
    
    .testimonial-info .course {
        font-size: 13px;
    }
    
    .carousel-dots {
        gap: 8px;
        margin-top: 25px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .carousel-dot.active {
        width: 20px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .carousel-arrow {
        background: rgba(168, 85, 247, 0.3);
    }
    
    .testimonial-card:hover {
        transform: none;
    }
}

/* Smooth scrolling for touch devices */
@supports (-webkit-overflow-scrolling: touch) {
    .testimonials-carousel {
        -webkit-overflow-scrolling: touch;
    }
}
