/* ── RESET CỤC BỘ (không xung đột GP) ── */
.faq-page *,
.faq-page *::before,
.faq-page *::after { box-sizing: border-box; }

/* ── BIẾN MÀU ── */
:root {
  --vg:   #D4922A;
  --vgl:  #F2B94B;
  --vgp:  #FDF3E3;
  --vgd:  #B8781A;
  --vn:   #0E2A47;
  --vnm:  #163B5F;
  --vnl:  #1E4D7B;
  --vns:  #0A1F35;
  --voff: #F8F5F0;
  --vw:   #fff;
  --vtx:  #1C1C1C;
  --vmu:  #6B6B6B;
  --vlt:  #9A9A9A;
  --vbr:  rgba(212,146,42,.2);
  --vbr2: rgba(212,146,42,.12);
  --vsh:  0 1px 8px rgba(0,0,0,.05);
  --vsh-md: 0 4px 24px rgba(0,0,0,.09);
  --vsh-lg: 0 12px 48px rgba(0,0,0,.12);
  --vr:   12px;
  --vrb:  14px;
  --cat-kt: #4caf50;
  --cat-dh: #2196f3;
  --cat-cn: #f44336;
  --cat-tt: #ff9800;
  --cat-vs: #9c27b0;
}

/* ── WRAPPER TRANG ── */
.faq-page {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--vtx);
  background: var(--voff);
  overflow-x: hidden;
}

/* ── FULL-WIDTH FIX ──
   Nguyên nhân: GP dùng float-based grid .grid-80 = float:left + width:80%
   Fix: xoá float, set width:100%, KHÔNG đụng margin (GP cần margin:auto để căn giữa #page) */

body.page-template-faq #page {
  max-width: 100% !important;
  padding:     0  !important;
}

body.page-template-faq .site-content {
  display: block !important;
}

body.page-template-faq #content,
body.page-template-faq #primary {
  float:      none  !important;
  width:      100%  !important;
  max-width:  100%  !important;
  padding:      0   !important;
}

body.page-template-faq #main,
body.page-template-faq article,
body.page-template-faq .inside-article,
body.page-template-faq .entry-content {
  width:      100%  !important;
  max-width:  100%  !important;
  padding:      0   !important;
}

/* ── HERO ── */
.faq-hero {
  background: linear-gradient(
    135deg,
    rgba(9,27,47,.98)   0%,
    rgba(14,42,71,.94)  50%,
    rgba(22,59,95,.88)  75%,
    rgba(25,50,80,.92) 100%
  );
  min-height: 480px;
  display: flex;
  flex-direction: column;
  padding: 60px 48px 70px 48px;
  position: relative;
  overflow: hidden;
}
.faq-hero::before {
  content: '';
  position: absolute; top: -120px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,146,42,.06) 0%, transparent 65%);
  pointer-events: none;
}
.faq-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(transparent, var(--voff));
  pointer-events: none;
}
.hero-grid-deco {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: .03;
}
.hero-grid-deco::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner { max-width: 1200px !important; width: 100% !important; margin-left: auto; margin-right: auto; position: relative; z-index: 2; }

/* Breadcrumb */
.faq-breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 20px; }
.faq-breadcrumb a {
  color: rgba(255,255,255,.38); font-size: 12px; text-decoration: none; transition: color .2s;
}
.faq-breadcrumb a:hover { color: rgba(255,255,255,.7); }
.faq-breadcrumb .sep  { color: rgba(255,255,255,.2); font-size: 12px; }
.faq-breadcrumb .cur  { color: var(--vgl); font-size: 12px; font-weight: 600; }

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(212,146,42,.1); border: 1px solid rgba(212,146,42,.25);
  border-radius: 100px; padding: 5px 14px; margin-bottom: 14px;
}
.hero-eyebrow span {
  font-size: 10px; font-weight: 700; color: var(--vgl);
  text-transform: uppercase; letter-spacing: 2.5px;
}

/* H1 */
.hero-h1 {
  font-family: 'Be Vietnam Pro', serif;
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 900; color: #fff; line-height: 1.12; margin-bottom: 12px;
}
.hero-h1 em { color: var(--vgl); font-style: italic; }
.hero-sub {
  font-size: 14px; color: rgba(255,255,255,.5);
  line-height: 1.8; max-width: 540px; margin-bottom: 30px; font-weight: 400;
}

/* Search bar */
.hero-search {
  display: flex; max-width: 640px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 12px; overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
  backdrop-filter: blur(12px);
}
.hero-search:focus-within {
  border-color: rgba(212,146,42,.5);
  box-shadow: 0 0 0 4px rgba(212,146,42,.08), 0 8px 24px rgba(0,0,0,.15);
}
.search-icon {
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px; color: rgba(255,255,255,.3); flex-shrink: 0;
}
.hero-search input {
  flex: 1; padding: 15px 8px 15px 0; font-size: 14.5px;
  font-family: 'Be Vietnam Pro', sans-serif;
  border: none; background: transparent; color: #fff; outline: none;
}
.hero-search input::placeholder { color: rgba(255,255,255,.3); font-weight: 400; }
.hero-search button {
  padding: 12px 24px; margin: 5px 5px 5px 0;
  background: linear-gradient(135deg, var(--vg), var(--vgl));
  color: var(--vn); border: none; cursor: pointer; border-radius: 9px;
  font-size: 13px; font-weight: 700;
  font-family: 'Be Vietnam Pro', sans-serif;
  transition: all .2s; white-space: nowrap;
}
.hero-search button:hover {
  box-shadow: 0 6px 18px rgba(212,146,42,.45); transform: translateY(-1px);
}

/* Quick topics */
.quick-topics {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px;
}
.qt-label {
  font-size: 11px; color: rgba(255,255,255,.3);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
}
.qt-tag {
  padding: 5px 13px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.65); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .25s;
}
.qt-tag:hover { border-color: var(--vg); color: var(--vgl); background: rgba(212,146,42,.1); }

/* Stats strip */
.hero-stats {
  display: flex; gap: 0; margin-top: 36px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap;
}
.hstat {
  text-align: center; padding: 0 32px 0 0;
  border-right: 1px solid rgba(255,255,255,.08);
  margin-right: 32px;
}
.hstat:last-child { border-right: none; margin-right: 0; }
.hstat strong {
  display: block; font-family: 'Be Vietnam Pro', serif;
  font-size: 24px; font-weight: 700; color: var(--vgl);
  line-height: 1; margin-bottom: 4px;
}
.hstat span {
  font-size: 11px; color: rgba(255,255,255,.38);
  text-transform: uppercase; letter-spacing: 1.5px;
}

/* ── BODY LAYOUT ── */
.faq-body { background: var(--voff); padding: 0 48px 96px; }
.faq-body-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 292px; gap: 36px;
  padding-top: 40px;
}

/* ── CATEGORY TABS ── */
.cat-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-tab {
  padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(0,0,0,.09); background: var(--vw); color: var(--vmu);
  cursor: pointer; transition: all .22s; display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Be Vietnam Pro', sans-serif; box-shadow: var(--vsh);
}
.cat-tab:hover  { border-color: var(--vg); color: var(--vg); background: var(--vgp); }
.cat-tab.active { background: var(--vn); color: #fff; border-color: var(--vn); box-shadow: 0 4px 14px rgba(14,42,71,.2); }
.cat-count { font-size: 10.5px; padding: 1px 7px; border-radius: 100px; font-weight: 700; }
.cat-tab.active  .cat-count { background: rgba(255,255,255,.15); color: rgba(255,255,255,.8); }
.cat-tab:not(.active) .cat-count { background: rgba(0,0,0,.06); color: var(--vmu); }

/* ── RESULTS BAR ── */
.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  background: var(--vw); border-radius: 10px; border: 1px solid rgba(0,0,0,.06);
  padding: 11px 18px; margin-bottom: 16px; box-shadow: var(--vsh); font-size: 13px;
  color: var(--vtx);
}
.results-bar strong { color: var(--vn); font-weight: 700; }
.sort-wrap { display: flex; align-items: center; gap: 8px; }
.sort-wrap label { font-size: 11px; color: var(--vlt); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.sort-wrap select {
  border: 1px solid rgba(0,0,0,.1); border-radius: 7px;
  padding: 5px 10px; font-size: 12px; font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--vtx); background: var(--voff); outline: none; cursor: pointer; font-weight: 600;
}

/* ── FAQ ACCORDION ── */
.faq-list { display: flex; flex-direction: column; gap: 9px; }

.faq-item {
  background: var(--vw); border-radius: var(--vr);
  border: 1px solid rgba(0,0,0,.06); overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .2s;
  box-shadow: var(--vsh);
}
.faq-item:hover { border-color: rgba(212,146,42,.25); box-shadow: var(--vsh-md); transform: translateY(-1px); }
.faq-item.open  { border-color: var(--vbr); box-shadow: 0 4px 24px rgba(212,146,42,.1); }
.faq-item.open:hover { transform: none; }

.faq-q {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 17px 20px; cursor: pointer;
  transition: background .2s; list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-item.open .faq-q { background: rgba(253,243,227,.35); }

.faq-cat-dot {
  flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%;
  margin-top: 9px; opacity: .75;
}
.faq-q-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  background: var(--voff); transition: background .2s, transform .2s;
  margin-top: -1px;
}
.faq-item.open .faq-q-icon { background: var(--vgp); transform: scale(1.05); }
.faq-q-text { flex: 1; font-size: 14.5px; font-weight: 600; color: var(--vn); line-height: 1.45; }
.faq-q-text mark {
  background: rgba(212,146,42,.2); color: var(--vn);
  border-radius: 3px; padding: 0 3px; font-weight: inherit;
}
.faq-chevron {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 4px; color: var(--vlt);
  transition: transform .3s cubic-bezier(.68,-.55,.27,1.55), color .2s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--vg); }

/* Đóng/mở bằng CSS transition */
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), opacity .3s ease;
  opacity: 0;
}
.faq-item.open .faq-a { max-height: 900px; opacity: 1; }

.faq-a-inner {
  padding: 0 20px 20px 64px;
  font-size: 13.5px; color: #444; line-height: 1.85;
}
.faq-a-inner p + p { margin-top: 10px; }
.faq-a-inner strong { color: var(--vn); font-weight: 700; }
.faq-a-inner ul { margin: 10px 0 10px 18px; }
.faq-a-inner li { margin-bottom: 7px; line-height: 1.7; }
.faq-a-inner .faq-note {
  margin-top: 14px; padding: 11px 15px; border-radius: 9px;
  background: var(--vgp); border-left: 3px solid var(--vg);
  font-size: 13px; color: #555; line-height: 1.7;
}
.faq-a-inner .faq-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.faq-a-chip {
  padding: 4px 12px; border-radius: 7px; font-size: 11.5px; font-weight: 700;
  background: rgba(14,42,71,.06); color: var(--vn); border: 1px solid rgba(14,42,71,.1);
}
.faq-a-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 9px 18px; border-radius: 8px;
  background: var(--vn); color: #fff; font-size: 12px; font-weight: 700;
  text-decoration: none; transition: all .2s;
}
.faq-a-cta:hover { background: var(--vnl); transform: translateX(3px); color: #fff; }

.faq-meta {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  flex-wrap: wrap; padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.05);
}
.faq-tag {
  font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 5px;
  text-transform: uppercase; letter-spacing: .6px;
}
.tag-kt { background: #e8f5e9; color: #2e7d32; }
.tag-dh { background: #e3f2fd; color: #1565c0; }
.tag-cn { background: #fce4ec; color: #c62828; }
.tag-tt { background: #fff8e1; color: #e65100; }
.tag-vs { background: #f3e5f5; color: #6a1b9a; }

.faq-helpful { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12px; color: var(--vlt); }
.helpful-btn {
  background: none; border: 1px solid rgba(0,0,0,.09); border-radius: 7px;
  padding: 4px 11px; font-size: 11.5px; font-weight: 600; cursor: pointer;
  transition: all .2s; font-family: inherit; color: var(--vmu);
}
.helpful-btn:hover  { border-color: var(--vg); color: var(--vg); background: var(--vgp); }
.helpful-btn.voted  { background: var(--vg); color: var(--vn); border-color: var(--vg); }

/* ── NO RESULTS ── */
.no-results {
  display: none; background: var(--vw); border-radius: 16px;
  border: 1px solid rgba(0,0,0,.07); padding: 60px 40px; text-align: center;
}
.no-results.show { display: block; }
.nr-icon { font-size: 40px; margin-bottom: 16px; opacity: .3; }
.no-results h3 {
  font-family: 'Be Vietnam Pro', serif;
  font-size: 22px; font-weight: 700; color: var(--vn); margin-bottom: 8px;
}
.no-results p {
  font-size: 14px; color: var(--vmu); line-height: 1.75;
  max-width: 400px; margin: 0 auto 22px;
}
.nr-suggest { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; max-width: 460px; margin: 0 auto; }
.nr-card {
  padding: 13px 15px; border-radius: 10px; border: 1px solid rgba(0,0,0,.07);
  display: flex; align-items: center; gap: 9px;
  transition: all .2s; background: var(--voff); cursor: pointer;
}
.nr-card:hover { border-color: var(--vg); background: var(--vgp); transform: translateY(-2px); }
.nr-card span:first-child { font-size: 18px; flex-shrink: 0; }
.nr-card span:last-child  { font-size: 13px; font-weight: 600; color: var(--vn); text-align: left; }

/* ── SIDEBAR ── */
.faq-sidebar {
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 88px; align-self: start;
}
.sw {
  background: var(--vw); border-radius: var(--vrb);
  border: 1px solid rgba(0,0,0,.06); overflow: hidden; box-shadow: var(--vsh);
}
.sw-head {
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--vn) 0%, var(--vnm) 100%);
}
.sw-head h4 {
  font-family: 'Be Vietnam Pro', serif;
  font-size: 13px; font-weight: 700; color: #fff; letter-spacing: .2px;
}
.sw-body { padding: 14px 18px; }

/* Popular Qs */
.pop-q-list { display: flex; flex-direction: column; gap: 7px; }
.pop-q {
  padding: 9px 12px; border-radius: 9px; background: var(--voff);
  font-size: 12.5px; font-weight: 500; color: var(--vn); cursor: pointer;
  border: 1px solid rgba(0,0,0,.05); transition: all .22s; display: block; line-height: 1.45;
}
.pop-q:hover { background: var(--vgp); border-color: var(--vbr); color: var(--vg); transform: translateX(3px); }

/* CTA sidebar card */
.cta-sw {
  background: linear-gradient(135deg, var(--vn) 0%, var(--vnm) 60%, var(--vnl) 100%);
  border-radius: var(--vrb); padding: 20px; position: relative; overflow: hidden;
}
.cta-sw::before {
  content: ''; position: absolute; bottom: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(212,146,42,.14), transparent 70%);
}
.cta-sw h4 {
  font-family: 'Be Vietnam Pro', serif; color: #fff;
  font-size: 15px; font-weight: 700; margin-bottom: 7px; position: relative; z-index: 1;
}
.cta-sw p {
  color: rgba(255,255,255,.48); font-size: 12.5px; line-height: 1.6;
  margin-bottom: 14px; position: relative; z-index: 1;
}
.cta-sw-btn {
  display: block; padding: 10px; border-radius: 8px;
  background: linear-gradient(135deg, var(--vg), var(--vgl)); color: var(--vn) !important;
  font-size: 13px; font-weight: 700; text-decoration: none; transition: all .25s;
  position: relative; z-index: 1; margin-bottom: 8px; text-align: center;
}
.cta-sw-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212,146,42,.45); }
.cta-sw-sec {
  display: block; padding: 9px; border-radius: 8px; text-align: center;
  border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.7) !important;
  font-size: 12px; font-weight: 600; text-decoration: none; transition: all .2s;
  position: relative; z-index: 1;
}
.cta-sw-sec:hover { border-color: rgba(255,255,255,.45); color: #fff !important; }

/* Glossary */
.gloss-list  { display: flex; flex-direction: column; gap: 0; }
.gloss-item  { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.045); display: flex; align-items: baseline; gap: 8px; }
.gloss-item:last-child { border-bottom: none; }
.gloss-term  { font-size: 11.5px; font-weight: 700; color: var(--vn); min-width: 54px; flex-shrink: 0; }
.gloss-def   { font-size: 11.5px; color: var(--vmu); line-height: 1.45; }

/* Category pills sidebar */
.cat-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.cat-pill {
  padding: 5px 11px; border-radius: 100px; font-size: 12px; font-weight: 600;
  background: var(--vgp); color: var(--vg); border: 1px solid var(--vbr);
  cursor: pointer; transition: all .2s;
}
.cat-pill:hover { background: var(--vg); color: var(--vn); transform: translateY(-1px); }

/* ── CTA STRIP ── */
.cta-strip {
  background: linear-gradient(135deg, var(--vn) 0%, var(--vnm) 55%, var(--vnl) 100%);
  padding: 64px 48px; position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(212,146,42,.08), transparent 65%);
}
.cta-inner { max-width: 640px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.cta-line-deco {
  display: inline-block; font-size: 10px; font-weight: 700; color: var(--vgl);
  text-transform: uppercase; letter-spacing: 3px; margin-bottom: 14px; opacity: .7;
}
.cta-inner h2 {
  font-family: 'Be Vietnam Pro', serif; color: #fff;
  font-size: clamp(22px, 3vw, 34px); font-weight: 900; margin-bottom: 12px; line-height: 1.2;
}
.cta-inner p { color: rgba(255,255,255,.5); font-size: 15px; line-height: 1.75; margin-bottom: 28px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-gold {
  padding: 13px 28px; border-radius: 9px; font-size: 14px; font-weight: 700;
  background: linear-gradient(135deg, var(--vg), var(--vgl)); color: var(--vn);
  text-decoration: none; transition: all .25s; box-shadow: 0 6px 20px rgba(212,146,42,.4);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(212,146,42,.55); color: var(--vn); }
.btn-ghost {
  padding: 13px 28px; border-radius: 9px; font-size: 14px; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,.25); color: rgba(255,255,255,.8);
  text-decoration: none; transition: all .25s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.05); }

/* ── ANIMATION ── */
@keyframes vFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq-item { animation: vFadeUp .4s ease both; }
.faq-item:nth-child(1)  { animation-delay: .04s; }
.faq-item:nth-child(2)  { animation-delay: .08s; }
.faq-item:nth-child(3)  { animation-delay: .12s; }
.faq-item:nth-child(4)  { animation-delay: .16s; }
.faq-item:nth-child(5)  { animation-delay: .20s; }
.faq-item:nth-child(6)  { animation-delay: .24s; }
.faq-item:nth-child(7)  { animation-delay: .28s; }
.faq-item:nth-child(8)  { animation-delay: .32s; }
.faq-item:nth-child(9)  { animation-delay: .36s; }
.faq-item:nth-child(n+10) { animation-delay: .40s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .faq-hero, .faq-body { padding-left: 20px; padding-right: 20px; }
  .faq-body-inner { grid-template-columns: 1fr; }
  .faq-sidebar { position: static; }
}
@media (max-width: 600px) {
  .faq-hero { padding-top: 48px; padding-bottom: 40px; }
  .hero-stats { gap: 20px; }
  .hstat { padding-right: 20px; margin-right: 20px; }
  .nr-suggest { grid-template-columns: 1fr; }
  .cta-strip { padding: 48px 20px; }
}
