/* ─── VARIABLES ──────────────────────────────────────────────────────────── */
:root {
  /* Light mode backgrounds */
  --bg:      #f8f7f4;
  --bg-2:    #eeece8;
  --bg-3:    #e5e2db;
  --bg-card: #ffffff;
  --border:  rgba(0, 0, 0, 0.09);
  --border-hover: rgba(201, 122, 10, 0.35);

  --gold:       #c97a0a;
  --gold-light: #e08b10;
  --gold-dim:   rgba(201, 122, 10, 0.10);
  --gold-glow:  rgba(201, 122, 10, 0.04);

  --text:   #1a1a2e;
  --text-2: #4a4a6a;
  --text-3: #8888a8;

  --blue:   #2563eb;
  --green:  #0d9e6e;
  --purple: #7c3aed;
  --teal:   #0d8f80;
  --amber:  #d97706;
  --red:    #dc2626;

  --font-display: 'Syne', sans-serif;
  --font-body: 'Lora', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.2s ease;

  --nav-h: 72px;
  --container: 1180px;
}

/* ─── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }
.section { padding: 96px 0; }

/* ─── NAV ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  transition: background var(--transition);
}
.nav.scrolled { background: rgba(248, 247, 244, 0.98); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.logo-mark {
  color: var(--gold);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.logo-academy { color: var(--text-2); font-weight: 600; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--gold) !important;
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 0.8rem !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #ffffff;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.btn-outline {
  background: var(--bg-card);
  color: var(--text-2);
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.btn-sm { padding: 9px 18px; font-size: 0.8rem; }
.btn-lg { padding: 18px 36px; font-size: 0.95rem; }
.btn-full { width: 100%; }

/* ─── TAGS ───────────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.tag-gold   { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.tag-blue   { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.tag-green  { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.tag-purple { background: #ede9fe; color: #5b21b6; border: 1px solid #ddd6fe; }
.tag-teal   { background: #ccfbf1; color: #0f5132; border: 1px solid #99f6e4; }
.tag-amber  { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.tag-outline { background: transparent; color: var(--text-3); border: 1px solid var(--border); }

/* ─── SECTION HEADER ─────────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-2); max-width: 600px; margin: 0 auto; }
.section-mono {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 600;
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, #f8f7f4 0%, #f0ede8 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 50%, black 30%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 700px;
  height: 700px;
  z-index: 0;
  background: radial-gradient(circle, rgba(201,122,10,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,122,10,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.badge-mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.08;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 700;
}
.hero-sub {
  color: var(--text-2);
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.stat-divider { width: 1px; height: 36px; background: rgba(0,0,0,0.12); }

/* ─── CODE CARD ──────────────────────────────────────────────────────────── */
.code-card {
  background: #1e1e2e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18), 0 0 0 1px rgba(201,122,10,0.08);
}
.code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.code-dots { display: flex; gap: 6px; }
.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }
.code-filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}
.code-body {
  padding: 24px;
  overflow-x: auto;
  background: #1e1e2e;
}
.code-body code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  white-space: pre;
  color: #cdd6f4;
}
.c-kw { color: #c792ea; }
.c-fn { color: #82aaff; }
.c-cls { color: #ffc94a; }
.c-str { color: #3fcf8e; }
.c-cm { color: #5c6a7a; }
.c-prop { color: var(--blue); }

/* ─── VIDEO SECTION ──────────────────────────────────────────────────────── */
.video-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
}
.video-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-embed--sm { padding-top: 56.25%; }
.video-embed--hero { padding-top: 56.25%; }
.video-meta { padding: 8px 0; }
.video-meta h3 { margin: 12px 0 10px; }
.video-meta p { color: var(--text-2); margin-bottom: 20px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.video-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-2);
  margin-top: 10px;
}

/* ─── COURSES ────────────────────────────────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.courses-grid--full {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.course-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.course-card--soon { opacity: 0.7; }
.course-card--soon:hover { opacity: 0.9; }
.course-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.course-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.coming-soon-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
}
.course-title { font-size: 1.05rem; line-height: 1.3; }
.course-subtitle {
  font-size: 0.875rem;
  color: var(--gold);
  font-style: italic;
  margin-top: -4px;
}
.course-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
}
.course-topics {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.course-topics li {
  font-size: 0.82rem;
  color: var(--text-2);
  display: flex;
  gap: 8px;
}
.course-topics--lg li { font-size: 0.9rem; padding: 6px 0; border-bottom: 1px solid var(--border); }
.topic-bullet { color: var(--gold); font-size: 0.6rem; margin-top: 4px; flex-shrink: 0; }
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.course-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}
.meta-sep { margin: 0 6px; }
.courses-cta { text-align: center; margin-top: 48px; }

/* ─── ABOUT ──────────────────────────────────────────────────────────────── */
.about-section { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.about-avatar {
  width: 80px;
  height: 80px;
  background: var(--gold-dim);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,122,10,0.08);
  margin: 0 auto 24px;
}
.about-creds { display: flex; flex-direction: column; gap: 12px; }
.cred {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.cred-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
  font-weight: 500;
}
.about-content .section-mono { margin-bottom: 12px; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { color: var(--text-2); margin-bottom: 16px; }
.about-venues { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.venue-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
  letter-spacing: 0.04em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ─── BLOG ───────────────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.blog-grid--full {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.blog-card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #fffbf0 0%, #fff8e6 100%);
  border-color: rgba(201,122,10,0.18);
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
}
.blog-card h3 { font-size: 1.1rem; line-height: 1.3; }
.blog-card h3 a:hover { color: var(--gold); }
.blog-card p { color: var(--text-2); font-size: 0.9rem; flex: 1; }
.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.read-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
}
.read-more {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.read-more:hover { color: var(--gold-light); }

/* ─── WAITLIST ────────────────────────────────────────────────────────────── */
.waitlist-section {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.waitlist-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.waitlist-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  color: rgba(0,0,0,0.05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.waitlist-inner .section-mono { margin-bottom: 12px; }
.waitlist-inner h2 { margin-bottom: 16px; }
.waitlist-inner > p {
  color: var(--text-2);
  margin-bottom: 40px;
}
.waitlist-form { width: 100%; }
.form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: var(--text-3); opacity: 1; }
.form-select { cursor: pointer; }
.form-select option { background: var(--bg-3); }
.waitlist-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  margin-top: 14px;
}
.waitlist-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 20px;
  background: rgba(63,207,142,0.1);
  border: 1px solid rgba(63,207,142,0.2);
  border-radius: var(--radius);
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 600;
}
.success-icon { font-size: 1.1rem; }

/* ─── FILTER BAR ──────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
  transition: all var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

/* ─── PAGE HERO ──────────────────────────────────────────────────────────── */
.page-hero { padding-top: calc(var(--nav-h) + 60px) !important; padding-bottom: 60px; }
.page-title { margin: 8px 0 16px; }
.page-sub { color: var(--text-2); max-width: 620px; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  display: inline-block;
  margin-bottom: 20px;
  transition: color var(--transition);
}
.breadcrumb:hover { color: var(--gold); }

/* ─── COURSE DETAIL ──────────────────────────────────────────────────────── */
.course-detail-header { max-width: 680px; }
.course-detail-header .course-tags { margin-bottom: 12px; }
.course-detail-header h1 { margin-bottom: 16px; }
.course-detail-header .page-sub { margin-bottom: 12px; }
.course-detail-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 24px;
}
.course-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.sidebar-card h3 { margin-bottom: 16px; font-size: 1rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ─── POST ───────────────────────────────────────────────────────────────── */
.post-header { padding-top: calc(var(--nav-h) + 60px) !important; padding-bottom: 40px; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.post-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.post-excerpt {
  font-size: 1.15rem;
  color: var(--text-2);
  font-style: italic;
}
.post-body { padding-top: 40px !important; }
.post-placeholder {
  color: var(--text-2);
  margin-bottom: 24px;
  font-size: 1.05rem;
}
.related-posts { background: var(--bg-2); }
.related-title { margin-bottom: 32px; }

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  box-shadow: inset 0 1px 0 var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--text-3);
  font-size: 0.875rem;
  margin-top: 16px;
  max-width: 260px;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  color: var(--text-3);
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--gold); }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}
.footer-mono { color: var(--text-3) !important; }

/* ─── PROSE (rendered markdown) ─────────────────────────────────────────── */
.prose {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-2);
}
.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 40px 0 14px;
  line-height: 1.2;
}
.prose h2 { font-size: 1.55rem; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.prose h3 { font-size: 1.2rem; }
.prose h4 { font-size: 1rem; color: var(--text-2); }
.prose p  { margin-bottom: 20px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 20px; }
.prose li { margin-bottom: 8px; }
.prose a  { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-light); }
.prose blockquote {
  border-left: 3px solid var(--gold);
  margin: 24px 0;
  padding: 4px 20px;
  color: var(--text-3);
  font-style: italic;
}
.prose pre {
  background: #1e1e2e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
}
.prose pre code { font-family: var(--font-mono); font-size: 0.82rem; color: #cdd6f4; background: none; padding: 0; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: #2563eb;
}
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-family: var(--font-mono); font-size: 0.82rem; }
.prose th { background: var(--bg-3); border: 1px solid var(--border); padding: 10px 14px; text-align: left; color: var(--text-3); }
.prose td { border: 1px solid var(--border); padding: 10px 14px; }
.prose tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { font-style: italic; color: var(--text); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

/* Post author */
.post-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(245,166,35,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
}
.author-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.author-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  margin-top: 2px;
}

/* Post footer */
.post-footer {
  display: flex;
  gap: 12px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* ─── SERIES / EPISODE LIST ──────────────────────────────────────────────── */
.series-section { background: var(--bg); }
.series-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.series-header { margin-bottom: 28px; }
.series-header h2 { margin-top: 8px; }

.episode-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 32px; }

.episode-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.episode-card:hover {
  border-color: var(--border-hover);
  background: rgba(245,166,35,0.04);
  transform: translateX(4px);
}
.episode-card:hover .episode-arrow { color: var(--gold); opacity: 1; }
.episode-card:hover .episode-num span { background: var(--gold); color: var(--bg); }

.episode-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.episode-num span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all 0.2s;
}
.episode-info {
  flex: 1;
  min-width: 0;
}
.episode-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.episode-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  margin-top: 3px;
  letter-spacing: 0.04em;
}
.episode-arrow {
  font-size: 1rem;
  color: var(--text-3);
  opacity: 0.5;
  transition: all 0.2s;
  flex-shrink: 0;
}

.series-cta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.series-cta-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}

.series-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.sidebar-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.sidebar-stat {
  text-align: center;
  background: var(--bg-3);
  border-radius: var(--radius);
  padding: 10px 6px;
}
.sidebar-stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}
.sidebar-stat-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 2px;
}
.sidebar-card--outline {
  background: transparent;
  border: 1px solid var(--border);
}

@media (max-width: 1024px) {
  .series-layout { grid-template-columns: 1fr; }
  .series-sidebar { position: static; }
}
@media (max-width: 768px) {
  .episode-title { white-space: normal; }
  .series-cta-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ─── ERROR PAGE ──────────────────────────────────────────────────────────── */
.error-page {
  padding-top: calc(var(--nav-h) + 80px) !important;
  text-align: center;
  min-height: 60vh;
}
.error-code {
  display: block;
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 800;
  color: var(--gold-dim);
  line-height: 1;
  margin-bottom: 16px;
}
.error-page h1 { margin-bottom: 12px; }
.error-page p { color: var(--text-2); margin-bottom: 28px; }
.empty-state { text-align: center; padding: 60px 0; color: var(--text-2); }
.empty-state a { color: var(--gold); }

/* ─── SPEAKING SECTION ───────────────────────────────────────────────────── */
.speaking-section { background: var(--bg); }
.speaking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.speaking-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.speaking-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}
.speaking-card--cta {
  border-style: dashed;
  border-color: rgba(13,143,128,0.25);
  background: rgba(13,143,128,0.04);
}
.speaking-card--cta:hover { border-color: var(--teal); }
.speaking-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}
.speaking-card-org {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin: 0;
  flex: 1;
}
.speaking-card-arrow {
  font-size: 1rem;
  color: var(--text-3);
  position: absolute;
  top: 20px;
  right: 20px;
  transition: all 0.2s ease;
}
.speaking-card:hover .speaking-card-arrow { color: var(--gold); transform: translate(2px, -2px); }

/* Make venue-tags clickable when they are anchors */
a.venue-tag {
  cursor: pointer;
  transition: all 0.15s;
}
a.venue-tag:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ─── COURSE HERO ────────────────────────────────────────────────────────── */
.course-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  overflow: hidden;
}
.course-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(245,166,35,0.05) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  pointer-events: none;
}
.course-hero .container { position: relative; z-index: 1; }
.course-hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
  margin-top: 28px;
}
.course-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.1;
}
.course-hero-sub {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 24px;
  line-height: 1.7;
}
.course-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}
.hero-meta-item svg { color: var(--gold); flex-shrink: 0; }
.course-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.free-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}

/* Hero card */
.course-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.hero-card-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.hero-topic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.hero-topic-list li {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-2);
}
.hero-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.hero-stat { text-align: center; flex: 1; }
.hero-stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}
.hero-stat-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 3px;
}
.hero-stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ─── SERIES CURRICULUM ──────────────────────────────────────────────────── */
.curriculum-section { background: var(--bg-2); }
.curriculum-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}
.curriculum-header h2 { margin: 8px 0 10px; }
.curriculum-header p  { color: var(--text-2); max-width: 560px; }

.episode-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.episode-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.episode-card:hover {
  border-color: var(--border-hover);
  background: rgba(245,166,35,0.03);
  transform: translateX(4px);
}
.episode-card:hover .episode-arrow {
  color: var(--gold);
  transform: translateX(4px);
}
.episode-num {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.episode-num span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
}
.episode-card:hover .episode-num {
  background: var(--gold-dim);
  border-color: rgba(245,166,35,0.2);
}
.episode-info {
  flex: 1;
  min-width: 0;
}
.episode-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.episode-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
}
.episode-arrow {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-3);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.curriculum-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ─── POST STATS BAR ─────────────────────────────────────────────────────── */
.post-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.post-author-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-live-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
}
.stat-pill svg { flex-shrink: 0; }
.stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stat-dot--live {
  background: var(--green);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(63,207,142,0.4); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 4px rgba(63,207,142,0); }
}
.stat-label { color: var(--text-3); }

/* ─── COMMENTS ──────────────────────────────────────────────────────────── */
.comments-section { background: var(--bg-2); }

.comments-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.comments-title {
  font-size: 1.4rem;
  margin: 0;
}
.comments-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 12px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 48px;
}
.comments-loading {
  display: flex;
  gap: 6px;
  padding: 24px 0;
}
.loading-dot {
  width: 8px;
  height: 8px;
  background: var(--text-3);
  border-radius: 50%;
  animation: loading-bounce 1.2s infinite;
}
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes loading-bounce { 0%,80%,100% { transform:scale(0.6); opacity:0.5; } 40% { transform:scale(1); opacity:1; } }

.no-comments {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-3);
  padding: 24px 0;
  text-align: center;
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item:first-child { border-top: 1px solid var(--border); }
.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(201,122,10,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
  flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.comment-author {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.comment-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
}
.comment-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Comment form */
.comment-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.comment-form-title {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.comment-form-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 20px;
}
.comment-form .field { margin-bottom: 16px; }
.comment-form .field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--gold); }
.comment-form-row { display: grid; grid-template-columns: 1fr; }
.char-counter {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  text-align: right;
  margin-top: 5px;
}
.comment-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(63,207,142,0.1);
  border: 1px solid rgba(63,207,142,0.2);
  border-radius: var(--radius);
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
}
.comment-error {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(244,63,94,0.1);
  border: 1px solid rgba(244,63,94,0.2);
  border-radius: var(--radius);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ─── PRIVACY POLICY PAGE ────────────────────────────────────────────────── */
.privacy-prose { max-width: 100%; }

.privacy-summary {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(63,207,142,0.07);
  border: 1px solid rgba(63,207,142,0.2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.privacy-summary .summary-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1.6; }
.privacy-summary strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--text); margin-bottom: 6px; }
.privacy-summary p { color: var(--text-2); font-size: 0.95rem; margin: 0; }

.permission-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
}
.permission-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--border);
}
.permission-row:last-child { border-bottom: none; }
.permission-name {
  padding: 16px 18px;
  background: var(--bg-3);
  border-right: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
  display: flex;
  align-items: flex-start;
  padding-top: 18px;
}
.permission-name code { background: none; border: none; padding: 0; color: inherit; }
.permission-reason {
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}

.contact-block {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 12px;
}
.contact-block p { margin-bottom: 6px; font-size: 0.9rem; color: var(--text-2); }
.contact-block p:last-child { margin-bottom: 0; }
.contact-block strong { color: var(--text); }

@media (max-width: 600px) {
  .permission-row { grid-template-columns: 1fr; }
  .permission-name { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .video-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .blog-card--featured { grid-column: span 1; }
  .course-detail-grid { grid-template-columns: 1fr; }
  .course-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .course-hero-card { position: static; }
  .curriculum-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 20px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { min-height: auto; padding-bottom: 40px; }
  .hero-stats { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .courses-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
