.testimonials-section {
    background-color: #07a698;
    padding: 100px 0;
    position: relative;
    overflow: hidden; /* Quan trọng để cắt tỉa các phần tử decor */
    width: 100%;
}

.testimonials-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Header Badge */
.testimonials-badge-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.testimonials-badge {
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 20px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.95;
}

.badge-icon {
    width: 30px;
    height: 30px;
}

.badge-text {
    color: #373737;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

/* Section Title */
.testimonials-title {
    color: #FFFFFF;
    font-size: 44px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 70px;
    letter-spacing: 0.44px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 36px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    min-height: 272px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-quote {
    color: #524C4C;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f0f0f0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: #524C4C;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.author-role {
    color: #07A698;
    font-size: 16px;
    font-weight: 400;
    margin-top: 4px;
}

/* Decorative Elements */
.testimonials-decor {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.decor-x {
    top: 30px;
    left: 40px;
    width: 100px;
}

.decor-dots {
    top: 50px;
    right: -30px;
    width: 120px;
}

/* Responsive */
@media (max-width: 1200px) {
    .testimonials-grid {
        gap: 20px;
    }
    
    .testimonials-title {
        font-size: 36px;
    }
}

@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Màn hình nhỏ hơn 768px (Tablet & Mobile) */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-title {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 20px 20px 20px;
        gap: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 300px;
        scroll-snap-align: center;
        height: auto;
    }

    .testimonial-card:last-child {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }

    /* Ẩn triệt để decor để tránh tràn màn hình mobile */
    .testimonials-decor {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .testimonials-title {
        font-size: 26px;
    }

    .testimonial-card {
        flex: 0 0 280px;
    }
}

/* Sửa lỗi cho màn hình 320px */
@media (max-width: 375px) {
    .testimonials-title {
        font-size: 22px;
        padding: 0 10px;
    }

    .testimonial-card {
        flex: 0 0 260px; /* Thu nhỏ card để lọt thỏm trong 320px */
    }
}
