/* ── Frequently Asked Queries — double-hierarchy reveal ──────────── */

/* Topic selector: 4 main topics in a 2×2 grid */
.faq-topic-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin: 1.4rem 0 1rem;
}

.faq-topic-btn {
  font-family: 'Kalam', cursive;
  font-size: 1rem;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  border-radius: 22px;
  padding: 0.75rem 1rem;
  background: transparent;
  cursor: pointer;
  color: #2B2B2B;
  text-align: left;
  line-height: 1.4;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.faq-topic-btn:hover {
  border-color: #0ea5a4;
  color: #0ea5a4;
}

.faq-topic-btn.active {
  background: #0ea5a4;
  border-color: #0ea5a4;
  color: #fff;
}

/* Panel where the questions for the chosen topic appear */
.faq-panel {
  margin-top: 0.4rem;
  min-height: 220px;
  padding: 0.4rem 0.2rem;
}

.faq-hint {
  font-family: 'Kalam', cursive;
  color: #bbb;
  font-style: italic;
  text-align: center;
  padding: 1.6rem 0;
  margin: 0;
  opacity: 0.8;
}

/* Question + answer wrapper */
.faq-question {
  border-top: 1px dashed rgba(0, 0, 0, 0.14);
  padding: 0.9rem 0;
}

.faq-question:last-child {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.14);
}

.faq-question-hidden {
  display: none;
}

/* The clickable question — styled as a notebook-line button */
.faq-question-btn {
  display: block;
  width: 100%;
  font-family: 'Kalam', cursive;
  font-weight: 700;
  font-size: 1.05rem;
  background: transparent;
  border: 0;
  padding: 0 0 0 1.5rem;
  text-align: left;
  cursor: pointer;
  color: #2B2B2B;
  position: relative;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.faq-question-btn::before {
  content: "›";
  position: absolute;
  left: 0;
  top: -0.1em;
  color: #0ea5a4;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.25s ease;
  transform-origin: 50% 55%;
}

.faq-question-btn.open::before {
  transform: rotate(90deg);
}

.faq-question-btn:hover {
  color: #0ea5a4;
}

/* Answer panel — appears below the question */
.faq-answer {
  padding: 0.7rem 0 0.2rem 1.5rem;
}

.faq-answer p {
  margin: 0 0 0.6rem;
  font-family: 'Kalam', cursive;
  line-height: 1.6;
  color: #2B2B2B;
}

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

.faq-answer-hidden {
  display: none;
}

/* Mobile: stack topics vertically */
@media (max-width: 520px) {
  .faq-topic-selector {
    grid-template-columns: 1fr;
  }

  .faq-topic-btn {
    padding: 0.65rem 0.9rem;
  }
}
