/**
 * FAQ Section - shared vaynhanh styles
 */

/* ── Outer section ── */
.vaynhanh-faq-section {
  padding: 48px 0 64px;
  background: #ffffff;
}

/* ── Header: title + underline ── */
.vaynhanh-faq-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px; /* Figma n_03787 gap */
  margin-bottom: 24px; /* Figma n_f88f6 gap between header and list */
}

.vaynhanh-faq-title {
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: 0.01em;
  color: #333333;
  margin: 0;
  text-align: center;
}

/* 88px wide red underline (Figma n_be5cf: 5px solid #e7252b) */
.vaynhanh-faq-underline {
  display: block;
  width: 88px;
  height: 5px;
  background: #e7252b;
  border-radius: 2px;
}

/* ── FAQ list: max 800px, centered ── */
.vaynhanh-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

/* ── Each FAQ item ── */
.vaynhanh-faq-item {
  border-top: 0.5px solid #b2b2b2;
}

.vaynhanh-faq-item:last-child {
  border-bottom: 0.5px solid #b2b2b2;
}

/* ── Question row (button) ── */
.vaynhanh-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px; /* Figma n_6cc1d gap */
  padding: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.vaynhanh-faq-question:hover {
  background: #fafafa;
}

.vaynhanh-faq-item--open .vaynhanh-faq-question:hover {
  background: transparent;
}

/* Question text: 16px bold #333 */
.vaynhanh-faq-question-text {
  flex: 1;
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: #333333;
}

/* Toggle icon: × (open) or + (closed) */
.vaynhanh-faq-icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  /* Matches Figma #1c1c1e color via CSS filter on black SVG icons */
  filter: brightness(0) saturate(100%);
}

/* ── Answer: visible when open ── */
.vaynhanh-faq-answer {
  padding: 0 16px 24px;
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 21px; /* Figma n_36965 */
  color: #4c4c4c;
}

.vaynhanh-faq-answer-text {
  margin: 0 0 12px;
  white-space: pre-line;
}

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

.vaynhanh-faq-subanswer {
  margin: 0;
  padding-left: 30px;
  list-style-type: disc;
}

.vaynhanh-faq-subanswer-item {
  margin-bottom: 4px;
}

.vaynhanh-faq-subanswer-item:last-child {
  margin-bottom: 0;
}

