/* FAQ Section */
.faq {
  grid-column: 1 / -1;
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: left;
}

.faq .section-title {
  color: var(--text-text-default-color);
}

.faq-list {
  display: grid;
  gap: 16px;
  width: 100%;
}

.faq-item {
  padding: 16px 24px;
  contain: paint;
  overflow: hidden;
  transition: background-color 0.25s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  gap: 16px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
  color: var(--text-text-default-color);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-toggle-icon {
  width: 11.5px;
  height: 6.55px;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition:
      max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.35s ease,
      transform 0.35s ease;
}

.faq-answer p {
  color: var(--text-text-secondary-color);
  padding-top: 16px;
  margin: 0;
  user-select: text;
}

/* --- Fix iOS Safari tap highlight / focus blink --- */
.faq-question,
.faq-answer,
.faq-answer * {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

.faq-question:focus,
.faq-question:active {
  outline: none;
  background: none;
}

@supports (-webkit-touch-callout: none) {
  .faq-answer {
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity, max-height;
  }

  .faq-answer p {
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
  }
}

/* Tablet */
@media (min-width: 768px) {
  .faq {
    gap: 32px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .faq-question {
    font-size: 18px;
  }

  .faq-item {
    padding: 24px;
  }
}