/* ============================================
   Ý KIẾN KHÁCH HÀNG SECTION - PREMIUM DESIGN
   ============================================ */

.testimonials-section-v2 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.testimonials-section-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            transparent 0%,
            #d4af37 50%,
            transparent 100%);
}

/* Section Title */
.section-title-ykien {
    font-family: 'Playfair Display', serif;
    color: #1B5E20;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.golden-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f4e5a1, #d4af37);
    margin: 0 auto 20px;
    border-radius: 2px;
}

/* Carousel Container - Compact Width */
.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    min-height: auto;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Individual Card */
.testimonial-card-v2 {
    background: #f5f3ef;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.testimonial-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.testimonial-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #d4af37;
}

.testimonial-card-v2:hover::before {
    opacity: 1;
}

/* Avatar Container */
.avatar-container {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    position: relative;
}

/* Avatar Image (Real Photo) */
.avatar-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FFD700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.testimonial-card-v2:hover .avatar-image {
    transform: scale(1.05);
    border-color: #d4af37;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Avatar Icon (Fallback) */
.avatar-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.avatar-icon i {
    font-size: 30px;
    color: #FFD700;
}

.testimonial-card-v2:hover .avatar-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(27, 94, 32, 0.4);
}

/* Quote Icon */
.quote-icon {
    font-size: 24px;
    color: #d4af37;
    opacity: 0.3;
    margin-bottom: 10px;
}

/* Testimonial Text */
.testimonial-text {
    font-style: italic;
    color: #4a4a4a;
    line-height: 1.5;
    font-size: 13px;
    flex: 1;
    margin: 10px 0;
    position: relative;
    padding: 0 5px;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 20px;
    color: #d4af37;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-text::before {
    margin-right: 5px;
}

.testimonial-text::after {
    margin-left: 5px;
}

/* Customer Name */
.customer-name {
    color: #2E7D32;
    font-weight: 700;
    font-size: 14px;
    margin-top: 10px;
    position: relative;
    padding-top: 10px;
}

.customer-name::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

/* Carousel Navigation Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #d4af37;
    border-color: #1B5E20;
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: #FFD700;
}

/* Manual Navigation Buttons (Optional) */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(27, 94, 32, 0.8);
    color: #FFD700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.testimonials-carousel:hover .carousel-nav {
    opacity: 1;
    pointer-events: all;
}

.carousel-nav.prev {
    left: -25px;
}

.carousel-nav.next {
    right: -25px;
}

.carousel-nav:hover {
    background: #1B5E20;
    transform: translateY(-50%) scale(1.1);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.fade-out {
    animation: fadeOut 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .testimonials-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section-title-ykien {
        font-size: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .testimonials-section-v2 {
        padding: 60px 0;
    }

    .testimonials-carousel {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto;
    }

    .section-title-ykien {
        font-size: 26px;
    }

    .testimonial-card-v2 {
        padding: 25px 20px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .carousel-nav {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {

    .avatar-container,
    .avatar-image,
    .avatar-icon {
        width: 70px;
        height: 70px;
    }

    .avatar-icon i {
        font-size: 40px;
    }

    .testimonial-text {
        font-size: 13px;
    }

    .customer-name {
        font-size: 15px;
    }
}