
/* =============================
   FAQ SECTION – IMPROVED STYLES
============================= */

/* Separator above FAQ */
.section-separator {
  height: 2px;
  background: #ececec;
  margin: 2rem 0;
}

/* FAQ SECTION WRAPPER */
.faq-section {
  background-color: #fafafa;
  padding: 3rem 1rem 2rem;
  font-family: 'Roboto', Arial, sans-serif;
}

/* FAQ TITLE */
.faq-title {
  text-align: center;
  font-size: 2.1em;
  color: #e2611e;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}

/* CARD AROUND ALL CATEGORIES */
.faq-card {
  max-width: 840px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 22px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* EACH CATEGORY BLOCK */
.faq-category {
  border-top: 1px solid #ececec;
}
.faq-category:first-of-type {
  border-top: none;
}

/* CATEGORY TOGGLE BUTTON */
.faq-category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.5rem;
  background: #fff;
  color: #e2611e;
  font-size: 1.14em;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.faq-category-toggle:hover,
.faq-category-toggle:focus,
.faq-category.open .faq-category-toggle {
  background-color: #fff9e6;
  box-shadow: 0 6px 22px rgba(226,97,30,0.15);
}

/* ARROW ICON FOR CATEGORY */
.faq-category-toggle .arrow {
  flex-shrink: 0;
  width: 0.8em;
  height: 0.8em;
  border: solid currentColor;
  border-width: 0 0.15em 0.15em 0;
  padding: 0.2em;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.faq-category.open .faq-category-toggle .arrow {
  transform: rotate(-135deg);
}

/* QUESTIONS LIST SLIDE */
.faq-questions-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-category.open .faq-questions-list {
  max-height: 2000px; /* ample space */
}

/* INDENT INSIDE OPEN CATEGORY */
.faq-category.open .faq-questions-list {
  padding-left: 0.3rem;
}

/* INDIVIDUAL QUESTION BLOCK */
.faq-question-block {
  border-top: 1px solid #f0f0f0;
}
.faq-questions-list .faq-question-block:first-of-type {
  border-top: none;
}

/* QUESTION TOGGLE BUTTON */
.faq-question-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0.3rem;
  background: #fff;
  color: #1d1d1d;
  font-size: 1.07em;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.faq-question-toggle:hover,
.faq-question-toggle:focus,
.faq-question-block.open .faq-question-toggle {
  background: #fff7f3;
  color: #e2611e;
}

/* ARROW ICON FOR QUESTION */
.faq-question-toggle .arrow {
  flex-shrink: 0;
  width: 0.7em;
  height: 0.7em;
  border: solid currentColor;
  border-width: 0 0.12em 0.12em 0;
  padding: 0.18em;
  transform: rotate(45deg);
  transition: transform 0.24s ease;
}
.faq-question-block.open .faq-question-toggle .arrow {
  transform: rotate(-135deg);
}

/* ANSWER CONTENT SLIDE+FADE */
.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  background: #fff;
  color: #333;
  font-size: 0.99em;
  line-height: 1.6;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}
.faq-question-block.open .faq-answer {
  max-height: 1000px;
  opacity: 1;
  padding: 0.75rem 1.5rem 1rem;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  .faq-title { font-size: 1.8em; }
  .faq-category-toggle { font-size: 1.1em; padding: 1.2rem 1rem; }
  .faq-question-toggle { font-size: 1em; padding: 1rem; }
  .faq-answer { padding: 0.5rem 1rem; }
}
