/* ===== m98app – giao diện trang chủ (chỉ áp dụng cho .home) ===== */
.home {
  --m98-teal: #0e4a43;
  --m98-teal-2: #14b8a6;
  --m98-gold: #eab308;
  --m98-ink: #1e293b;
  --m98-muted: #5b6b7a;
  --m98-bg: #eef5f4;
}
.home #main, .home .page-wrapper { background: var(--m98-bg); }
.home .page-wrapper { padding-top: 0; }

/* Slider/banner */
.home .slider-wrapper, .home .slider-wrapper img { border-radius: 0 0 18px 18px; overflow: hidden; }

/* Mỗi row nội dung = một thẻ */
.home .row-main > .col > .col-inner > .row {
  max-width: 1080px;
  margin: 22px auto 0;
}
.home .row-main > .col > .col-inner > .row > .col > .col-inner {
  background: #fff;
  border-radius: 16px;
  padding: 26px 30px;
  box-shadow: 0 6px 24px rgba(14, 74, 67, .08);
  border: 1px solid rgba(14, 74, 67, .06);
}
.home .row-main > .col > .col-inner > .row > .col { padding-bottom: 0; }

/* Row đầu (H1 + đoạn giới thiệu) = hero */
.home .row-main > .col > .col-inner > .row:has(h1) > .col > .col-inner {
  background: linear-gradient(135deg, #0e4a43 0%, #0f6b5f 55%, #14b8a6 100%);
  color: #fff;
  padding: 34px 34px 28px;
  border: 0;
  box-shadow: 0 12px 30px rgba(14, 74, 67, .25);
}
.home .row:has(h1) h1 {
  background: none;
  box-shadow: none;
  border: 0;
  color: #fff;
  font-size: 30px;
  padding: 0;
  margin: 0 0 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.home .row:has(h1) blockquote {
  margin: 0;
  padding: 18px 22px;
  border: 0;
  border-left: 4px solid var(--m98-gold);
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  font-style: normal;
  font-size: 16px;
  line-height: 1.8;
}
.home .row:has(h1) blockquote::before { display: none; }
.home .row:has(h1) blockquote p { color: #f1fbf9; margin: 0; }
.home .row:has(h1) blockquote a { color: var(--m98-gold); }

/* Chữ & tiêu đề */
.home .row-main p, .home .row-main li { color: #334155; line-height: 1.8; font-size: 16px; }
.home .row-main a { color: #0f766e; font-weight: 600; }
.home .row-main a:hover { color: var(--m98-gold); }
.home .row-main h2 {
  margin-top: 0;
  font-size: 23px;
  color: var(--m98-teal);
  border-bottom: 0;
  padding-bottom: 0;
}
.home .row-main h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--m98-gold), var(--m98-teal-2));
}
.home .row-main h3 {
  margin-top: 26px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f1f8f7;
  color: var(--m98-teal);
  font-size: 18px;
}

/* Bảng thông tin */
.home .row-main table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dbe9e7;
  margin: 18px 0 6px;
}
.home .row-main table caption {
  caption-side: top;
  text-align: left;
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  background: var(--m98-teal);
  padding: 12px 16px;
}
.home .row-main table th,
.home .row-main table td {
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #e6f0ee;
  font-size: 15px;
  vertical-align: top;
}
.home .row-main table th { width: 34%; background: #f4faf9; color: var(--m98-teal); font-weight: 600; text-align: left; }
.home .row-main table tr:last-child th,
.home .row-main table tr:last-child td { border-bottom: 0; }

/* Ảnh minh hoạ */
.home .row-main .wp-caption { max-width: 100%; margin: 14px auto 6px; }
.home .row-main .wp-caption img { border-radius: 14px; box-shadow: 0 8px 22px rgba(15, 23, 42, .12); }
.home .row-main .wp-caption-text { color: var(--m98-muted); font-size: 13px; margin-top: 8px; }

/* Danh sách khuyến mãi */
.home .row-main ul { list-style: none; margin-left: 0; padding-left: 0; }
.home .row-main ul li {
  position: relative;
  padding: 10px 14px 10px 42px;
  margin-bottom: 8px;
  background: #fbfdfd;
  border: 1px solid #e3efed;
  border-radius: 10px;
}
.home .row-main ul li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 10px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--m98-gold);
  border-radius: 50%;
}
.home .row-main ul li strong { color: var(--m98-teal); }

/* Các bước đăng ký / đăng nhập */
.home .row-main ol { counter-reset: m98step; list-style: none; margin-left: 0; padding-left: 0; }
.home .row-main ol li {
  counter-increment: m98step;
  position: relative;
  padding: 4px 0 14px 50px;
  margin: 0;
}
.home .row-main ol li::before {
  content: counter(m98step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--m98-teal), var(--m98-teal-2));
  border-radius: 50%;
}
.home .row-main ol li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: 2px;
  width: 2px;
  background: #d5e8e5;
}

/* Ghi chú in nghiêng */
.home .row-main p > em:only-child {
  display: block;
  font-style: normal;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff8e1;
  border-left: 4px solid var(--m98-gold);
  color: #6b5200;
  font-size: 14px;
}

/* Mobile */
@media (max-width: 849px) {
  .home .row-main > .col > .col-inner > .row,
  .home .row-main > .col > .col-inner > .row { margin-top: 16px; }
}
@media (max-width: 549px) {
  .home .row-main > .col > .col-inner > .row > .col > .col-inner,
  .home .row-main > .col > .col-inner > .row > .col > .col-inner { padding: 18px 16px; border-radius: 12px; }
  .home .row-main > .col > .col-inner > .row:has(h1) > .col > .col-inner,
  .home .row-main > .col > .col-inner > .row:has(h1) > .col > .col-inner { padding: 22px 16px 18px; }
  .home .row:has(h1) h1 { font-size: 22px; text-align: left; }
  .home .row:has(h1) blockquote { padding: 14px 16px; font-size: 15px; }
  .home .row-main h2 { font-size: 20px; }
  .home .row-main h3 { font-size: 16px; }
  .home .row-main table th, .home .row-main table td { display: block; width: 100%; box-sizing: border-box; padding: 8px 14px; }
  .home .row-main table th { border-bottom: 0; padding-top: 12px; }
}
