/* ============================================================
   TrustWeb — Đánh giá khách hàng dạng HTML (thay ảnh chụp màn hình)
   Thẻ dựng theo mẫu .tw-review của trang dịch vụ nhưng đặt tiền tố
   .twrv- và tự khai biến màu, để không phụ thuộc dich-vu.css (file đó
   chỉ nạp trên single dich_vu).
   ============================================================ */

.twrv {
  --twrv-maroon: #7a100c;
  --twrv-maroon-deep: #5b0100;
  --twrv-gold: #c9a227;
  --twrv-gold-ink: #7a5c12;
  --twrv-card: #f3e8d4;
  --twrv-ink: #1b1713;
  --twrv-body: #4a4038;
  --twrv-muted: #9a8b86;
  --twrv-line: rgba(122, 16, 12, 0.14);
  color: var(--twrv-ink);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Tổng quan điểm ---------- */
.twrv__summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 clamp(24px, 3.4vw, 38px);
}
.twrv__score {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--twrv-maroon-deep);
}
.twrv__summary .twrv__stars {
  color: var(--twrv-gold-ink);
  font-size: 22px;
  letter-spacing: 2px;
  line-height: 1;
}
.twrv__count {
  font-size: 15px;
  color: var(--twrv-body);
}
.twrv__count a {
  color: var(--twrv-maroon-deep);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(122, 16, 12, 0.35);
}
.twrv__count a:hover {
  border-bottom-color: var(--twrv-maroon-deep);
}

/* ---------- Lưới thẻ ---------- */
.twrv__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.twrv__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--twrv-card);
  border: 1px solid var(--twrv-line);
  padding: 54px 20px 18px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(122, 16, 12, 0.06);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s;
}
.twrv__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(122, 16, 12, 0.14);
}

/* hoa văn góc maroon, dùng chung decor với card khác của web */
.twrv__card::before,
.twrv__card::after {
  content: "";
  position: absolute;
  top: 0;
  width: 48px;
  height: 48px;
  z-index: 1;
  pointer-events: none;
  background: url(../images/corner-dcor-2.svg) top left/contain no-repeat;
}
.twrv__card::before {
  left: 0;
}
.twrv__card::after {
  right: 0;
  background-image: url(../images/corner-dcor-2-flip.svg);
}

.twrv__head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 16px;
}
.twrv__avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--twrv-maroon), var(--twrv-maroon-deep));
  color: #f6edd9;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 19px;
  box-shadow: 0 4px 12px -4px rgba(122, 16, 12, 0.5);
}
.twrv__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}
.twrv__name {
  font-weight: 700;
  font-size: 16px;
  color: var(--twrv-ink);
}
.twrv__card .twrv__stars {
  color: var(--twrv-gold-ink);
  font-size: 15px;
  letter-spacing: 1.5px;
  line-height: 1;
}
.twrv__g {
  flex: 0 0 auto;
  line-height: 0;
  opacity: 0.95;
}

.twrv__text {
  margin: 0;
  color: var(--twrv-body);
  font-size: 15px;
  line-height: 1.75;
  font-style: italic;
  quotes: "\201C" "\201D";
}
.twrv__text::before {
  content: open-quote;
}
.twrv__text::after {
  content: close-quote;
}

.twrv__date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(30, 15, 25, 0.08);
  color: #9a8b86;
  font-size: 13px;
}

@media (max-width: 600px) {
  .twrv__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .twrv__card {
    padding: 48px 16px 16px;
  }
  .twrv__card::before,
  .twrv__card::after {
    width: 40px;
    height: 40px;
  }
  .twrv__score {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .twrv__card {
    transition: none;
  }
  .twrv__card:hover {
    transform: none;
  }
}

/* ---------- Nút xem thêm trên Google ---------- */
.twrv__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(22px, 3vw, 34px);
}
.twrv__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: var(--twrv-maroon-deep);
  color: #f6edd9;
  border: 1.5px solid var(--twrv-maroon-deep);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}
.twrv__btn:hover {
  background: transparent;
  color: var(--twrv-maroon-deep);
  transform: translateY(-1px);
}
.twrv__btn:focus-visible {
  outline: 2.5px solid var(--twrv-gold);
  outline-offset: 3px;
}
.twrv__btn svg {
  flex: 0 0 auto;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .twrv__btn {
    transition: none;
  }
  .twrv__btn:hover {
    transform: none;
  }
}

/* Tab chi nhánh (.cp-rv-tabs) KHÔNG đặt ở đây: in inline trong trustweb_reviews_tabs_css() vì khách
   mới (LiteSpeed Guest Mode) chỉ nhận UCSS sinh sẵn, rule mới trong file này không tới được họ. */
