:root {
  --ink: #17212b;
  --muted: #667085;
  --line: #e6e9ee;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --brand: #10233f;
  --accent: #27b3a7;
  --accent-dark: #168a81;
  --gold: #c7a35a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--brand); color: white; font-family: Georgia, serif; font-size: 22px; }
.brand-text { font-size: 22px; letter-spacing: -.03em; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 650; color: #344054; }
.nav a { text-decoration: none; }
.nav-button { padding: 10px 16px; color: white !important; background: var(--brand); border-radius: 999px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 40px;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 72px);
  background: radial-gradient(circle at 80% 20%, rgba(39,179,167,.18), transparent 34%), linear-gradient(135deg, #fff 0%, #edf5f6 100%);
}
.eyebrow { color: var(--accent-dark); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 800; margin: 0 0 10px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.04em; margin: 0; }
h1 { font-size: clamp(42px, 6vw, 74px); max-width: 900px; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 25px; }
.lead { max-width: 680px; color: #475467; font-size: 20px; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.primary, .secondary, .access-form button, .card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.primary, .access-form button, .card-link { background: var(--accent); color: #062421; border: 0; }
.secondary { border: 1px solid var(--line); background: white; color: var(--brand); }
.hero-card, .login-panel, .course-card, .benefits, .player-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(16,35,63,.08);
}
.hero-card { padding: 34px; align-self: center; }
.hero-card p, .course-card p, .section-heading p, .benefits p, .player-heading p { color: var(--muted); line-height: 1.6; }
.pill, .tag { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: #ecfbf9; color: var(--accent-dark); font-size: 13px; font-weight: 800; margin-bottom: 18px; }
.hero-card ul { padding-left: 20px; color: #344054; line-height: 1.8; }
.login-panel {
  margin: 0 clamp(20px, 5vw, 72px);
  transform: translateY(-32px);
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 28px;
  align-items: center;
}
.access-form { display: grid; gap: 10px; }
.access-form label { font-weight: 800; }
.access-form input { width: 100%; padding: 14px 16px; border: 1px solid #cfd6df; border-radius: 16px; font-size: 18px; text-transform: uppercase; letter-spacing: .08em; }
.access-form button { cursor: pointer; font-size: 16px; }
.form-error { margin: 0; color: #b42318; font-weight: 700; }
.course-section, .benefits, .player-page { margin: 54px clamp(20px, 5vw, 72px); }
.section-heading { margin-bottom: 24px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.course-card { padding: 28px; display: flex; flex-direction: column; min-height: 280px; }
.course-card p { flex: 1; }
.card-link { width: max-content; }
.card-link.muted { background: #eef1f5; color: #667085; }
.benefits { padding: 34px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.benefit-list { display: grid; gap: 14px; }
.benefit-list div { padding: 18px; border-radius: 18px; background: #f8fafc; border: 1px solid var(--line); }
.benefit-list strong { display: block; margin-bottom: 5px; }
.benefit-list span { color: var(--muted); }
.footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 42px clamp(20px, 5vw, 72px); background: var(--brand); color: white; }
.footer p { color: rgba(255,255,255,.72); line-height: 1.7; }
.player-page { margin-top: 34px; }
.player-heading { max-width: 900px; margin-bottom: 22px; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--accent-dark); font-weight: 800; text-decoration: none; }
.player-shell { padding: 18px; overflow: hidden; }
.h5p-container { min-height: 680px; background: #fff; border-radius: 18px; }
@media (max-width: 900px) {
  .hero, .login-panel, .benefits { grid-template-columns: 1fr; }
  .course-grid, .footer { grid-template-columns: 1fr; }
  .nav { gap: 12px; font-size: 14px; flex-wrap: wrap; justify-content: flex-end; }
}

/* H5P Dialog Cards: remove extra whitespace around card text content.
   Also injected into the H5P iframe from course.php. */
.h5p-dialogcards-card-text-inner-content {
  margin: 0 !important;
  padding: 0 !important;
}
.h5p-dialogcards-card-text-inner-content > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.h5p-dialogcards-card-text-inner-content > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


/* H5P Dialog Cards: shrink the flipped/back side to its content height.
   Also injected into the H5P iframe from course.php. */
.h5p-dialogcards-card-content.h5p-dialogcards-turned .h5p-dialogcards-card-text-wrapper {
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}
.h5p-dialogcards-card-content.h5p-dialogcards-turned .h5p-dialogcards-card-text-inner {
  height: auto !important;
  min-height: 0 !important;
  padding-top: 0.35em !important;
  padding-bottom: 0.35em !important;
}
.h5p-dialogcards-card-content.h5p-dialogcards-turned .h5p-dialogcards-card-text-inner-content {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  padding: 0 !important;
}
.h5p-dialogcards-card-content.h5p-dialogcards-turned .h5p-dialogcards-card-text {
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  display: block !important;
}
.h5p-dialogcards-card-content.h5p-dialogcards-turned .h5p-dialogcards-card-text-area {
  min-height: 0 !important;
}

