/* Testimonials Section - Clean & Modern Design */
/* ======================================================= */
.testimonials {
    background: var(--bg-primary);
    padding: clamp(3rem, 8vw, 5rem) 5%;
}

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
    max-width: 50rem;
    margin: 0 auto;
    overflow: visible;
    padding-bottom: 2rem;
}

.testimonial-wrapper {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    border-radius: 1.25rem;
    box-shadow: 0 12px 40px var(--shadow-light);
    gap: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    position: relative;
    margin-bottom: 1rem;
    z-index: 1;
}

/* Hide scrollbar */
.testimonial-wrapper::-webkit-scrollbar {
    display: none;
}

.testimonial-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-width: 100%;
    width: 80%;
    box-sizing: border-box;
}

.testimonial-content {
    background: var(--white);
    padding: 3rem;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px var(--shadow-light);
    border: 1px solid var(--light-gray);
    margin: 0.75rem;
    transition: all 0.3s ease;
}

.testimonial-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--shadow-medium);
}

.testimonial-avatar {
    flex-shrink: 0;
    text-align: center;
}

.testimonial-avatar img {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px var(--shadow-medium);
    transition: all 0.3s ease;
}

.testimonial-avatar img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-dark);
}

.testimonial-rating {
    color: var(--accent-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.testimonial-text-content {
    flex: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1.5rem;
    position: relative;
    font-weight: 500;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-light);
    position: absolute;
    top: -1rem;
    left: -1rem;
    font-family: serif;
    line-height: 1;
    opacity: 0.3;
}

.testimonial-author {
    color: var(--primary);
    font-weight: 600;
}

/* Navigation Buttons - CRITICAL FOR VISIBILITY */
.testimonial-nav {
    position: relative;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 999;
}

.nav-btn i{
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-medium);
    pointer-events: auto;
    z-index: 100;
}

.nav-btn i:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--shadow-dark);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn  {
    border: none;
    background: none;
}

.nav-btn:hover i {
    transform: scale(1.1);
}

/* Position buttons outside the card */
.prev-btn {
    margin-left: 1.5rem;
}

.next-btn {
    margin-right: 1.5rem;
}

/* Hide navigation buttons on mobile */
@media (max-width: 48rem) {
    .testimonial-nav {
        display: none;
    }
}

/* User Instructions */
.testimonial-instructions {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--light-gray);
}

.instruction-text {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

.instruction-text .highlight {
    color: var(--primary);
    font-weight: 600;
}

/* Desktop Instructions */
.desktop-instructions {
    display: block;
}

.mobile-instructions {
    display: none;
}

/* Responsive Design */
@media (max-width: 48rem) {
    .testimonial-slider {
        max-width: 100%;
        margin: 0;
    }

    .testimonial-wrapper {
        border-radius: 1rem;
        margin: 0 -0.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 8px 25px var(--shadow-light);
    }

    .testimonial-content {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
        margin: 0.5rem;
        border-radius: 1rem;
    }
    
    .testimonial-avatar {
        align-self: center;
    }

    .testimonial-avatar img {
        width: 4rem;
        height: 4rem;
        margin-bottom: 0.75rem;
        border: 3px solid var(--primary);
    }
    
    .testimonial-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .testimonial-text::before {
        font-size: 3rem;
        top: -0.5rem;
        left: -0.5rem;
    }
    
    /* Mobile Navigation Buttons - CRITICAL FOR VISIBILITY */
    .testimonial-nav {
        display: none;
    }
    
    /* Hide desktop instructions, show mobile */
    .desktop-instructions {
        display: none;
    }
    
    .mobile-instructions {
        display: block;
    }
    
    /* Touch indication for swipe - Move outside card */
    .testimonial-wrapper::after {
        content: "← Swipe để xem thêm →";
        position: absolute;
        bottom: -3rem;
        left: 50%;
        transform: translateX(-50%);
        background: var(--white);
        color: var(--gray);
        padding: 0.5rem 1rem;
        border-radius: 2rem;
        font-size: 0.85rem;
        font-weight: 500;
        box-shadow: 0 4px 12px var(--shadow-light);
        border: 1px solid var(--light-gray);
        white-space: nowrap;
        z-index: 10;
    }
}

/* Tablet Design */
@media (min-width: 48.1rem) and (max-width: 64rem) {
    .testimonial-slider {
        max-width: 85%;
    }
    
    .testimonial-content {
        padding: 2rem;
        gap: 1.5rem;
    }
    
}

/* Desktop Design */
@media (min-width: 64.1rem) {
    .testimonial-slider {
        max-width: 55rem;
    }
    
    .testimonial-content {
        padding: 3rem;
        gap: 2rem;
    }
    
 
    
}