.container-reviews-youtube {
    background: linear-gradient(to right, #FFFBE6 0%, #FFFBE6 60%, #ffffff 100%);
}

.reviews {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0 60px;
}

.reviews-title {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    margin-bottom: 60px;
}

.reviews-title .mds {
    padding: 25px 10px 10px;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
}

.reviews-title .divider {
    width: 65px;
    height: 10px;
    margin: 0 auto 30px;
    background: #fcdb00;
}

.container_reviews .mds {
    padding: 25px 10px 10px;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
}

.container_reviews .divider {
    width: 65px;
    height: 10px;
    margin: 0 auto 30px;
    background: #fcdb00;
}

.reviews-title .txt {
    padding: 0 10px;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    font-weight: 400;
    color: #1C1C1C;
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.youtube-item {
    /* text-align: center; */
}

.youtube-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    margin-bottom: 15px;
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* border-radius: 10px; */
}

.youtube-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.youtube-description {
    /* font-family: Noto Sans JP; */
    font-weight: 500;
    font-size: 24px;
    line-height: 150%;
    color: #000000;
    /* text-align: center; */
}

.youtube-item-header {
    background: linear-gradient(360deg, rgba(255, 255, 255, 0) -18.75%, #21202066 100%);
    height: 50px;
    border-radius: 0 30px 0 0;
}

.youtube-item-content {
    background: linear-gradient(179deg, rgba(255, 255, 255, 0) 9.46%, #00000059 100%);
    height: 130px;
    display: flex;
    align-items: flex-end;
    border-radius: 0 0 0 30px;
    padding: 25px;
}

.youtube-button {
    text-align: center;
    margin-top: 50px;
}

.youtube-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #EE8300;
    color: #fff;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 0 30px 0 30px;
    /* font-family: Noto Sans JP; */
    font-size: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 200px;
}

.youtube-button-link:hover {
    opacity: 0.8;
}

.youtube-button-link svg {
    margin-left: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .youtube-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .youtube-container {
        padding: 0 15px;
    }

    .youtube-title {
        margin-bottom: 20px;
    }

    .youtube-item-header {
        /* border-radius: 10px 10px 0 0; */
        height: 150px;
    }

    .youtube-item-content {
        /* border-radius: 0 0 10px 10px; */
        height: auto;
    }

    .youtube-description {
        font-size: 24px;
    }
    
    .reviews {
        padding: 60px 10px;
    }
}

/* Customer Voices Section */
.customer-voices-section {
    /* background-color: #f7f7f7; */
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.customer-voices-section .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.section-title {
    font-size: 48px;
    color: #410226;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.customer-voices-section .section-title {
    margin: 0;
}

.section-title .underline {
    display: block;
    width: 10%;
    height: 4px;
    background-color: #EC008C;
    margin: 35px auto 0;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px auto;
    flex-wrap: wrap;
    width: 630px;
    /* background: #fff; */
    padding: 8px;
    border-radius: 15px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    border: 1px solid #E0E2E7;
}

.filter-btn {
    background-color: transparent;
    border: none;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    font-weight: 500;
}

.filter-btn.active {
    background-color: #EE8300;
    color: #fff;
}

.filter-btn:hover:not(.active) {
    background-color: #f5f5f5;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px auto;
    max-width: 1200px;
}

.testimonial-card {
    background-color: #E6EFF5;
    border-radius: 0 30px 0 30px;
    padding: 30px;
    text-align: left;
    /* position: relative; */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.testimonial-card .quote-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.testimonial-card .stars {
    margin-top: 0;
    /* margin-bottom: 15px; */
    color: #ffd700;
    font-size: 1.2em;
    letter-spacing: 2px;
}

.testimonial-card .header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.testimonial-card .testimonial-text {
    font-size: 20px;
    color: #101828;
    line-height: 150%;
    font-weight: 500;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    /* Allows text to take up available space */
}

.testimonial-card .customer-info {
    display: flex;
    align-items: center;
    /* margin-top: 20px; */
    gap: 15px;
}

.customer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 5px;
    object-fit: cover;
    /* border: 2px solid #ddd; */
    background: #FFFFFF;
}

.customer-details {
    text-align: left;
    display: grid;
    align-items: center;
    gap: 10px;
}

.customer-details p {
    display: inline-block;
    margin: 0;
}

.customer-name {
    font-weight: bold;
    color: #333;
    font-size: 1em;
}

.customer-location {
    font-size: 0.85em;
    color: #777;
    /* padding-left: 10px;
    border-left: 1px solid #ddd; */
}

/* Card Corner Shape */
.card-corner-shape {
    position: absolute;
    bottom: -30px;
    /* Adjust to hide part of the circle */
    right: -30px;
    /* Adjust to hide part of the circle */
    width: 80px;
    /* Size of the circle */
    height: 80px;
    background-color: #EC008C;
    /* Light pink/purple */
    border-radius: 50%;
    z-index: 0;
    /* Behind content */
}

#line-content .card-corner-shape {
    background-color: #1CBA1E;
}

#line-content .testimonial-card {
    background-color: #E8F8E9;
}

.testimonial-card .quote-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}


/* View More Button */
.view-more-button-container {
    text-align: center;
    margin: 40px auto;
    max-width: 610px;
    background: #fff;
    padding: 8px;
    border-radius: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    background-color: #EC008C;
    color: #fff;
    padding: 15px 40px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    opacity: 0.9;
}

.view-more-btn .arrow-icon {
    font-size: 1.2em;
}


.tab-content-review {
    display: none;
}

.tab-content-review.active {
    display: grid;
}

#youtube-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

#youtube-content .review-youtube-item {
    display: flex;
    flex-direction: column;
    background: #FFFBE6;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding-bottom: 20px;
}

#youtube-content .review-youtube-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    /* background: #FFFFFF; */
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
}

#youtube-content .review-youtube-item-header {
    height: 50px;
    /* background: #F8F8F8; */
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin-top: auto;
}

#youtube-content .review-youtube-item-header img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

#youtube-content .review-youtube-item-header p {
    font-size: 14px;
    color: #333333;
    margin: 0;
}

#youtube-content .review-youtube-wrapper iframe {
    position: relative;
    width: 90%;
    height: 200px;
    margin-top: 20px;
    border: none;
    border-radius: 10px;
}

#youtube-content .review-youtube-item-title {
    padding: 15px 0 0 15px;
    font-size: 20px;
    line-height: 150%;
    color: #101828;
    font-weight: 700;
    margin: 0;
    text-align: left;
}

#youtube-content .card-corner-shape {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background-color: #F04438;
    border-radius: 50%;
    z-index: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2em;
        margin: 0;
    }

    .section-description {
        font-size: 1em;
        line-height: 150%;
        margin: 0;
    }

    .filter-buttons {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 10px;
    }

    .filter-btn {
        width: auto;
        min-width: 120px;
        max-width: none;
        flex: 0 0 auto;
        padding: 10px 0;
        font-size: 16px;
    }

    /* Sửa lại phần này để hiển thị ngang và scroll */
    .testimonials-grid.active {
        /* display: flex !important; */
        flex-direction: row;
        overflow-x: auto;
        gap: 20px;
        max-width: 100vw;
        padding: 10px;
        
    }

    .testimonial-card,
    #line-content .testimonial-card,
    #google-content .testimonial-card {
        /* min-width: 270px;
        max-width: 80vw; */
        flex: 0 0 auto;
    }

    .review-youtube-item {
        /* min-width: 270px;
        max-width: 80vw; */
        flex: 0 0 auto;
    }

    .testimonial-card {
        padding: 25px;
        min-height: auto;
    }

    .customer-voices-section {
        padding: 40px 15px;
    }

    /* Ẩn scrollbar để giao diện đẹp hơn */
    .testimonials-grid.active::-webkit-scrollbar {
        display: none;
    }

    .testimonials-grid.active {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Ẩn scrollbar cho filter buttons */
    .filter-buttons::-webkit-scrollbar {
        display: none;
    }

    .filter-buttons {
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding: 10px;
        gap: 5px;
        width: 100%;
    }

    .customer-voices-section .container {
        padding: 0;
    }
}



/* page youtube */

.company-profile-section .section-title {
    display: none;
}

.section-title {
    font-size: 48px;
    color: #410226;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    text-align: center;
    border-left: none;
    width: 100%;
}

.section-title .underline {
    display: block;
    width: 10%;
    height: 4px;
    background-color: #EC008C;
    margin: 35px auto 0;
    border-radius: 2px;
}

.profile-value {
    background-color: #F4F4F4;
}

.company-profile-section {
    background-color: #FFFFFF;
}

.lawyer-container-qa {
    width: 100%;
    position: relative;
    background-color: #FFFFFF;
}

.sare-tsuma-youtube {
    padding: 50px 0;
}

.youtube-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.youtube-title {
    text-align: center;
    margin-bottom: 40px;
    display: inline-block;
    padding: 10px 30px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.youtube-title h2 {
    font-family: Noto Serif JP;
    font-weight: 700;
    font-size: 32px;
    color: #410226;
    margin: 0;
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}


.youtube-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    margin-bottom: 15px;
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* border-radius: 10px; */
}

.youtube-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}


/* .youtube-item-header {
    background: linear-gradient(360deg, rgba(255, 255, 255, 0) -18.75%, #212020cf 100%);
    height: 215px;
    border-radius: 10px 10px 0 0;
}

.youtube-item-content {
    background: linear-gradient(179deg, rgba(255, 255, 255, 0) 9.46%, #000000bf 100%);
    height: 215px;
    display: flex;
    align-items: flex-end;
    border-radius: 0 0 10px 10px;
} */

.youtube-button {
    text-align: center;
    margin-top: 50px;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    font-family: Noto Sans JP;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pagination a {
    background-color: #FFFFFF;
    color: #EE8300;
    border-color: #E0E0E0;
}

.pagination a:hover {
    background-color: #EE8300;
    color: #FFFFFF;
    border-color: #EE8300;
}

.pagination .current-page {
    background-color: #EE8300;
    color: #FFFFFF;
    border-color: #EE8300;
}

.pagination .arrow {
    position: relative;
    min-width: 40px;
}

.pagination .arrow.first-page::before {
    content: "«";
    font-size: 18px;
}

.pagination .arrow.prev-page::before {
    content: "‹ 前へ";
    font-size: 20px;
    font-weight: 400;
}

.pagination .arrow.next-page::before {
    content: "次へ ›";
    font-size: 20px;
    font-weight: 400;
}

.pagination .arrow.last-page::before {
    content: "»";
    font-size: 18px;
    font-weight: 400;
}

.pagination .ellipsis {
    color: #666;
    background: none;
    border: none;
    min-width: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .pagination {
        gap: 5px;
    }

    .pagination a,
    .pagination span {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
        font-size: 14px;
    }

    .section-title {
        line-height: 150%;
    }

    .youtube-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* page review */
/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 50px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    background-color: #fff;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination a:hover {
    background-color: #f8f9fa;
    border-color: #EE8300;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pagination .current-page {
    background-color: #EE8300;
    color: white;
    border-color: #EE8300;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(236, 0, 140, 0.3);
}

.pagination .arrow {
    font-size: 16px;
    font-weight: bold;
}

.pagination .arrow.first-page::before {
    content: "≪";
}

.pagination .arrow.prev-page::before {
    content: "‹ 前へ";
}

.pagination .arrow.next-page::before {
    content: "次へ ›";
}

.pagination .arrow.last-page::before {
    content: "≫";
}

.pagination .ellipsis {
    border: none;
    background: none;
    box-shadow: none;
    color: #666;
    font-weight: bold;
}

/* Hide all pagination by default */
.pagination {
    display: none;
}

/* Show pagination for active tab */
.pagination.active {
    display: flex;
}

/* No reviews message */
.no-reviews {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #666;
    font-size: 18px;
}

/* Lazy Loading */
.lazy {
    /* opacity: 0; */
    transition: opacity 0.3s ease;
}

.lazy.lazy-loaded {
    opacity: 1;
}

/* Đặc biệt cho iframe YouTube */
iframe.lazy {
    /* opacity: 0; */
    transition: opacity 0.5s ease;
}

iframe.lazy.lazy-loaded {
    opacity: 1;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {

    /* Banner Section */

    .contact-section-banner-content .section-title {
        font-size: 28px;
        padding: 0 20px;
        text-align: center;
    }

    .contact-section-banner-content p {
        font-size: 14px;
        padding: 0 20px;
        text-align: center;
    }

    /* Breadcrumb */
    .contact-section-breadcrumb {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Section Title */
    .section-title {
        font-size: 32px;
    }

    /* Filter Buttons */
    .filter-buttons {
        max-width: 100%;
        flex-direction: row;
        gap: 8px;
        /* margin: 30px 20px; */
        padding: 8px;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .filter-btn {
        flex: 1;
        padding: 12px 15px;
        font-size: 14px;
        white-space: nowrap;
        min-width: 0;
    }

    /* Testimonials Grid - Change to single column */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        /* margin: 30px 20px; */
        max-width: none;
    }

    .testimonial-card {
        padding: 20px;
        min-height: 200px;
    }

    .testimonial-card .testimonial-text {
        font-size: 16px;
        line-height: 140%;
    }

    .testimonial-card .stars {
        font-size: 1em;
    }

    .customer-avatar {
        width: 40px;
        height: 40px;
    }

    .customer-name {
        font-size: 14px;
    }

    .customer-location {
        font-size: 12px;
    }

    /* YouTube Content */
    #youtube-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #youtube-content .review-youtube-wrapper iframe {
        width: 95%;
        height: 180px;
        margin-top: 15px;
    }

    #youtube-content .review-youtube-item-title {
        font-size: 16px;
        padding: 10px 15px 0 15px;
    }

    #youtube-content .review-youtube-item-header {
        padding: 0 15px;
        height: 45px;
    }

    #youtube-content .review-youtube-item-header img {
        width: 25px;
        height: 25px;
    }

    #youtube-content .review-youtube-item-header p {
        font-size: 12px;
    }

    /* Corner Shape */
    .card-corner-shape {
        width: 60px;
        height: 60px;
        bottom: -20px;
        right: -20px;
    }

    /* Pagination */
    .pagination {
        margin: 30px 10px;
        gap: 5px;
    }

    .pagination a,
    .pagination span {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
        font-size: 12px;
    }

    /* View More Button */
    .view-more-button-container {
        margin: 30px 20px;
        max-width: none;
    }

    .view-more-btn {
        padding: 12px 30px;
        font-size: 16px;
        width: 100%;
    }

    /* No Reviews Message */
    .no-reviews {
        padding: 30px 20px;
        font-size: 16px;
    }

    /* Quote Icons */
    .testimonial-card .quote-icon img {
        width: 30px;
        height: 30px;
    }

    /* Customer Info Mobile Layout */
    .customer-info {
        gap: 10px;
    }

    .customer-details {
        gap: 8px;
    }

    /* Header Row Mobile */
    .testimonial-card .header-row {
        margin-bottom: 15px;
    }

    /* Mobile Typography Adjustments */
    body {
        font-size: 14px;
    }

    /* Hide overflow on mobile */
    .testimonials-grid {
        overflow-x: hidden;
    }

    /* Mobile specific pagination styling */
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Adjust spacing for mobile */
    .testimonial-card .customer-info {
        margin-top: 15px;
    }

    /* Mobile filter button hover states */
    .filter-btn:hover:not(.active) {
        background-color: #f0f0f0;
    }

    /* Mobile YouTube card adjustments */
    #youtube-content .review-youtube-item {
        padding-bottom: 15px;
        text-align: center;
    }

    /* Mobile breadcrumb responsive */
    .contact-section-breadcrumb p {
        font-size: 12px;
    }

    .contact-section-breadcrumb svg {
        width: 7px;
        height: 12px;
    }
}

.banner-image img{
    width: 100%;
    height: 20%;
    object-fit: cover;
    object-position: center;
}