/* Testimonials Section Styling */

.testimonials-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8fafa 0%, #ffffff 100%);
}

/* Section Introduction */
.testimonials-section .section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.testimonials-section h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.testimonials-section .section-description {
    font-size: 1.125rem;
    color: #5c9391;
    line-height: 1.6;
    margin-bottom: 0;
}

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

/* Individual Testimonial Card */
.testimonial-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f8f8;
    position: relative;
    overflow: hidden;
}

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

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #406463;
}

/* Testimonial Header */
.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.user-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.user-avatar {
    font-size: 2.5rem;
    color: #406463;
    opacity: 0.7;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.treatment-tag {
    display: inline-block;
    background: #406463;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-date {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Star Rating */
.stars-rating {
    display: flex;
    gap: 0.2rem;
    margin-top: 0.2rem;
}

.stars-rating .fas.fa-star {
    color: #f39c12;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Testimonial Content */
.testimonial-content {
    position: relative;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #34495e;
    margin: 0;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: #406463;
    position: absolute;
    left: 0;
    top: -0.5rem;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-content p::after {
    content: '"';
    font-size: 1rem;
    color: #406463;
    opacity: 0.3;
    font-family: Georgia, serif;
    margin-left: 0.2rem;
}



/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 1.5rem;
    }
    
    .testimonials-section h2 {
        font-size: 2rem;
    }
    
    .testimonials-section .section-description {
        font-size: 1rem;
    }
    
    .testimonials-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .user-info {
        width: 100%;
    }
    
    .stars-rating {
        margin-top: 0;
    }
    
    .user-name {
        font-size: 1.1rem;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
        padding-left: 1rem;
    }
    
    .testimonial-content p::before {
        font-size: 2rem;
        top: -0.3rem;
    }
    
    .testimonial-content p::after {
        font-size: 1rem;
    }

}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 2rem 1rem;
    }
    
    .testimonials-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonial-card {
        padding: 1.25rem;
        border-radius: 1rem;
    }
    
    .user-avatar {
        font-size: 2rem;
    }
    
    .treatment-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    .testimonial-date {
        font-size: 0.8rem;
    }
    
    .stars-rating .fas.fa-star {
        font-size: 1rem;
    }
}

/* Animation for testimonials */
@media (prefers-reduced-motion: no-preference) {
    .testimonial-card {
        animation: fadeInUp 0.6s ease-out forwards;
        opacity: 0;
        transform: translateY(20px);
    }
    
    .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; }
    .testimonial-card:nth-child(4) { animation-delay: 0.4s; }
    .testimonial-card:nth-child(5) { animation-delay: 0.5s; }
    .testimonial-card:nth-child(6) { animation-delay: 0.6s; }
}

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