/* ==========================================================================
   SECTION: ĐÁNH GIÁ & CẢM NHẬN KHÁCH HÀNG (TESTIMONIALS)
   Nền xanh nhạt chuẩn y tế (#f3f9fe), Card trắng tinh khiết, viền thanh lịch
   Responsive hoàn hảo: Tự động xuống dòng 100% trên Tablet & Mobile
   ========================================================================== */

.clinic-reviews-section.khachhang {
    background-color: #f3f9fe !important;
    background: linear-gradient(180deg, #f3f9fe 0%, #ebf5fd 100%) !important;
    padding: 65px 0 70px 0 !important;
    color: #1e293b !important;
    position: relative;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Header section */
.reviews-section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px auto;
}

.reviews-badge {
    display: inline-block;
    background-color: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.22);
    color: #0284c7;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 16px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.reviews-main-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f294a;
    line-height: 1.25;
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
}

.reviews-sub-title {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   REVIEWS GRID & CARDS
   ========================================================================== */
.reviews-grid-wrap {
    margin-bottom: 35px;
}

.reviews-grid-wrap .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.reviews-grid-col {
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    flex-direction: column;
}

/* Desktop: 2 columns 50% */
@media (min-width: 992px) {
    .reviews-grid-col {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
        margin-bottom: 0;
    }
}

.reviews-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 28px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 6px 20px rgba(15, 41, 74, 0.05);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.reviews-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    box-shadow: 0 16px 36px rgba(15, 41, 74, 0.1);
}

/* Top bar: Badge & Rating Stars */
.reviews-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 16px;
}

.reviews-quote-icon {
    font-size: 26px;
    color: #0284c7;
    opacity: 0.9;
    line-height: 1;
    margin-bottom: 14px;
}

.reviews-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #f59e0b;
    font-size: 14px;
}

/* Review Badge inside card */
.reviews-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 9999px;
    align-self: flex-start;
}

.reviews-card-badge.badge-official {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.reviews-card-badge.badge-vip {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #0284c7;
}

/* Review Content Text */
.reviews-card-content {
    font-size: 14.5px;
    line-height: 1.7;
    color: #334155;
    font-style: italic;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

/* Author Info */
.reviews-card-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.reviews-author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0284c7;
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.2);
    flex-shrink: 0;
}

.reviews-author-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid #0284c7;
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.2);
    flex-shrink: 0;
}

.reviews-author-meta {
    flex-grow: 1;
    min-width: 0;
}

.reviews-author-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f294a;
    margin: 0 0 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reviews-author-name .verified-icon {
    color: #0284c7;
    font-size: 13px;
    flex-shrink: 0;
}

.reviews-author-role {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   SOCIAL PROOF STATS BAR
   ========================================================================== */
.reviews-stats-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 4px 16px rgba(15, 41, 74, 0.04);
}

.reviews-stats-bar .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

.reviews-stat-col {
    text-align: center;
    position: relative;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    .reviews-stat-col {
        flex: 0 0 25%;
        max-width: 25%;
        width: 25%;
    }

    .reviews-stat-col:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background-color: #e2e8f0;
    }
}

.reviews-stat-number {
    font-size: 26px;
    font-weight: 800;
    color: #0284c7;
    line-height: 1.1;
    margin-bottom: 4px;
    font-family: 'Roboto', sans-serif;
}

.reviews-stat-label {
    font-size: 12px;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0;
}

/* Reset legacy elements from mystyle.css */
.clinic-reviews-section.khachhang .mota,
.clinic-reviews-section.khachhang .item .noidung,
.clinic-reviews-section.khachhang .owl-carousel3 {
    margin: 0 !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablet & Narrow Screens: <= 991px)
   Tự động xuống dòng cho các item khi thu nhỏ thiết bị
   ========================================================================== */
@media (max-width: 991px) {
    .clinic-reviews-section.khachhang {
        padding: 50px 0 55px 0 !important;
    }

    .reviews-section-header {
        margin-bottom: 30px;
    }

    .reviews-main-title {
        font-size: 26px;
    }

    /* Bắt buộc các item đánh giá xuống dòng 100% width khi thu nhỏ */
    .reviews-grid-wrap .row {
        display: block !important;
    }

    .reviews-grid-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        float: none !important;
        margin-bottom: 24px !important;
        display: block !important;
    }

    .reviews-grid-col:last-child {
        margin-bottom: 0 !important;
    }

    .reviews-card {
        padding: 24px 22px;
    }

    .reviews-card-content {
        font-size: 14px;
    }

    /* Thanh chỉ số: Chia 2 cột x 2 hàng cân xứng, có vạch ngăn */
    .reviews-stat-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        float: none !important;
        margin-bottom: 16px !important;
        padding: 8px 6px;
    }

    .reviews-stat-col:nth-last-child(-n+2) {
        margin-bottom: 0 !important;
    }

    /* Vạch ngăn dọc giữa cột 1-2 và cột 3-4 */
    .reviews-stat-col:nth-child(odd)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background-color: #e2e8f0;
    }

    .reviews-stat-col:nth-child(even)::after {
        display: none !important;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile: <= 767px)
   ========================================================================== */
@media (max-width: 767px) {
    .clinic-reviews-section.khachhang {
        padding: 42px 0 46px 0 !important;
    }

    .reviews-main-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .reviews-sub-title {
        font-size: 13.5px;
        line-height: 1.55;
    }

    .reviews-card {
        padding: 20px 18px;
        border-radius: 14px;
    }

    .reviews-card-content {
        font-size: 13.5px;
        line-height: 1.6;
        margin: 0 0 18px 0;
    }

    .reviews-card-author {
        padding-top: 15px;
        gap: 12px;
    }

    .reviews-author-avatar,
    .reviews-author-icon {
        width: 48px;
        height: 48px;
    }

    .reviews-author-icon {
        font-size: 18px;
    }

    .reviews-author-name {
        font-size: 14px;
        white-space: normal;
    }

    .reviews-author-role {
        font-size: 12px;
        white-space: normal;
    }

    .reviews-stats-bar {
        padding: 16px 14px;
    }

    .reviews-stat-number {
        font-size: 22px;
    }

    .reviews-stat-label {
        font-size: 11px;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Small Mobile: <= 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .reviews-badge {
        font-size: 10.5px;
        padding: 4px 12px;
        margin-bottom: 10px;
    }

    .reviews-main-title {
        font-size: 20px;
    }

    .reviews-sub-title {
        font-size: 13px;
    }

    .reviews-card {
        padding: 18px 14px;
    }

    .reviews-card-top {
        gap: 6px;
    }

    .reviews-card-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .reviews-stars {
        font-size: 12.5px;
    }

    .reviews-quote-icon {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .reviews-card-content {
        font-size: 13px;
        line-height: 1.55;
    }

    .reviews-author-avatar,
    .reviews-author-icon {
        width: 44px;
        height: 44px;
    }

    .reviews-author-name {
        font-size: 13.5px;
    }

    .reviews-stats-bar {
        padding: 14px 10px;
        border-radius: 12px;
    }

    .reviews-stat-number {
        font-size: 19px;
    }

    .reviews-stat-label {
        font-size: 10px;
        letter-spacing: 0.2px;
    }
}
