/* ========== TESTIMONIALS SECTION — BRAND THEME ========== */

.testimonials-section {
    padding: var(--spacing-4xl) 0;
    background: #FFF8F4;        /* warm tint matching the orange palette */
    position: relative;
    overflow: hidden;
}

/* soft ambient glow top-right */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255,109,31,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ---- Header row ---- */
.testi-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
    flex-wrap: wrap;
}

.testi-header-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.testi-arrow-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin-top: 6px;
}

.testi-arrow-icon svg {
    width: 100%;
    height: 100%;
}

.testi-titles h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0 0 6px 0;
}

.testi-titles .testi-sub {
    font-size: clamp(1.3rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
}

.testi-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease,
                box-shadow 0.25s ease;
    flex-shrink: 0;
    align-self: center;
}

.testi-view-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,109,31,0.25);
}

/* ---- Slider wrapper ---- */
.testi-slider-wrap {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.testi-slider-track {
    display: flex;
    gap: 20px;
    animation: testiScroll 32s linear infinite;
    width: max-content;
}

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

@keyframes testiScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * 6 - 20px * 6)); }
}

/* ---- Card ---- */
.testi-card {
    width: 280px;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testi-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 50px rgba(0,0,0,0.4);
}

.testi-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transition: transform 0.4s ease;
    width: 100%;
    height: 100%;
}

.testi-card:hover .testi-card-bg {
    transform: scale(1.05);
}

.testi-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,15,26,0.96) 40%, rgba(15,15,26,0.15) 100%);
}

.testi-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 20px 20px;
}

.testi-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 10px;
}

.testi-star {
    color: var(--primary);
    font-size: 0.9rem;
}

.testi-body {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testi-author-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.testi-author-role {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    margin-top: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .testimonials-section {
        padding: var(--spacing-2xl) 0;
    }

    .testi-header {
        flex-direction: column;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-xl);
    }

    .testi-view-btn {
        align-self: flex-start;
    }
}
