/* ==========================================================================
   SEONuxt FAQ Page — Aligned with SEONuxt CI Asymmetric Dot-Grid (Dark & Light)
   Tokens: --color-one (#00dc82), --color-two (#80eec0), --color-thee (#032a36)
   Radii: 1rem (Hero/CTA), 0.75rem (Cards/Boxes), 0.5rem (Buttons/Pills), 0.325rem (Badges)
   ========================================================================== */

:root,
html[data-bs-theme="light"] {
  --faq-surface: #ffffff;
  --faq-surface-subtle: #f8fffb;
  --faq-border: rgba(3, 42, 54, 0.08);
  --faq-text-primary: #032a36;
  --faq-text-muted: #364f57;
  --faq-accent: var(--color-one, #00dc82);
  --faq-accent-light: var(--color-two, #80eec0);
  --faq-accent-badge-bg: rgba(var(--color-rgb-code-one, 0, 220, 130), 0.12);
  --faq-hero-bg:
    radial-gradient(circle at 90% 15%, rgba(0, 220, 130, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(0, 220, 130, 0.08) 0%, transparent 40%),
    radial-gradient(rgba(3, 42, 54, 0.09) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #f4fbf7 58%, #eaf7f0 100%);
  --faq-hero-border: rgba(var(--color-rgb-code-one, 0, 220, 130), 0.3);
  --faq-hero-text: #032a36;
  --faq-hero-sub: #364f57;
}

html[data-bs-theme="dark"] {
  --faq-surface: #041d25;
  --faq-surface-subtle: #032a36;
  --faq-border: rgba(128, 238, 192, 0.16);
  --faq-text-primary: #eefaf4;
  --faq-text-muted: #b7d7cc;
  --faq-accent: var(--color-one, #00dc82);
  --faq-accent-light: var(--color-two, #80eec0);
  --faq-accent-badge-bg: rgba(0, 220, 130, 0.14);
  --faq-hero-bg:
    radial-gradient(circle at 88% 15%, rgba(0, 220, 130, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(0, 220, 130, 0.12) 0%, transparent 40%),
    radial-gradient(rgba(128, 238, 192, 0.14) 1px, transparent 1px),
    linear-gradient(135deg, #021f28 0%, var(--color-thee, #032a36) 55%, #043747 100%);
  --faq-hero-border: rgba(var(--color-rgb-code-one, 0, 220, 130), 0.35);
  --faq-hero-text: #ffffff;
  --faq-hero-sub: rgba(255, 255, 255, 0.86);
}

.faq-shell {
  position: relative;
  width: 100%;
}

/* ---------- 1. Hero Banner (Official Asymmetric Dot-Grid) ---------- */
.faq-hero-box {
  position: relative;
  padding: 2.35rem 2.25rem;
  border-radius: var(--bs-border-radius-xl);
  background: var(--faq-hero-bg);
  background-size: auto, auto, 22px 22px, auto;
  border: 1px solid var(--faq-hero-border);
  margin-bottom: 1.75rem;
  color: var(--faq-hero-text);
}

@media (max-width: 767.98px) {
  .faq-hero-box {
    padding: 1.5rem 1.25rem;
  }
}

.faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--bs-border-radius-lg, 0.5rem);
  background: var(--faq-accent-badge-bg);
  color: var(--faq-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid rgba(var(--color-rgb-code-one, 0, 220, 130), 0.28);
}

.faq-hero-title {
  font-size: clamp(1.65rem, 1.35rem + 1vw, 2.35rem);
  font-weight: 800;
  color: var(--faq-hero-text);
  letter-spacing: -0.02em;
}

.faq-hero-title span {
  color: var(--faq-accent);
}

.faq-hero-desc {
  font-size: 0.98rem;
  color: var(--faq-hero-sub);
  max-width: 720px;
  line-height: 1.72;
}

/* ---------- 2. Status Notice Banner (SEONuxt CI) ---------- */
.faq-status-pill-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--faq-surface-subtle);
  border: 1px dashed rgba(var(--color-rgb-code-one, 0, 220, 130), 0.4);
  border-radius: var(--bs-border-radius-lg, 0.5rem);
  padding: 0.95rem 1.35rem;
  margin-bottom: 2.25rem;
}

.faq-status-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--faq-accent-badge-bg);
  color: var(--faq-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.faq-status-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--faq-text-primary);
}

.faq-status-text strong {
  color: var(--faq-accent);
}

/* ---------- 3. Category Filter Tabs (Pill Switcher) ---------- */
.faq-filter-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

.faq-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--bs-border-radius-lg, 0.5rem);
  background: transparent;
  border: 1px solid var(--faq-border);
  color: var(--faq-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-filter-pill:hover {
  border-color: var(--faq-accent);
  color: var(--faq-accent);
  background: var(--faq-accent-badge-bg);
}

.faq-filter-pill.is-active {
  background: var(--color-thee, #032a36);
  color: #ffffff;
  border-color: var(--color-thee, #032a36);
}

html[data-bs-theme="dark"] .faq-filter-pill.is-active {
  background: var(--color-one, #00dc82);
  color: #032a36;
  border-color: var(--color-one, #00dc82);
  font-weight: 600;
}

.faq-filter-count {
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--bs-border-radius, 0.325rem);
  background: rgba(0, 0, 0, 0.1);
  color: inherit;
}

html[data-bs-theme="dark"] .faq-filter-pill.is-active .faq-filter-count {
  background: rgba(0, 0, 0, 0.18);
}

/* ---------- 4. Minimal Editorial FAQ List (Matches LaksanaFaqs) ---------- */
.faq-editorial-list {
  display: flex;
  flex-direction: column;
}

.faq-editorial-item {
  border-bottom: 1px solid var(--faq-border);
  padding: 1.25rem 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.faq-editorial-item.is-hidden {
  display: none !important;
}

.faq-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--faq-text-muted);
}

.faq-editorial-item:first-child {
  padding-top: 0.5rem;
}

.faq-editorial-item:last-child {
  border-bottom: 0;
}

.faq-q-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.faq-q-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  min-width: 2.15rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bs-border-radius, 0.325rem);
  background: var(--faq-accent-badge-bg);
  color: var(--faq-accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.faq-q-title-wrap {
  flex: 1;
}

.faq-q-tag {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--faq-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.faq-q-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--faq-text-primary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.faq-q-answer {
  color: var(--faq-text-muted);
  font-size: 0.925rem;
  line-height: 1.72;
  margin-bottom: 0.5rem;
}

.faq-item-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--bs-border-radius, 0.325rem);
  background: var(--faq-accent-badge-bg);
  color: var(--faq-accent);
  font-size: 0.785rem;
  font-weight: 500;
}

/* ---------- 5. Bottom CTA Box (Linear Studio Banner Style: Light & Dark) ---------- */
.faq-cta-box {
  position: relative;
  background: linear-gradient(90deg, rgba(0, 220, 130, 0.06) 0%, rgba(3, 42, 54, 0.02) 100%);
  border: 1px solid rgba(0, 220, 130, 0.15);
  border-radius: var(--bs-border-radius-xl, 1rem);
  padding: 1.85rem 2.25rem;
  margin-top: 3.5rem;
}

@media (max-width: 767.98px) {
  .faq-cta-box {
    padding: 1.5rem 1.25rem;
  }
}

html[data-bs-theme="dark"] .faq-cta-box {
  background: linear-gradient(90deg, rgba(0, 220, 130, 0.08) 0%, rgba(3, 42, 54, 0.4) 100%);
  border-color: rgba(0, 220, 130, 0.22);
}

.faq-cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--faq-text-primary);
  margin-bottom: 0.35rem;
}

.faq-cta-desc {
  font-size: 0.92rem;
  color: var(--faq-text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}
