/* RAM CMS 1.3 — premium compact review section.
   Applies to the shared review block on all public service pages. */
body section#รีวิว {
  padding-block: clamp(34px, 3.7vw, 48px) !important;
  background:
    radial-gradient(ellipse 72% 110% at 100% 0%, rgba(102, 190, 86, .1), transparent 65%),
    linear-gradient(180deg, #eef4f0 0%, #e6eee8 100%);
}
body section#รีวิว .container { position: relative; }
body section#รีวิว .section-head,
body section#รีวิว .section-head.center {
  display: grid;
  gap: 6px;
  max-width: 100%;
  margin: 0 0 16px;
  text-align: left;
}
body section#รีวิว .section-head .kicker {
  width: max-content;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid #d7eadb;
  border-radius: 999px;
  background: linear-gradient(180deg, #e8f5eb, #deefe3);
  color: #166d39;
  font: 850 10px/1.2 system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body section#รีวิว .section-head h2 {
  margin: 0;
  color: #122e20;
  font-size: clamp(22px, 2.25vw, 31px) !important;
  font-weight: 900;
  line-height: 1.27;
  letter-spacing: -.028em;
}
body section#รีวิว .section-head h2 strong { color: #13833c; }
body section#รีวิว .section-head p {
  max-width: 880px;
  margin: 0;
  color: #5b7466;
  font-size: clamp(12px, .95vw, 14px);
  line-height: 1.48;
}
body section#รีวิว .review-note { display: none !important; }
body section#รีวิว .reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}
body section#รีวิว .review-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 16px 17px 14px;
  border: 1px solid rgba(24, 101, 55, .1);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f5faf7 100%);
  box-shadow: 0 9px 25px rgba(17, 63, 37, .06), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body section#รีวิว .review-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 148, 80, .22);
  box-shadow: 0 12px 30px rgba(14, 74, 40, .08);
}
body section#รีวิว .review-card .stars {
  display: inline-flex;
  width: max-content;
  margin: 0;
  color: #f2b91d;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
}
body section#รีวิว .review-card > p {
  margin: 0;
  color: #22332a;
  font-size: 13px;
  line-height: 1.68;
}
body section#รีวิว .review-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e0ebe4;
}
body section#รีวิว .review-card > footer strong {
  color: #14261d;
  font-size: 14px;
  font-weight: 900;
}
body section#รีวิว .review-card > footer span {
  color: #657b6d;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}
@media (max-width: 1040px) {
  body section#รีวิว .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body section#รีวิว { padding-block: 27px 31px !important; }
  body section#รีวิว .section-head,
  body section#รีวิว .section-head.center { gap: 5px; margin-bottom: 13px; }
  body section#รีวิว .section-head h2 { font-size: clamp(20px, 5.6vw, 24px) !important; }
  body section#รีวิว .section-head p { font-size: 11.5px; }
  body section#รีวิว .reviews-grid { grid-template-columns: 1fr; gap: 9px; }
  body section#รีวิว .review-card { padding: 13px 13px 12px; border-radius: 13px; }
  body section#รีวิว .review-card .stars { font-size: 13px; letter-spacing: 1.7px; }
  body section#รีวิว .review-card > p { font-size: 12px; line-height: 1.62; }
  body section#รีวิว .review-card > footer { padding-top: 10px; }
  body section#รีวิว .review-card > footer strong { font-size: 13px; }
  body section#รีวิว .review-card > footer span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  body section#รีวิว .review-card { transition: none; }
  body section#รีวิว .review-card:hover { transform: none; }
}
