/* ============================================================================
   Client testimonials grid. Shared so the section can appear on any page via
   partials/testimonials.blade.php. Mirrors the home-page testimonial styles.
   Tokens (--border, --shadow, --primary, --text, --muted) come from tokens.css.
   ============================================================================ */
.testimonial-grid {
    margin-top: 54px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 34px 32px;
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    overflow: hidden;
}

.testimonial-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #34d399);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.10);
    border-color: #cceee2;
}

.testimonial-card:hover::before {
    opacity: 1;
}

/* First card spans the full width and reads larger — breaks the box grid. */
.testimonial-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #0b1220 0%, #111827 60%, #0f3f31 160%);
    border-color: transparent;
    color: #fff;
}

.testimonial-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quote-mark {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 64px;
    line-height: 0.6;
    color: var(--primary);
    height: 34px;
}

.testimonial-card.featured .quote-mark {
    color: #34d399;
}

.testimonial-stars {
    color: #f5b301;
    letter-spacing: 2px;
    font-size: 15px;
}

.testimonial-card blockquote {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    font-weight: 500;
}

.testimonial-card.featured blockquote {
    color: #fff;
    font-size: 22px;
    line-height: 1.5;
    max-width: 46ch;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
}

.testimonial-avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #0d9c6f);
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.testimonial-meta strong {
    font-size: 15px;
    color: var(--text);
}

.testimonial-meta span {
    font-size: 13px;
    color: var(--muted);
}

.testimonial-card.featured .testimonial-meta strong {
    color: #fff;
}

.testimonial-card.featured .testimonial-meta span {
    color: rgba(255, 255, 255, 0.72);
}

.testimonial-result {
    margin-left: auto;
    background: #ecfdf5;
    color: #047857;
    font-weight: 800;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.testimonial-card.featured .testimonial-result {
    background: rgba(52, 211, 153, 0.16);
    color: #6ee7b7;
}

@media (max-width: 900px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-card.featured blockquote {
        font-size: 19px;
    }
}

@media (max-width: 560px) {
    .testimonial-author {
        flex-wrap: wrap;
    }
    .testimonial-result {
        margin-left: 62px;
    }
}

/* ============================================================================
   Featured card + slider layout (first testimonial featured, rest in a slider)
   ============================================================================ */
.testimonial-card.featured { margin-top: 54px; }

.testimonial-slider-wrap {
    position: relative;
    margin-top: 22px;
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.testimonial-slider {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.testimonial-slider::-webkit-scrollbar { display: none; }

.testimonial-slider .tslide {
    scroll-snap-align: start;
    flex: 0 0 clamp(280px, 44%, 460px);
}

.tslider-arrow {
    flex: 0 0 46px;
    align-self: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tslider-arrow:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

@media (max-width: 700px) {
    .testimonial-slider .tslide { flex: 0 0 86%; }
    .tslider-arrow { display: none; } /* swipe on mobile */
}
