/* Testimonials Section - Looping Carousel */

.testimonials-section {
    background: #f0f4f8;
    padding: 80px 0 100px;
    overflow: hidden;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 24px;
}

.testimonials-header-left {
    max-width: 600px;
}

.testimonials-label {
    color: #336DFF;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.testimonials-title {
    color: #1a2a4a;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

.testimonials-header-right {
    text-align: right;
}

.testimonials-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.testimonials-rating .star {
    color: #f5a623;
    font-size: 24px;
}

.testimonials-rating-text {
    color: #5a6a7a;
    font-size: 14px;
}

/* Carousel Track */
.testimonials-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 -24px;
    padding: 0 24px;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    animation: scrollTestimonials 40s linear infinite;
    width: max-content;
}

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

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Testimonial Card */
.testimonial-card {
    flex-shrink: 0;
    width: 340px;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.testimonial-stars .star {
    color: #f5a623;
    font-size: 18px;
}

.testimonial-text {
    color: #1a2a4a;
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 20px;
    min-height: 80px;
}

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

.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: #e8eef4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #5a6a7a;
}

.testimonial-author-info {
    flex: 1;
}

.testimonial-name {
    color: #1a2a4a;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px;
}

.testimonial-role {
    color: #7a8a9a;
    font-size: 13px;
    margin: 0;
}

/* Google badge */
.testimonial-google {
    margin-left: auto;
}

.testimonial-google img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0 80px;
    }

    .testimonials-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .testimonials-header-right {
        text-align: left;
    }

    .testimonials-rating {
        justify-content: flex-start;
    }

    .testimonial-card {
        width: 300px;
        padding: 25px;
    }

    .testimonials-track {
        gap: 16px;
    }
}
