/* /test — FAQ block (same visual language as SiteFaq / css/faq.css) */

.mainSection.faq {
  --faq-title-size: clamp(2rem, 3.05vw, 2.75rem);
  --content-max-width: 90rem;
  --content-padding-x: clamp(1.25rem, 4vw, 1.5rem);
  --content-width: min(
    var(--content-max-width),
    calc(100% - 2 * var(--content-padding-x))
  );

  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0 clamp(3rem, 5vw, 4.5rem) !important;
  background: #ffffff;
  color: #001f42;
  overflow: visible !important;
  position: relative;
  z-index: 0;
}

.mainSection.faq[hidden] {
  display: none !important;
}

.faq__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 3.5vw, 2.75rem);
  width: var(--content-width);
  margin-inline: auto;
}

.faq__title {
  margin: 0;
  width: 100%;
  font-family: "Merriweather", Georgia, serif;
  font-size: var(--faq-title-size);
  font-weight: 300;
  line-height: clamp(2.5rem, 4.24vw, 3.8125rem);
  text-align: center;
  color: #001f42;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.faq__item {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid rgba(0, 41, 91, 0.3);
  padding-bottom: 1rem;
}

.faq__item.is-open {
  gap: 1.125rem;
}

.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4.2vw, 3.75rem);
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.faq__question {
  flex: 1 1 auto;
  min-width: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.125rem, 1.67vw, 1.5rem);
  font-weight: 300;
  line-height: 1.35;
  color: #001f42;
}

.faq__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__item.is-open .faq__icon {
  transform: rotate(180deg);
}

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
}

.faq__panel-inner {
  overflow: hidden;
}

.faq__answer {
  margin: 0;
  padding-right: clamp(1rem, 1.67vw, 1.5rem);
  font-family: "Arimo", system-ui, sans-serif;
  font-size: clamp(0.9375rem, 1.11vw, 1rem);
  line-height: 1.375rem;
  color: #003768;
}

@media (prefers-reduced-motion: reduce) {
  .faq__icon,
  .faq__panel {
    transition: none;
  }
}

@media (max-width: 959px) {
  .mainSection.faq {
    --faq-title-size: clamp(1.75rem, 4.5vw, 2.35rem);
    padding: clamp(1.5rem, 4vw, 2.25rem) 0 clamp(2.5rem, 6vw, 3.5rem) !important;
  }

  .faq__inner {
    gap: 1.75rem;
  }

  .faq__list {
    gap: 1.5rem;
  }

  .faq__question {
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  }
}

@media (max-width: 640px) {
  .mainSection.faq {
    --content-padding-x: 1.25rem;
    --faq-title-size: clamp(1.6rem, 7vw, 2rem);
  }

  .faq__title {
    line-height: 1.25;
  }

  .faq__trigger {
    gap: 1rem;
    align-items: flex-start;
    padding-block: 0.15rem;
  }

  .faq__question {
    font-size: 1.0625rem;
    line-height: 1.4;
  }

  .faq__icon {
    margin-top: 0.2rem;
  }

  .faq__answer {
    padding-right: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
  }

  .faq__item.is-open {
    gap: 0.85rem;
  }
}
