/* =============================================================================
   Home — courses hub. Reuses app.css tokens, buttons, nav, hero, sections,
   why-cards, testimonials, faq, final-cta and footer. Only the course-card
   grid, the hub hero centring and a photo strip are defined here.
   ============================================================================= */

/* --- Centred hub hero (reuses .hero bg/orbs from app.css) --- */
.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.home-hero-inner h1 { margin-bottom: 20px; }
.home-hero-inner .hero-sub { margin: 0 auto 28px; }
.home-hero-inner .hero-cta-row { justify-content: center; }
.home-hero-inner .hero-stats { justify-content: center; margin-top: 40px; }
.home-hero-inner .hero-stats .stat { text-align: center; }

/* --- Courses grid --- */
.courses { background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFE 100%); }
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
@media (max-width: 960px) { .course-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }

.course-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px -18px rgba(10, 23, 54, .30);
  border-color: #C8D5F4;
}

.course-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy);
}
.course-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.course-card:hover .course-media img { transform: scale(1.05); }
.course-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 23, 54, 0) 45%, rgba(10, 23, 54, .55) 100%);
}

.course-badge {
  position: absolute;
  top: 14px; left: 14px;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(10, 23, 54, .28);
}
.course-tag {
  position: absolute;
  bottom: 12px; left: 14px;
  z-index: 2;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.course-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-body h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--navy); }
.course-desc { color: var(--text-muted); font-size: .95rem; line-height: 1.6; margin-bottom: 18px; flex: 1; }

.course-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.course-facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
}
.course-facts li.price { background: var(--blue-ultra); border-color: #DDE7FF; color: var(--blue-dark); }

.course-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .96rem;
  background: var(--navy);
  color: #fff;
  transition: background .2s ease, transform .2s ease;
  margin-top: auto;
}
.course-card:hover .course-cta { background: var(--blue); }
.course-cta:hover { transform: translateY(-1px); }

/* Per-course accent colours (badge + tag dot) */
.c-fs .course-badge { background: linear-gradient(135deg, #195EF6, #4F84FF); }
.c-dm .course-badge { background: linear-gradient(135deg, #E0A815, #FFC83D); color: var(--navy); }
.c-gr .course-badge { background: linear-gradient(135deg, #0E8F6E, #10B981); }

/* --- Photo strip band --- */
.home-strip { padding: 0; }
.strip-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
@media (max-width: 900px) { .strip-row { grid-template-columns: repeat(3, 1fr); } }
.strip-row img { width: 100%; height: 150px; object-fit: cover; display: block; filter: saturate(1.02); }
@media (max-width: 900px) { .strip-row img { height: 120px; } }

/* --- Which course helper band --- */
.pick-band { background: var(--bg-light); }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .pick-grid { grid-template-columns: 1fr; } }
.pick-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.pick-card h4 { font-size: 1.05rem; margin-bottom: 6px; color: var(--navy); }
.pick-card p { color: var(--text-muted); font-size: .92rem; margin-bottom: 12px; }
.pick-card a { color: var(--blue); font-weight: 700; font-size: .9rem; }
.pick-card a:hover { color: var(--blue-dark); }

/* --- Online vs in-person messaging --- */
.urgency-bar a { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.urgency-bar a:hover { color: #fff; }

.hero-note {
  text-align: center;
  max-width: 560px;
  margin: 6px auto 0;
  font-size: .92rem;
  color: var(--text-muted);
}
.hero-note a { color: var(--blue); font-weight: 700; }
.hero-note a:hover { color: var(--blue-dark); }

.campus-band {
  padding: 30px 0;
  background: linear-gradient(135deg, var(--navy) 0%, #143187 100%);
  color: #fff;
}
.campus-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.campus-text { display: flex; align-items: center; gap: 16px; }
.campus-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255, 200, 61, .15);
  color: var(--gold);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.campus-text strong {
  display: block;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.08rem;
  line-height: 1.3;
}
.campus-text span { color: rgba(255, 255, 255, .72); font-size: .93rem; }
.campus-band .btn-secondary { flex-shrink: 0; }
@media (max-width: 640px) {
  .campus-inner { flex-direction: column; align-items: flex-start; }
}
