/* ============================================================
   IMPACT Learning Hub — homepage
   Depends on style.css (tokens) and layout.css (header/footer)
   ============================================================ */

/* ---------- Hero ---------- */
.hero{ padding-block: 48px 8px; }
.hero-in{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1{
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 16ch;
}
.hero-lede{
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 48ch;
  margin-top: 16px;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Placeholder photo slot — used everywhere a real photo will go
   later. Shows the exact asset path it expects, so swapping in
   the real file later is a one-line change, not a redesign. */
.photo-slot{
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1.5px dashed var(--stone);
  background:
    repeating-linear-gradient(135deg, rgba(15,27,60,0.04) 0 10px, transparent 10px 20px),
    var(--stone-soft);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.photo-slot span{
  font-size: var(--step--1);
  font-family: monospace;
  background: var(--surface);
  border: var(--border);
  padding: 4px 10px;
  border-radius: var(--radius);
  color: var(--ink-soft);
}

/* ---------- Division grid ---------- */
.section-label{
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  margin-bottom: 20px;
}
.division-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.division-card{
  display: block;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s ease;
}
.division-card:hover{
  border-color: var(--ink);
  text-decoration: none;
}
.division-card .dot{
  width: 12px; height: 12px; border-radius: 50%;
  display: inline-block; margin-bottom: 12px;
}
.division-card h3{ font-size: var(--step-1); margin-bottom: 6px; }
.division-card p{ font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.division-card.data .dot{ background: var(--div-data); }
.division-card.tech .dot{ background: var(--div-tech); }
.division-card.lab .dot{ background: var(--div-lab); }
.division-card.agri .dot{ background: var(--div-agri); }
.division-card.lang .dot{ background: var(--div-lang); }
.division-card.hub .dot{ background: var(--div-hub); }

/* ---------- Section head (title + action) ---------- */
.section-head{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

/* ---------- Course cards ---------- */
.course-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.course-card{
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.course-card:hover{ border-color: var(--ink); }
.course-card .photo-slot{ aspect-ratio: 16/9; border-radius: 0; border-width: 0 0 1.5px 0; }
.course-card-body{ padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.course-cat{ display: flex; align-items: center; gap: 6px; font-size: var(--step--1); font-weight: 600; }
.course-cat i{ width: 8px; height: 8px; border-radius: 50%; }
.course-card h4{ font-size: var(--step-1); line-height: 1.25; }
.course-card .by{ color: var(--ink-soft); font-size: var(--step--1); }
.course-card .foot{
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--stone-soft);
  display: flex; justify-content: space-between; align-items: baseline;
}
.course-card .price{ font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }

/* ---------- Live class callout ---------- */
.callout{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.callout-date{ text-align: center; line-height: 1.1; font-family: var(--font-display); }
.callout-date b{ display: block; font-size: 2.4rem; }
.callout-date span{ font-size: var(--step--1); color: var(--ink-soft); }
.callout-body h3{ font-size: var(--step-1); margin-bottom: 4px; }

/* ---------- Teach banner ---------- */
.banner{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.banner-copy p{ color: var(--ink-soft); margin: 12px 0 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-in{ grid-template-columns: 1fr; }
  .hero-photo{ order: -1; }
  .division-grid{ grid-template-columns: repeat(2, 1fr); }
  .banner{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .division-grid{ grid-template-columns: 1fr; }
  .callout{ grid-template-columns: 1fr; text-align: left; }
  .callout-date{ text-align: left; }
}

/* ---------- Full-width hero (landing page) ---------- */
.hero-full{
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 72vh, 680px);
  padding-block: 72px;
  color: #fff;
  overflow: hidden;
}
.hero-full .hero-bg.photo-slot{
  position: absolute;
  inset: 0;
  z-index: -2;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: linear-gradient(135deg, #0F1B3C 0%, #103E9E 100%);
  background-size: cover;
  background-position: center;
}
.hero-full .hero-bg span{ display: none; }
.hero-full::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15,27,60,.88) 0%, rgba(15,27,60,.62) 45%, rgba(15,27,60,.15) 100%);
}
.hero-full .hero-in{ display: block; width: 100%; }
.hero-full .hero-copy h1{ color: #fff; max-width: 18ch; }
.hero-full .hero-lede{ color: rgba(255,255,255,.9); }
.hero-full .btn.ghost{ color: #fff; border-color: rgba(255,255,255,.85); }
.hero-full .btn.ghost:hover{ background: rgba(255,255,255,.16); }
@media (max-width: 980px){
  .hero-full{ min-height: clamp(420px, 64vh, 560px); padding-block: 56px; }
  .hero-full::before{ background: linear-gradient(180deg, rgba(15,27,60,.6) 0%, rgba(15,27,60,.86) 100%); }
}
