/* ============================================
   WIDGET: FAQ ACCORDION (Frame 37)
   Frequently Asked Questions — one-at-a-time
   ============================================ */

/* ---- Outer white card ---- */
.faq-card {
  background-color: #ffffff;
  border: 2px solid #f1f1f1;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
}

/* ---- Header block ---- */
.faq-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.faq-header__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  color: #000000;
  margin: 0;
  white-space: nowrap;
}

.faq-header__subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: #898989;
  margin: 0;
}

/* ---- FAQ list ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* ---- Single FAQ item ---- */
.faq-item {
  background-color: #f6f6f6;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

/* ---- Trigger (question row) ---- */
.faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 30px;
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition: background-color 0.15s ease;
}

.faq-item__trigger:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

/* When open — give trigger more top breathing room */
.faq-item--open .faq-item__trigger {
  padding-top: 20px;
  padding-bottom: 20px;
}

.faq-item__question {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: #000000;
  font-family: 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
  flex: 1;
}

/* ---- Red circle chevron ---- */
.faq-item__icon {
  width: 24px;
  height: 24px;
  background-color: #d71920;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item__icon svg {
  width: 14px;
  height: 14px;
  fill: #ffffff;
  transition: transform 0.25s ease;
}

/* Rotate chevron when open */
.faq-item--open .faq-item__icon svg {
  transform: rotate(180deg);
}

/* ---- Answer panel (collapsible) ---- */
.faq-item__answer {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background-color: #efefef;
  width: 100%;
}

.faq-item--open .faq-item__answer {
  max-height: 400px;
}

/* ---- Answer inner content ---- */
.faq-item__answer-body {
  padding: 20px;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: #000000;
  margin: 0;
}

/* ============================================
   RESPONSIVE: Tablet (≤768px)
   ============================================ */
@media (max-width: 768px) {
  .faq-header__title    { font-size: 20px; line-height: 28px; white-space: normal; }
  .faq-header__subtitle { font-size: 15px; }
  .faq-item__trigger    { padding: 12px 20px; }
  .faq-item--open .faq-item__trigger { padding: 16px 20px; }
  .faq-item__question   { font-size: 16px; }
  .faq-item__answer-body { font-size: 14px; padding: 16px 20px; }
  .faq-card p.faq-header__subtitle {
    color: #898989;
    font-size: 15px;
    line-height: 20px;
}
.faq-list p.faq-item__answer-body {
    color: #000;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
}

}

/* ============================================
   RESPONSIVE: Mobile (≤480px)
   ============================================ */
@media (max-width: 480px) {
  .faq-card             { padding: 14px; gap: 16px; }
  .faq-header__subtitle { font-size: 14px; }
  .faq-item__trigger    { padding: 11px 16px; gap: 12px; }
  .faq-item--open .faq-item__trigger { padding: 14px 16px; }
  .faq-item__question   { font-size: 15px; }
  .faq-item__answer-body { font-size: 13px; padding: 14px 16px; }
}
