/*==================================================*/
/* Animated Testimonials Column Styling */
/*==================================================*/

.testimonials-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--dw-bg-section); 
    z-index: 10;
    overflow: hidden;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.testimonials-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(241, 85, 3, 0.1);
    border: 1px solid rgba(241, 85, 3, 0.3);
    color: #f15503;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.testimonials-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .testimonials-title {
        font-size: 3rem;
    }
}

.testimonials-subtitle {
    color: #aebcd3;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Masked Container */
.testimonials-grid-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    max-height: 740px;
    overflow: hidden;
    /* Soft fade out at top and bottom using gradient mask */
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

/* Individual Columns */
.testimonial-col {
    display: flex;
    flex-direction: column;
    /* Hide on smaller screens depending on index */
}

/* Infinite Scrolling Animation Content */
.testimonial-scroll-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    animation: scrollVertical linear infinite;
}

/* Pause animation on hover */
.testimonial-col:hover .testimonial-scroll-content {
    animation-play-state: paused;
}

/* Timing variations for different columns and staggered starts */
.duration-15 .testimonial-scroll-content { animation-duration: 25s; }
.duration-19 .testimonial-scroll-content { animation-duration: 36s; }
.duration-17 .testimonial-scroll-content { animation-duration: 30s; }

/* Staggered offsets so they don't start perfectly horizontal */
.duration-15 { margin-top: 0; }
.duration-19 { margin-top: -120px; }
.duration-17 { margin-top: -60px; }

/* The Card */
.testimonial-card {
    background: var(--dw-surface-1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    width: 320px;
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(241, 85, 3, 0.3);
}

.testimonial-text {
    color: #d0d9ea;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* User Info Profile */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
    background: #000;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
}

.testimonial-role {
    color: #889bb8;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

@keyframes scrollVertical {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}

/* Responsive visibility mapping for columns */
/* Default: Col 1 visible, Col 2 & 3 hidden */
.col-hidden-md { display: none; }
.col-hidden-lg { display: none; }

@media (min-width: 768px) {
    .col-hidden-md {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .col-hidden-lg {
        display: flex;
    }
}
