/* ===== FAQ · Massage At Home (Elementor) ===== */
.th-faq-athome{
  --accent:#117a42;       /* xanh chủ đạo */
  --accent-2:#0e6a3a;
  --brand:#e2b100;        /* vàng nút +/− */
  --text:#1a1a1a; --muted:#5f6b63;
  --card:#fff; --bg:#fff; --radius:16px;
  --shadow:0 10px 24px rgba(0,0,0,.08);
}

.th-faq-athome .elementor-container{background:var(--bg);border-radius:24px;padding:24px}

/* bỏ viền mặc định */
.th-faq-athome .elementor-accordion,
.th-faq-athome .elementor-toggle{border:none}

/* mỗi item là card */
.th-faq-athome .elementor-accordion-item,
.th-faq-athome .elementor-toggle-item{
  background:var(--card); border:1px solid #e6e6e6; border-radius:var(--radius);
  box-shadow:var(--shadow); margin:12px 0; overflow:hidden; transition:.25s ease;
}
.th-faq-athome .elementor-accordion-item:hover,
.th-faq-athome .elementor-toggle-item:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(0,0,0,.12)}

/* tiêu đề */
.th-faq-athome .elementor-tab-title{
  position:relative; padding:18px 68px 18px 20px; font-weight:800;
  color:var(--accent); background:#fff; border:none; white-space:normal; word-break:break-word;
}
.th-faq-athome .elementor-tab-title.elementor-active{
  color:#0c4e2e; background:linear-gradient(180deg, rgba(17,122,66,.08), rgba(17,122,66,.02));
}

/* ẩn icon mặc định */
.th-faq-athome .elementor-accordion-icon,
.th-faq-athome .elementor-toggle .elementor-tab-title .elementor-toggle-icon{display:none !important}

/* nút tròn +/− vàng */
.th-faq-athome .elementor-tab-title::after{
  content:'+'; position:absolute; right:16px; top:50%; transform:translateY(-50%);
  width:34px; height:34px; display:grid; place-items:center; border-radius:50%;
  background:linear-gradient(180deg, var(--brand), #d3a006); color:#fff; font-size:18px; font-weight:800;
  box-shadow:0 8px 20px rgba(226,177,0,.35); transition:.25s ease;
}
.th-faq-athome .elementor-tab-title.elementor-active::after{content:'–'}

/* nội dung */
.th-faq-athome .elementor-tab-content{
  padding:14px 20px 18px 20px; color:var(--muted); border:none; background:#eef8f1;
  animation:mah-faq-fade .24s ease;
}
@keyframes mah-faq-fade{from{opacity:.65;transform:translateY(-2px)}to{opacity:1;transform:none}}

/* focus */
.th-faq-athome .elementor-tab-title:focus{outline:2px solid var(--accent);outline-offset:2px;border-radius:10px}

/* mobile */
@media (max-width:767px){
  .th-faq-athome .elementor-tab-title{font-size:18px;padding:16px 70px 16px 16px}
  .th-faq-athome .elementor-tab-content{font-size:15px;line-height:1.7}
  .th-faq-athome .elementor-tab-title::after{right:12px;width:32px;height:32px}
}

/* === FIX 1: khoảng cách bên phải để icon không đè chữ (mobile & desktop) === */
.th-faq-athome .elementor-accordion .elementor-tab-title,
.th-faq-athome .elementor-toggle    .elementor-tab-title{
  padding-right:120px !important;   /* chỗ trống cho nút +/– */
}
@media (max-width: 767px){
  .th-faq-athome .elementor-accordion .elementor-tab-title,
  .th-faq-athome .elementor-toggle    .elementor-tab-title{
    padding-right:60px !important;  /* tăng thêm cho màn nhỏ */
    line-height:1.25; word-break:break-word; hyphens:auto;
  }
}

/* === FIX 2: icon + chuyển thành – khi mở (đúng selector của Elementor) === */
.th-faq-athome .elementor-accordion .elementor-tab-title::after,
.th-faq-athome .elementor-toggle    .elementor-tab-title::after{
  content:'+'; right:16px; top:50%; transform:translateY(-50%);
  width:34px; height:34px; position:absolute; display:grid; place-items:center;
  border-radius:50%; background:linear-gradient(180deg, #e2b100, #d3a006);
  color:#fff; font-weight:800; font-size:18px; box-shadow:0 8px 20px rgba(226,177,0,.35);
}
.th-faq-athome .elementor-accordion .elementor-accordion-item.elementor-active > .elementor-tab-title::after,
.th-faq-athome .elementor-toggle    .elementor-toggle-item.elementor-active    > .elementor-tab-title::after{
  content:'–' !important;
}

/* ===== FAQ TRONG BÀI VIẾT – MASSAGE AT HOME ===== */

.post-faq{
  --accent:#1b7d3a;
  --accent-deep:#0f5d2b;
  --brand:#f3b718;
  --muted:#555;
  --card:#fff;
  --radius:16px;
  --shadow:0 10px 24px rgba(0,0,0,.08);

  max-width: 960px;
  margin: 24px auto 32px;
  padding: 0 12px;
  font-family: inherit;
}

.post-faq-title{
  margin: 0 0 16px;
  text-align: center;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: .2px;
  color: var(--accent-deep);
}

.post-faq-list{
  display: grid;
  gap: 12px;
}

.post-faq-list details{
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.post-faq-list details:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
  border-color: rgba(243,183,24,.45);
}

.post-faq summary{
  position: relative;
  display: block;
  margin: 0;
  padding: 18px 78px 18px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  background: #fff;
  cursor: pointer;
  list-style: none;
  outline: none;
  font-family: inherit;
  line-height: 1.35;
}

.post-faq summary::-webkit-details-marker{ display:none !important; }
.post-faq summary::marker{ display:none !important; }

.post-faq details > summary::after{
  content:'+';
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:20px;
  font-weight:800;
  background:linear-gradient(180deg,#ffd25f,var(--brand));
  box-shadow:0 8px 18px rgba(243,183,24,.4);
  transition:.22s ease;
}

.post-faq details[open] > summary{
  background: linear-gradient(180deg, rgba(243,183,24,.07), rgba(243,183,24,.02));
  color: var(--accent-deep);
}
.post-faq details[open] > summary::after{
  content:'–';
  transform:translateY(-50%) rotate(0.001deg);
  background:linear-gradient(180deg,var(--brand),#ffb800);
}

.post-faq summary:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
  border-radius:10px;
}

.post-faq .post-faq-a{
  padding: 0 20px 18px 20px;
  background:#f5fbf6;
  color: var(--muted);
  border-top:1px dashed rgba(27,125,58,.4);
  font-size: .96rem;
  line-height:1.7;
  animation: mah-post-faq-fade .24s ease;
  font-family: inherit;
}

@keyframes mah-post-faq-fade{
  from{ opacity:.0; transform:translateY(-4px); }
  to{ opacity:1; transform:none; }
}

.post-faq .post-faq-a p{ margin: 8px 0 0; }

@media (max-width: 767px){
  .post-faq{ margin: 18px auto 26px; }
  .post-faq-title{ font-size: 1.4rem; }
  .post-faq summary{
    padding: 16px 72px 16px 16px;
    font-size: .98rem;
    line-height: 1.35;
    word-break: break-word;
    hyphens: auto;
  }
  .post-faq details > summary::after{ width:34px; height:34px; right:14px; font-size:18px; }
  .post-faq .post-faq-a{ padding: 0 16px 16px; font-size: .95rem; }
}

/* ============================================================
   MAH MODULE (Voucher + Contact + QR) – METALLIC GOLD VERSION
   ============================================================ */

.mahv, .mahc { clear: both; position: relative; z-index: 1; margin: 22px 0; }
.mahv * , .mahc * { box-sizing: border-box; }

:root{
  --mah-gold-1:#f6e6b0;
  --mah-gold-2:#d6b35a;
  --mah-gold-3:#b8862b;
  --mah-gold-4:#fff3c8;
  --mah-ink:#141414;
  --mah-green:#117a42;
  --mah-green2:#0f5d2b;
  --mah-shadow:0 14px 34px rgba(0,0,0,.10);
}

/* ===== Metallic border helper ===== */
.mahv, .mahc{
  border-radius:18px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, var(--mah-gold-4), var(--mah-gold-2), var(--mah-gold-3), var(--mah-gold-1)) border-box;
  border: 2px solid transparent;
  box-shadow: var(--mah-shadow);
}

/* ===== Voucher ===== */
.mahv{
  overflow:hidden;
}

.mahv[style*="--mah-v-bg"]{
  background-image:
    linear-gradient(#ffffff,#ffffff),
    var(--mah-v-bg),
    linear-gradient(135deg, var(--mah-gold-4), var(--mah-gold-2), var(--mah-gold-3), var(--mah-gold-1));
  background-size: auto, cover, auto;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-clip: padding-box, padding-box, border-box;
  background-origin: padding-box, padding-box, border-box;
}

/* layout */
.mahv-inner{
  display:grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  padding: 18px;
  align-items: center;
}

/* left poster */
.mahv-left{
  display:flex;
  justify-content:center;
  align-items:center;
}
.mahv-poster{
  width:100%;
  max-width: 320px;
  display:block;
  border-radius:14px;
  box-shadow:0 16px 34px rgba(0,0,0,.16);
  border:1px solid rgba(0,0,0,.06);
}
.mahv-left--empty{ min-height:220px; }
.mahv-noposter{
  font-weight:800;
  color:rgba(0,0,0,.55);
  padding:10px 14px;
  border-radius:12px;
  background:rgba(0,0,0,.03);
}

/* right content */
.mahv-title{
  margin:0 0 8px;
  color: var(--mah-green2);
  font-weight: 950;
  font-size: 22px;
  letter-spacing:.2px;
}
.mahv-sub{
  color: var(--mah-ink);
  font-weight: 750;
  margin-bottom: 10px;
}

.mahv-time{
  display:flex; gap:12px; align-items:center;
  margin: 10px 0 12px;
}
.mahv-pill{
  background: #fff;
  color: var(--mah-ink);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 950;
  border: 1px solid rgba(184,134,43,.35);
  box-shadow:0 10px 22px rgba(184,134,43,.14);
}
.mahv-dash{ color:rgba(0,0,0,.55); font-weight:900; }

.mahv-bullets{
  margin: 10px 0 14px;
  padding-left: 18px;
  color: rgba(0,0,0,.70);
  font-weight: 750;
}
.mahv-bullets li{ margin: 7px 0; }

/* CTA */
.mahv-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:4px; }

.mahv-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration:none !important;
  font-weight: 950;
}
.mahv-btn--primary{
  background: linear-gradient(180deg, var(--mah-gold-4), var(--mah-gold-2));
  color: #1a1a1a !important;
  box-shadow:0 12px 26px rgba(184,134,43,.18);
  border:1px solid rgba(184,134,43,.35);
}
.mahv-btn--primary:hover{ transform: translateY(-1px); }
.mahv-btn--ghost{
  background:#fff;
  color: var(--mah-green2) !important;
  border:1px solid rgba(17,122,66,.18);
}

/* ===== Contact + QR ===== */
.mahc{
  padding: 16px;
}
.mahc-grid{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 16px;
  align-items:start;
}

.mahc-title{
  margin:0 0 10px;
  color: var(--mah-green2);
  font-weight: 950;
  font-size: 20px;
}

.mahc-list{ margin:0; padding-left: 18px; }
.mahc-list li{
  margin: 9px 0;
  line-height: 1.65;
  color: var(--mah-ink);
}

.mahc-label{
  font-weight: 850;
  color: rgba(0,0,0,.65);
}

/* value nổi bật */
.mahc-val{
  font-weight: 950;
  color: var(--mah-green2);
  border-bottom: 1px dashed rgba(17,122,66,.35);
}
.mahc-list a{ text-decoration:none; }
.mahc-list a:hover .mahc-val{ border-bottom-style: solid; }

/* QR box */
.mahc-qr{
  border-radius: 14px;
  padding: 12px;
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(135deg, rgba(246,230,176,.85), rgba(214,179,90,.55), rgba(184,134,43,.45)) border-box;
  border: 1px solid transparent;
}
.mahc-qrt{
  font-weight: 950;
  color: var(--mah-green2);
  margin-bottom: 8px;
}
.mahc-qrwrap{
  display:flex; justify-content:center; align-items:center;
  background:#fff;
  border-radius: 12px;
  padding: 10px;
  border:1px solid rgba(0,0,0,.06);
}
.mahc-qrimg{ width:100%; max-width: 190px; height:auto; border-radius:10px; display:block; }
.mahc-qrnote{
  margin-top:10px;
  color: rgba(0,0,0,.60);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 750;
}
.mahc-qrplaceholder{
  color: rgba(0,0,0,.60);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 750;
}

/* responsive */
@media (max-width: 860px){
  .mahv-inner{ grid-template-columns: 1fr; }
  .mahv-poster{ max-width: 520px; }
  .mahc-grid{ grid-template-columns: 1fr; }
  .mahc-qrimg{ max-width: 260px; }
}

/* ============================================================
   MAH – GAY / FOR MEN MODULE (Dark + Gold) – scoped only
   Applies to: .mahv.mahv--gay  and  .mahc.mahc--gay
   ============================================================ */

.mahv.mahv--gay,
.mahc.mahc--gay{
  --gay-gold-1:#f6e6b0;
  --gay-gold-2:#d6b35a;
  --gay-gold-3:#b8862b;
  --gay-bg-1:#0b0b0c;
  --gay-bg-2:#151518;
  --gay-ink:#f3f3f3;
  --gay-muted:rgba(255,255,255,.78);
  --gay-shadow:0 18px 42px rgba(0,0,0,.35);

  background:
    linear-gradient(180deg, var(--gay-bg-2), var(--gay-bg-1)) padding-box,
    linear-gradient(135deg, rgba(246,230,176,.85), rgba(214,179,90,.55), rgba(184,134,43,.45)) border-box;
  border: 2px solid transparent;
  box-shadow: var(--gay-shadow);
}

.mahv.mahv--gay .mahv-title,
.mahc.mahc--gay .mahc-title{
  color: var(--gay-gold-2);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

.mahv.mahv--gay .mahv-sub{ color: var(--gay-muted); }

.mahv.mahv--gay .mahv-pill{
  background: rgba(0,0,0,.22);
  color: var(--gay-ink);
  border: 1px solid rgba(214,179,90,.35);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.mahv.mahv--gay .mahv-dash{ color: rgba(255,255,255,.55); }

.mahv.mahv--gay .mahv-bullets{ color: rgba(255,255,255,.80); }

.mahv.mahv--gay .mahv-btn--primary{
  background: linear-gradient(180deg, var(--gay-gold-1), var(--gay-gold-2));
  border: 1px solid rgba(214,179,90,.45);
  color:#111 !important;
}

.mahv.mahv--gay .mahv-btn--ghost{
  background: rgba(255,255,255,.06);
  color: var(--gay-gold-1) !important;
  border: 1px solid rgba(214,179,90,.22);
}

.mahv.mahv--gay .mahv-meta__label,
.mahv.mahv--gay .mahv-meta__apply{ color: rgba(255,255,255,.70); }

.mahv.mahv--gay .mahv-coupon{
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  color: #fff;
  border: 1px solid rgba(214,179,90,.35);
}

.mahc.mahc--gay .mahc-list li,
.mahc.mahc--gay .mahc-label{ color: rgba(255,255,255,.80); }

.mahc.mahc--gay .mahc-val{
  color: var(--gay-gold-1);
  border-bottom: 1px dashed rgba(214,179,90,.45);
}

.mahc.mahc--gay .mahc-qr{
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)) padding-box,
    linear-gradient(135deg, rgba(246,230,176,.75), rgba(214,179,90,.35), rgba(184,134,43,.30)) border-box;
  border: 1px solid transparent;
}

.mahc.mahc--gay .mahc-qrt,
.mahc.mahc--gay .mahc-qrnote{ color: rgba(255,255,255,.78); }

.mahc.mahc--gay .mahc-qrwrap{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
