/* HIFIS Moodle Training Course – Stylesheet */
:root {
  --primary: #1a4c8a;
  --primary-dark: #0f2f57;
  --primary-light: #2d6cca;
  --accent: #e8a020;
  --accent-dark: #c4841a;
  --success: #2e7d32;
  --danger: #c62828;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-alt: #eef1f7;
  --text: #1a1a2e;
  --text-muted: #5a6a85;
  --border: #d0d8e8;
  --shadow: 0 2px 12px rgba(26,76,138,0.10);
  --radius: 10px;
  --radius-lg: 16px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

/* ── Layout ── */
.site-header {
  background: var(--primary-dark);
  color: #fff;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.site-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.site-logo .logo-text { line-height: 1.2; }
.site-logo .logo-title { font-size: 18px; font-weight: 700; }
.site-logo .logo-sub { font-size: 12px; opacity: 0.75; }

/* ── Header Nav (desktop) ── */
.header-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.header-nav > a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.header-nav > a:hover, .header-nav > a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ── Nav dropdown (Modules) ── */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 4px;
  color: rgba(255,255,255,0.85);
  background: none; border: none; cursor: pointer;
  padding: 6px 12px; border-radius: 6px; font-size: 14px;
  font-family: inherit; white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-dropdown-trigger:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nav-dropdown-trigger .arrow { font-size: 10px; opacity: 0.8; transition: transform 0.2s; }
.nav-dropdown.open .nav-dropdown-trigger .arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 260px; max-height: 70vh; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #94a3b8 transparent;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18); z-index: 300;
  padding: 6px 0;
}
.nav-dropdown-menu::-webkit-scrollbar { width: 6px; }
.nav-dropdown-menu::-webkit-scrollbar-track { background: transparent; }
.nav-dropdown-menu::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 6px; }
.nav-dropdown-menu::-webkit-scrollbar-thumb:hover { background: #64748b; }
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; color: var(--text); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: background 0.15s;
  border: none; width: 100%; text-align: left; background: none;
  font-family: inherit; cursor: pointer;
}
.nav-dropdown-menu a:hover { background: var(--surface-alt); color: var(--primary); }
.nav-dropdown-menu a.active { background: #eef4ff; color: var(--primary); font-weight: 600; }
.nav-dropdown-menu .mod-num {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.nav-dropdown-menu .mod-divider { height: 1px; background: var(--border); margin: 6px 12px; }
.nav-dropdown-menu .mod-divider + a .mod-num { background: #b71c1c; color: #fff; }

/* ── Mobile hamburger ── */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px; cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: #fff; border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-nav.mobile-open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-dark); padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 150; border-top: 1px solid rgba(255,255,255,0.1); }
  .header-nav.mobile-open > a { padding: 12px 16px; border-radius: 6px; width: 100%; }
  .header-nav.mobile-open .nav-dropdown { width: 100%; }
  .header-nav.mobile-open .nav-dropdown-trigger { width: 100%; justify-content: space-between; padding: 12px 16px; }
  .header-nav.mobile-open .nav-dropdown-menu { position: static; box-shadow: none; border: none; border-radius: 6px; background: rgba(0,0,0,0.15); margin: 0 0 8px 0; max-height: 50vh; }
  .header-nav.mobile-open .nav-dropdown-menu a { color: rgba(255,255,255,0.85); }
  .header-nav.mobile-open .nav-dropdown-menu a:hover { background: rgba(255,255,255,0.15); color: #fff; }
  .header-nav.mobile-open .nav-dropdown-menu a.active { background: rgba(255,255,255,0.2); color: #fff; }
  .header-nav.mobile-open .nav-dropdown-menu .mod-num { background: rgba(255,255,255,0.2); color: #fff; }
  .header-nav.mobile-open .nav-dropdown-menu .mod-divider { background: rgba(255,255,255,0.3); }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }
}

/* ── User chip (header) ── */
.user-chip {
  position: relative; display: flex; align-items: center; gap: 8px;
  cursor: pointer; padding: 4px 10px 4px 4px;
  border-radius: 24px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2); transition: background .2s;
  margin-left: 4px;
}
.user-chip:hover { background: rgba(255,255,255,.2); }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.user-chip-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; }
.user-chip-menu {
  display: none; position: absolute; top: calc(100% + 4px); right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px; min-width: 190px; box-shadow: 0 8px 28px rgba(0,0,0,.18);
  z-index: 200; text-align: left;
}
/* Invisible bridge so mouse can move from chip to menu without losing hover */
.user-chip-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 8px;
}
.user-chip:hover .user-chip-menu,
.user-chip:focus-within .user-chip-menu { display: block; }
.ucm-name  { font-size: 14px; font-weight: 700; color: var(--text); }
.ucm-role  { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.ucm-link  {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 7px 10px; border-radius: 6px; font-size: 13px; font-weight: 600;
  color: var(--primary); cursor: pointer; text-decoration: none;
  transition: background .15s;
}
.ucm-link:hover   { background: var(--surface-alt); }
.ucm-logout       { color: var(--danger) !important; }

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ── Hero Banner ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0a1e3d 100%);
  color: #fff;
  padding: 64px 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -30px;
  width: 200px; height: 200px;
  background: rgba(232,160,32,0.1);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero h1 { font-size: 36px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero p { font-size: 17px; opacity: 0.88; margin-bottom: 28px; }
.hero-meta { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-meta-item { display: flex; align-items: center; gap: 8px; font-size: 14px; opacity: 0.82; }
.hero-meta-item .icon { font-size: 18px; }

/* ── Progress Bar ── */
.course-progress-bar {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
}
.progress-label { font-size: 14px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.progress-track {
  flex: 1;
  height: 10px;
  background: var(--surface-alt);
  border-radius: 5px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 5px;
  transition: width 0.4s ease;
}
.progress-pct { font-size: 14px; font-weight: 700; color: var(--primary); }

/* ── Cards ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(26,76,138,0.16); transform: translateY(-2px); }
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-body { padding: 24px; }

/* ── Module Grid ── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.module-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid var(--border);
}
.module-card:hover { box-shadow: 0 8px 28px rgba(26,76,138,0.18); transform: translateY(-3px); }
.module-card-header {
  padding: 20px 24px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.module-num {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.module-card-body { padding: 0 24px 20px; }
.module-card-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.module-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.module-card-footer {
  padding: 12px 24px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.module-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.status-dot.complete { background: var(--success); }
.status-dot.in-progress { background: var(--accent); }
.status-dot.not-started { background: var(--border); }

/* Module color themes */
.m0 { background: #6c757d; }
.m1 { background: #1a4c8a; }
.m2 { background: #2e7d32; }
.m3 { background: #c62828; }
.m4 { background: #6a1b9a; }
.m5 { background: #00695c; }
.m6 { background: #e65100; }
.m7 { background: #1565c0; }
.m8 { background: #4a148c; }
.m9 { background: #37474f; }
.m10 { background: #1b5e20; }
.mfinal { background: #b71c1c; }

/* ── Module Page Layout ── */
.module-page-hero {
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.module-page-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.module-breadcrumb {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 12px;
}
.module-breadcrumb a { color: rgba(255,255,255,0.9); text-decoration: none; }
.module-breadcrumb a:hover { text-decoration: underline; }
.module-page-hero h1 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.module-page-hero p { font-size: 15px; opacity: 0.88; max-width: 640px; }

/* ── Content Layout ── */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
}

/* ── Sidebar ── */
.sidebar-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 88px;
}
.sidebar-header {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.sidebar-nav li a:hover { background: var(--surface-alt); color: var(--primary); }
.sidebar-nav li a.active { background: var(--surface-alt); color: var(--primary); font-weight: 600; border-left: 3px solid var(--primary); }
.sidebar-nav li:last-child a { border-bottom: none; }

/* ── Section Content ── */
.content-section {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}
.section-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.section-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.section-title { font-size: 17px; font-weight: 700; flex: 1; }
.section-toggle { color: var(--text-muted); font-size: 12px; transition: transform 0.2s; }
.section-toggle.open { transform: rotate(90deg); }
.section-body { padding: 28px; }
.section-body.hidden { display: none; }

/* ── Steps ── */
.steps { list-style: none; counter-reset: step-counter; }
.steps li {
  counter-increment: step-counter;
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.steps li::before {
  content: counter(step-counter);
  min-width: 28px; height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.steps li .step-content { padding-top: 2px; font-size: 14.5px; }

/* ── Notes / Tips / Important ── */
.note {
  border-radius: 8px;
  padding: 14px 18px;
  margin: 16px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
}
.note-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.note.info { background: #e8f4fd; border-left: 4px solid #2196f3; }
.note.tip { background: #f0fdf4; border-left: 4px solid var(--success); }
.note.warning { background: #fff8e1; border-left: 4px solid var(--accent); }
.note.important { background: #fef2f2; border-left: 4px solid var(--danger); }

/* ── Video Placeholder ── */
.video-placeholder {
  background: linear-gradient(135deg, #0f2f57, #1a4c8a);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  color: #fff;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s;
}
.video-placeholder:hover { opacity: 0.92; }
.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.video-play-btn {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  border: 3px solid rgba(255,255,255,0.5);
  transition: background 0.2s;
}
.video-placeholder:hover .video-play-btn { background: rgba(255,255,255,0.3); }
.video-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.video-desc { font-size: 13px; opacity: 0.75; margin-bottom: 16px; }
.video-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
}
.video-duration {
  position: absolute;
  bottom: 16px; right: 20px;
  font-size: 12px;
  opacity: 0.7;
}

/* ── Quiz / Assessment ── */
.quiz-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
}
.quiz-question { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.quiz-options { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 14px;
}
.quiz-option:hover { border-color: var(--primary-light); background: var(--surface-alt); }
.quiz-option.selected { border-color: var(--primary); background: #eef3fc; }
.quiz-option.correct { border-color: var(--success); background: #f0fdf4; }
.quiz-option.incorrect { border-color: var(--danger); background: #fef2f2; }
.quiz-option input { margin-top: 2px; flex-shrink: 0; }
.quiz-feedback {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: none;
}
.quiz-feedback.show { display: block; }
.quiz-feedback.correct { background: #f0fdf4; color: var(--success); }
.quiz-feedback.incorrect { background: #fef2f2; color: var(--danger); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(26,76,138,0.3); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(232,160,32,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-success { background: var(--success); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 6px; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ── Table ── */
.hifis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 16px 0;
}
.hifis-table th {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.hifis-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.hifis-table tr:nth-child(even) td { background: var(--surface-alt); }
.hifis-table tr:last-child td { border-bottom: none; }

/* ── Accordion ── */
/* Prevent side-by-side accordions from stretching when one expands (avoids illusion that both dropped) */
.accordion-grid {
  align-items: start;
}
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.accordion-header {
  padding: 14px 18px;
  background: var(--surface-alt);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.15s;
}
.accordion-header:hover { background: var(--border); }
.accordion-header .arrow { transition: transform 0.2s; font-size: 12px; color: var(--text-muted); }
.accordion-header.open .arrow { transform: rotate(180deg); }
.accordion-body { padding: 16px 18px; font-size: 14px; display: none; border-top: 1px solid var(--border); }
.accordion-body.open { display: block; }

/* ── Navigation Footer ── */
.module-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.module-nav-footer .nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow);
}
.module-nav-footer .nav-btn:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(26,76,138,0.15); }
.module-nav-footer .nav-btn.next { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Icons List ── */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.icon-item {
  background: var(--surface-alt);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.icon-emoji { font-size: 22px; flex-shrink: 0; }

/* ── Checklist ── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}
.checklist li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-blue { background: #dbeafe; color: var(--primary); }
.badge-green { background: #dcfce7; color: var(--success); }
.badge-orange { background: #fef3c7; color: #b45309; }
.badge-red { background: #fee2e2; color: var(--danger); }

/* ── Score Box ── */
.score-box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  text-align: center;
  margin: 24px 0;
}
.score-circle {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 8px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}
.score-label { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.score-sub { font-size: 14px; color: var(--text-muted); }

/* ── Footer ── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 32px 24px;
  text-align: center;
  margin-top: 48px;
  font-size: 13px;
}
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 36px 24px; }
  .hero h1 { font-size: 26px; }
  .module-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0 16px; }
  .page-container { padding: 20px 16px; }
  .module-page-hero { padding: 28px 20px; }
}

/* ── Print ── */
@media print {
  .site-header, .sidebar-card, .module-nav-footer { display: none; }
  .content-layout { grid-template-columns: 1fr; }
}
