/* Testimonials Section Styles */
.testimonials {
    padding: 80px 0;
    background: #f8fafc;
}

.testimonials .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.testimonials .section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    color: #667eea;
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars i {
    color: #ffd700;
    font-size: 1rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    margin: 0;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e5e9;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem 0;
}

.author-info span {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonials .section-header h2 {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .author-image {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .testimonials {
        padding: 40px 0;
    }
    
    .testimonials .section-header {
        margin-bottom: 2rem;
    }
    
    .testimonials .section-header h2 {
        font-size: 1.75rem;
    }
    
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonial-card::before {
        font-size: 4rem;
        top: -5px;
        left: 15px;
    }
}

/* Animation for cards appearing */
.testimonial-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.testimonial-card:nth-child(1) {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.3s;
}

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

/* Alternative layout for larger screens */
@media (min-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1400px;
    }
}
