/* ===================================================
   Testimonial Slider
   — link this file on any page that uses .testimonial-slider
   =================================================== */

.testimonial-slider {
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 100%;
    min-width: 0;
}

/* Centred card inside each slide */
.t-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Avatar ── */
.t-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

/* Initials shown via data-initials when no <img> is present */
.t-avatar::after {
    content: attr(data-initials);
    font-family: 'Montserrat', sans-serif;
}

/* Real photo — covers initials when provided */
.t-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* ── Stars ── */
.t-inner .star {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.t-inner .star svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Quote ── */
.t-inner blockquote {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.6;
    color: #111827;
    margin: 0;
}

/* ── Author ── */
.t-author {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* ── Dots ── */
.t-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.t-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
}

.t-dot.active {
    background: #1d4ed8;
    width: 24px;
    border-radius: 4px;
}

.t-dot:hover:not(.active) {
    background: #9ca3af;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .t-inner blockquote {
        font-size: 18px;
    }

    .t-avatar {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }

    .t-dots {
        margin-top: 28px;
    }
}
