/* FAQ page — loaded only with templates/template-faq.php */

.faq_page_hero,
.faq_page_wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

.faq_page_hero {
  padding-top: 185px;
  padding-bottom: 24px;
}

.faq_page_title {
  font-size: 28px;
  font-weight: 600;
  padding-bottom: 16px;
  margin: 0;
  line-height: 1.2;
}

.faq_page_description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 900px;
}

.faq_page_wrap {
  padding-top: 20px;
  padding-bottom: 60px;
  min-height: 50vh;
}

.faq_section + .faq_section {
  margin-top: 48px;
}

.faq_section_title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
  line-height: 1.2;
}

.faq_accordion {
  border-top: 1px solid #484848;
}

.faq_accordion_item {
  border-bottom: 1px solid #484848;
}

.faq_accordion_summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  -webkit-user-select: none;
  user-select: none;
}

.faq_accordion_summary::-webkit-details-marker {
  display: none;
}

.faq_accordion_summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
  transition: transform 0.52s cubic-bezier(0.33, 1, 0.68, 1);
  margin-top: -4px;
}

.faq_accordion_item[open] .faq_accordion_summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq_accordion_question {
  flex: 1;
  text-align: left;
}

/* Height animated via max-height in JS for smooth open + close */
.faq_accordion_panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.52s cubic-bezier(0.33, 1, 0.68, 1);
}

.faq_accordion_answer {
  line-height: 1.6;
  padding-bottom: 20px;
}
.faq_accordion_answer a {
  color: inherit;
  border-bottom: 1px solid #000;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease;
  &:hover {
    color: #4f86a0;
    border-color: #4f86a0;
  }
}

.faq_accordion_answer p {
  margin: 0 0 12px;
}

.faq_accordion_answer p:last-child {
  margin-bottom: 0;
}

.faq_accordion_answer ul,
.faq_accordion_answer ol {
  margin: 12px 0;
  padding-left: 1.25em;
}

.faq_page_empty {
  margin: 0;
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  .faq_accordion_panel,
  .faq_accordion_summary::after {
    transition-duration: 0.01ms;
  }
}
