/* ===== FAQ SECTION ===== */
.faq-section {
  background: var(--bg);
  padding: 0 var(--align-pad-x) 120px;
  box-sizing: border-box;
  max-width: 100%;
}

#faq {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 64px;
}

#faq .api-module-inner {
  padding-left: 0;
  padding-right: 0;
}

#faq .features-heading-row {
  padding-bottom: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  background: transparent;
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 0;
  box-sizing: border-box;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-question-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  cursor: pointer;
  list-style: none; /* Removes default arrow in most browsers */
  user-select: none;
}

/* Remove default arrow in WebKit */
.faq-question-wrap::-webkit-details-marker {
  display: none;
}

.faq-question {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0px;
}

.faq-question-num {
  flex-shrink: 0;
  font-weight: 300;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.faq-question-text {
  font-weight: 700;
  color: #fff;
  min-width: 0;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a0a0;
  position: relative;
}

.faq-icon svg {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.faq-icon-minus {
  opacity: 0;
  transform: scale(0.8);
}

.faq-icon-plus {
  opacity: 1;
  transform: scale(1);
}

.faq-item[open] .faq-icon-plus {
  opacity: 0;
  transform: scale(0.8);
}

.faq-item[open] .faq-icon-minus {
  opacity: 1;
  transform: scale(1);
}

.faq-answer-wrap {
  padding: 0 28px 24px;
}

.faq-answer {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
  white-space: pre-line;
}

.faq-answer-wrap--rich .faq-answer + .faq-answer {
  margin-top: 12px;
}

.faq-answer a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  color: #fff;
}
