#testimonials {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

#testimonials .testimonials-slider {
    position: relative;
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

#testimonials .testimonials-viewport {
    overflow: hidden;
}

#testimonials .testimonials-track {
    display: flex;
    gap: 1.5rem;
    transition: transform .45s ease;
    will-change: transform;
}

#testimonials .testimonial-slide {
    flex: 0 0 calc((100% - 3rem) / 3);
}

#testimonials .testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

#testimonials .testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(243, 156, 18, 0.05));
    transition: left 0.4s ease;
}

#testimonials .testimonial-card:hover::before {
    left: 0;
}

#testimonials .testimonial-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 70px rgba(231, 76, 60, 0.2);
}

#testimonials .testimonial-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary), var(--gold));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

#testimonials .testimonial-card:hover .testimonial-icon {
    transform: rotateY(360deg);
}

#testimonials .testimonial-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#testimonials .testimonial-initial {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

#testimonials .testimonial-client {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: .8rem;
    position: relative;
}

#testimonials .testimonial-role {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    min-height: 50px;
}

#testimonials .testimonial-rating {
    margin-bottom: 1rem;
    position: relative;
}

#testimonials .star {
    color: #d1d5db;
    font-size: 1.1rem;
}

#testimonials .star.filled {
    color: #f4b400;
}

#testimonials .testimonial-feedback {
    color: #666;
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 0;
    text-align: left;
    position: relative;
}

#testimonials .testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

#testimonials .testimonial-arrow {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--gold));
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

#testimonials .testimonial-arrow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .15);
}

#testimonials .testimonial-dots {
    display: flex;
    align-items: center;
    gap: .55rem;
}

#testimonials .testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: #d1d5db;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}

#testimonials .testimonial-dot.active {
    background: var(--secondary);
    transform: scale(1.2);
}

@media(max-width: 1024px) {
    #testimonials .testimonial-slide {
        flex: 0 0 calc((100% - 1.5rem) / 2);
    }
}

@media(max-width: 768px) {
    #testimonials .testimonial-slide {
        flex: 0 0 100%;
    }
}
