/* Bubble Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    background-color: #f9fafc;
    position: relative;
    overflow: hidden;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.testimonials-header h2 {
    font-size: 2.8rem;
    color: #0d1b2a;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.testimonials-header h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: #497EE6;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.testimonials-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 1.5rem auto 0;
    line-height: 1.6;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.testimonial-bubble {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #eef0f5;
}

.testimonial-bubble:before {
    content: '"'; 
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: #497EE6;
    opacity: 0.2;
    line-height: 1;
    font-weight: bold;
}

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

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    padding-top: 1.5rem;
}

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

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 3px solid #497EE6;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    color: #0d1b2a;
    margin: 0 0 0.3rem;
}

.author-title {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.rating {
    color: #ffc107;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.rating i {
    margin-right: 2px;
}

/* Hover Effects */
.testimonial-bubble:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .testimonials-header h2 {
        font-size: 2.2rem;
    }
    
    .testimonial-bubble {
        padding: 2rem;
    }
}

/* Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.testimonial-bubble:nth-child(odd) {
    animation: float 6s ease-in-out infinite;
}

.testimonial-bubble:nth-child(even) {
    animation: float 7s ease-in-out infinite;
    animation-delay: 0.5s;
}
