/* ═══════════════════════════════════════════════════════════════════════════
   Diako Academy — main.css
   Structural / layout CSS only.
   Requires design-system.css to be loaded first (tokens + base components).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Video Hero ─────────────────────────────────────────────────────────── */
.video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.video-hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  display: block;
}

.video-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(15, 23, 42, 0.32) 40%,
    rgba(15, 23, 42, 0.65) 100%
  );
  z-index: 1;
}

.video-hero__center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-hero__title {
  font-family: var(--font-body);
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-3);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.25);
}

.video-hero__brand {
  font-family: var(--font-brand);
  font-style: italic;
  color: #fff;
}

.video-hero__separator {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  margin: 0 0.1em;
}

.video-hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 var(--sp-5);
  font-weight: 400;
  max-width: 52ch;
  line-height: 1.85;
  text-align: center;
}

.video-hero__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

/* ── Meta list (course detail) ──────────────────────────────────────────── */
.meta-list {
  margin: var(--sp-4) 0;
  padding: 0 var(--sp-4) 0 0;
  color: var(--ds-navy-700);
  font-size: var(--text-sm);
  line-height: 2;
}

/* ── Hero actions strip ─────────────────────────────────────────────────── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

/* ── Metric (legacy hero panel) ─────────────────────────────────────────── */
.metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: var(--sp-2);
}
.metric strong {
  font-size: 1.5rem;
  font-weight: 700;
}

/* ── Placement test progress bar (page-level) ───────────────────────────── */
.progress-row {
  display: grid;
  gap: var(--sp-1);
}

/* Legacy compat — older pages that still use #progress-fill */
#progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cta);
  transition: width 0.25s ease;
}

/* ── Placement choice buttons (page-level) ──────────────────────────────── */
.choices-grid {
  margin: var(--sp-3) 0 var(--sp-2);
  display: grid;
  gap: var(--sp-3);
}

.choice-button {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  text-align: right;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.choice-button:hover  { border-color: var(--navy); }
.choice-button.active { border-color: var(--navy); background: var(--surface-soft); }

/* ── Placement app heading override ────────────────────────────────────── */
.placement-app h2 { margin: var(--sp-3) 0; }

/* ── Rich text ──────────────────────────────────────────────────────────── */
.rich-text p { line-height: 2.1; font-weight: 400; }
.rich-text h2,
.rich-text h3 { margin-top: 1.5em; }

/* ── Page content section with optional background image ────────────────── */
.page-content-section {
  padding: var(--sp-12) 0;
}

.page-content-section--with-bg {
  position: relative;
  background-image: var(--page-bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: clamp(48px, 10vw, 100px) 0;
}

.page-content-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.72) 0%,
    rgba(15, 23, 42, 0.50) 100%
  );
  z-index: 0;
}

.page-content-section__panel {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
}

.page-content-section__panel .eyebrow {
  color: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.25);
}

.page-content-section__panel h1 {
  color: #fff;
}

.page-content-section__panel .lead {
  color: rgba(255, 255, 255, 0.82);
}

.page-content-section__panel .rich-text p {
  color: rgba(255, 255, 255, 0.88);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .video-hero__title { font-size: clamp(1.9rem, 9vw, 2.8rem); }

  .video-hero__buttons {
    flex-direction: column;
    align-items: center;
  }
}
