/* Education & Engagement section — education.html and speakers.html.
   Uses the site tokens from global.css (--color-yellow for CTAs only,
   --color-accent-muted for decoration, --color-bg-card for card fills).
   Vinay's mockups were styled in EB Garamond/DM Sans with a #b8962e gold on
   #1a1611; that palette is deliberately not reproduced here — Lora and
   Nunito Sans are the only two faces in the system. */

.education-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.edu-section-heading {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  color: #2c2c2c;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--color-accent-muted);
  display: inline-block;
}

.edu-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1rem;
  max-width: 720px;
}

/* Editorial lead: one size up from body, used for the opening paragraph of a
   section so the page has a clear entry point rather than a flat wall. */
.edu-lead {
  font-size: 1.2rem !important;
  line-height: 1.7 !important;
  color: #333 !important;
}

/* Small uppercase gold label above a heading. The site already uses this
   register for .offering-sublabel and .top-banner-label; this generalises it. */
.edu-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-muted);
  margin-bottom: 0.6rem;
}

.edu-section-head {
  margin: 3rem 0 1.25rem;
}

.edu-section-head:first-child {
  margin-top: 0;
}

.edu-section-head .edu-section-heading {
  margin: 0;
}

/* --- Hub: three numbered strand cards ------------------------------------ */

.edu-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.edu-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-card-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.edu-card:hover,
.edu-card:focus-visible {
  border-color: var(--color-accent-muted);
  box-shadow: 0 10px 30px rgba(44, 44, 44, 0.1);
  transform: translateY(-3px);
}

.edu-card-body {
  flex: 1;
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* A ringed numeral rather than a large pale digit: at 1.75rem in
   --color-card-border the old treatment read as leftover placeholder. */
.edu-card-num {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-accent-muted);
  border-radius: 50%;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--color-accent-muted);
  transition: background 0.25s, color 0.25s;
}

.edu-card:hover .edu-card-num {
  background: var(--color-accent-muted);
  color: #fff;
}

.edu-card-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0.15rem 0 0;
}

.edu-card-blurb {
  font-size: 0.925rem;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

.edu-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-card-border);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2c2c2c;
}

.edu-card-foot .arrow {
  transition: transform 0.25s;
  color: var(--color-accent-muted);
}

.edu-card:hover .edu-card-foot .arrow {
  transform: translateX(4px);
}

/* --- Hub: student-offer strip --------------------------------------------
   Deliberately not a fourth card: the numbered cards are standing strands,
   the Freshers offer closes 30 October 2026 and this strip can be removed
   without renumbering them. */

.edu-offer-strip {
  margin-top: 3.5rem;
  padding: 2rem 2rem 2rem 1.75rem;
  background: var(--color-bg-callout);
  border: 1px solid #efe2bd;
  border-left: 4px solid var(--color-yellow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.edu-offer-copy {
  flex: 1 1 auto;
}

.edu-offer-strip h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
}

.edu-offer-strip p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin: 0;
  max-width: 640px;
}

.edu-offer-strip .donate-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* --- Speakers page: hero photograph --------------------------------------
   .hero-section-right is shared with the four pages that put a Vimeo embed
   there; this is the first image use of it. Two things matter: the column is
   a flex container whose default align-items:stretch overrides aspect-ratio
   (which rendered the photograph as a 560x800 portrait crop), and the text
   column is short, so both columns are centred rather than top-aligned. */

.hero-section-inner {
  align-items: center;
}

.hero-section-right {
  align-items: center;
}

.speaker-hero-photo {
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 3 / 2;
  align-self: center;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* --- Speakers page: meet the speaker ------------------------------------- */

.speaker-bio {
  max-width: 760px;
}

.speaker-bio p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 1rem;
}

/* No blockquote treatment exists anywhere on the site, so this is new. */
.speaker-quote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--color-accent-muted);
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  color: #1a1a1a;
}

.speaker-credentials {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.6rem;
}

.speaker-credentials li {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  padding-left: 1.6rem;
  position: relative;
}

.speaker-credentials li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-accent-muted);
  font-weight: 700;
}

/* --- Speakers page: the two offerings ----------------------------------- */

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.offering-card {
  background: #fff;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 1.5rem;
  scroll-margin-top: 5rem; /* the nav goes sticky, so anchors need clearance */
}

.offering-card h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  color: #1a1a1a;
  margin: 0.75rem 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-card-border);
}

.offering-card > p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

.offering-sublabel {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-muted);
  margin: 1.25rem 0 0.6rem;
}

.topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.topic-list li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  padding-left: 1.4rem;
  position: relative;
}

.topic-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--color-accent-muted);
}

.topic-list li span {
  display: block;
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.25rem;
  line-height: 1.55;
}

/* margin-top:auto pins the note to the card foot, so the two offering cards
   read as a matched pair instead of one card carrying a block of dead space. */
.offering-note {
  font-size: 0.875rem;
  font-style: italic;
  color: #666;
  line-height: 1.6;
  border-top: 1px solid var(--color-card-border);
  padding-top: 0.9rem;
  margin: 1.5rem 0 0;
}

.offering-card {
  display: flex;
  flex-direction: column;
}

.offering-card .offering-note:last-child {
  margin-top: auto;
}

/* --- Contact note ------------------------------------------------------
   Mirrors careers.html's .careers-apply-note, which is defined only in that
   page's inline <style> block and so is unavailable here. */

.edu-contact-note {
  background: #f4f4f0;
  border-left: 4px solid var(--color-accent-muted);
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  max-width: 760px;
  margin-top: 1rem;
}

.edu-contact-note a {
  color: #2c2c2c;
  font-weight: 700;
}

/* --- Responsive ---------------------------------------------------------
   768px and 900px are the two breakpoints the rest of the site uses. */

@media (max-width: 900px) {
  .edu-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .edu-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .offerings-grid {
    grid-template-columns: 1fr;
  }

  .speaker-hero-photo {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .edu-card-grid {
    grid-template-columns: 1fr;
  }

  .edu-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .education-container {
    padding: 2rem 1.25rem 3rem;
  }
}

/* --- Hub hero: two-column with a photograph, matching the speakers page so
   the section reads as one thing. -------------------------------------------- */

.edu-hero-photo {
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 3 / 2;
  align-self: center;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.hero-section-left h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 0.75rem;
}

/* --- Speakers: DBS credential as a bordered pill, not a checklist row ----- */

.speaker-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.speaker-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-bg-callout);
  border: 1px solid #e6d5a2;
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #7a5f14;
}

.speaker-badges li::before {
  content: '\2713';
  color: var(--color-accent-muted);
}

/* --- Speakers: soft panel behind the offerings, to separate the section
   without a full-bleed band (which the container layout does not allow) --- */

.edu-panel {
  background: var(--color-bg-warm);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 1.25rem;
}

.edu-panel > .edu-intro p {
  margin-bottom: 1.5rem;
}

/* --- Pull quote: give it more presence -------------------------------------- */

.speaker-quote {
  margin: 1.75rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 3px solid var(--color-yellow);
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: #2c2c2c;
}

/* --- Offering cards: cleaner heads ---------------------------------------- */

.offering-card {
  background: #fff;
  border: 1px solid var(--color-card-border);
  border-radius: 10px;
  padding: 1.75rem;
  scroll-margin-top: 5rem;
}

.offering-card h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0.5rem 0 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--color-card-border);
}

.offering-sublabel:first-child {
  margin-top: 0;
}

@media (max-width: 900px) {
  .edu-offer-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .edu-hero-photo {
    max-width: 100%;
  }

  .edu-panel {
    padding: 1.5rem;
  }
}

/* --- Lead paragraph paired with a facts panel -----------------------------
   A single 720px measure in an 1100px container left a large empty right-hand
   column that read as unfinished. The facts are drawn from the page copy. */

.edu-lead-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.edu-lead-row .edu-intro p {
  max-width: none;
}

.edu-facts {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 1.6rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-card-border);
  border-radius: 10px;
  display: grid;
  gap: 1.1rem;
}

.edu-facts li {
  display: grid;
  gap: 0.2rem;
}

.edu-facts li + li {
  border-top: 1px solid var(--color-card-border);
  padding-top: 1.1rem;
}

.edu-fact-value {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.1;
  color: #2c2c2c;
}

.edu-fact-label {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #666;
}

@media (max-width: 900px) {
  .edu-lead-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Sibling cross-link between the two visits pages --------------------- */

.edu-crosslink {
  margin-top: 1.5rem;
  max-width: 760px;
}

.edu-crosslink p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.edu-crosslink a {
  color: #2c2c2c;
  font-weight: 700;
}
