
.testimonials-section {
    background: #ffffff;
    overflow: hidden;
}

.testimonials-section .section-heading {
    max-width: 760px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 30px 28px 24px;
    background: #fff;
    border: 1px solid #dceaff;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(20, 74, 139, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(20, 74, 139, .11);
}

.testimonial-quote-mark {
    display: block;
    height: 48px;
    color: #0875f5;
    font-family: Georgia, serif;
    font-size: 4.5rem;
    line-height: 1;
}

.testimonial-card h3 {
    margin: 14px 0 12px;
    color: #102b50;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    line-height: 1.3;
}

.testimonial-card > p {
    margin: 0 0 24px;
    color: #60738d;
    font-size: .96rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #e7effa;
}

.testimonial-footer img {
    display: block;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    max-width: 48px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 2px solid #eaf4ff;
}

.testimonial-footer div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.testimonial-footer strong {
    color: #17365e;
    font-size: .82rem;
    font-weight: 800;
}

.testimonial-footer span {
    color: #60738d;
    font-size: .76rem;
    line-height: 1.4;
}

.testimonials-note {
    max-width: 680px;
    margin: 28px auto 0;
    color: #60738d;
    font-size: .82rem;
    line-height: 1.7;
    text-align: center;
}

@media (max-width: 1000px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .testimonial-card {
        padding: 27px 24px 22px;
    }
}

@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .testimonial-card {
        padding: 26px 23px 22px;
        border-radius: 17px;
    }

    .testimonial-card h3 {
        font-size: 1.4rem;
    }

    .testimonial-card > p {
        font-size: .95rem;
        line-height: 1.8;
    }

    .testimonial-footer img {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        max-width: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-card {
        transition: none;
    }

    .testimonial-card:hover {
        transform: none;
    }
}
