/* ===========================================
   TESTIMONIALS - Vertical Scrolling Columns
   =========================================== */
.testimonials-columns-section {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.testimonials-columns-section .section-header {
    max-width: 540px;
    margin: 0 auto 40px;
    text-align: center;
}

.testimonials-columns-wrap {
    display: flex;
    justify-content: center;
    gap: 24px;
    max-height: 740px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

.testimonials-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: testimonials-scroll-up linear infinite;
}

.testimonials-col:nth-child(1) { animation-duration: 25s; }
.testimonials-col:nth-child(2) { animation-duration: 32s; }
.testimonials-col:nth-child(3) { animation-duration: 28s; }

@keyframes testimonials-scroll-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.testimonials-col:hover {
    animation-play-state: paused;
}

.tc-card {
    padding: 28px;
    border-radius: 20px;
    border: 1px solid rgba(0, 66, 204, 0.1);
    box-shadow: 0 4px 24px rgba(0, 66, 204, 0.06);
    background: #fff;
    max-width: 340px;
    width: 340px;
    flex-shrink: 0;
    transition: box-shadow 0.3s, transform 0.3s;
}

.tc-card:hover {
    box-shadow: 0 8px 32px rgba(0, 66, 204, 0.12);
    transform: translateY(-2px);
}

.tc-card-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #374151;
    margin-bottom: 20px;
}

.tc-card-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tc-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 66, 204, 0.15);
}

.tc-card-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a2e;
    line-height: 1.3;
}

.tc-card-role {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.3;
}

/* RTL */
[dir="rtl"] .tc-card-text {
    text-align: right;
}

[dir="rtl"] .tc-card-author {
    flex-direction: row-reverse;
    text-align: right;
}

/* Hide 2nd column on tablet, 2nd+3rd on mobile */
@media (max-width: 1024px) {
    .testimonials-col:nth-child(3) {
        display: none;
    }
    .tc-card {
        max-width: 320px;
        width: 320px;
    }
}

@media (max-width: 640px) {
    .testimonials-col:nth-child(2) {
        display: none;
    }
    .testimonials-columns-wrap {
        max-height: 600px;
    }
    .tc-card {
        max-width: 300px;
        width: 300px;
        padding: 22px;
    }
}

/* Fix global horizontal overflow */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}
