/* ==========================================================================
   FAQ PAGE CSS — BharatVerse Blue Edition
   File: css/faq.css
   ========================================================================== */

/* ── PAGE HERO ────────────────────────────────────────────────────────────── */
.bv-faq-hero {
  background: linear-gradient(135deg, var(--bv-blue-deep) 0%, var(--bv-blue) 100%);
  padding: 4rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bv-faq-hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.bv-faq-hero .bv-eyebrow  { color: var(--bv-accent); margin-bottom: 0.75rem; }
.bv-faq-hero h1 {
  color: #fff !important;
  font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
  margin: 0 0 1rem !important;
}
.bv-faq-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── MAIN LAYOUT ──────────────────────────────────────────────────────────── */
.bv-faq-main {
  padding: 3.5rem 0 5rem;
  background: var(--bv-blue-bg);
}
.bv-faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── STICKY CATEGORY NAV ─────────────────────────────────────────────────── */
.bv-faq-nav {
  position: sticky;
  top: 100px;
}
.bv-faq-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--bv-white);
  border: 1px solid var(--bv-line);
  border-radius: var(--bv-radius-lg);
  padding: 0.75rem;
}
.bv-faq-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--bv-radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bv-ink-soft);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.bv-faq-nav-link svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.bv-faq-nav-link:hover {
  background: var(--bv-blue-bg);
  color: var(--bv-blue);
}
.bv-faq-nav-link:hover svg { opacity: 1; }
.bv-faq-nav-link.active {
  background: var(--bv-blue-softer);
  color: var(--bv-blue);
  font-weight: 600;
}
.bv-faq-nav-link.active svg { opacity: 1; }

/* ── FAQ SECTIONS ─────────────────────────────────────────────────────────── */
.bv-faq-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.bv-faq-section {
  background: var(--bv-white);
  border: 1px solid var(--bv-line);
  border-radius: var(--bv-radius-xl);
  overflow: hidden;
  scroll-margin-top: 110px;
}

.bv-faq-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--bv-line);
  background: var(--bv-cream);
}
.bv-faq-section-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bv-faq-section-icon svg { width: 20px; height: 20px; }
.bv-faq-icon--blue   { background: var(--bv-blue-softer); color: var(--bv-blue); }
.bv-faq-icon--accent { background: #fef3c7; color: #b45309; }
.bv-faq-icon--green  { background: #dcfce7; color: #16a34a; }

.bv-faq-section-header h2 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--bv-ink) !important;
  margin: 0 !important;
}

/* ── ACCORDION ITEMS ─────────────────────────────────────────────────────── */
.bv-faq-list { padding: 0 0.5rem; }

.bv-faq-item {
  border-bottom: 1px solid var(--bv-line);
}
.bv-faq-item:last-child { border-bottom: none; }

.bv-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--bv-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bv-ink);
  text-align: left;
  transition: color 0.2s;
}
.bv-faq-question:hover { color: var(--bv-blue); }

/* Arrow indicator */
.bv-faq-arrow {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bv-blue-softer);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s, transform 0.35s var(--bv-ease);
}
.bv-faq-arrow::before,
.bv-faq-arrow::after {
  content: '';
  position: absolute;
  background: var(--bv-blue);
  border-radius: 2px;
  transition: transform 0.35s var(--bv-ease), opacity 0.35s;
}
.bv-faq-arrow::before {
  width: 10px; height: 2px;
}
.bv-faq-arrow::after {
  width: 2px; height: 10px;
}
/* Open state — turn + into × rotated = - */
.bv-faq-item.open .bv-faq-arrow {
  background: var(--bv-blue);
  transform: rotate(45deg);
}
.bv-faq-item.open .bv-faq-arrow::before,
.bv-faq-item.open .bv-faq-arrow::after {
  background: #fff;
}

/* Answer panel */
.bv-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--bv-ease);
}
.bv-faq-answer > * {
  padding: 0 1.25rem 1.25rem;
}
.bv-faq-answer p {
  font-size: 0.925rem;
  color: var(--bv-ink-soft);
  line-height: 1.75;
  margin: 0 0 0.5rem;
}
.bv-faq-answer p:last-child { margin-bottom: 0; }
.bv-faq-answer ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
  padding: 0;
}
.bv-faq-answer ul li {
  font-size: 0.9rem;
  color: var(--bv-ink-soft);
  line-height: 1.65;
  margin-bottom: 0.35rem;
  list-style: disc;
}
.bv-faq-answer a {
  color: var(--bv-blue);
  font-weight: 500;
  text-decoration: underline;
}
.bv-faq-answer a:hover { color: var(--bv-blue-dark); }

/* ── STILL HAVE QUESTIONS CTA ─────────────────────────────────────────────── */
.bv-faq-cta {
  background: linear-gradient(135deg, var(--bv-blue-deep) 0%, var(--bv-blue) 100%);
  border-radius: var(--bv-radius-xl);
  padding: 2rem 2.25rem;
}
.bv-faq-cta-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.bv-faq-cta-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.bv-faq-cta-icon svg { width: 24px; height: 24px; }
.bv-faq-cta-inner > div { flex: 1; min-width: 180px; }
.bv-faq-cta-inner h3 {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 0.3rem !important;
}
.bv-faq-cta-inner p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.78);
  margin: 0;
}
.bv-faq-cta .bv-btn {
  background: #fff !important;
  color: var(--bv-blue) !important;
  border-color: #fff !important;
  white-space: nowrap;
}
.bv-faq-cta .bv-btn:hover {
  background: var(--bv-accent) !important;
  border-color: var(--bv-accent) !important;
  color: #fff !important;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .bv-faq-layout {
    grid-template-columns: 1fr;
  }
  .bv-faq-nav {
    position: static;
  }
  .bv-faq-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.6rem;
  }
  .bv-faq-nav-link {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  .bv-faq-hero { padding: 3rem 0 2.5rem; }
  .bv-faq-section-header { padding: 1.25rem; }
  .bv-faq-question { padding: 1rem; font-size: 0.9rem; }
  .bv-faq-cta { padding: 1.5rem 1.25rem; }
  .bv-faq-cta-inner { gap: 1rem; }
  .bv-faq-cta-icon { display: none; }
}