/* =====================================================
   TSV - CẢM NHẬN KHÁCH HÀNG TRANG CHỦ
   File: modules/home-reviews/assets/css/tsv-home-reviews.css

   Cách dùng trong UX Builder:
   - Section class: tsv-review-section
   - Mỗi Column review class: tsv-review-card
   - Text trong mỗi Column có:
     .tsv-review-quote
     .tsv-review-info

   Giao diện:
   - Desktop: 2 cột
   - Mobile: 1 cột
   - Ảnh khách avatar tròn nhỏ
   - Chữ đã giảm độ đậm để nhìn nhẹ và sang hơn
===================================================== */


/* Section tổng */
.tsv-review-section {
    max-width: 1180px !important;
    margin: 38px auto 58px auto !important;
    padding: 46px 15px 52px 15px !important;
    background: #f7f8fa !important;
}


/* Giới hạn nội dung bên trong section */
.tsv-review-section > .section-content {
    max-width: 1080px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* Tiêu đề section */
.tsv-review-title {
    text-align: center !important;
    max-width: 820px !important;
    margin: 0 auto 34px auto !important;
}

.tsv-review-title h2 {
    margin: 0 0 10px 0 !important;
    color: var(--tsv-heading-color, #082b63) !important;
    font-size: var(--tsv-h2-size, 22px) !important;
    line-height: 1.32 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: -0.2px !important;
}

.tsv-review-title p {
    margin: 0 !important;
    color: #444444 !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
}


/* Row chứa các card */
.tsv-review-section .row {
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* Khoảng cách giữa 2 hàng review */
.tsv-review-section .row + .row {
    margin-top: 28px !important;
}


/* Card từng cảm nhận - class đặt ở Column */
.tsv-review-card {
    background: #ffffff !important;
    padding: 30px 34px !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 100% !important;
}


/* Ảnh trong card: ép thành avatar tròn nhỏ */
.tsv-review-card .img,
.tsv-review-card .img-inner,
.tsv-review-card .image-cover,
.tsv-review-card img {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    object-fit: cover !important;
}

.tsv-review-card .img {
    margin: 0 0 14px 0 !important;
}

.tsv-review-card img {
    display: block !important;
}


/* Ô nội dung đánh giá */
.tsv-review-quote {
    position: relative !important;
    background: #fbfaf6 !important;
    border-left: 3px solid #1e7be8 !important;
    padding: 17px 18px 17px 24px !important;
    margin: 0 0 18px 0 !important;
    color: #333333 !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    font-weight: 400 !important;
}


/* Thông tin khách */
.tsv-review-info {
    margin-top: 4px !important;
}

.tsv-review-info strong {
    display: block !important;
    color: #082b63 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.tsv-review-info span {
    display: block !important;
    margin-top: 4px !important;
    color: #666666 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
}


/* Giảm đậm cho toàn bộ chữ trong khu vực review nếu Flatsome ép bold */
.tsv-review-section,
.tsv-review-section p,
.tsv-review-section span,
.tsv-review-section div {
    font-weight: 400 !important;
}


/* Giữ riêng tiêu đề và tên khách ở mức vừa phải, không quá dày */
.tsv-review-title h2,
.tsv-review-info strong {
    font-weight: 600 !important;
}


/* Tablet */
@media only screen and (max-width: 1024px) {
    .tsv-review-section {
        padding: 40px 14px 46px 14px !important;
    }

    .tsv-review-card {
        padding: 26px 22px !important;
    }

    .tsv-review-title h2 {
        font-size: var(--tsv-h2-size-tablet, 20px) !important;
        font-weight: 600 !important;
    }
}


/* Mobile */
@media only screen and (max-width: 768px) {
    .tsv-review-section {
        margin: 30px auto 42px auto !important;
        padding: 32px 14px 36px 14px !important;
    }

    .tsv-review-section > .section-content {
        max-width: 100% !important;
    }

    .tsv-review-title {
        margin-bottom: 22px !important;
        text-align: center !important;
    }

    .tsv-review-title h2 {
        font-size: var(--tsv-h2-size-mobile, 18px) !important;
        line-height: 1.35 !important;
        margin-bottom: 8px !important;
        font-weight: 600 !important;
    }

    .tsv-review-title p {
        font-size: 15px !important;
        line-height: 1.65 !important;
        font-weight: 400 !important;
    }

    .tsv-review-section .row {
        max-width: 100% !important;
    }

    .tsv-review-section .row + .row {
        margin-top: 0 !important;
    }

    .tsv-review-card {
        padding: 22px 18px !important;
        margin-bottom: 16px !important;
    }

    .tsv-review-quote {
        font-size: 15px !important;
        line-height: 1.7 !important;
        padding: 15px 16px 15px 20px !important;
        margin-bottom: 16px !important;
        font-weight: 400 !important;
    }

    .tsv-review-card .img,
    .tsv-review-card .img-inner,
    .tsv-review-card .image-cover,
    .tsv-review-card img {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
    }

    .tsv-review-info strong {
        font-size: 16px !important;
        font-weight: 600 !important;
    }

    .tsv-review-info span {
        font-size: 14px !important;
        font-weight: 400 !important;
    }
}

/* =====================================================
   06. GIAO DIỆN DỰ PHÒNG CHO SHORTCODE

   Phần này thuộc giao diện của website hiện tại.
   Module quản trị chỉ xuất cấu trúc HTML trung lập và không tự nạp CSS.
===================================================== */

.tsv-home-reviews-fallback {
    box-sizing: border-box;
}

.tsv-home-reviews-fallback .section-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 15px;
}

.tsv-home-reviews-fallback .tsv-home-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tsv-home-reviews-fallback .tsv-review-card {
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
}

.tsv-home-reviews-fallback .tsv-review-avatar-img {
    margin: 0 0 12px;
}

.tsv-home-reviews-fallback .tsv-review-avatar-img img {
    display: block;
    width: 72px;
    height: 72px;
    max-width: 72px;
    object-fit: cover;
}

.tsv-home-reviews-fallback .tsv-review-quote {
    margin-bottom: 12px;
}

.tsv-home-reviews-fallback .tsv-review-info strong,
.tsv-home-reviews-fallback .tsv-review-info span {
    display: block;
}

@media only screen and (max-width: 768px) {
    .tsv-home-reviews-fallback .tsv-home-reviews-grid {
        grid-template-columns: 1fr;
    }
}
