/* TESTIMONIALS SECTION */
.testimonials-container {
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1.33rem); /* Default for desktop - 3 cards */
    min-width: 0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px -8px rgba(0, 0, 0, 0.15);
}

.testimonial-rating {
    font-size: 1.2rem;
    color: #fbbf24;
    margin-bottom: 1rem;
    text-align: center;
}

.testimonial-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.6;
    color: var(--text);
    position: relative;
    padding: 0 1rem;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 2rem;
    color: var(--accent);
    position: absolute;
    opacity: 0.3;
}

.testimonial-content p::before {
    top: -0.5rem;
    left: -0.5rem;
}

.testimonial-content p::after {
    bottom: -1.5rem;
    right: -0.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.author-vehicle {
    font-size: 0.9rem;
    color: var(--secondary);
    opacity: 0.8;
}

/* Testimonials Navigation */
.testimonials-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-button {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 1.2rem;
}

.testimonial-button:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.testimonial-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.testimonials-dots {
    display: flex;
    gap: 0.5rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.testimonial-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Statistics */
.testimonials-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Testimonials Responsive */
@media (max-width: 1023px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem); /* 2 cards on tablet */
    }
}

@media (max-width: 768px) {
    .testimonials-container {
        margin-bottom: 3rem;
    }

    .testimonial-card {
        flex: 0 0 100%; /* 1 card on mobile */
    }

    .testimonials-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .testimonials-nav {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .testimonials-stats {
        grid-template-columns: 1fr;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .author-info {
        text-align: center;
    }

    .testimonial-content p {
        padding: 0 0.5rem;
    }

    .testimonial-content p::before {
        left: -0.25rem;
    }

    .testimonial-content p::after {
        right: -0.25rem;
    }
}

/* Animation for testimonials */
@keyframes fadeInTestimonial {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-card {
    animation: fadeInTestimonial 0.6s ease;
}