:root {
  --brand: #007A45;
  --brand-dark: #005C34;
  --brand-light: #E8F5EE;
  --brand-soft: rgba(0, 122, 69, 0.08);
  --ink: #111827;
  --ink-2: #374151;
  --mist: #eef0f3;
  --paper: #f4f5f7;
  --white: #fff;
  --line: rgba(17, 24, 39, 0.09);
  --muted: #6b7280;
  --teal: #007A45;
  --teal-2: #005C34;
  --gold: #007A45;
  --coral: #e56b4e;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.06);
  --radius: 10px;
  --sidebar-width: 208px;
  --sidebar-collapsed: 64px;
  --topbar-height: 56px;
  --content-max: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", "Plus Jakarta Sans", "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1040px, calc(100% - 32px)); margin: auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247,244,238,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(7,17,31,.08);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.04em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; display: grid; place-items: center; font-family: "Plus Jakarta Sans", sans-serif;
}
.nav-toggle { display: none; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a { text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.nav-links a:hover { color: var(--teal-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 8px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer; background: var(--brand); color: #fff;
}
.btn:hover { filter: brightness(1.06); }
.btn.gold { background: var(--brand-dark); color: #fff; }
.btn.teal { background: var(--teal); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(14,157,142,.28), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(231,178,60,.22), transparent 26%),
    linear-gradient(180deg, #fbf8f1, #eef5f4);
  padding: 72px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.hero h1, .page-hero h1, .section h2 {
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif; letter-spacing: -.02em; line-height: 1.08; margin: 14px 0;
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); }
.hero h1 em { font-style: italic; color: var(--teal-2); }
.lead { font-size: 18px; color: var(--muted); max-width: 58ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero-card {
  background: var(--ink); color: #d7e4ef; border-radius: 32px; padding: 28px; box-shadow: var(--shadow);
}
.hero-card h3 { color: #fff; margin-top: 0; font-family: "Fraunces", serif; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 14px; }
.stat b { display: block; color: var(--gold); font-size: 22px; }
.section { padding: 84px 0; }
.section.alt { background: #fff; }
.kicker { color: var(--teal-2); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card, .panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(7,17,31,.05);
}
.pad { padding: 20px; }
.card h3 { margin: 8px 0 10px; font-size: 22px; }
.page-hero { padding: 58px 0 20px; }
.form-shell { width: min(760px, calc(100% - 32px)); margin: 40px auto 80px; padding: 32px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 13px; color: var(--ink-2); }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 14px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 3px solid #d7f3ee; border-color: var(--teal); }
.error { color: #b42318; font-size: 13px; }
.flash { padding: 12px 14px; border-radius: 12px; background: #e5f7f2; color: #0b5c53; }
.flash.bad { background: #fde8e4; color: #9b2c1a; }
.site-footer { background: var(--ink); color: #c5d2df; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.site-footer a { display: block; text-decoration: none; margin: 8px 0; color: #c5d2df; }
.site-footer h4 { color: #fff; margin-bottom: 8px; }
.copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; font-size: 13px; }
.portal-shell, .app-shell { min-height: 100vh; display: flex; align-items: stretch; background: var(--paper); }
.app-sidebar, .portal-side {
  width: var(--sidebar-width); flex-shrink: 0; height: 100vh; position: sticky; top: 0;
  display: flex; flex-direction: column; overflow: hidden auto;
  background: #fff; color: #374151; border-right: 1px solid var(--line);
  transition: width .16s ease;
  z-index: 30;
}
.app-shell.sidebar-collapsed .app-sidebar, .app-shell.sidebar-collapsed .portal-side {
  width: var(--sidebar-collapsed);
}
.app-sidebar .brand-block { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-bottom: 1px solid var(--line); min-height: var(--topbar-height); }
.app-sidebar .brand-block b { display: block; font-size: 14px; }
.app-sidebar .sidebar-role { color: var(--muted); font-size: 11px; }
.brand-text, .nav-label, .nav-section-title {
  white-space: nowrap; overflow: hidden;
  transition: opacity .12s ease, max-width .12s ease;
  opacity: 1; max-width: 160px;
}
.app-shell.sidebar-collapsed .brand-text,
.app-shell.sidebar-collapsed .nav-label,
.app-shell.sidebar-collapsed .nav-section-title {
  opacity: 0; max-width: 0;
}
.sidebar-toggle {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 36px; height: 36px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.sidebar-scrim { display: none; }
.nav-group-toggle {
  display: flex; align-items: center; gap: 10px; width: calc(100% - 16px); margin: 2px 8px;
  border: 0; background: transparent; color: #374151; border-radius: 8px; padding: 8px 10px;
  font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; text-align: left;
}
.nav-group-toggle i { width: 18px; text-align: center; }
.nav-group-body { padding-left: 8px; }
.nav-group-body.is-hidden { display: none; }
.app-shell.sidebar-collapsed .app-sidebar a { position: relative; }
.app-shell.sidebar-collapsed .app-sidebar a:hover::after,
.app-shell.sidebar-collapsed .app-sidebar .nav-group-toggle:hover::after {
  content: attr(data-tip);
  position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  background: #111827; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap;
  padding: 6px 8px; border-radius: 6px; z-index: 40; pointer-events: none;
}
.nav-section-title { padding: 12px 16px 4px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.app-sidebar a, .portal-side a {
  display: flex; align-items: center; gap: 10px; color: #374151; text-decoration: none;
  padding: 8px 10px; margin: 2px 8px; border-radius: 8px; font-weight: 600; font-size: 13px;
}
.app-sidebar a i, .portal-side a i { width: 18px; text-align: center; flex-shrink: 0; font-size: 16px; }
.app-sidebar a:hover, .portal-side a:hover { background: #eef6f2; color: var(--brand-dark); }
.app-sidebar a.active, .portal-side a.active { background: var(--brand-light); color: var(--brand-dark); }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  height: var(--topbar-height); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.nav-burger { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 36px; height: 36px; cursor: pointer; }
.search-pill { background: var(--mist); border-radius: 8px; padding: 7px 12px; min-width: 140px; color: var(--muted); font-size: 13px; }
.app-content, .portal-main { padding: 18px 20px 36px; width: min(var(--content-max), 100%); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 28px; }
.kpi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi-card small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.kpi-card b { display: block; font-size: 22px; margin-top: 4px; color: var(--brand-dark); }
.app-content h1 { font-size: 24px; margin: 4px 0 8px; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; display: grid; place-items: center; font-family: "Plus Jakarta Sans", sans-serif; font-size: 15px; flex-shrink: 0;
}
.page-kicker { color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.badge-soft { background: var(--brand-light); color: var(--brand-dark); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
.status-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--brand-light); color: var(--brand-dark); font-size: 12px; font-weight: 700; }
.data { width: 100%; border-collapse: collapse; }
.data th, .data td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
.mobile-menu { display: none; }
.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.module { padding: 22px; }
.module form { display: grid; gap: 10px; }
.record { padding: 10px 0; border-bottom: 1px solid var(--line); }
.record b { display: block; }
.danger { background: #fff; color: #b42318; border: 1px solid #f1b9b4; border-radius: 8px; padding: 7px 10px; cursor: pointer; }
@media (max-width: 980px) {
  .modules { grid-template-columns: 1fr; }
  .hero-grid, .grid-2, .grid-3, .footer-grid, .kpi-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links { display: none; }
  .nav-toggle:checked ~ .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; position: absolute; left: 0; right: 0; top: 76px;
    background: #fff; padding: 18px 22px 24px; border-bottom: 1px solid var(--line);
  }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  .sidebar-toggle { display: none; }
  .app-sidebar, .portal-side {
    position: fixed; left: 0; top: 0; width: min(var(--sidebar-width), 84vw); height: 100vh;
    transform: translateX(-105%); box-shadow: none; z-index: 40;
  }
  .app-shell.sidebar-collapsed .app-sidebar, .app-shell.sidebar-collapsed .portal-side {
    width: min(var(--sidebar-width), 84vw);
  }
  .app-shell.nav-open .app-sidebar, .app-shell.nav-open .portal-side {
    transform: translateX(0); box-shadow: 12px 0 40px rgba(17,24,39,.12);
  }
  .app-shell.nav-open .brand-text, .app-shell.nav-open .nav-label, .app-shell.nav-open .nav-section-title {
    opacity: 1; max-width: 160px;
  }
  .sidebar-scrim {
    display: none; position: fixed; inset: 0; background: rgba(17,24,39,.35); z-index: 35;
  }
  .app-shell.nav-open .sidebar-scrim { display: block; }
  .fields { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .stat-row { grid-template-columns: 1fr; }
}
.progress, .progress-bar { height: 8px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.progress > i, .progress-bar > i { display: block; height: 100%; background: var(--brand); }
.lms-curriculum { display: grid; gap: 12px; }
.lms-module { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.lms-module header { padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; cursor: grab; }
.lms-lesson { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.learn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.learn-rail { position: sticky; top: 72px; }
@media (max-width: 980px) { .learn-layout { grid-template-columns: 1fr; } .learn-rail { position: static; } }
.passport, .passport-fallback {
  width: 48px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--brand-light);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--brand-dark); font-size: 12px;
}
.passport.lg, .passport-fallback.lg { width: 96px; height: 120px; font-size: 28px; }
.slip-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.slip-head h2 { margin: 4px 0; }
.bare-body {
  min-height: 100vh; margin: 0; display: grid; place-items: center;
  background: #f4f5f7; font-family: "DM Sans", sans-serif;
}
.bare-card {
  width: min(420px, calc(100% - 32px)); background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 28px 24px 32px; box-shadow: var(--shadow); text-align: center;
}
.bare-card .result-slip { width: 100%; }
.bare-card:has(.result-slip) { width: min(720px, calc(100% - 32px)); }
.bare-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.bare-card h1 { font-size: 22px; margin: 8px 0; font-family: "Plus Jakarta Sans", sans-serif; }
.bare-card p { color: var(--muted); font-size: 14px; }
.bare-card .field { text-align: left; margin-top: 14px; }
.btn.accent { background: #ea580c; color: #fff; }
.learn-hero { background:
  radial-gradient(circle at 88% 18%, rgba(14,165,164,.35), transparent 32%),
  radial-gradient(circle at 8% 82%, rgba(234,88,12,.16), transparent 28%),
  linear-gradient(180deg, #f3fbf6, #eef6f2);
}
.learn-hero-art { position: relative; min-height: 340px; }
.learn-blob {
  position: absolute; inset: 24px 12px 12px 40px; border-radius: 48% 52% 46% 54%;
  background: #99f6e4; opacity: .85;
}
.learn-photo {
  position: absolute; width: 42%; aspect-ratio: 3/4; border-radius: 999px; overflow: hidden;
  display: grid; place-items: center; color: #fff; text-align: center; box-shadow: var(--shadow);
}
.learn-photo span { font-size: 12px; opacity: .9; }
.learn-photo b { font-size: 28px; }
.learn-photo.p1 { left: 8%; top: 8%; background: linear-gradient(180deg,#0f766e,#007A45); }
.learn-photo.p2 { right: 6%; bottom: 10%; background: linear-gradient(180deg,#134e4a,#115e59); width: 36%; }
.learn-float {
  position: absolute; left: 38%; bottom: 18%; background: #fff; border-radius: 18px;
  padding: 12px 16px; box-shadow: var(--shadow); min-width: 140px;
}
.learn-float small { color: var(--muted); font-size: 11px; font-weight: 700; }
.learn-float strong { display: block; font-size: 26px; color: var(--brand-dark); }
.course-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.course-card-media { position: relative; height: 148px; background: linear-gradient(135deg,#007A45,#115e59); }
.course-card-media img { width: 100%; height: 148px; object-fit: cover; }
.course-chip {
  position: absolute; left: 12px; top: 12px; background: #fff; color: var(--brand-dark);
  border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 800;
}
.course-card-body { padding: 16px; }
.course-card-body h3 { margin: 6px 0 8px; font-size: 18px; }
.course-card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin: 10px 0; }
.course-card-meta b { color: #ea580c; }
.course-note { color: var(--muted); font-size: 12px; }
.category-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.category-pill {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 16px;
  text-decoration: none; font-weight: 700; font-size: 13px;
}
@media (max-width: 900px) {
  .learn-hero-art { min-height: 260px; }
}
