/* ============================================================
   PPT Adventure — FAQ (Frequently Asked Questions) Page Styling
   ============================================================ */

.pageWrapper {
  position: relative;
  min-height: 100vh;
  background-color: var(--ppt-background, #f7f9f7);
  padding: 36px 0 96px;
  overflow: hidden;
}

.bgTopography {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 460px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

.topoVector {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 1. Breadcrumbs ────────────────────────────────────────── */
.breadcrumbNav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--ppt-text-muted, #68746e);
  margin-bottom: 28px;
}

.breadcrumbLink {
  color: var(--ppt-text-muted, #68746e);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumbLink:hover {
  color: var(--ppt-primary, #3dad3c);
  text-decoration: underline;
}

.breadcrumbSep {
  color: var(--ppt-text-subtle, #9aaba3);
  font-size: 0.8rem;
}

.breadcrumbCurrent {
  color: var(--ppt-text, #17211d);
  font-weight: 600;
}

/* ── 2. Hero Header ────────────────────────────────────────── */
.heroHeader {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px;
}

.heroBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--ppt-primary-soft, #edf8ec);
  border: 1px solid var(--ppt-primary-border, #c4e8c3);
  color: var(--ppt-primary-dark, #2b8b2a);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.heroTitle {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  color: var(--ppt-forest, #163d32);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.heroSubtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ppt-text-muted, #68746e);
  margin: 0 auto 20px;
}

.heroMetaRow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--ppt-text-muted, #68746e);
}

.metaItem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.metaDivider {
  color: var(--ppt-text-subtle, #9aaba3);
}

/* ── 3. Search Box ─────────────────────────────────────────── */
.faqWrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.searchBox {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.searchIcon {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: var(--ppt-primary, #3dad3c);
  pointer-events: none;
}

.searchInput {
  width: 100%;
  padding: 16px 110px 16px 52px;
  border-radius: 16px;
  border: 1.5px solid var(--ppt-border, #e5ebe7);
  background: var(--ppt-surface, #ffffff);
  font-size: 0.95rem;
  color: var(--ppt-text, #17211d);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  outline: none;
}

.searchInput:focus {
  border-color: var(--ppt-primary, #3dad3c);
  box-shadow: 0 6px 24px rgba(61, 173, 60, 0.12);
}

.searchClearBtn {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  padding: 6px 12px;
  border: none;
  background-color: #eef1ef;
  color: var(--ppt-text-muted, #68746e);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.searchClearBtn:hover {
  background-color: #e0e5e2;
  color: var(--ppt-text, #17211d);
}

/* ── 4. Category Tabs ──────────────────────────────────────── */
.categoryTabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.categoryTab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9999px;
  background-color: var(--ppt-surface, #ffffff);
  border: 1px solid var(--ppt-border, #e5ebe7);
  color: var(--ppt-text-muted, #68746e);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.categoryTab:hover {
  border-color: var(--ppt-primary-border, #c4e8c3);
  color: var(--ppt-primary-dark, #2b8b2a);
}

.tabActive {
  background-color: var(--ppt-primary, #3dad3c);
  border-color: var(--ppt-primary, #3dad3c);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(61, 173, 60, 0.25);
}

/* ── 5. Accordion List ─────────────────────────────────────── */
.accordionList {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordionItem {
  background: var(--ppt-surface, #ffffff);
  border: 1px solid var(--ppt-border, #e5ebe7);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.accordionItem:hover {
  border-color: #d1ddd6;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.itemOpen {
  border-color: var(--ppt-primary-border, #c4e8c3);
  box-shadow: 0 8px 24px rgba(61, 173, 60, 0.06);
}

.accordionHeader {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.accordionHeader:hover {
  background-color: #fafcfb;
}

.questionWrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex-grow: 1;
}

.popularBadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #fef3e0;
  color: #b76600;
  border: 1px solid #fbd9a7;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.questionText {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ppt-forest, #163d32);
  line-height: 1.4;
}

.chevronWrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f2f5f3;
  color: var(--ppt-text-muted, #68746e);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.chevronOpen {
  transform: rotate(180deg);
  background-color: var(--ppt-primary-soft, #edf8ec);
  color: var(--ppt-primary, #3dad3c);
}

.accordionBody {
  padding: 0 24px 22px;
  border-top: 1px solid #f0f4f1;
}

.answerContent {
  padding-top: 16px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #4a5c53;
}

.answerContent p {
  margin: 0 0 12px;
}

.answerContent p:last-child {
  margin-bottom: 0;
}

.answerContent strong {
  color: var(--ppt-forest, #163d32);
  font-weight: 700;
}

.answerContent ul,
.answerContent ol {
  margin: 8px 0 12px 20px;
  padding: 0;
}

.answerContent li {
  margin-bottom: 6px;
}

.faqLink {
  color: var(--ppt-primary, #3dad3c);
  font-weight: 600;
  text-decoration: underline;
}

/* ── 6. Empty State ────────────────────────────────────────── */
.emptyResults {
  text-align: center;
  padding: 48px 24px;
  background: var(--ppt-surface, #ffffff);
  border: 1px dashed var(--ppt-border-strong, #c8d5cd);
  border-radius: 18px;
}

.emptyIcon {
  color: var(--ppt-text-subtle, #9aaba3);
  margin-bottom: 12px;
}

.emptyTitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ppt-forest, #163d32);
  margin-bottom: 8px;
}

.emptyDesc {
  font-size: 0.88rem;
  color: var(--ppt-text-muted, #68746e);
  max-width: 440px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.emptyResetBtn {
  padding: 9px 20px;
  background-color: var(--ppt-primary-soft, #edf8ec);
  color: var(--ppt-primary-dark, #2b8b2a);
  border: 1px solid var(--ppt-primary-border, #c4e8c3);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.emptyResetBtn:hover {
  background-color: var(--ppt-primary, #3dad3c);
  color: #ffffff;
}

/* ── 7. Callout Card ───────────────────────────────────────── */
.ctaCard {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--ppt-forest, #163d32) 0%, #0c251f 100%);
  border-radius: 22px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(22, 61, 50, 0.12);
}

.ctaContent {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 580px;
}

.ctaIconBox {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #55d254;
  flex-shrink: 0;
}

.ctaTitle {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.ctaDesc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.ctaActions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.ctaBtnPrimary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--ppt-primary, #3dad3c);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 11px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(61, 173, 60, 0.35);
}

.ctaBtnPrimary:hover {
  background-color: var(--ppt-primary-dark, #2b8b2a);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(61, 173, 60, 0.45);
}

.ctaBtnSecondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 11px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.ctaBtnSecondary:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ── 8. Responsive Breakpoints ──────────────────────────────── */
@media (max-width: 900px) {
  .ctaCard {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }

  .ctaActions {
    flex-direction: row;
    width: 100%;
  }

  .ctaBtnPrimary,
  .ctaBtnSecondary {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .pageWrapper {
    padding: 24px 0 64px;
  }

  .heroTitle {
    font-size: 1.75rem;
  }

  .heroSubtitle {
    font-size: 0.92rem;
  }

  .searchInput {
    padding: 14px 90px 14px 44px;
    font-size: 0.88rem;
  }

  .searchIcon {
    left: 14px;
    width: 18px;
    height: 18px;
  }

  .categoryTabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .categoryTab {
    flex-shrink: 0;
  }

  .accordionHeader {
    padding: 16px 18px;
    gap: 12px;
  }

  .questionText {
    font-size: 0.92rem;
  }

  .chevronWrap {
    width: 28px;
    height: 28px;
  }

  .accordionBody {
    padding: 0 18px 18px;
  }

  .answerContent {
    font-size: 0.88rem;
  }

  .ctaContent {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .ctaActions {
    flex-direction: column;
  }
}
