/* ===== Testimonials Slider ===== */
.testimonials-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 0;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1rem);
    scroll-snap-align: start;
    min-width: 300px;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.author-company {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== Slider Controls ===== */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-white);
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.slider-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-btn.prev {
    transform: rotate(180deg);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.slider-dots .dot:hover {
    background: var(--border-color);
}

.slider-dots .dot.active {
    background: var(--primary-color);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .testimonials-slider {
        gap: 1rem;
        padding: 0.5rem 0;
        margin: 0 -1rem;
        padding: 0.5rem 1rem;
    }

    .testimonial-card {
        flex: 0 0 calc(100% - 0.5rem);
        min-width: 260px;
    }

    .slider-controls {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        flex: 0 0 100%;
        min-width: 0;
        margin-right: 0;
    }

    .testimonials-slider {
        margin: 0;
        padding: 0.5rem 0;
    }
}

/* ===== Touch Support ===== */
.testimonials-slider {
    touch-action: pan-y;
    cursor: grab;
}

.testimonials-slider:active {
    cursor: grabbing;
}