.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonials-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.testimonials-heading .section-title {
    margin-bottom: 8px;
    text-align: left;
}

.testimonials-heading p {
    margin: 0;
    color: var(--text-light);
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-header img {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 14px;
}

.testimonial-rating span {
    color: #fbbc04;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 1px;
}

.testimonial-rating small {
    color: var(--text-light);
    font-size: 13px;
}

.testimonial-content {
    flex: 1;
}

.testimonial-content p {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    margin: 0;
}

.testimonial-content .testimonial-rating-only {
    color: var(--text-light);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.testimonial-author a {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 16px;
}

.testimonial-author a:hover {
    color: var(--primary-dark);
}

.testimonial-author a i {
    margin-left: 3px;
    font-size: 10px;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 13px;
}

.testimonial-reply {
    margin-top: 20px;
    padding: 14px 16px;
    border-left: 3px solid var(--primary-color);
    background: var(--bg-light);
    border-radius: 0 8px 8px 0;
}

.testimonial-reply strong {
    color: var(--text-dark);
    font-size: 13px;
}

.testimonial-reply p {
    margin: 4px 0 0;
    color: var(--text-light);
    font-size: 13px;
}

@media (max-width: 768px) {
    .testimonials {
        grid-template-columns: 1fr;
    }

    .testimonials-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .testimonials-heading .btn {
        width: 100%;
        justify-content: center;
    }
}
