/* ===========================================
   Testimonials — flex grid of 3, responsive
   =========================================== */

.testimonials {
    background-color: #243c78;
    padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 60px);
}

.testimonials__header {
    max-width: 640px;
    margin: 0 auto clamp(32px, 5vw, 56px);
    text-align: center;
}

.testimonials__eyebrow {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #E8A33D;
    margin-bottom: 10px;
}

.testimonials__title {
    font-size: clamp(1.5rem, 2.5vw + 1rem, 2.1rem);
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    margin: 0;
}

/* ---- flex grid of 3 ---- */
.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 3vw, 32px);
    max-width: 1120px;
    margin: 0 auto;
}

.testimonial-grid > .testimonial-card {
    flex: 1 1 300px;   /* grow/shrink, ~3 per row above 960px, wraps below it */
    max-width: 360px;
}

/* center the last row when it doesn't fill 3 columns */
.testimonial-grid {
    justify-content: center;
}

/* ---- card ---- */
.testimonial-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    padding: clamp(24px, 3vw, 32px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
    transition: transform .25s ease, box-shadow .25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .testimonial-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, .28);
    }
}

.testimonial-card__quote-mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.75rem;
    line-height: 1;
    color: #3B6EA5;
    margin-bottom: 4px;
}

.testimonial-card__quote {
    flex: 1;
    font-size: .9rem;
    line-height: 1.65;
    color: rgba(26, 26, 26, .82);
    margin: 0 0 20px;
}

.testimonial-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.testimonial-card__avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0B1F3A;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
}

/* if a real photo is supplied instead of initials */
.testimonial-card__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card__meta {
    min-width: 0;
}

.testimonial-card__name {
    font-size: .85rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-card__role {
    font-size: .78rem;
    color: rgba(26, 26, 26, .55);
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- responsive tightening ---- */
@media (max-width: 480px) {
    .testimonial-grid > .testimonial-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-card {
        transition: none;
    }
}
