/* ============================================
   FAQ Page
   ============================================ */

/* Top padding clears the fixed header (128px tall), same as the Linstitute hero */
.faq-hero {
  text-align: center;
  padding: 176px 0 40px;
}

@media (max-width: 1000px) {
  .faq-hero {
    padding-top: 110px;
  }
}

.faq-hero-title {
  color: var(--c-purple);
  font-size: 3.25rem;
  margin-bottom: 16px;
}

.faq-hero-subtitle {
  color: #555;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.6;
}

.faq-hero-link {
  color: var(--c-purple);
  font-weight: 600;
  border-bottom: 2px solid var(--c-gold);
}

.faq-hero-link:hover {
  color: var(--c-purple-hover);
}

.faq-section {
  padding: 20px 0 90px;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(var(--c-purple-rgb), 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--t-base) var(--ease);
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 22px 56px 22px 26px;
  position: relative;
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--c-purple);
}

/* Remove the default disclosure triangle */
.faq-question::-webkit-details-marker {
  display: none;
}

/* Custom +/- indicator */
.faq-question::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  color: var(--c-gold);
  transition: transform var(--t-base) var(--ease);
}

.faq-item[open] .faq-question::after {
  content: "\2212"; /* minus sign */
}

.faq-question:hover {
  background: rgba(var(--c-purple-rgb), 0.03);
}

.faq-answer {
  padding: 0 26px 24px;
  color: #444;
  line-height: 1.65;
}

.faq-answer p {
  margin: 0 0 18px;
  font-size: 1.0625rem;
}

.faq-answer .button {
  display: inline-block;
}

@media (max-width: 600px) {
  .faq-hero-title {
    font-size: 2.5rem;
  }

  .faq-question {
    font-size: 1.0625rem;
    padding: 18px 48px 18px 20px;
  }

  .faq-answer {
    padding: 0 20px 20px;
  }
}
