/* Testimonials Section Styles */
.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-grid {
    margin-top: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e3e3e3;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-header {
    margin-bottom: 1.5rem;
}

.patient-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.patient-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid #4CAF50;
}

.patient-image-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
}

.patient-details {
    flex: 1;
}

.patient-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 0.25rem;
}

.patient-designation {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.treatment-name {
    font-size: 0.85rem;
    color: #4CAF50;
    font-weight: 500;
    margin-bottom: 0;
}

.rating {
    display: flex;
    gap: 2px;
}

.rating i {
    color: #ddd;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.rating i.filled {
    color: #ffc107;
}

.testimonial-content {
    position: relative;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    position: relative;
    padding: 0 1rem;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 3rem;
    color: #4CAF50;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-text::after {
    content: '"';
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 3rem;
    color: #4CAF50;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.no-testimonials {
    padding: 3rem 0;
}

.no-testimonials i {
    margin-bottom: 1rem;
}

/* Modal Styles */
.modal-xl .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#allTestimonialsContainer .testimonial-card {
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .patient-info {
        flex-direction: column;
        text-align: center;
    }
    
    .patient-image,
    .patient-image-placeholder {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .rating {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
}

/* Animation for loading testimonials */
.testimonial-card.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.testimonials-loading {
    text-align: center;
    padding: 2rem;
}

.testimonials-loading .spinner-border {
    color: #4CAF50;
}

/* View All Button Styles */
.btn-outline-primary {
    border-color: #4CAF50;
    color: #4CAF50;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}
