/* ------------------------------------------------------------------
 * review.css — หน้ารีวิวจากลูกค้า
 * ------------------------------------------------------------------ */

/* ================= ส่วนหัว + สรุปคะแนน ================= */
.mhs-rv-hero {
    padding: 54px 0 48px;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(120, 0, 0, .96) 0%, rgba(161, 0, 0, .9) 45%, rgba(60, 0, 0, .95) 100%),
        url('../img-content/bg1.jpg') center/cover no-repeat;
}

.mhs-rv-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}

.mhs-rv-herosub {
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .92);
}

.mhs-rv-score {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    margin-top: 28px;
    padding: 18px 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .24);
}

.mhs-rv-scorenum strong {
    display: block;
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    color: #ffc046;
}

.mhs-rv-scorenum span {
    font-size: 12.5px;
    opacity: .8;
}

.mhs-rv-scoremeta {
    text-align: left;
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, .25);
}

.mhs-rv-scoremeta > span {
    display: block;
    margin-top: 6px;
    font-size: 13.5px;
    opacity: .85;
}

/* ================= ดาว ================= */
.mhs-rv-stars {
    display: inline-flex;
    gap: 3px;
    color: #ffb300;
    font-size: 14px;
}

.mhs-rv-stars.is-big { font-size: 19px; }

.mhs-rv-stars .is-off { color: rgba(150, 150, 150, .45); }

.mhs-rv-hero .mhs-rv-stars .is-off { color: rgba(255, 255, 255, .3); }

/* ================= การ์ดรีวิว ================= */
.mhs-rv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 22px;
}

.mhs-rv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #ececec;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.mhs-rv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .1);
}

/* เครื่องหมายคำพูดจางๆ วางไว้หลังตัวหนังสือ ไม่ให้บังการอ่าน */
.mhs-rv-quote {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 0;
    font-size: 40px;
    line-height: 1;
    color: rgba(161, 0, 0, .07);
}

.mhs-rv-stars,
.mhs-rv-text {
    position: relative;
    z-index: 1;
}

.mhs-rv-text {
    flex: 1;
    margin: 12px 0 16px;
    font-size: 15px;
    line-height: 1.85;
    color: #4a4a4a;
}

.mhs-rv-photo {
    display: block;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
}

.mhs-rv-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .35s ease;
}

.mhs-rv-photo:hover img { transform: scale(1.05); }

/* ---------- ท้ายการ์ด : ชื่อลูกค้า ---------- */
.mhs-rv-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px dashed #e6e6e6;
}

.mhs-rv-avatar {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #c62828, #a10000);
}

.mhs-rv-who {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.mhs-rv-who strong {
    font-size: 15px;
    color: #1f1f1f;
}

.mhs-rv-who small {
    font-size: 12.5px;
    color: #888;
}

.mhs-rv-who i { color: #a10000; }

.mhs-rv-date {
    flex: none;
    font-size: 12px;
    color: #aaa;
}

/* ---------- ปุ่มแอดมิน ---------- */
.mhs-rv-admin {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px dashed #eee;
}

.mhs-rv-admin form { margin: 0; }

/* ================= ไม่มีรีวิว ================= */
.mhs-rv-empty {
    padding: 54px 20px;
    text-align: center;
    font-size: 16px;
    color: #888;
    background: #fff;
    border: 1px dashed #ddd;
    border-radius: 16px;
}

.mhs-rv-empty i {
    display: block;
    font-size: 38px;
    color: #ccc;
    margin-bottom: 12px;
}

/* ================= ชวนลูกค้ารีวิว ================= */
.mhs-rv-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 34px;
    padding: 26px 28px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #a10000, #6d0000);
}

.mhs-rv-cta strong {
    display: block;
    font-size: 19px;
    margin-bottom: 4px;
}

.mhs-rv-cta span {
    font-size: 14.5px;
    opacity: .88;
}

.mhs-rv-ctabtns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mhs-rv-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.mhs-rv-btn.is-line { background: linear-gradient(135deg, #06c755, #04a344); }
.mhs-rv-btn.is-fb   { background: linear-gradient(135deg, #0084ff, #0064d2); }

.mhs-rv-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .28);
}

/* ================= หัวข้อผลงาน ================= */
.mhs-rv-h2 {
    position: relative;
    font-size: 26px;
    font-weight: 700;
    color: #1f1f1f;
    margin: 0 0 26px;
}

.mhs-rv-h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #a10000, #ff9000);
}

/* ================= จอเล็ก ================= */
@media (max-width: 767px) {
    .mhs-rv-hero { padding: 40px 0 36px; }
    .mhs-rv-hero h1 { font-size: 27px; }
    .mhs-rv-herosub { font-size: 15px; }

    .mhs-rv-score {
        gap: 16px;
        padding: 15px 20px;
    }

    .mhs-rv-scorenum strong { font-size: 34px; }
    .mhs-rv-scoremeta { padding-left: 16px; }

    .mhs-rv-grid { grid-template-columns: minmax(0, 1fr); }

    .mhs-rv-cta { flex-direction: column; align-items: flex-start; }
    .mhs-rv-ctabtns { width: 100%; }
    .mhs-rv-btn { flex: 1; justify-content: center; }

    .mhs-rv-h2 { font-size: 22px; }
}
