/* =====================================================================
   FAQ page — navy/gold accordion redesign (Issues 20 & 4).
   Loaded only on the FAQ page, so it overrides the base .faq styles there
   without affecting the home/landing FAQ sections.
   Brand navy #1d3d7c, gold accent #d4af37. Chevron sits at the START of the
   question (right side in RTL), per Issue 4.
   ===================================================================== */
:root { --faq-navy: #1d3d7c; --faq-gold: #d4af37; }

.faq {
  background: linear-gradient(180deg, #f4f7fc 0%, #ffffff 100%);
  padding: 48px 16px 64px;
}
.faq__inner { max-width: 860px; margin: 0 auto; }

.faq__title {
  position: relative;
  margin: 0 0 32px;
  color: var(--faq-navy);
  font-weight: 800;
  text-align: center;
}
.faq__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: var(--faq-gold);
}

.faq__list { display: flex; flex-direction: column; gap: 12px; }

/* Each item = a white rounded card with a soft navy border. */
.faq__item {
  background: #ffffff;
  border: 1px solid #e2e8f2;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(29, 61, 124, 0.05);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq__item[open],
.faq__item.is-open {
  background: #ffffff;
  border-color: var(--faq-navy);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(29, 61, 124, 0.12);
}

/* Question: navy, bold. Left gutter reserves room for the LEFT chevron. */
.faq__question {
  position: relative;
  display: block;
  list-style: none;
  margin: 0;
  padding: 18px 20px 18px 58px;
  color: var(--faq-navy);
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  min-height: 0;
}
.faq__question::-webkit-details-marker { display: none; }

/* Gold circular chevron on the LEFT. Overrides the base +/- lines. */
.faq__question::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  right: auto;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.14);
  transform: none;
  transition: background .2s ease;
}
.faq__question::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 24px;
  right: auto;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--faq-gold);
  border-bottom: 2px solid var(--faq-gold);
  background: none;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform .2s ease, border-color .2s ease;
}
.faq__item[open] .faq__question::before,
.faq__item.is-open .faq__question::before {
  background: var(--faq-navy);
}
.faq__item[open] .faq__question::after,
.faq__item.is-open .faq__question::after {
  margin-top: -2px;
  transform: rotate(-135deg);
  border-color: #ffffff;
}

.faq__answer p {
  margin: 0;
  padding: 0 20px 20px;
  color: #45506b;
  line-height: 1.85;
  text-align: right;
}

/* Mobile tuning */
@media (max-width: 767px) {
  .faq { padding: 32px 14px 48px; }
  .faq__question { padding: 14px 14px 14px 50px; font-size: 15px; }
  .faq__answer p { padding: 0 14px 16px; }
}
