/* Modern Scrolling Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: #f8f9fa;
    position: relative;
    overflow: visible;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    text-align: center;
}

.testimonials-header {
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.testimonials-header.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.testimonials-title {
    font-size: 2.8rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 15px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

.testimonials-subtitle {
    font-size: 1.4rem;
    color: #666;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.testimonials-grid-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px 60px 0 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Testimonial Card */
.testimonial-card {
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.5), rgba(248, 249, 250, 0.1));
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-top: 2px solid rgba(226, 232, 240, 1);
    border-radius: 16px;
    padding: 32px;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.testimonial-card:hover {
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.6), rgba(248, 249, 250, 0.2));
    transform: translateY(-2px) scale(1.02);
    z-index: 10;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
    background: #f8f9fa;
    padding: 8px;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

/* Special styling for Hearne ISD logo visibility */
.testimonial-card[data-school="hearne"] .testimonial-avatar {
    background: #ffffff;
    border: 2px solid #ddd;
}

/* Play icon for video testimonials */
.testimonial-play-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(74, 144, 226, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-play-icon {
    opacity: 1;
    transform: scale(1.1);
}

.testimonial-info {
    flex: 1;
}

.testimonial-school {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.2;
}

.testimonial-name {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 1160px) {
    .testimonials {
        padding: 80px 0;
    }
    
    .testimonials-title {
        font-size: 2.4rem;
    }
    
    .testimonials-subtitle {
        font-size: 1.2rem;
    }
    
    .testimonials-grid-container {
        padding: 40px 30px 0 30px;
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .testimonials-title {
        font-size: 2.6rem;
    }
    
    .testimonials-grid-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonials-title {
        font-size: 2.2rem;
    }
    
    .testimonials-subtitle {
        font-size: 1.1rem;
    }
    
    .testimonials-grid-container {
        padding: 40px 20px 0 20px;
    }
    
    .testimonial-card {
        padding: 18px;
    }
    
    .testimonial-avatar {
        width: 60px;
        height: 60px;
    }
}
