/* =========================
   TESTIMONIALS SECTION
========================= */

.testimonials-section {
    position: relative;
    overflow: hidden;
}

.bg-light {
    background-color: var(--bg-body);
}

/* Carousel wrapper */
.testimonials-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slides */
.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

/* Active slide */
.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    position: relative;
    pointer-events: auto;
    z-index: 2;
}

/* Previous slide animation (exit to left) */
.testimonial-slide.prev-exit {
    transform: translateX(-100px) scale(0.95);
    opacity: 0;
}

/* Content card */
.testimonial-content {
    text-align: center;
    padding: 3.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    margin: 2rem 1rem;
    transition: transform 0.3s ease;
}

.testimonial-slide.active .testimonial-content {
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quote icon */
.quote-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.testimonial-slide.active .quote-icon {
    animation: fadeInDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 0.8;
        transform: translateY(0);
    }
}

/* Testimonial text */
.testimonial-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.testimonial-slide.active .testimonial-content p {
    animation: fadeIn 0.6s ease 0.3s both;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Client info – NO avatar */
.client-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.testimonial-slide.active .client-info {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Name */
.client-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

/* Role / location */
.client-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* =========================
   CONTROLS
========================= */

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 2.5rem;
}

/* Arrows */
.prev-testi,
.next-testi {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.prev-testi:hover,
.next-testi:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}

.prev-testi:active,
.next-testi:active {
    transform: scale(0.95);
}

/* Dots */
.testi-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.testi-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.testi-dots span:hover {
    background: rgba(212, 175, 55, 0.5);
    transform: scale(1.2);
}

.testi-dots span.active {
    background: var(--primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    transform: scale(1.3);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .testimonials-carousel {
        min-height: 380px;
    }

    .testimonial-content {
        padding: 2.5rem 1.8rem;
        margin: 1rem 0.5rem;
    }

    .testimonial-content p {
        font-size: 1rem;
    }

    .quote-icon {
        font-size: 2rem;
    }

    .client-info h4 {
        font-size: 1rem;
    }

    .client-info span {
        font-size: 0.85rem;
    }

    .prev-testi,
    .next-testi {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .testi-dots span {
        width: 8px;
        height: 8px;
    }

    .testimonial-controls {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .testimonial-content {
        padding: 2rem 1.5rem;
    }

    .testimonial-content p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
}