/* ==========================================================================
   ABOUT — OUR STORY — assets/css/pages/about.css
   Loaded on templates/page-about.php.

   The hero, prose, quick-link tiles and pre-footer CTA all come from
   components.css. Two patterns are new here and kept page-specific until a
   second page wants them: the image-beside-text row, and the milestone strip.
   ========================================================================== */

/* --- Image beside text -------------------------------------------------- */
/* Likely to recur on the Courses, Grants and Wellbeing hubs. Promote to
   components.css the moment a second page uses it. */

.story-row {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 56px;
  align-items: center;
}

.story-row__media {
  height: 320px;
  border: 1px solid var(--rule);
  background: var(--surface);
}
/* The emblem is a crest, not a photograph — show all of it. */
.story-row__media img { object-fit: contain; padding: 24px; }

.story-row__body h2 { margin-bottom: var(--sp-3); }
.story-row__body .prose { color: var(--ink-body); }

/* --- Milestones --------------------------------------------------------- */
/* Four dates carrying the Company's founding. A hairline runs behind them so
   they read as a sequence rather than four separate facts. */

.milestones {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.milestones::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--rule-cream);
}

.milestone {
  position: relative;
  padding-top: 42px;
}

/* The marker sits on the rule. */
.milestone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1px solid var(--gold);
  background: var(--cream);
  border-radius: 50%;
}

.milestone__year {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 10px;
}

.milestone__text {
  display: block;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 24ch;
}

/* --- Three onward tiles ------------------------------------------------- */
/* The homepage runs four across; this page has three. */

.quick-links--three { grid-template-columns: repeat(3, 1fr); }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .story-row { grid-template-columns: 1fr; gap: 28px; }
  .story-row__media { height: 240px; }

  .milestones { grid-template-columns: 1fr 1fr; gap: 26px 30px; }
  /* The rule only makes sense across a single row. */
  .milestones::before { display: none; }

  .quick-links--three { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .milestones { grid-template-columns: 1fr; }
  .milestone { padding-top: 34px; }
  .milestone__year { font-size: 25px; }
  .milestone__text { max-width: none; }
}
