/* ================================================
   TESTIMONIALS CAROUSEL STYLES
   ================================================ */

.testimonials {
    background-color: #f8f8f8;
    padding: 60px 0;
    overflow: hidden;
}

.testimonials__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.testimonials__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    font-weight: 400;
    color: #161820;
    margin: 0 0 40px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonials__carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.testimonials__track {
    display: flex;
    /* Width auto-calculated based on flex items */
    animation: scroll 50s linear infinite;
    gap: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-420px * 10)); /* Move exactly half the track for seamless loop */
    }
}

.testimonial {
    flex: 0 0 400px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 30px;
    margin-right: 20px;
    text-align: left;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial__quote {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.5;
    margin: 0 0 20px 0;
    font-style: italic;
    flex-grow: 1;
}

.testimonial__author {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #161820;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pause animation on hover */
.testimonials__carousel:hover .testimonials__track {
    animation-play-state: paused;
}

/* Tablet Styles */
@media (max-width: 1023px) and (min-width: 768px) {
    .testimonials {
        padding: 50px 0;
    }
    
    .testimonials__container {
        padding: 0 30px;
    }
    
    .testimonials__title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .testimonials__track {
        width: calc(350px * 13);
        animation: scrollTablet 45s linear infinite;
    }
    
    @keyframes scrollTablet {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-350px * 10));
        }
    }
    
    .testimonial {
        flex: 0 0 350px;
        padding: 25px;
        margin-right: 15px;
        min-height: 140px;
    }
    
    .testimonial__quote {
        font-size: 15px;
        margin-bottom: 16px;
    }
    
    .testimonial__author {
        font-size: 13px;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .testimonials {
        padding: 40px 0;
    }
    
    .testimonials__container {
        padding: 0 20px;
    }
    
    .testimonials__title {
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    .testimonials__track {
        width: calc(280px * 13);
        animation: scrollMobile 40s linear infinite;
    }
    
    @keyframes scrollMobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-280px * 10));
        }
    }
    
    .testimonial {
        flex: 0 0 280px;
        padding: 20px;
        margin-right: 12px;
        min-height: 120px;
    }
    
    .testimonial__quote {
        font-size: 14px;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .testimonial__author {
        font-size: 12px;
    }
}
