/* ===================================================================
   منصة أ. أحمد رأفت للبرمجة والذكاء الاصطناعي — نظام التصميم الشامل
   Design System, Theme Variables, RTL Layouts & Components
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Fira+Code:wght@400;500;600&display=swap');

:root {
  --font-sans: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', Consolas, Monaco, monospace;

  /* Cyberpunk / Deep Violet Theme (Default Reference Look) */
  --bg-page: #0b051d;
  --bg-card: #150a33;
  --bg-card-hover: #1e1045;
  --bg-surface: #1e1145;
  --border-card: rgba(139, 92, 246, 0.25);
  --border-card-hover: rgba(168, 85, 247, 0.6);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: rgba(124, 58, 237, 0.15);
  --primary-glow: rgba(124, 58, 237, 0.4);

  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.4);
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --accent-gold: #f59e0b;

  --console-bg: #090317;
  --console-text: #a7f3d0;

  --nav-bg: rgba(21, 10, 51, 0.85);
  --nav-border: rgba(139, 92, 246, 0.3);

  --shadow-glow: 0 0 25px rgba(124, 58, 237, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

[data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-surface: #e2e8f0;
  --border-card: rgba(203, 213, 225, 0.8);
  --border-card-hover: rgba(124, 58, 237, 0.5);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --primary: #6d28d9;
  --primary-hover: #5b21b6;
  --primary-light: rgba(109, 40, 217, 0.1);
  --primary-glow: rgba(109, 40, 217, 0.2);

  --console-bg: #1e1e2e;
  --console-text: #67e8f9;

  --nav-bg: rgba(255, 255, 255, 0.9);
  --nav-border: rgba(226, 232, 240, 0.8);
  --shadow-glow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  direction: rtl;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ----------------------------------------------------
   NAVBAR (Floating Pill Style matching Reference)
   ---------------------------------------------------- */
.navbar-wrapper {
  position: sticky;
  top: 1rem;
  z-index: 1000;
  padding: 0 1rem;
  margin-bottom: 2rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--nav-border);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border-card-hover);
}

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

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.btn-white {
  background: #ffffff;
  color: #0f172a;
}

.btn-white:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ----------------------------------------------------
   HERO SECTION
   ---------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 2.5rem 0 4rem 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--primary-light);
  border: 1px solid var(--primary-glow);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: 0.9rem;
  font-weight: 700;
  width: fit-content;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-main);
}

.hero-title span {
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}

.stat-item {
  text-align: center;
  border-left: 1px solid var(--border-card);
}

.stat-item:last-child {
  border-left: none;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Hero Media */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-media img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-card-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  object-fit: cover;
}

/* ----------------------------------------------------
   SECTION HEADERS
   ---------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* ----------------------------------------------------
   VALUE CARDS / WHY CHOOSE US
   ---------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ----------------------------------------------------
   TRACKS CARDS
   ---------------------------------------------------- */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.track-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.track-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.track-terminal {
  background: var(--console-bg);
  border-radius: var(--radius-sm);
  padding: 1rem;
  direction: ltr;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #38bdf8;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.track-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.track-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0.5rem 0;
}

.track-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ----------------------------------------------------
   COURSE CARDS & FILTER
   ---------------------------------------------------- */
.filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-weight: 700;
  min-width: 80px;
  color: var(--text-main);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  color: var(--text-main);
  border-color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 10px var(--primary-glow);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

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

.course-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.course-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-price-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.9);
  color: #fbbf24;
  font-weight: 800;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
}

.course-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.course-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.course-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-card);
  padding-top: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ----------------------------------------------------
   INTERACTIVE CODE PLAYGROUND
   ---------------------------------------------------- */
.playground-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 5rem;
}

.playground-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-card);
}

.playground-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.playground-editor-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

.editor-pane {
  position: relative;
  background: #0d0722;
  border-left: 1px solid var(--border-card);
}

.code-textarea {
  width: 100%;
  height: 100%;
  min-height: 380px;
  padding: 1.25rem;
  background: transparent;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.6;
  direction: ltr;
  text-align: left;
  border: none;
  resize: vertical;
  outline: none;
}

.console-pane {
  background: var(--console-bg);
  padding: 1.25rem;
  direction: ltr;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  overflow-y: auto;
  max-height: 450px;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.console-line {
  margin-bottom: 0.5rem;
  color: var(--console-text);
  word-break: break-all;
  white-space: pre-wrap;
}

.console-error {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}

/* ----------------------------------------------------
   ABOUT INSTRUCTOR SECTION
   ---------------------------------------------------- */
.instructor-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 5rem;
  align-items: center;
}

.instructor-img-wrapper {
  text-align: center;
}

.instructor-img-wrapper img {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-full);
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-glow);
}

.instructor-bio h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.instructor-title {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.instructor-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cert-badge {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  border: 1px solid var(--primary-glow);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ----------------------------------------------------
   FAQ ACCORDION
   ---------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto 5rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  user-select: none;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.open {
  border-color: var(--primary);
}

.faq-item.open .faq-answer {
  display: block;
}

/* ----------------------------------------------------
   AUTH PAGES (LOGIN & REGISTER)
   ---------------------------------------------------- */
.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.auth-poster {
  background: #12072e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  position: relative;
  text-align: center;
}

.auth-poster img {
  max-width: 90%;
  height: auto;
  border-radius: var(--radius-md);
}

.auth-form-side {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-card);
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
}

/* ----------------------------------------------------
   QUIZ ASSESSMENT INTERFACE
   ---------------------------------------------------- */
.quiz-container {
  max-width: 850px;
  margin: 2rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.quiz-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-weight: 800;
  font-family: var(--font-mono);
}

.question-card {
  margin-bottom: 2rem;
}

.question-text {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.choice-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.choice-option.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  font-weight: 700;
}

/* ----------------------------------------------------
   FOOTER
   ---------------------------------------------------- */
.footer {
  background: #070314;
  border-top: 1px solid var(--border-card);
  padding: 4rem 0 2rem 0;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ----------------------------------------------------
   RESPONSIVENESS (Mobile & Tablet)
   ---------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-left: none;
  }
  .instructor-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cert-badges {
    justify-content: center;
  }
  .auth-card {
    grid-template-columns: 1fr;
  }
  .auth-poster {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .playground-editor-area {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
  .stats-bar {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .stat-item {
    border-left: none;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 0.75rem;
  }
  .nav-links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
