/* ══════════════════════════════════════
   FAQ PAGE – STYLES
   ══════════════════════════════════════ */

/* ─── Hero ─── */
.faq-hero {
  background: var(--dark);
  padding-top: 10rem;
  padding-bottom: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.faq-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(46,232,160,0.12), transparent 70%);
  pointer-events: none;
}
.faq-hero-inner { position: relative; z-index: 1; }
.faq-hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.faq-hero-sub {
  max-width: 560px;
  margin-inline: auto;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* Search */
.faq-search-wrap {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
}
.faq-search-wrap input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 1rem 1.5rem 1rem 3.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.3s;
}
.faq-search-wrap input::placeholder { color: rgba(255,255,255,0.35); }
.faq-search-wrap input:focus { border-color: var(--accent); }
.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
  pointer-events: none;
}
.search-icon svg { width: 18px; height: 18px; display: block; }

/* ─── Layout ─── */
.faq-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ─── Sidebar ─── */
.faq-sidebar {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: -0.5rem;
}
.faq-categories { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.cat-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.cat-btn:hover { background: rgba(46,232,160,0.08); color: var(--dark); }
.cat-btn.active { background: var(--accent); color: var(--dark); font-weight: 700; }
.cat-count {
  font-size: 0.75rem;
  background: rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 0.1rem 0.5rem;
  font-weight: 600;
}
.cat-btn.active .cat-count { background: rgba(0,0,0,0.15); }

.sidebar-cta {
  border-top: 1px solid rgba(0,0,0,0.07);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sidebar-cta p { font-size: 0.85rem; color: #666; line-height: 1.5; }
.sidebar-cta .btn { font-size: 0.8rem; padding: 0.7rem 1.25rem; text-align: center; justify-content: center; }

/* ─── FAQ groups ─── */
.faq-content { display: flex; flex-direction: column; gap: 3rem; }
.faq-group { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-group[hidden] { display: none; }

.faq-group-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--dark);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 0.25rem;
}

/* Override faq-item for this page */
.faq-page .faq-item {
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-page .faq-item[open] {
  box-shadow: 0 4px 20px rgba(46,232,160,0.12);
}
.faq-page .faq-item summary { font-size: 1.05rem; }
.faq-page .faq-body ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.faq-page .faq-body ul li { font-size: 0.92rem; color: #555; }

.no-result {
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  padding: 3rem 0;
}
.no-result a { color: var(--accent-dim); font-weight: 600; }

/* ─── CTA section ─── */
.faq-cta-section {
  background: var(--dark);
  padding-block: clamp(4rem, 8vw, 6rem);
}
.faq-cta-inner {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.faq-cta-inner h2 { color: var(--white); }
.faq-cta-inner p { color: rgba(255,255,255,0.6); font-size: 1rem; line-height: 1.7; }
.faq-cta-inner strong { color: var(--white); }

/* ─── Active nav link ─── */
.active-link { color: var(--accent) !important; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-sidebar { position: static; }
  .faq-categories { flex-direction: row; flex-wrap: wrap; }
  .cat-btn { width: auto; }
}
