/* F1GMAT front-page styles. Loaded only on the front page via the
 * apu/front-page library, attached by apu_preprocess_page() in apu.theme. */

/* Feature 0 pipeline test: subtle tint on the front-page main area. */
.page-view-front-page .main-content {
  background-color: #faf9f7;
}

/* ============================================================================
   F1GMAT FRONT PAGE — hero + views (ported from test, verified)
   Features: design tokens, hero section, hero CTA color fix, Views 50/50 grid,
             fluid layout container. Date ported: 2026-06-30.
   ============================================================================ */

:root {
  --fg-paper: #FBFAF7;
  --fg-paper-services: #F8F3E6;
  --fg-paper-warm: #F5EFDF;
  --fg-paper-aged: #EDE5D1;
  --fg-paper-promo: #E9DFC5;
  --fg-paper-premium: #DCCEA8;
  --fg-paper-footer: #E3D7B8;
  --fg-ink: #1A1A1A;
  --fg-ink-soft: #3D3D3D;
  --fg-ink-muted: #525252;
  --fg-hairline: #D4CFC4;
  --fg-hairline-soft: #E5E0D3;
  --fg-teal: #0E7490;
  --fg-teal-dark: #0A5669;
  --fg-gold: #C89B2D;
  --fg-gold-dark: #8A6B1F;
  --fg-violet: #7C3AED;
}

.fg-section--hero {
  background: var(--fg-paper);
}

.fg-hero {
  background: var(--fg-paper);
  padding: 56px 40px 48px;
}

.fg-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 56px;
  align-items: center;
}

.fg-hero__text-side {
  min-width: 0;
}

.fg-hero__photo-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.fg-hero__photo {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: var(--fg-paper-aged);
  display: block;
  line-height: 0;

  font-family: Georgia, serif;
  font-size: 78px;
  color: var(--fg-teal);
  font-weight: 600;
  overflow: hidden;
  border: 1px solid var(--fg-hairline);
  letter-spacing: -0.02em;
}

.fg-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin-top: 0;
}

.fg-hero__photo-caption {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--fg-ink-muted);
  margin: 0;
  line-height: 1.45;
  max-width: 320px;
}

.fg-hero__photo-caption strong {
  color: var(--fg-ink);
  font-weight: 600;
}

.fg-hero__photo-caption a {
  color: var(--fg-teal);
  text-decoration: none;
  border-bottom: 1px solid var(--fg-hairline);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.fg-hero__photo-caption a:hover,
.fg-hero__photo-caption a:focus {
  color: var(--fg-teal-dark);
  border-bottom-color: var(--fg-teal);
}

.fg-hero__eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--fg-teal);
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.4;
}

.fg-hero__headline {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1.18;
  color: var(--fg-ink);
  margin: 0 0 14px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.fg-hero__headline em {
  font-style: italic;
  color: var(--fg-gold-dark);
}

.fg-hero__win-line {
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.45;
  color: var(--fg-ink-soft);
  margin: 0 0 22px;
  font-style: italic;
}

.fg-hero__experience {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-ink-soft);
  margin: 0 0 26px;
}

.fg-hero__experience-label {
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-ink-muted);
  font-weight: 600;
  margin-right: 8px;
}

.fg-hero__cta-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0 0 12px;
  flex-wrap: wrap;
  font-family: Arial, Helvetica, sans-serif;
}

.fg-hero__cta-primary {
  background: var(--fg-teal);
  color: var(--fg-paper);
  padding: 14px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.fg-hero__cta-primary:hover,
.fg-hero__cta-primary:focus {
  background: var(--fg-teal-dark);
  color: var(--fg-paper);
}

.fg-hero__cta-secondary {
  color: var(--fg-ink-soft);
  padding: 14px 6px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--fg-ink-muted);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.fg-hero__cta-secondary:hover,
.fg-hero__cta-secondary:focus {
  color: var(--fg-teal);
  border-bottom-color: var(--fg-teal);
}

.fg-hero__microcopy {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--fg-ink-muted);
  font-style: italic;
  margin: 0;
}

@media (max-width: 768px) {
  .fg-hero {
    padding: 36px 20px 32px;
  }
  .fg-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .fg-hero__headline {
    font-size: 30px;
  }
  .fg-hero__photo-side {
    align-items: center;
  }
}

.fg-hero__inner,
.fg-section--views {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .fg-hero__inner,
  .fg-section--views {
    width: 92%;
  }
}

.fg-section--views {
  text-align: left;
  padding: 40px 0;
}

.fg-section--views .views-element-container,
.fg-section--views .view,
.fg-section--views .view-content,
.fg-section--views .view-content.row {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.fg-section--views .DISABLED-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
  margin: 0;
}

.fg-section--views .DISABLED-grid > .views-row {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

@media (max-width: 575px) {
  .fg-section--views .DISABLED-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.fg-section--hero .fg-hero__inner .fg-hero__cta-row a.fg-hero__cta-primary {
  color: #FBFAF7;
}

/* Hero CTA hover — single rule */
.fg-section--hero .fg-hero__inner .fg-hero__cta-row a.fg-hero__cta-primary:hover,
.fg-section--hero .fg-hero__inner .fg-hero__cta-row a.fg-hero__cta-primary:focus {
  background: var(--fg-teal-dark);
  color: #FBFAF7;
  text-decoration: none;
}

/* ============================================================================
   STATS STRIP — "F1GMAT at a glance"
   ============================================================================ */
.fg-stats {
  background: var(--fg-paper-aged);
  border-top: 1px solid var(--fg-hairline);
  border-bottom: 1px solid var(--fg-hairline);
  padding: 30px 40px;
}
.fg-stats__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.fg-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 110px;
}
.fg-stat__num {
  font-family: Georgia, serif;
  font-size: 28px;
  color: var(--fg-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.fg-stat__label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: var(--fg-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
@media (max-width: 768px) {
  .fg-stats { padding: 22px 24px; }
  .fg-stat__num { font-size: 22px; }
}

/* ============================================================================
   ESSAY REVIEW SECTION — heading frame + centering (annotation styled by module)
   ============================================================================ */
.fg-section--scroll {
  padding: 64px 0;
  background: var(--fg-paper);
  border-top: 1px solid var(--fg-hairline);
  border-bottom: 1px solid var(--fg-hairline);
}
.fg-essay-review__head {
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 0 40px;
}
.fg-essay-review__eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-teal);
  font-weight: 600;
  margin: 0 0 14px;
}
.fg-essay-review__title {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--fg-ink);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.fg-essay-review__intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-ink-soft);
  margin: 0;
  font-style: italic;
}
.fg-essay-review__body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Essay review — closing CTA */
.fg-essay-review__cta {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 32px 40px 0;
  border-top: 1px solid var(--fg-hairline);
  text-align: center;
}
.fg-essay-review__cta-text {
  font-family: Georgia, serif;
  font-size: 19px;
  color: var(--fg-ink);
  margin: 0 0 18px;
}
.fg-essay-review__cta-btn {
  display: inline-block;
  background: var(--fg-teal);
  color: var(--fg-paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 26px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}
/* Force white text over theme's link color (specificity beats a:hover) */
.fg-section--scroll .fg-essay-review__cta a.fg-essay-review__cta-btn,
.fg-section--scroll .fg-essay-review__cta a.fg-essay-review__cta-btn:link,
.fg-section--scroll .fg-essay-review__cta a.fg-essay-review__cta-btn:visited {
  color: var(--fg-paper);
  text-decoration: none;
}
.fg-section--scroll .fg-essay-review__cta a.fg-essay-review__cta-btn:hover,
.fg-section--scroll .fg-essay-review__cta a.fg-essay-review__cta-btn:focus {
  background: var(--fg-teal-dark);
  color: var(--fg-paper);
  text-decoration: none;
}

/* ============================================================================
   SHARED SECTION HEADING (eyebrow / title / intro) — first use: schools
   ============================================================================ */
.fg-section__eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-ink-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 14px;
}
.fg-section__title {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--fg-ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.fg-section__intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-ink-soft);
  margin: 0 0 28px;
  max-width: 680px;
  font-style: italic;
}

/* ============================================================================
   SCHOOLS GRID — "Browse by school" (cream alternation)
   ============================================================================ */
.fg-section--schools {
  background: var(--fg-paper-warm);
  border-top: 1px solid var(--fg-hairline);
  border-bottom: 1px solid var(--fg-hairline);
  padding: 64px 0;
}
.fg-section--schools .fg-schools-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.fg-schools {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 36px;
}
.fg-schools li { margin: 0; }
.fg-schools a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--fg-hairline-soft);
  text-decoration: none;
  color: var(--fg-ink);
  transition: color 0.15s ease;
}
.fg-schools a:hover,
.fg-schools a:focus {
  color: var(--fg-teal);
}
.fg-school__num {
  font-family: Georgia, serif;
  font-size: 13px;
  color: var(--fg-teal);
  font-weight: 600;
  min-width: 26px;
  font-feature-settings: "tnum";
}
.fg-school__title {
  font-family: Georgia, serif;
  font-size: 15px;
  flex: 1;
}
/* Schools — kill theme's list bullets */
.fg-section--schools .fg-schools,
.fg-section--schools .fg-schools li {
  list-style: none;
  list-style-type: none;
  padding-left: 0;
}
.fg-section--schools .fg-schools li::before,
.fg-section--schools .fg-schools li::marker {
  content: none;
}
@media (max-width: 900px) {
  .fg-schools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .fg-schools { grid-template-columns: 1fr; gap: 0; }
  .fg-section__title { font-size: 26px; }
}

/* ============================================================================
   SECTION DIVIDER (top border variant) — FAQ + booking banner
   ============================================================================ */
.fg-section--divider {
  border-top: 1px solid var(--fg-hairline);
}

/* ============================================================================
   FAQ — "Questions applicants ask"
   ============================================================================ */
.fg-faq__row {
  padding: 20px 0;
  border-bottom: 1px solid var(--fg-hairline-soft);
}
.fg-faq__row:last-child { border-bottom: none; }
.fg-faq__q {
  font-family: Georgia, serif;
  font-size: 17px;
  color: var(--fg-ink);
  font-weight: 500;
  margin: 0 0 8px;
}
.fg-faq__a {
  font-size: 15px;
  color: var(--fg-ink-soft);
  line-height: 1.65;
  margin: 0;
}
.fg-faq__a a {
  text-decoration: none;
  border-bottom: 1px solid var(--fg-teal);
  padding-bottom: 1px;
}

/* ============================================================================
   BOOKING CTA BANNER — "Book a 15-minute call"
   ============================================================================ */
.fg-banner {
  background: var(--fg-paper-aged);
  border: 1px solid var(--fg-teal);
  padding: 32px 36px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.fg-banner__text { flex: 1; min-width: 260px; }
.fg-banner__title {
  font-family: Georgia, serif;
  font-size: 24px;
  color: var(--fg-teal-dark);
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.fg-banner__sub {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--fg-ink-soft);
  margin: 0;
}
.fg-banner__cta {
  background: var(--fg-teal);
  color: var(--fg-paper);
  padding: 14px 24px;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.fg-banner a.fg-banner__cta,
.fg-banner a.fg-banner__cta:link,
.fg-banner a.fg-banner__cta:visited {
  color: var(--fg-paper);
  text-decoration: none;
}
.fg-section--divider .fg-banner a.fg-banner__cta:hover,
.fg-section--divider .fg-banner a.fg-banner__cta:focus {
  background: var(--fg-teal-dark);
  color: var(--fg-paper);
  text-decoration: none;
}
@media (max-width: 600px) {
  .fg-banner { padding: 24px 22px; }
}

/* ============================================================================
   SECTION BASE (centered wrapper) — FAQ, booking banner
   ============================================================================ */
.fg-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px;
}

/* Banner — prevent content overflow on narrow screens */
.fg-banner {
  box-sizing: border-box;
  width: 100%;
}
.fg-banner__text {
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
@media (max-width: 640px) {
  .fg-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .fg-banner__cta {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
}
