/**
 * Modern Testimonials Section Styles
 * Carousel-based testimonials with student success stories
 * Created: December 2024
 */

/* ============================================
   Testimonials Section Base
   ============================================ */
.testimonials-modern-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
}

/* Section Title */
.testimonials-modern-section .section-title {
    margin-bottom: 60px;
}

.testimonials-modern-section .section-subtitle {
    display: inline-block;
    color: #f77112;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.testimonials-modern-section .title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.3;
}

.testimonials-modern-section .section-description {
    font-size: 1.1rem;
    color: #718096;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   Testimonials Carousel
   ============================================ */
.testimonials-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 60px;
}

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

.testimonial-slide {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

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

/* ============================================
   Testimonial Card
   ============================================ */
.testimonial-card {
    background: #ffffff;
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* Quote Icon */
.quote-icon {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #f7711215;
    opacity: 0.5;
}

/* Student Info */
.student-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.student-image {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f77112;
    flex-shrink: 0;
}

.student-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    background: #0c8b51;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
}

.verified-badge i {
    color: #ffffff;
    font-size: 0.75rem;
}

.student-details {
    flex: 1;
}

.student-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.student-class {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 10px;
}

.student-achievement {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.achievement-badge,
.score-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.achievement-badge {
    background: linear-gradient(135deg, #f7711215 0%, #f7711210 100%);
    color: #f77112;
}

.achievement-badge i {
    font-size: 0.9rem;
}

.score-badge {
    background: linear-gradient(135deg, #0c8b5115 0%, #0c8b5110 100%);
    color: #0c8b51;
}

.score-badge i {
    font-size: 0.9rem;
}

/* Rating */
.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: #f59e0b;
    font-size: 1.1rem;
}

/* Testimonial Text */
.testimonial-text {
    margin-bottom: 20px;
}

.testimonial-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    font-style: italic;
}

/* Subject Tag */
.subject-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #718096;
    font-weight: 600;
}

.subject-tag i {
    color: #f77112;
}

/* ============================================
   Carousel Controls
   ============================================ */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #2d3748;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: #f77112;
    color: #ffffff;
    border-color: #f77112;
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

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

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: #cbd5e0;
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #f77112;
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   Trust Indicators
   ============================================ */
.trust-indicators {
    background: linear-gradient(135deg, #07294d 0%, #0a3d6b 100%);
    border-radius: 25px;
    padding: 50px 40px;
    color: #ffffff;
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.trust-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #ffffff;
}

.stat-content h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #ffffff;
}

.stat-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: #f77112;
    color: #ffffff;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-section .cta-btn:hover {
    background: #d65d0a;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(247, 113, 18, 0.3);
}

/* ============================================
   Background Decoration
   ============================================ */
.testimonials-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.decoration-circle.circle-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f77112 0%, #d65d0a 100%);
    top: -200px;
    right: -200px;
}

.decoration-circle.circle-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #0c8b51 0%, #0a7043 100%);
    bottom: -150px;
    left: -150px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .testimonials-modern-section {
        padding: 80px 0;
    }

    .testimonials-modern-section .title {
        font-size: 2rem;
    }

    .testimonials-carousel-wrapper {
        padding: 0 50px;
    }

    .testimonial-card {
        padding: 40px 30px;
    }

    .trust-stats {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .testimonials-modern-section {
        padding: 60px 0;
    }

    .testimonials-modern-section .title {
        font-size: 1.75rem;
    }

    .testimonials-modern-section .section-description {
        font-size: 1rem;
    }

    .testimonials-carousel-wrapper {
        padding: 0 40px;
        margin-bottom: 40px;
    }

    .testimonial-card {
        padding: 30px 25px;
    }

    .quote-icon {
        font-size: 2rem;
        top: 20px;
        right: 25px;
    }

    .student-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .student-image {
        width: 70px;
        height: 70px;
    }

    .student-name {
        font-size: 1.25rem;
    }

    .student-class {
        font-size: 0.95rem;
    }

    .student-achievement {
        justify-content: center;
    }

    .testimonial-text p {
        font-size: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .trust-indicators {
        padding: 40px 25px;
        border-radius: 20px;
    }

    .trust-stats {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .trust-stat-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .stat-content h4 {
        font-size: 1.75rem;
    }

    .cta-section h3 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-section .cta-btn {
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    .testimonials-modern-section {
        padding: 50px 0;
    }

    .testimonials-modern-section .title {
        font-size: 1.5rem;
    }

    .testimonials-carousel-wrapper {
        padding: 0 30px;
    }

    .testimonial-card {
        padding: 25px 20px;
    }

    .student-image {
        width: 60px;
        height: 60px;
    }

    .student-name {
        font-size: 1.15rem;
    }

    .testimonial-text p {
        font-size: 0.95rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .trust-indicators {
        padding: 30px 20px;
    }

    .stat-content h4 {
        font-size: 1.5rem;
    }

    .cta-section h3 {
        font-size: 1.25rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .testimonials-decoration,
    .carousel-controls,
    .carousel-dots,
    .cta-section {
        display: none;
    }

    .testimonial-card {
        box-shadow: none;
        border: 1px solid #e2e8f0;
        page-break-inside: avoid;
    }

    .testimonial-slide {
        display: block !important;
        page-break-after: always;
    }
}
