/* ============================================
   ApplyDataAI Training Platform — Design System
   Light Theme — Brand Colors
   ============================================ */

/* --- Google Fonts + Material Icons --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* --- Design Tokens --- */
:root {
  /* Brand Colors */
  --color-primary: #128413;
  --color-primary-light: #1a9e1b;
  --color-primary-dark: #0e6b0f;
  --color-primary-glow: rgba(18, 132, 19, 0.15);
  --color-primary-bg: rgba(18, 132, 19, 0.06);

  /* Secondary — Purple */
  --color-secondary: #3B3280;
  --color-secondary-light: #4d44a0;
  --color-secondary-dark: #2d266a;
  --color-secondary-bg: rgba(59, 50, 128, 0.06);

  /* Brand Black */
  --color-black: #222222;

  /* Tertiary — Brown Orange */
  --color-tertiary-dark: #D49B49;
  --color-tertiary: #EDB059;

  /* Colors — Background (Light Theme) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fb;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(0, 0, 0, 0.02);
  --bg-input: #ffffff;
  --bg-surface: #f1f3f7;

  /* Colors — Text (Light Theme) */
  --text-primary: #222222;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-accent: #128413;
  --text-heading: #222222;

  /* Colors — Semantic */
  --color-success: #128413;
  --color-success-light: rgba(18, 132, 19, 0.1);
  --color-warning: #e67e00;
  --color-warning-light: rgba(230, 126, 0, 0.1);
  --color-error: #d32f2f;
  --color-error-light: rgba(211, 47, 47, 0.08);
  --color-info: #3B3280;
  --color-info-light: rgba(59, 50, 128, 0.08);

  /* Colors — Borders */
  --border-subtle: #e5e7eb;
  --border-light: #d1d5db;
  --border-active: rgba(18, 132, 19, 0.4);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 4px 20px rgba(18, 132, 19, 0.1);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max: 1280px;
  --sidebar-width: 280px;
  --header-height: 72px;
}

/* --- Material Icons Helper --- */
.material-icons,
.material-symbols-outlined {
  font-size: inherit;
  vertical-align: middle;
  line-height: 1;
}

.icon-sm {
  font-size: 18px;
}

.icon-md {
  font-size: 24px;
}

.icon-lg {
  font-size: 32px;
}

.icon-xl {
  font-size: 48px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle background pattern — light green tint */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(18, 132, 19, 0.03), transparent),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(59, 50, 128, 0.02), transparent);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
}

h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

ul,
ol {
  list-style: none;
}

/* --- Utilities --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  position: relative;
  z-index: 1;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

.gap-2xl {
  gap: var(--space-2xl);
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: var(--text-sm);
}

.text-muted {
  color: var(--text-muted);
}

.text-accent {
  color: var(--text-accent);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(18, 132, 19, 0.25);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 16px rgba(18, 132, 19, 0.35);
  transform: translateY(-1px);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-accent {
  background: var(--color-secondary);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 50, 128, 0.25);
}

.btn-accent:hover {
  background: var(--color-secondary-dark);
  box-shadow: 0 4px 16px rgba(59, 50, 128, 0.35);
  transform: translateY(-1px);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--color-primary);
  background: var(--color-primary-bg);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.card-flat {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-primary {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.badge-success {
  background: var(--color-success-light);
  color: var(--color-primary);
}

.badge-warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.badge-executive {
  background: var(--color-secondary-bg);
  color: var(--color-secondary);
}

.badge-professional {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.badge-technical {
  background: rgba(0, 150, 136, 0.08);
  color: #00796b;
}

/* --- Progress Bar --- */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transition: width var(--transition-slow);
}

.progress-bar-lg {
  height: 10px;
}

/* --- Form Elements --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- Table --- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  padding: 0.875rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.table td {
  padding: 1rem 1.25rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: var(--bg-secondary);
}

/* ==========================
   HEADER / NAVIGATION
   ========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-black);
  text-decoration: none;
}

.logo-img {
  height: 37px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: white;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav a {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav a:hover,
.nav a.active {
  color: var(--color-primary);
  background: var(--color-primary-bg);
}

.nav a.active {
  color: var(--color-primary);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================
   MAIN CONTENT OFFSET
   ========================== */
.main-content {
  padding-top: var(--header-height);
  min-height: 100vh;
}

/* ==========================
   HERO SECTION
   ========================== */
.hero {
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(18, 132, 19, 0.06), transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1.25rem;
  background: var(--color-primary-bg);
  border: 1px solid rgba(18, 132, 19, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-primary);
  margin-bottom: var(--space-xl);
  font-weight: 500;
  animation: fadeInDown 0.6s ease;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  animation: fadeInUp 0.6s ease 0.3s backwards;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-4xl);
  animation: fadeInUp 0.6s ease 0.4s backwards;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ==========================
   COURSE CARDS
   ========================== */
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.course-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.course-card-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.course-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.15));
}

.course-card-thumb-icon {
  font-size: 3rem;
  z-index: 1;
  color: white;
}

.course-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.course-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.course-card p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
  flex: 1;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.course-card-info {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.course-card-info span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Course card with progress */
.course-card-progress {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.course-card-progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.course-card.course-card-v2 {
  padding: var(--space-lg);
  gap: var(--space-md);
}

.course-card.course-card-v2[data-track="professional"] {
  background: linear-gradient(180deg, rgba(18, 132, 19, 0.06), rgba(255, 255, 255, 0));
}

.course-card.course-card-v2[data-track="executive"] {
  background: linear-gradient(180deg, rgba(90, 79, 176, 0.08), rgba(255, 255, 255, 0));
}

.course-card.course-card-v2[data-track="technical"] {
  background: linear-gradient(180deg, rgba(0, 105, 92, 0.08), rgba(255, 255, 255, 0));
}

.course-card-v2-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

.course-card-v2-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.course-card-v2-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.course-card-v2-icon .material-symbols-outlined {
  font-size: 26px;
  color: var(--text-primary);
}

.course-card-v2-body h3 {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-sm);
  line-height: 1.25;
}

.course-card-v2-body p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.course-card-v2-stats {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.course-card-v2-stats span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.course-card-v2-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.course-card-v2-progress {
  flex: 1;
  min-width: 0;
}

.course-card-v2-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.course-progress-status {
  font-weight: 600;
  color: var(--text-secondary);
}

.course-progress-percent {
  color: var(--text-secondary);
}

.course-card.is-hidden {
  display: none;
}

/* ==========================
   FEATURES SECTION
   ========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  padding: var(--space-2xl);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--color-primary-bg);
  border: 1px solid rgba(18, 132, 19, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
}

.feature-card h4 {
  margin-bottom: var(--space-sm);
  font-size: var(--text-lg);
}

.feature-card p {
  font-size: var(--text-sm);
}

/* ==========================
   SECTION HEADERS
   ========================== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: var(--text-lg);
}

.section-header-left {
  text-align: left;
  max-width: none;
  margin-bottom: var(--space-2xl);
}

/* ==========================
   INSTRUCTOR SECTION
   ========================== */
.instructor-section {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.instructor-avatar {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  flex-shrink: 0;
  color: white;
}

.instructor-info h3 {
  margin-bottom: var(--space-sm);
}

.instructor-info .instructor-title {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

/* ==========================
   CTA SECTION
   ========================== */
.cta-section {
  text-align: center;
  padding: var(--space-4xl) 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(18, 132, 19, 0.04), rgba(59, 50, 128, 0.04));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-4xl);
}

.cta-box h2 {
  margin-bottom: var(--space-md);
}

.cta-box p {
  margin-bottom: var(--space-2xl);
  font-size: var(--text-lg);
}

/* ==========================
   FOOTER
   ========================== */
.footer {
  background: var(--color-black);
  color: #ccc;
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-4xl);
}

.footer h4 {
  color: #999;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
  font-weight: 600;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  max-width: 280px;
  color: #999;
}

.footer .logo {
  color: #ffffff;
}

.footer .logo-icon {
  background: var(--color-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: var(--text-sm);
  color: #aaa;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-xs);
  color: #777;
}

/* ==========================
   AUTH PAGES
   ========================== */
.auth-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  background: var(--bg-secondary);
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-card h2 {
  margin-bottom: var(--space-sm);
}

.auth-card .auth-subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.auth-form-panel {
  display: none;
}

.auth-form-panel.active {
  display: flex;
  flex-direction: column;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.auth-tabs {
  display: flex;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: transparent;
  font-family: var(--font-body);
}

.auth-tab.active {
  background: var(--color-primary);
  color: white;
}

.auth-tab:hover:not(.active) {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ==========================
   DASHBOARD LAYOUT
   ========================== */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - var(--header-height));
  width: 100%;
}

.dashboard-layout--grid {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  align-items: start;
}

.dashboard-layout--grid .dashboard-sidebar {
  position: sticky;
  top: var(--header-height);
  bottom: auto;
  height: calc(100vh - var(--header-height));
}

.dashboard-layout--grid .dashboard-main {
  margin-left: 0;
}

.dashboard-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  padding: var(--space-xl) 0;
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 var(--space-md);
}

.sidebar-section {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  padding: 0 var(--space-md);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.65rem var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.sidebar-link:hover {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.sidebar-link.active {
  background: var(--color-primary-bg);
  color: var(--color-primary);
  font-weight: 600;
}

.sidebar-link-icon {
  width: 20px;
  text-align: center;
  font-size: 20px;
}

.dashboard-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: var(--space-2xl) var(--space-3xl);
  min-width: 0;
}

.topbar-search {
  background: var(--bg-secondary);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  width: 300px;
  font-size: 0.9rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-subtle);
}

.kpi-icon {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.kpi-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.kpi-trend {
  font-size: 0.75rem;
  color: #16A34A;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px 340px;
  gap: 2.5rem;
}

.resume-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  border-top: 4px solid var(--color-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-subtle);
  border-top-width: 4px;
}

.readiness-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-subtle);
}

.readiness-row {
  margin-bottom: 1rem;
}

.readiness-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #334155;
}

.readiness-bar {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.readiness-fill {
  height: 100%;
  background: #16A34A;
  border-radius: 4px;
}

.up-next-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.next-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.activity-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-subtle);
}

.activity-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.activity-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.left-col {
  min-width: 0;
}

.middle-col {
  min-width: 0;
}

.right-col {
  min-width: 0;
}

/* Dashboard page header */
.page-header {
  margin-bottom: var(--space-2xl);
}

.page-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

.page-header p {
  font-size: var(--text-base);
}

.al-body-editor,
#al-body-purpose,
#al-body-why,
#al-body-core {
  line-height: 1.6;
}

.al-body-editor ul,
.al-body-editor ol,
#al-body-purpose ul,
#al-body-purpose ol,
#al-body-why ul,
#al-body-why ol,
#al-body-core ul,
#al-body-core ol {
  margin: 0.5rem 0 0.75rem 1.25rem;
  padding-left: 1.25rem;
  list-style-position: outside;
}

.al-body-editor ul,
#al-body-purpose ul,
#al-body-why ul,
#al-body-core ul {
  list-style: disc;
}

.al-body-editor ol,
#al-body-purpose ol,
#al-body-why ol,
#al-body-core ol {
  list-style: decimal;
}

.al-body-editor li,
#al-body-purpose li,
#al-body-why li,
#al-body-core li {
  margin-bottom: 0.35rem;
}

.al-body-editor blockquote,
#al-body-purpose blockquote,
#al-body-why blockquote,
#al-body-core blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 0.75rem 1rem;
  background: var(--color-primary-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 0.75rem 0;
}

.al-body-editor h2,
#al-body-purpose h2,
#al-body-why h2,
#al-body-core h2 {
  font-size: var(--text-xl);
  margin: 0.9rem 0 0.5rem;
}

.al-body-editor h3,
#al-body-purpose h3,
#al-body-why h3,
#al-body-core h3 {
  font-size: var(--text-lg);
  margin: 0.8rem 0 0.45rem;
}

.al-body-editor h4,
#al-body-purpose h4,
#al-body-why h4,
#al-body-core h4 {
  font-size: var(--text-base);
  margin: 0.75rem 0 0.4rem;
  font-weight: 700;
}

.my-courses-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.my-courses-header-left {
  min-width: 0;
}

.my-courses-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.segmented-control {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.segmented-control-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  border-radius: calc(var(--radius-lg) - 4px);
  padding: 0.45rem 0.75rem;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.segmented-control-btn.active {
  background: white;
  border-color: var(--border-light);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Dashboard stats row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-card-icon.blue {
  background: var(--color-info-light);
  color: var(--color-secondary);
}

.stat-card-icon.green {
  background: var(--color-success-light);
  color: var(--color-primary);
}

.stat-card-icon.yellow {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.stat-card-icon.purple {
  background: var(--color-secondary-bg);
  color: var(--color-secondary);
}

.stat-card-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
}

.stat-card-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================
   LEARNING PAGE
   ========================== */
.learn-layout {
  display: flex;
  min-height: calc(100vh - var(--header-height));
}

.learn-sidebar {
  width: 320px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
}

.learn-sidebar-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.learn-sidebar-header h3 {
  font-size: var(--text-base);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

.learn-sidebar-header .progress-info {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.module-group {
  border-bottom: 1px solid var(--border-subtle);
}

.module-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.module-group-header:hover {
  background: var(--color-primary-bg);
}

.module-group-title {
  font-size: var(--text-sm);
  font-weight: 600;
  flex: 1;
}

.module-group-chevron {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  font-size: var(--text-sm);
}

.module-group.expanded .module-group-chevron {
  transform: rotate(90deg);
}

.lesson-list {
  padding: 0 var(--space-sm) var(--space-sm);
  display: none;
}

.module-group.expanded .lesson-list {
  display: block;
}

.lesson-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.lesson-item:hover {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.lesson-item.active {
  background: var(--color-primary-bg);
  color: var(--color-primary);
  font-weight: 600;
}

.lesson-item.completed .lesson-status {
  color: var(--color-primary);
}

.lesson-status {
  width: 18px;
  font-size: var(--text-xs);
  flex-shrink: 0;
  text-align: center;
}

.lesson-title-text {
  flex: 1;
  line-height: 1.4;
}

.learn-content {
  flex: 1;
  margin-left: 320px;
  padding: var(--space-2xl) var(--space-3xl);
  max-width: 900px;
}

.lesson-header {
  margin-bottom: var(--space-2xl);
}

.lesson-header .lesson-breadcrumb {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.lesson-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

.lesson-meta {
  display: flex;
  gap: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.lesson-body {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-secondary);
}

.lesson-body h2 {
  font-size: var(--text-xl);
  margin: var(--space-2xl) 0 var(--space-md);
  color: var(--text-heading);
}

.lesson-body p {
  margin-bottom: var(--space-lg);
}

.lesson-body ul,
.lesson-body ol {
  margin: 0 0 var(--space-lg) 1.25rem;
  padding-left: 1.25rem;
  list-style-position: outside;
}

.lesson-body ul {
  list-style: disc;
}

.lesson-body ol {
  list-style: decimal;
}

.lesson-body ul li,
.lesson-body ol li {
  margin-bottom: var(--space-sm);
}

.lesson-body blockquote {
  border-left: 3px solid var(--color-primary);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-primary-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-lg) 0;
  font-style: italic;
  color: var(--text-primary);
}

.lesson-body .key-takeaways {
  background: var(--color-primary-bg);
  border: 1px solid rgba(18, 132, 19, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.lesson-body .key-takeaways h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.lesson-body .key-takeaways ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.lesson-body .key-takeaways li {
  padding-left: 1.25rem;
  position: relative;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.lesson-body .key-takeaways li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 600;
}

.lesson-body .interactive-card {
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.lesson-body .interactive-card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-md);
  color: var(--text-heading);
}

.lesson-body .interactive-card .interactive-muted {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.lesson-body .knowledge-check {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin: var(--space-lg) 0 var(--space-2xl);
}

.lesson-body .knowledge-check-card {
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.lesson-body .knowledge-check-card .kc-title {
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.lesson-body .knowledge-check-card .kc-hint {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.lesson-body .knowledge-check-card .kc-options {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.lesson-body .knowledge-check-card .kc-option {
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-heading);
  cursor: pointer;
}

.lesson-body .knowledge-check-card .kc-option:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.06);
}

.lesson-body .knowledge-check-card .kc-option.selected {
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(37, 99, 235, 0.09);
}

.lesson-body .knowledge-check-card .kc-option.is-correct {
  border-color: rgba(22, 163, 74, 0.55);
  background: rgba(22, 163, 74, 0.12);
}

.lesson-body .knowledge-check-card .kc-option.is-wrong {
  border-color: rgba(220, 38, 38, 0.45);
  background: rgba(220, 38, 38, 0.1);
}

.lesson-body .knowledge-check-card .kc-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.lesson-body .knowledge-check-card .kc-feedback {
  margin-top: var(--space-md);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  line-height: 1.6;
}

.lesson-body .knowledge-check-card .kc-feedback.is-correct {
  border-color: rgba(22, 163, 74, 0.45);
  background: rgba(22, 163, 74, 0.08);
}

.lesson-body .knowledge-check-card .kc-feedback.is-wrong {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.06);
}

.lesson-body .knowledge-check-card .kc-answer {
  margin-top: var(--space-md);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.06);
  color: var(--text-secondary);
  line-height: 1.6;
}

.lesson-body .lesson-resources {
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-lg) 0 var(--space-3xl);
}

.lesson-body .resource-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-md);
}

.lesson-body .resource-row:hover {
  background: var(--bg-secondary);
}

.lesson-body .resource-left {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.lesson-body .resource-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.lesson-body .resource-title {
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.lesson-body .resource-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.lesson-body .resource-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
}

.lesson-body .resource-action:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--bg-secondary);
}

.lr-section {
  margin: var(--space-2xl) 0 var(--space-3xl);
}

.lr-title {
  margin: 0 0 var(--space-lg);
  font-size: 1.35rem;
  color: var(--text-heading);
}

.lr-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.lr-card {
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.lr-card-header {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.lr-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
}

.lr-card-title {
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.2rem;
}

.lr-card-subtitle {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.lr-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.lr-download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  padding-top: var(--space-md);
}

.lr-download-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  background: white;
}

.lr-download-item:hover {
  border-color: var(--border-active);
  background: var(--color-primary-bg);
}

.lr-download-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-success-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
}

.lr-download-meta {
  min-width: 0;
}

.lr-download-name {
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
}

.lr-download-desc {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.35;
}

.lr-download-action {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  font-size: var(--text-sm);
  flex: 0 0 auto;
}

.lr-download-item:hover .lr-download-action {
  background: var(--color-primary-dark);
}

.lr-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  padding-top: var(--space-md);
}

.lr-link {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  background: white;
}

.lr-link:hover {
  background: var(--bg-secondary);
  border-color: rgba(37, 99, 235, 0.25);
}

.lr-link-icon {
  font-size: 20px;
  color: var(--text-muted);
  margin-top: 2px;
}

.lr-link-text {
  min-width: 0;
}

.lr-link-title {
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
}

.lr-link-meta {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

@media (max-width: 780px) {

  .lr-download-grid,
  .lr-links {
    grid-template-columns: 1fr;
  }

  .lr-download-action {
    padding: 0.5rem 0.85rem;
  }
}

.lesson-body .interactive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.lesson-body .interactive-grid button {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: white;
  color: var(--text-secondary);
  cursor: pointer;
}

.lesson-body .interactive-grid button.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-bg);
}

.lesson-body .interactive-panel {
  margin-top: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.lesson-body .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.lesson-body .form-row label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.lesson-body .form-row input,
.lesson-body .form-row select,
.lesson-body .form-row textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.lesson-body .form-row textarea {
  min-height: 110px;
  resize: vertical;
}

.lesson-body .interactive-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.lesson-body .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: white;
}

.lesson-body .pill.good {
  border-color: rgba(18, 132, 19, 0.2);
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.lesson-body .pill.warn {
  border-color: rgba(210, 138, 0, 0.25);
  background: rgba(210, 138, 0, 0.08);
  color: #8a5b00;
}

.lesson-body .pill.bad {
  border-color: rgba(205, 45, 35, 0.2);
  background: rgba(205, 45, 35, 0.08);
  color: #b11f17;
}

.lesson-body .stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.lesson-body .mini-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: white;
}

.lesson-body .mini-card .mini-title {
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-heading);
}

.lesson-body .mini-card .mini-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.lesson-body .range-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.lesson-body .range-row input[type="range"] {
  width: 100%;
}

.lesson-body .match-feedback {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  line-height: 1.6;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.lesson-body .match-feedback.ok {
  border-color: rgba(18, 132, 19, 0.2);
  background: var(--color-success-light);
}

.lesson-body .match-feedback.bad {
  border-color: rgba(205, 45, 35, 0.2);
  background: var(--color-error-light);
}

.lesson-body .flashcard-shell {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: white;
  overflow: hidden;
}

.lesson-body .flashcard-face {
  padding: 2.25rem 1.5rem;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.lesson-body .flashcard-face:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.lesson-body .flashcard-title {
  font-weight: 800;
  color: var(--text-heading);
  font-size: 1.05rem;
  line-height: 1.5;
}

.lesson-body .flashcard-back .flashcard-title {
  margin-bottom: 0.75rem;
}

.lesson-body .flashcard-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.lesson-body .flashcard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.lesson-body .flashcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-md);
}

@media (max-width: 860px) {
  .lesson-body .interactive-grid {
    grid-template-columns: 1fr;
  }

  .lesson-body .form-row {
    grid-template-columns: 1fr;
  }
}

.video-embed {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.video-embed.has-thumbnail {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.video-embed-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-embed.has-thumbnail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.35));
}

.video-embed .play-button {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  position: relative;
  z-index: 1;
}

.video-embed .play-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.video-embed .play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(18, 132, 19, 0.3);
}

.lesson-body .module-lab-card .lab-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

.lesson-body .module-lab-card .lab-meta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.lesson-body .module-lab-card .lab-tabs {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.lesson-body .module-lab-card .lab-tab {
  appearance: none;
  border: 1px solid var(--border-light);
  background: white;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  cursor: pointer;
}

.lesson-body .module-lab-card .lab-tab.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(18, 132, 19, 0.06);
}

.lesson-body .module-lab-card .lab-panels {
  margin-top: var(--space-md);
}

.lesson-body .module-lab-card .lab-panel {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  background: rgba(248, 250, 252, 0.6);
}

.lesson-body .module-lab-card .lab-section-title {
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.lesson-body .module-lab-card .lab-section-body {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.lesson-body .module-lab-card .lab-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.lesson-body .module-lab-card .lab-prompts {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.lesson-body .module-lab-card .lab-prompt {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: white;
  padding: var(--space-md);
}

.lesson-body .module-lab-card .lab-prompt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.lesson-body .module-lab-card .lab-prompt-label {
  font-weight: 700;
}

.lesson-body .module-lab-card .lab-prompt-text {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.lesson-body .module-lab-card .lab-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.lesson-body .module-lab-card .lab-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.lesson-body .module-lab-card .lab-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-secondary);
}

.lesson-body .module-lab-card .lab-input {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-size: var(--text-sm);
  background: white;
  resize: vertical;
}

.lesson-body .module-lab-card .lab-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(18, 132, 19, 0.12);
}

.lesson-body .module-lab-card .lab-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.lesson-body .module-lab-card .lab-actions-right {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.lesson-nav-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-family: var(--font-body);
}

.lesson-nav-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.lesson-complete-btn {
  background: var(--color-primary);
  color: white;
  border-color: transparent;
}

.lesson-complete-btn:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 16px rgba(18, 132, 19, 0.25);
  color: white;
}

/* ==========================
   QUIZ PAGE
   ========================== */
.quiz-container {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

.learn-content .quiz-container {
  max-width: 920px;
  margin: 0;
  padding: var(--space-2xl) var(--space-xl);
}

.quiz-header {
  margin-bottom: var(--space-2xl);
}

.quiz-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.quiz-progress-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
}

.question-card {
  margin-bottom: var(--space-2xl);
}

.question-number {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.question-text {
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.answer-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: left;
  width: 100%;
}

.answer-option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
  color: var(--text-primary);
}

.answer-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.answer-option.correct {
  border-color: var(--color-primary);
  background: var(--color-success-light);
  color: var(--color-primary);
}

.answer-option.incorrect {
  border-color: var(--color-error);
  background: var(--color-error-light);
  color: var(--color-error);
}

.quiz-explanation {
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.quiz-explanation.is-correct {
  border-color: var(--color-primary);
  background: var(--color-success-light);
  color: var(--color-primary);
}

.quiz-explanation.is-wrong {
  border-color: var(--color-error);
  background: var(--color-error-light);
  color: var(--color-error);
}

.quiz-result-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  padding: var(--space-xl);
}

.quiz-result-modal.is-open {
  display: flex;
}

.quiz-result-sheet {
  width: 100%;
  max-width: 520px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  padding: var(--space-2xl);
}

.quiz-result-sheet h3 {
  margin: 0 0 var(--space-sm) 0;
  font-size: var(--text-2xl);
}

.quiz-result-sheet .quiz-result-meta {
  margin-top: var(--space-md);
  color: var(--text-muted);
  font-size: var(--text-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.quiz-result-sheet .quiz-result-actions {
  margin-top: var(--space-xl);
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

.answer-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
  position: relative;
}

.answer-option.selected .answer-radio {
  border-color: var(--color-primary);
}

.answer-option.selected .answer-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--color-primary);
  border-radius: 50%;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

/* ==========================
   ADMIN SPECIFIC
   ========================== */
.admin-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
}

.admin-header-bar h1 {
  font-size: var(--text-3xl);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: var(--space-sm);
}

.status-dot.published {
  background: var(--color-primary);
}

.status-dot.draft {
  background: var(--color-warning);
}

.status-dot.archived {
  background: var(--text-muted);
}

.action-menu {
  display: flex;
  gap: var(--space-xs);
}

/* ==========================
   COURSE DETAIL PAGE
   ========================== */
.course-hero {
  padding: var(--space-3xl) 0;
  position: relative;
}

.course-hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-3xl);
  align-items: start;
}

.course-hero-content h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.course-hero-content .course-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.course-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.course-hero-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.course-hero-meta-item .meta-icon {
  font-size: 20px;
  color: var(--color-primary);
}

.enrollment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
  box-shadow: var(--shadow-md);
}

.enrollment-card-thumb {
  height: 180px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 3rem;
  color: white;
}

.enrollment-card .price {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
}

.enrollment-card .price .price-note {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
}

.enrollment-includes {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
}

.enrollment-includes h4 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}

.enrollment-includes ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.enrollment-includes li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.enrollment-includes li::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: 600;
}

/* Course curriculum accordion */
.curriculum-section {
  padding: var(--space-3xl) 0;
}

.curriculum-module {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.curriculum-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  background: var(--bg-secondary);
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: background var(--transition-fast);
}

.curriculum-module-header:hover {
  background: var(--color-primary-bg);
}

.curriculum-module-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.curriculum-module-number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--color-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}

.curriculum-module-title {
  font-weight: 600;
  font-size: var(--text-base);
}

.curriculum-module-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.curriculum-lessons {
  padding: var(--space-sm) var(--space-lg) var(--space-lg);
  display: none;
}

.curriculum-module.expanded .curriculum-lessons {
  display: block;
}

.curriculum-lesson {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.curriculum-lesson-icon {
  color: var(--text-muted);
  font-size: 18px;
}

/* ==========================
   ANIMATIONS
   ========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease backwards;
}

.animate-in-1 {
  animation-delay: 0.1s;
}

.animate-in-2 {
  animation-delay: 0.2s;
}

.animate-in-3 {
  animation-delay: 0.3s;
}

.animate-in-4 {
  animation-delay: 0.4s;
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-hero-inner {
    grid-template-columns: 1fr;
  }

  .enrollment-card {
    position: static;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }

  .up-next-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
  }

  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .grid-2,
  .grid-3,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .hero-actions {
    flex-direction: column;
  }

  .instructor-section {
    flex-direction: column;
    text-align: center;
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-main {
    margin-left: 0;
    padding: var(--space-xl);
  }

  .learn-sidebar {
    display: none;
  }

  .learn-content {
    margin-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .course-hero-inner {
    gap: var(--space-xl);
  }

  .my-courses-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-control-btn {
    flex: 1;
    justify-content: center;
  }

  .course-card.course-card-v2 {
    padding: var(--space-md);
  }

  .course-card-v2-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .course-card-v2-footer [data-course-action] {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero {
    padding: var(--space-2xl) 0;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .auth-page {
    padding: var(--space-xl);
  }
}