/* ===== TESTIMONIALS SECTION STYLES ===== */
.testimonials {
    background: linear-gradient(180deg, #f8fbff 0%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
}

.testimonials::before {
    content: '"';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 300px;
    font-family: serif;
    color: rgba(29, 52, 97, 0.04);
    pointer-events: none;
    z-index: 1;
}

/* ── Marquee wrapper (overflow clip + fade edges) ── */
.testimonials-grid {
    position: relative;
    z-index: 2;
    margin-top: 52px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

/* ── Scrolling track (two identical sets of cards) ── */
.t-track {
    display: flex;
    width: max-content;
    gap: 24px;
    padding: 12px 0 20px;
    animation: testimonial-scroll 50s linear infinite;
}

.t-track:hover {
    animation-play-state: paused;
}

@keyframes testimonial-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Individual card ── */
.testimonial-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 30px;
    width: 320px;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(29, 52, 97, 0.09);
    border: 2px solid transparent;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.testimonial-card:hover {
    border-color: var(--primary, #1E5AA8);
    box-shadow: 0 8px 32px rgba(29, 52, 97, 0.18);
    transform: translateY(-4px);
}

/* ── Stars ── */
.t-stars {
    color: #FFC107;
    font-size: 17px;
    letter-spacing: 2px;
    line-height: 1;
}

/* ── Quote text ── */
.t-quote {
    color: #2d3a4a;
    font-size: 14.5px;
    line-height: 1.75;
    font-style: italic;
    font-weight: 500;
    flex: 1;
    position: relative;
    padding-left: 4px;
}

.t-quote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: -6px;
    font-size: 52px;
    font-family: serif;
    color: rgba(29, 52, 97, 0.08);
    line-height: 1;
    pointer-events: none;
}

/* ── Author row ── */
.t-author {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-top: 1px solid #e8eef6;
    padding-top: 16px;
    margin-top: auto;
}

/* ── Avatar circle ── */
.t-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

/* ── Info column ── */
.t-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.t-info strong {
    font-size: 15px;
    font-weight: 700;
    color: #1a2a3a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t-info > span {
    font-size: 12.5px;
    color: #6b7a8d;
    font-weight: 500;
}

/* ── Program & location tags ── */
.t-program,
.t-location {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.t-program {
    color: var(--primary, #1E5AA8) !important;
}

.t-location {
    color: #7a8a9a !important;
}

.t-program i,
.t-location i {
    font-size: 10px;
    flex-shrink: 0;
}

/* ── Responsive: smaller cards on mobile, slower on narrow screens ── */
@media (max-width: 768px) {
    .testimonial-card {
        width: 280px;
        padding: 22px 22px;
    }

    .t-track {
        animation-duration: 40s;
    }

    .testimonials-grid {
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 5%,
            black 95%,
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 5%,
            black 95%,
            transparent 100%
        );
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        width: 250px;
        padding: 18px;
    }

    .t-track {
        gap: 16px;
        animation-duration: 35s;
    }
}
