/* Testimonials Section Styles */
.testimonials-section {
    padding: 60px 0;
    background-color: #fff; /* Keep white to contrast with possible grey sections */
    overflow: hidden;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-tag {
    display: inline-block;
    border: 1px solid var(--border-color);
    padding: 4px 16px;
    border-radius: 99px;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 20px;
    background: transparent;
}

.testimonials-title {
    font-size: 2.5rem;
    font-family: var(--font-main);
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.testimonials-desc {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 1.1rem;
}

/* Columns Container */
.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    max-height: 740px;
    overflow: hidden;
    /* Mask for fading effect at top and bottom */
    -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-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 300px;
    max-width: 350px;
}

/* Hide columns on smaller screens */
.testimonials-column:nth-child(2) {
    display: none;
}
.testimonials-column:nth-child(3) {
    display: none;
}

@media (min-width: 768px) {
    .testimonials-column:nth-child(2) {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .testimonials-column:nth-child(3) {
        display: flex;
    }
}

/* Animation Container */
.testimonials-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* Determine animation duration via JS or specific classes */
}

/* Card Styles */
.testimonial-card {
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f0f0f0;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.testimonial-role {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.2;
}

/* Animation Keyframes */
@keyframes scroll-vertical {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}

/* Animation Classes */
.animate-scroll {
    animation: scroll-vertical 20s linear infinite;
}

.duration-slow {
    animation-duration: 25s;
}

.duration-medium {
    animation-duration: 20s;
}

.duration-fast {
    animation-duration: 15s;
}

/* Hover Pause */
.testimonials-grid:hover .animate-scroll {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 30px 0;
    }
}
