/* Testimonials Section Styles */

.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    color: #007bff;
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-rating {
    display: flex;
    justify-content: center;
}

.testimonial-rating .fas.fa-star,
.testimonial-rating .far.fa-star {
    font-size: 1.2rem;
    margin: 0 2px;
}

.testimonial-text {
    margin: 1.5rem 0;
    font-style: italic;
    color: #495057;
    line-height: 1.6;
    position: relative;
}

.testimonial-text p {
    margin: 0;
    font-size: 1.1rem;
    text-align: center;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.author-image {
    margin-right: 1rem;
}

.author-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid #007bff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.author-info {
    text-align: left;
}

.author-name {
    margin: 0;
    font-weight: 600;
    color: #212529;
    font-size: 1.1rem;
}

.author-title {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .testimonial-text p {
        font-size: 1rem;
    }
    
    .author-image img {
        width: 50px;
        height: 50px;
    }
    
    .author-name {
        font-size: 1rem;
    }
    
    .author-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .testimonial-card::before {
        font-size: 60px;
        top: -5px;
        left: 15px;
    }
    
    .testimonial-content {
        padding: 1.25rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .author-info {
        text-align: center;
    }
}

/* Animation for testimonials */
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Hover effects */
.testimonial-card:hover .author-image img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-rating {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Section title styling */
.testimonials-section .section-title h2 {
    color: #212529;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* Empty state styling */
.testimonials-section .text-center .py-5 {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* Loading state */
.testimonial-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Featured testimonial styling */
.testimonial-card.featured {
    border: 2px solid #007bff;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.testimonial-card.featured::after {
    content: 'Featured';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
} 