/* --- FAQ Layout --- */

.faq {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .faq {
    padding: 1.5rem 0.75rem;
  }
}

.faq h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.3rem;
}

/* --- FAQ Items --- */

.faq-item {
  margin-bottom: 1rem;
}

/* --- Question Buttons --- */

.faq-question {
  width: 100%;
  text-align: left;
  background: #f7f7f7;
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: #f0f0f0;
}

/* --- Answer Panels --- */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  border-left: 3px solid #4a90e2;
  margin-top: 0.3rem;
  padding: 0 1rem;
  border-radius: 0 0 6px 6px;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

/* When active, JS will add .open to the answer */
.faq-answer.open {
  padding: 1rem;
  max-height: 500px; /* enough for long answers */
}

/* --- Optional: Smooth text fade-in --- */

.faq-answer.open p {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
