/* Testimonial Carousel Styles - Scoped để tránh conflict */

.testimonial-carousel-wrapper {
    position: relative;
    max-width: 1290px;
    margin: 40px auto;
    padding: 0 20px;
}

.testimonial-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.testimonial-carousel-track-container {
    overflow: hidden;
    width: 100%;
    padding: 10px 0px;
}

.testimonial-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.testimonial-carousel-item {
    flex: 0 0 33.333%; /* Default 3 items */
    min-width: 0;
}

/* Navigation Buttons */
.testimonial-carousel-nav {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.testimonial-carousel-nav:hover:not(:disabled) {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: scale(1.1);
}

.testimonial-carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.testimonial-carousel-nav svg {
    width: 24px;
    height: 24px;
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    flex: 1;
    font-style: italic;
}

.testimonial-text p {
    margin: 0 0 15px 0;
}

.testimonial-text p:last-child {
    margin-bottom: 0;
}

.testimonial-author {
    margin-bottom: 15px;
}

.testimonial-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

.testimonial-meta {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.testimonial-rating {
    display: flex;
    gap: 3px;
    font-size: 20px;
}

.testimonial-rating .star {
    color: #ddd;
}

.testimonial-rating .star.filled {
    color: #ffc107;
}

/* Dots */
.testimonial-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: #ccc;
}

.carousel-dot.active {
    background: #007bff;
    border-color: #007bff;
    width: 30px;
    border-radius: 6px;
}

/* Empty State */
.testimonial-carousel-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    color: #999;
    font-size: 16px;
}
.testimonial-carousel-item .testimonial-author {
    display: flex;
}
/* Responsive */
@media (max-width: 1024px) {
    .testimonial-carousel-item {
        flex: 0 0 50% !important; /* 2 items on tablet */
    }
}

@media (max-width: 768px) {
    .testimonial-carousel-wrapper {
        padding: 0 10px;
    }
    
    .testimonial-carousel-container {
        gap: 10px;
    }
    
    .testimonial-carousel-track {
        gap: 15px;
    }
    
    .testimonial-carousel-item {
        flex: 0 0 100% !important; /* 1 item on mobile */
    }
    
    .testimonial-carousel-nav {
        width: 35px;
        height: 35px;
    }
    
    .testimonial-carousel-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
    
    .testimonial-name {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .testimonial-carousel-nav,
    .testimonial-carousel-dots {
        display: none;
    }
    
    .testimonial-carousel-track {
        transform: none !important;
        flex-wrap: wrap;
    }
}