/* ============================================================
   BFGI — "Alumni Voices" testimonials section (clean rebuild)

   Design intent:
   - Pure white, generous whitespace, Stripe/Linear-style minimal
   - Centered editorial header: red overline rule + heading + lede
   - Horizontal carousel of simple white cards with soft shadow
   - Brand red used for accents; no navy/blue anywhere

   Defensive:
   - All elements are generic <div>/<span> (no <footer>/<article>) to
     dodge site-wide tag selectors that paint them dark
   - Section has an opaque shield behind content to defeat hero overlay
     bleeds from the Bootstrap carousel above
   - z-index: 50 beats Bootstrap carousel-control (10) but stays below
     site-wide pop-ups (hs-bar = 10, chatbot/notif around 99)
   ============================================================ */

.bfgi-vox,
.bfgi-vox * { box-sizing: border-box; }

.bfgi-vox {
  position: relative;
  z-index: 50;
  padding: 80px 0 96px;
  background: #ffffff;
  color: #0b1220;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Opaque shield across the entire section — paints over any dark
   gradient / overlay from the hero carousel above. */
.bfgi-vox__shield {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 0;
  pointer-events: none;
}

.bfgi-vox__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ======== Centered editorial header ======== */
.bfgi-vox__head {
  text-align: center;
  margin-bottom: 36px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.bfgi-vox__overline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: #e31e24;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}
.bfgi-vox__overline-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: #e31e24;
  border-radius: 1px;
}

.bfgi-vox__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b1220;
}

.bfgi-vox__lede {
  margin: 0 auto;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.6;
  color: #64748b;
}

/* ======== Arrow row (above the track) ======== */
.bfgi-vox__nav-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.bfgi-vox__nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 16px rgba(15,23,42,.05);
}
.bfgi-vox__arrow {
  appearance: none;
  width: 38px; height: 38px;
  border: 0; background: transparent;
  color: #334155;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.bfgi-vox__arrow:hover,
.bfgi-vox__arrow:focus-visible {
  background: #e31e24; color: #fff; outline: none;
}
.bfgi-vox__arrow:active { transform: scale(0.94); }

/* ======== Carousel track ======== */
.bfgi-vox__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 360px;
  gap: 24px;
  padding: 6px 4px 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}
.bfgi-vox__track::-webkit-scrollbar { height: 6px; }
.bfgi-vox__track::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }
.bfgi-vox__track::-webkit-scrollbar-track { background: transparent; }

/* ======== Card (clean + simple) ======== */
.bfgi-vox__card {
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 6px 20px rgba(15, 23, 42, 0.05);
  transition: transform .22s cubic-bezier(.2,.8,.2,1),
              box-shadow .22s cubic-bezier(.2,.8,.2,1),
              border-color .22s;
}
.bfgi-vox__card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.06),
    0 18px 36px rgba(15, 23, 42, 0.10);
}

.bfgi-vox__rating {
  display: flex;
  gap: 2px;
  margin: 0 0 16px;
}

.bfgi-vox__quote {
  margin: 0 0 24px;
  padding: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: #0b1220;
  font-weight: 400;
  letter-spacing: -0.003em;
  flex: 1 1 auto;
  position: relative;
}
.bfgi-vox__quote::before { content: "\201C"; color: #e31e24; font-weight: 700; margin-right: 2px; }
.bfgi-vox__quote::after  { content: "\201D"; color: #e31e24; font-weight: 700; margin-left:  2px; }

/* Attribution block — plain <div>, no footer-tag inheritance */
.bfgi-vox__attr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid #eef0f3;
  background: transparent !important;   /* defensive against site globals */
}

.bfgi-vox__photo {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  background: #f6f8fb;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #e5e7eb, 0 2px 8px rgba(15, 23, 42, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bfgi-vox__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.bfgi-vox__photo--empty {
  color: #e31e24;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
}

.bfgi-vox__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.bfgi-vox__name {
  font-size: 15px;
  font-weight: 700;
  color: #0b1220;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.bfgi-vox__where {
  font-size: 13px;
  color: #334155;
  line-height: 1.35;
  margin-top: 1px;
  font-weight: 500;
}
.bfgi-vox__meta {
  font-size: 11.5px;
  color: #e31e24;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-top: 2px;
}

/* ======== Breakpoints ======== */
@media (min-width: 1200px) {
  .bfgi-vox__track { grid-auto-columns: calc((100% - 48px) / 3); }  /* 3 visible */
}
@media (min-width: 900px) and (max-width: 1199px) {
  .bfgi-vox__track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (min-width: 600px) and (max-width: 899px) {
  .bfgi-vox { padding: 60px 0 72px; }
  .bfgi-vox__track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 599px) {
  .bfgi-vox            { padding: 40px 0 44px; }
  .bfgi-vox__inner     { padding: 0 14px; }
  .bfgi-vox__head      { margin-bottom: 20px; }
  .bfgi-vox__overline  { font-size: 10.5px; letter-spacing: 0.18em; margin-bottom: 12px; }
  .bfgi-vox__overline-line { width: 20px; }
  .bfgi-vox__title     { font-size: 22px; margin-bottom: 10px; }
  .bfgi-vox__lede      { font-size: 14px; }

  /* Hide the arrow pill on mobile — touch users swipe naturally. */
  .bfgi-vox__nav-row   { display: none !important; }

  .bfgi-vox__track     { grid-auto-columns: 85%; gap: 14px; padding: 4px 2px 14px; }
  .bfgi-vox__card      { padding: 22px 20px 18px; min-height: 240px; border-radius: 14px; }
  .bfgi-vox__quote     { font-size: 14px; }
  .bfgi-vox__photo     { width: 48px; height: 48px; }
  .bfgi-vox__name      { font-size: 14px; }
  .bfgi-vox__where     { font-size: 12px; }
  .bfgi-vox__meta      { font-size: 11px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bfgi-vox__card       { transition: box-shadow .1s; }
  .bfgi-vox__card:hover { transform: none; }
  .bfgi-vox__track      { scroll-behavior: auto; }
}
