/* ============================================================================
   x-factor-mindset-testimonials — page-specific CSS
   Every measurement comes from reference/spec/x-factor-mindset-testimonials.desktop.json.
   Live geometry (desktop, 1440px):
     hero title line box     187 -> 271.6   (70px Inter 700, centred on the viewport)
     testimonial band        padding 20px 20px 120px, white
     gold card               960px centred, padding 0 50px 30px, #d9b230
     quote glyph             111x94, sits 51px above the card's top edge
     body copy               16px/24px Arial black, 24px between paragraphs
     attribution row         starts 32px under the copy, 99.984px tall
   The odd fractions (57.58 / 99.99) are deliberate: Duda's rows land on
   sub-pixel boundaries, and rounding them to whole pixels walks the whole page
   1px out of register by the seventh card.
   ========================================================================== */

.page-x-factor-mindset-testimonials .xt-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- hero ---------- */
.page-x-factor-mindset-testimonials .xt-hero {
  padding: 68px 20px 57.58px;
  background: var(--white);
  text-align: center;
}

.page-x-factor-mindset-testimonials .xt-hero__title {
  font-family: var(--font-display);
  font-size: 70px;
  font-weight: 700;
  line-height: normal;
  color: #000;
}

/* ---------- band + card ---------- */
.page-x-factor-mindset-testimonials .xt-band {
  padding: 20px 20px 120px;
  background: var(--white);
}

.page-x-factor-mindset-testimonials .xt-card {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 50px 30px;
  background: var(--gold);
}

/* The glyph hangs 51px above the card; taking it out of flow keeps it from
   dragging the card's own top edge up with it. */
.page-x-factor-mindset-testimonials .xt-card__quote {
  position: absolute;
  top: -51px;
  left: 50px;
  width: 111px;
  height: 94px;
  color: #000;
  overflow: hidden;
}

.page-x-factor-mindset-testimonials .xt-card__body {
  margin: 0;
  padding-top: 75px;
}

.page-x-factor-mindset-testimonials .xt-card__body p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #000;
  text-align: left;
}

.page-x-factor-mindset-testimonials .xt-card__body p + p { margin-top: 24px; }

/* ---------- attribution ---------- */
.page-x-factor-mindset-testimonials .xt-card__person {
  display: flex;
  align-items: flex-start;
  margin-top: 32px;
  min-height: 99.99px;
}

/* Duda sized this one row shorter than the rest. */
.page-x-factor-mindset-testimonials .xt-card--org .xt-card__person { min-height: 91.99px; }

.page-x-factor-mindset-testimonials .xt-card__avatar {
  flex: 0 0 92px;
  max-width: 92px;
}

.page-x-factor-mindset-testimonials .xt-card__avatar img {
  display: block;
  width: 71.66px;
  height: auto;
  border-radius: 50%;
}

.page-x-factor-mindset-testimonials .xt-card__who {
  display: flex;
  flex-direction: column;
  padding-top: 2px;
  min-width: 0;
}

.page-x-factor-mindset-testimonials .xt-card__name,
.page-x-factor-mindset-testimonials .xt-card__org {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 40px;
  color: #000;
}

.page-x-factor-mindset-testimonials .xt-card__name { font-weight: 700; }
.page-x-factor-mindset-testimonials .xt-card__org { font-weight: 400; }

.page-x-factor-mindset-testimonials .xt-card__logo {
  display: block;
  width: 200.64px;
  height: auto;
  margin-left: auto;
  flex: 0 0 auto;
}

/* ============================================================================
   MOBILE — same content, stacked. The live Duda page shrinks body copy to 11px,
   which fails our own legibility floor, so the type stays at a readable size.
   ========================================================================== */
@media (max-width: 767px) {
  .page-x-factor-mindset-testimonials .xt-hero { padding: 32px 20px 24px; }
  .page-x-factor-mindset-testimonials .xt-hero__title { font-size: 30px; }

  .page-x-factor-mindset-testimonials .xt-band { padding: 15px 15px 40px; }

  .page-x-factor-mindset-testimonials .xt-card { padding: 0 24px 24px; }

  .page-x-factor-mindset-testimonials .xt-card__quote {
    top: -33px;
    left: 24px;
    width: 72px;
    height: 61px;
  }

  .page-x-factor-mindset-testimonials .xt-card__body { padding-top: 48px; }
  .page-x-factor-mindset-testimonials .xt-card__body p { font-size: 14px; line-height: 21px; }
  .page-x-factor-mindset-testimonials .xt-card__body p + p { margin-top: 18px; }

  .page-x-factor-mindset-testimonials .xt-card__person {
    flex-wrap: wrap;
    align-items: center;
    margin-top: 24px;
    min-height: 0;
  }

  .page-x-factor-mindset-testimonials .xt-card--org .xt-card__person { min-height: 0; }

  .page-x-factor-mindset-testimonials .xt-card__avatar { flex: 0 0 84px; max-width: 84px; }

  .page-x-factor-mindset-testimonials .xt-card__who { padding-top: 0; }

  .page-x-factor-mindset-testimonials .xt-card__name,
  .page-x-factor-mindset-testimonials .xt-card__org { font-size: 17px; line-height: 26px; }

  .page-x-factor-mindset-testimonials .xt-card__logo {
    flex: 0 0 100%;
    width: 180px;
    max-width: 100%;
    margin: 20px 0 0 84px;
  }
}
