/* Homepage testimonials, immediately below the savings calculator. */
.testimonials {
    padding: 2rem 0;
    background: radial-gradient(ellipse at top right, #edf7f5 0%, transparent 60%), #f5f8fc;
    border-top: 1px solid #e5edf4;
    border-bottom: 1px solid #e5edf4;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 1.1rem 1.25rem 1rem;
    border: 1px solid #e0e7ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(20, 44, 70, 0.04);
}

.testimonial-stars {
    align-self: center;
    margin-bottom: 0.7rem;
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 0.16em;
    line-height: 1;
    text-align: center;
}

.testimonial-card blockquote {
    flex: 1;
    margin: 0 0 1rem;
    color: #526477;
    font-size: 0.9rem;
    line-height: 1.65;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #edf1f5;
}

.testimonial-avatar {
    display: grid;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: #eaf1fc;
    color: #365b94;
    font-size: 0.8rem;
    font-weight: 700;
}

.testimonial-avatar-sage {
    background: #e8f3ed;
    color: #35664c;
}

.testimonial-avatar-lavender {
    background: #f0ecf8;
    color: #71538e;
}

.testimonial-avatar-sand {
    background: #faf0e5;
    color: #89613b;
}

.testimonial-author-details {
    display: grid;
    gap: 0.15rem;
}

.testimonial-author-details strong {
    color: #243e5a;
    font-size: 0.85rem;
    font-weight: 700;
}

.testimonial-author-details > span {
    color: #64748b;
    font-size: 0.7rem;
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .testimonials-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }
}
