/* Testimonials Section */
.testimonials {
    padding: 3rem 0 4rem 0;
    background: #E8F5FA;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

/* Center the third card when it's alone on a row (2-column layout) */
@media (min-width: 850px) {
    .testimonials-grid .testimonial-card:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - 2rem) / 2);
        max-width: calc((1000px - 2rem) / 2);
    }
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    font-size: 1rem;
    color: var(--light-text);
    font-weight: 500;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.testimonial-author a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.testimonial-author a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Design for Testimonials */
@media (max-width: 768px) {
    .testimonials {
        padding: 2rem 0 3rem 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        margin: 2rem 0;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-quote {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-author {
        padding-top: 1rem;
    }
}

