/* ============================================================
   Jenbum Academy – Main Stylesheet
   Aesthetic: Clean Tech-Academy | Plus Jakarta Sans + Inter
   Colors: Deep Navy #0a1628 | Electric Blue #1e6fff | Gold #f5a623
   ============================================================ */

:root {
  --navy:       #0a1628;
  --navy-mid:   #0f2044;
  --navy-light: #1a3055;
  --blue:       #1e6fff;
  --blue-hover: #1558d4;
  --blue-light: #e8f0ff;
  --gold:       #f5a623;
  --gold-light: #fff4e0;
  --white:      #ffffff;
  --off-white:  #f7f9fc;
  --text-dark:  #0a1628;
  --text-mid:   #3d5168;
  --text-light: #7a90a8;
  --border:     #dde4ed;
  --success:    #16a34a;
  --error:      #dc2626;
  --warning:    #d97706;
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --shadow:     0 2px 16px rgba(10,22,40,0.08);
  --shadow-lg:  0 8px 40px rgba(10,22,40,0.14);
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-hover); }
ul { list-style: none; }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

/* ── Container ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,22,40,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30,111,255,0.2);
  transition: var(--transition);
}

.nav-container {
  max-width: 1300px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; position: relative;
}

.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; z-index: 2;
}
.nav-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.15rem;
  color: var(--white); display: block;
}
.brand-tagline { font-size: 0.7rem; color: rgba(255,255,255,0.5); display: block; margin-top: -2px; }

/* Desktop nav links */
.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-links li a {
  color: rgba(255,255,255,0.78); font-size: 0.9rem; font-weight: 500;
  padding: 6px 14px; border-radius: 8px; transition: var(--transition);
  display: block; text-decoration: none;
}
.nav-links li a:hover, .nav-links li a.active {
  color: var(--white); background: rgba(30,111,255,0.15);
}
.nav-btn { padding: 8px 20px !important; border-radius: 8px !important; font-weight: 600 !important; }
.btn-outline { border: 1.5px solid rgba(30,111,255,0.6) !important; color: var(--blue) !important; }
.btn-outline:hover { background: var(--blue) !important; color: var(--white) !important; border-color: var(--blue) !important; }
.btn-primary { background: var(--blue) !important; color: var(--white) !important; }
.btn-primary:hover { background: var(--blue-hover) !important; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 2; width: 40px; height: 40px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
/* Animated X when open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav drawer ───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    /* Hidden off-screen above */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(10,22,40,0.99);
    backdrop-filter: blur(16px);
    padding: 12px 16px 24px;
    border-bottom: 1px solid rgba(30,111,255,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    /* Slide up/hidden by default */
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
    z-index: 999;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Regular nav items */
  .nav-links li a {
    padding: 13px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-radius: 10px;
    margin-bottom: 2px;
    text-align: left;
  }
  .nav-links li a:hover,
  .nav-links li a.active {
    background: rgba(30,111,255,0.15);
    color: var(--white);
  }

  /* Divider before action buttons */
  .nav-links li:nth-last-child(2) {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 8px;
    padding-top: 8px;
  }

  /* CTA buttons in mobile menu */
  .nav-links .nav-btn {
    display: block !important;
    text-align: center !important;
    padding: 13px 16px !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    margin-bottom: 8px;
  }
  .nav-links .btn-outline {
    border: 1.5px solid rgba(30,111,255,0.5) !important;
    background: transparent !important;
    color: var(--blue) !important;
  }
  .nav-links .btn-primary {
    background: var(--blue) !important;
    color: var(--white) !important;
  }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: none; transition: var(--transition);
  font-family: 'Inter', sans-serif; text-decoration: none;
}
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-hover); color: var(--white); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #e09510; color: var(--navy); }
.btn-outline-blue { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: var(--error); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(30,111,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(245,166,35,0.08) 0%, transparent 50%);
}
.hero-grid {
  max-width: 1300px; margin: 0 auto; padding: 80px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(30,111,255,0.15); border: 1px solid rgba(30,111,255,0.3);
  color: #7eb8ff; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 6px 14px; border-radius: 100px; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-tag span { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: rgba(255,255,255,0.65); font-size: 1.1rem; margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; }
.stat-item { text-align: left; }
.stat-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--white); }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-visual { position: relative; }
.hero-img-stack { position: relative; }
.hero-img-main {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.hero-img-main img { width: 100%; height: 420px; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--white); border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
}
.hero-badge-icon { font-size: 1.6rem; }
.hero-badge strong { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; color: var(--navy); }
.hero-badge span { font-size: 0.78rem; color: var(--text-light); }

/* ── Sections ────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); }
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); background: var(--blue-light);
  padding: 4px 14px; border-radius: 100px; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.section-sub { color: var(--text-mid); font-size: 1.05rem; max-width: 560px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-sub { margin: 0 auto; }

/* ── Course Cards ────────────────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.course-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: var(--transition); border: 1px solid var(--border);
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-thumb { position: relative; height: 200px; overflow: hidden; background: var(--navy-mid); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.course-card:hover .course-thumb img { transform: scale(1.05); }
.course-thumb-placeholder { 
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--blue); background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.course-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--navy); font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.06em;
}
.course-badge.free { background: var(--success); color: var(--white); }
.course-play {
  position: absolute; bottom: 14px; right: 14px;
  width: 44px; height: 44px; background: rgba(30,111,255,0.9); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; opacity: 0; transition: var(--transition);
}
.course-card:hover .course-play { opacity: 1; }
.course-body { padding: 20px 24px 24px; }
.course-cat { font-size: 0.72rem; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.course-title { font-size: 1.1rem; margin-bottom: 10px; color: var(--navy); line-height: 1.35; }
.course-desc { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-meta { display: flex; gap: 16px; margin-bottom: 18px; }
.course-meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--text-light); }
.course-meta-item i { color: var(--blue); width: 14px; }
.course-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 16px; }
.course-price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.course-price small { font-size: 0.75rem; color: var(--text-light); font-weight: 400; font-family: 'Inter', sans-serif; display: block; }

/* ── Course Single ───────────────────────────────────────────── */
.course-hero {
  background: var(--navy); padding: 100px 0 48px; position: relative;
}
.course-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.course-hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.course-hero-breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.course-hero-breadcrumb a { color: rgba(255,255,255,0.6); }
.course-hero h1 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); color: var(--white); margin-bottom: 16px; }
.course-hero-desc { color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.course-hero-meta { display: flex; flex-wrap: wrap; gap: 20px; }
.course-hero-meta span { color: rgba(255,255,255,0.65); font-size: 0.88rem; display: flex; align-items: center; gap: 6px; }
.course-hero-meta i { color: var(--gold); }

.course-sidebar-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  position: sticky; top: 90px;
}
.sidebar-thumb { height: 200px; overflow: hidden; position: relative; }
.sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-body { padding: 24px; }
.sidebar-price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.sidebar-features { margin: 20px 0; }
.sidebar-features li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; color: var(--text-mid); }
.sidebar-features li:last-child { border: none; }
.sidebar-features li i { color: var(--blue); width: 16px; }

/* ── Curriculum ──────────────────────────────────────────────── */
.curriculum-section { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.curriculum-header {
  padding: 16px 20px; background: var(--off-white); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-family: 'Plus Jakarta Sans', sans-serif; user-select: none;
}
.curriculum-header:hover { background: var(--blue-light); }
.curriculum-header .section-info { font-size: 0.8rem; color: var(--text-light); font-weight: 400; margin-top: 3px; }
.curriculum-body { display: none; }
.curriculum-body.open { display: block; }
.curriculum-lesson {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  border-top: 1px solid var(--border); font-size: 0.88rem;
}
.curriculum-lesson:hover { background: var(--off-white); }
.lesson-icon { width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.lesson-icon.video { background: rgba(30,111,255,0.1); color: var(--blue); }
.lesson-icon.text { background: rgba(22,163,74,0.1); color: var(--success); }
.lesson-icon.locked { background: var(--off-white); color: var(--text-light); }
.lesson-title { flex: 1; color: var(--text-dark); }
.lesson-duration { font-size: 0.78rem; color: var(--text-light); }
.lesson-free { font-size: 0.7rem; background: var(--blue-light); color: var(--blue); padding: 2px 8px; border-radius: 100px; font-weight: 600; }

/* ── Student Dashboard ───────────────────────────────────────── */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 32px 0; }
.sidebar-nav { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 90px; }
.sidebar-user { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.sidebar-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--blue); margin: 0 auto 10px; overflow: hidden; }
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user strong { font-family: 'Plus Jakarta Sans', sans-serif; display: block; }
.sidebar-user span { font-size: 0.8rem; color: var(--text-light); }
.sidebar-nav-links a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: var(--radius-sm); color: var(--text-mid); font-size: 0.9rem;
  transition: var(--transition); margin-bottom: 4px;
}
.sidebar-nav-links a:hover, .sidebar-nav-links a.active {
  background: var(--blue-light); color: var(--blue);
}
.sidebar-nav-links a i { width: 18px; text-align: center; }

.dashboard-main { }
.dash-header { margin-bottom: 28px; }
.dash-header h1 { font-size: 1.7rem; }
.dash-header p { color: var(--text-mid); }

.progress-bar-wrap { background: var(--border); border-radius: 100px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--blue); border-radius: 100px; transition: width 0.6s ease; }

/* ── Enrolled Course Card ───────────────────────────────────── */
.enrolled-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; gap: 20px; align-items: center; margin-bottom: 16px;
  transition: var(--transition);
}
.enrolled-card:hover { box-shadow: var(--shadow-lg); }
.enrolled-thumb { width: 90px; height: 68px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--navy-mid); }
.enrolled-thumb img { width: 100%; height: 100%; object-fit: cover; }
.enrolled-info { flex: 1; }
.enrolled-info h3 { font-size: 1rem; margin-bottom: 6px; }
.enrolled-progress { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.enrolled-progress .progress-bar-wrap { flex: 1; }
.enrolled-progress span { font-size: 0.78rem; color: var(--text-light); white-space: nowrap; }

/* ── Exam ────────────────────────────────────────────────────── */
.exam-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.exam-header { background: var(--navy); padding: 24px 28px; color: var(--white); }
.exam-header h2 { color: var(--white); margin-bottom: 8px; }
.exam-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.exam-meta span { font-size: 0.85rem; color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 6px; }
.exam-body { padding: 32px; }
.question-block { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.question-block:last-child { border: none; }
.question-num { font-size: 0.78rem; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.question-text { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 18px; line-height: 1.5; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option-label {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
  transition: var(--transition); font-size: 0.9rem;
}
.option-label:hover { border-color: var(--blue); background: var(--blue-light); }
.option-label input { display: none; }
.option-label input:checked ~ * { color: var(--blue); }
.option-label:has(input:checked) { border-color: var(--blue); background: var(--blue-light); }
.option-key {
  width: 28px; height: 28px; border-radius: 6px; background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; flex-shrink: 0; color: var(--text-mid);
}
.option-label:has(input:checked) .option-key { background: var(--blue); color: var(--white); }
.exam-timer { 
  position: sticky; top: 80px; background: var(--navy); color: var(--white);
  padding: 12px 24px; display: flex; align-items: center; gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; z-index: 100; border-radius: 0 0 var(--radius) var(--radius);
}
.timer-val { font-size: 1.3rem; font-weight: 800; color: var(--gold); }

/* ── Admin Layout ────────────────────────────────────────────── */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--navy); flex-shrink: 0;
  position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto;
  z-index: 200;
}
.admin-sidebar-header { padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar-header img { width: 40px; margin-bottom: 8px; }
.admin-sidebar-header h2 { font-size: 1rem; color: var(--white); }
.admin-sidebar-header p { font-size: 0.72rem; color: rgba(255,255,255,0.4); }
.admin-nav { padding: 16px 0; }
.admin-nav-section { padding: 8px 20px 4px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.3); }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px;
  color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: var(--transition);
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(30,111,255,0.2); color: var(--white);
  border-right: 3px solid var(--blue);
}
.admin-nav a i { width: 18px; text-align: center; }
.admin-content { margin-left: 260px; flex: 1; background: var(--off-white); min-height: 100vh; }
.admin-topbar {
  background: var(--white); padding: 16px 32px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100;
}
.admin-page { padding: 32px; }
.admin-page-header { margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; }
.admin-page-header h1 { font-size: 1.5rem; }

/* ── Tables ──────────────────────────────────────────────────── */
.table-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.table-card table { width: 100%; border-collapse: collapse; }
.table-card th { background: var(--off-white); padding: 14px 20px; text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mid); font-weight: 700; }
.table-card td { padding: 14px 20px; border-top: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.table-card tr:hover td { background: var(--off-white); }

/* ── Stats Cards ─────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.stat-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px; }
.stat-card-icon.blue { background: var(--blue-light); color: var(--blue); }
.stat-card-icon.gold { background: var(--gold-light); color: var(--gold); }
.stat-card-icon.green { background: rgba(22,163,74,0.1); color: var(--success); }
.stat-card-icon.red { background: rgba(220,38,38,0.1); color: var(--error); }
.stat-card-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2rem; font-weight: 800; color: var(--navy); }
.stat-card-label { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group label .req { color: var(--error); }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: 'Inter', sans-serif; color: var(--text-dark);
  transition: var(--transition); background: var(--white); outline: none;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,111,255,0.12); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-hint { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input { width: 18px; height: 18px; accent-color: var(--blue); }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.9rem; display: flex; align-items: flex-start; gap: 10px; }
.alert i { margin-top: 2px; flex-shrink: 0; }
.alert-success { background: rgba(22,163,74,0.1); border: 1px solid rgba(22,163,74,0.25); color: var(--success); }
.alert-error { background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.25); color: var(--error); }
.alert-info { background: var(--blue-light); border: 1px solid rgba(30,111,255,0.25); color: var(--blue); }
.alert-warning { background: rgba(217,119,6,0.1); border: 1px solid rgba(217,119,6,0.25); color: var(--warning); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-gold { background: var(--gold-light); color: #9a6700; }
.badge-green { background: rgba(22,163,74,0.1); color: var(--success); }
.badge-red { background: rgba(220,38,38,0.1); color: var(--error); }
.badge-gray { background: var(--off-white); color: var(--text-mid); }

/* ── Certificate ─────────────────────────────────────────────── */
.certificate-card {
  border: 2px solid var(--gold); border-radius: var(--radius-lg); padding: 32px;
  text-align: center; background: linear-gradient(135deg, #fffdf5 0%, #fff 60%, #f0f7ff 100%);
  position: relative; overflow: hidden;
}
.certificate-card::before {
  content: ''; position: absolute; inset: 8px;
  border: 1px solid rgba(245,166,35,0.3); border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); margin-top: auto; }
.footer-top { padding: 64px 0 48px; }
.footer-grid { max-width: 1300px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-logo { width: 56px; margin-bottom: 14px; }
.footer-about { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6);
  font-size: 0.9rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.footer-col h4 { font-size: 0.95rem; color: var(--white); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: 10px; font-size: 0.85rem; margin-bottom: 12px; }
.footer-contact li i { color: var(--blue); width: 14px; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer-bottom-inner { max-width: 1300px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; }

/* ── Misc ────────────────────────────────────────────────────── */
.page-hero { background: var(--navy); padding: 120px 0 56px; position: relative; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(30,111,255,0.15), transparent 60%); }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.page-hero p { color: rgba(255,255,255,0.65); margin-top: 10px; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 28px; }
.tab { padding: 10px 20px; font-size: 0.9rem; font-weight: 600; color: var(--text-mid); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.tab.active { color: var(--blue); border-color: var(--blue); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.empty-state { text-align: center; padding: 64px 24px; }
.empty-state i { font-size: 3rem; color: var(--text-light); margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--text-mid); font-size: 0.9rem; }

.quiz-result { border-radius: var(--radius-lg); padding: 48px; text-align: center; }
.quiz-result.passed { background: rgba(22,163,74,0.08); border: 2px solid rgba(22,163,74,0.3); }
.quiz-result.failed { background: rgba(220,38,38,0.06); border: 2px solid rgba(220,38,38,0.2); }
.quiz-score { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 4rem; font-weight: 800; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeInUp 0.5s ease forwards; }

/* ── Responsive Layout Classes ───────────────────────────────── */

/* About grid: 2-col on desktop, stacked on mobile */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-img { border-radius: 12px; height: 200px; object-fit: cover; width: 100%; }
.about-img-2 { margin-top: 24px; }
.about-img-3 { margin-top: -24px; }
.about-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.stats-row { display: flex; gap: 24px; }

/* Features strip: 3-col on desktop */
.features-strip { display: grid; grid-template-columns: repeat(3,1fr); }
.feature-item { padding: 28px 32px; display: flex; align-items: center; gap: 18px; }
.feature-item-border { border-right: 1px solid rgba(255,255,255,0.07); }

/* Values & facilities grids */
.values-grid     { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.facilities-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

/* Contact grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }

/* Verify form row */
.verify-form-row { max-width: 480px; margin: 0 auto; display: flex; gap: 12px; }
.verify-form-row .form-control { flex: 1; }

/* ── Tablet (≤1024px) ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid          { grid-template-columns: 1fr 1fr; gap: 32px; }
  .course-hero-grid     { grid-template-columns: 1fr; }
  .course-sidebar-card  { position: static; }
  .dashboard-layout     { grid-template-columns: 1fr; }
  .sidebar-nav          { position: static; }
  .admin-sidebar        { position: static; width: 100%; }
  .admin-content        { margin-left: 0; }
  .admin-wrapper        { flex-direction: column; }
  .about-grid           { gap: 40px; }
  .values-grid          { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile (≤768px) ────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav handled in the navbar section above */

  /* Hero */
  .hero         { min-height: auto; }
  .hero-grid    { grid-template-columns: 1fr; padding: 48px 24px; }
  .hero-visual  { display: none; }
  .hero h1      { font-size: 1.9rem; }
  .hero-stats   { gap: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }

  /* Features strip */
  .features-strip      { grid-template-columns: 1fr; }
  .feature-item        { padding: 16px 20px; }
  .feature-item-border { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }

  /* Sections */
  .section      { padding: 48px 0; }
  .section-title { font-size: 1.5rem; }
  .section-header { margin-bottom: 32px; }

  /* About grid — stack on mobile */
  .about-grid           { grid-template-columns: 1fr; gap: 32px; }
  .about-photos         { grid-template-columns: 1fr 1fr; }
  .about-img            { height: 140px; }
  .about-img-2          { margin-top: 16px; }
  .about-img-3          { margin-top: -16px; }
  .about-features-grid  { grid-template-columns: 1fr; gap: 14px; }
  .stats-row            { gap: 16px; }

  /* Values / facilities */
  .values-grid     { grid-template-columns: 1fr; gap: 16px; }
  .facilities-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Contact page */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Verify form */
  .verify-form-row { flex-direction: column; max-width: 100%; }
  .verify-form-row .btn { width: 100%; justify-content: center; }

  /* Courses grid */
  .courses-grid { grid-template-columns: 1fr; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Tables — make scrollable */
  .table-card { overflow-x: auto; }

  /* Footer */
  .footer-grid          { grid-template-columns: 1fr; gap: 28px; }
  .footer-top           { padding: 40px 0 32px; }
  .footer-grid > div:not(:last-child) { padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .footer-bottom-inner  { flex-direction: column; gap: 8px; text-align: center; }
  .footer-social        { justify-content: flex-start; }

  /* Dashboard */
  .stats-grid           { grid-template-columns: 1fr 1fr !important; }
  .enrolled-card        { flex-direction: column; }
  .enrolled-card .btn   { width: 100%; justify-content: center; margin-top: 8px; }

  /* Exam options */
  .options-grid { grid-template-columns: 1fr; }

  /* Page hero */
  .page-hero { padding: 100px 0 36px; }
  .page-hero h1 { font-size: 1.6rem; }

  /* Admin */
  .admin-topbar { flex-direction: column; gap: 10px; align-items: flex-start; }
  .admin-page   { padding: 20px 16px; }
  .admin-page-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .builder-wrap { grid-template-columns: 1fr; }
  .builder-sidebar { position: static; max-height: none; }

  /* Course page */
  .course-hero-grid { grid-template-columns: 1fr; }
  .course-page-wrap { grid-template-columns: 1fr; }
  .course-main-col  { padding: 24px 0; }
  .course-sticky-sidebar { margin-top: 0; }
  .learn-grid       { grid-template-columns: 1fr; }
  .includes-grid    { grid-template-columns: 1fr; }

  /* Learn page */
  .learn-layout { grid-template-columns: 1fr !important; }
  .learn-sidebar { position: static !important; height: auto !important; }

  /* Certificate verify */
  #panel-fields, #panel-properties, #panel-background { max-height: 60vh; }

  /* Misc */
  .quiz-result { padding: 28px 16px; }
  .quiz-score  { font-size: 2.5rem; }
  .btn-lg      { padding: 14px 24px; font-size: 0.95rem; }
}

/* ── Small mobile (≤480px) ──────────────────────────────────── */
@media (max-width: 480px) {
  .container   { padding: 0 16px; }
  .about-photos { grid-template-columns: 1fr; }
  .about-img   { height: 200px; margin-top: 0 !important; }
  .hero h1     { font-size: 1.65rem; }
  .stats-grid  { grid-template-columns: 1fr !important; }
  .hero-stats  { flex-wrap: wrap; }
  .nav-brand-text .brand-name { font-size: 1rem; }
  .tabs { overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; }
  .tab  { padding: 10px 14px; font-size: 0.82rem; }
  .form-card   { padding: 20px 16px; }
  .dashboard-layout { padding: 16px 0; }
}
