/* ---- Hero -------------------------------------------------------------
   Same construction as the Member Benefits hero - navy panel, red edge -
   over a different photo. fade-left-soft lives in site.css. */
.faq-hero {
  position: relative;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image: url('/images/iStock-1473155464.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* height (not min-height) is the total border-box height (box-sizing:
   border-box is set globally), so it already includes the 50px border below
   - not on top of it. Fixed rather than min-height so the band stays pinned
   to the bottom of .faq-hero instead of growing with its contents. */
.faq-hero-band {
  height: 260px;
  border-bottom: 50px solid rgba(112, 146, 180, 0.5);
  background: linear-gradient(90deg, rgba(31, 78, 132, 0.5) 0%, rgba(28, 66, 110, 0.5) 100%);
}

/* Anchored to the bottom of .faq-hero (the nearest positioned ancestor)
   rather than pushed there by a negative margin: the panel's height varies
   with font metrics, so any fixed offset drifts off the edge. bottom: 0
   keeps the panel's bottom flush with the hero's however tall it gets, and
   it grows upward out of the band over the photo. */
.faq-hero-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.faq-hero-inner {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.faq-hero-panel {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 100px 0;
  background: #0f467c;
  border-right: 25px solid #d54553;
  animation: fade-left-soft 2s ease forwards;
}

.faq-hero-spacer {
  width: 60%;
}

.faq-hero-panel h1 {
  width: 82%;
  margin: 0;
  font-family: var(--font-din);
  font-size: 60px;
  font-weight: 700;
  line-height: 75px;
  color: #fff;
  text-align: center;
}

/* ---- Questions --------------------------------------------------------
   Every entry is its own full-bleed band carrying a grey-to-white gradient
   that restarts at the band's top edge: solid through the copy, fading out
   through the bottom padding so it meets the next band's hard grey edge.
   The gradient has to sit on the full-width element, not the max-width
   inner, or it would stop short of the viewport edges. The 80px block
   padding on the inner sets the rhythm - adjacent entries stack theirs, so
   neighbours sit 160px apart. */
.faq-section {
  background: #fff;
}

.faq-item {
  padding: 0 12px;
}

/* The first entry stays plain white coming off the hero; every entry after
   it carries the gradient. */
.faq-item + .faq-item {
  background: linear-gradient(180deg, var(--color-offwhite) 0%, var(--color-offwhite) 55%, #fff 100%);
}

.faq-item-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 80px 0;
}

.faq-item h2 {
  margin: 0 0 20px;
  font-family: var(--font-myriad);
  font-size: 40px;
  font-weight: 600;
  line-height: 50px;
  color: #538baf;
}

.faq-item p {
  width: 80%;
  margin: 0;
  font-family: var(--font-myriad);
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  color: #0d323a;
}

/* Lead-in above a bulleted answer ("Members gain:") - bold italic on live. */
.faq-item .faq-lead {
  margin-bottom: 20px;
  font-weight: 700;
  font-style: italic;
}

/* Bullets are literal glyphs in the copy on the live site, not list markup,
   and the rows run slightly looser than a prose paragraph. */
.faq-list p {
  line-height: 30px;
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 1024px) {
  .faq-hero-panel h1 {
    font-size: 44px;
    line-height: 56px;
  }

  .faq-item h2 {
    font-size: 32px;
    line-height: 42px;
  }

  .faq-item p {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Back into normal flow: stacked full-width the panel can outgrow the hero,
     and anchoring it to the bottom would spill it over the section below.
     The band has to size to its content here for the same reason - at a fixed
     height the taller stacked panel overflows it. */
  .faq-hero-row {
    position: static;
  }

  .faq-hero-band {
    height: auto;
  }

  .faq-hero-inner {
    flex-direction: column;
    padding: 0;
  }

  .faq-hero-panel {
    width: 100%;
    align-items: flex-start;
    gap: 24px;
    padding: 50px 20px;
    border-right: 0;
    border-bottom: 25px solid #d54553;
  }

  .faq-hero-panel h1 {
    width: 100%;
    font-size: 36px;
    line-height: 44px;
    text-align: left;
  }

  .faq-hero-spacer {
    display: none;
  }

  .faq-item-inner {
    padding: 40px 0;
  }

  .faq-item h2 {
    font-size: 26px;
    line-height: 34px;
  }
}
