  :root {
    --navy: #0d0c0e;
    --navy-mid: #3a1c6350;
    --navy-light: #151f38;
    --navy-card: #23133a;
    --teal: #883CF0;
    --teal-dim: #00a08a;
    --teal-glow: #291a3e;
    --amber: #b33ff3;
    --amber-dim: #d97706;
    --amber-glow: rgba(245,158,11,0.12);
    --red: #ef4444;
    --red-glow: rgba(239,68,68,0.12);
    --green: #22c55e;
    --green-glow: rgba(34,197,94,0.1);
    --blue: #ad3ef2;
    --text-primary: #e8edf5;
    --text-secondary: #d2ddf4;
    --text-dim: #d6d6d6;
    --border: #3a1c63;
    --border-teal: #5e309d;
    --border-amber: #5e309d;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  .pam-clinical-lab-training {
    background: #191127;
    color: var(--text-primary);
    position: relative;
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    height:100vh;
    overflow-y: auto;
  }

  /* ─── SCANLINE OVERLAY ─── */
  .pam-clinical-lab-training::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
    pointer-events: none; z-index: 1;
  }

  /* ─── HEADER ─── */
  .site-header {
    background: linear-gradient(135deg, #180f26 0%, #3a1c63 50%, #23133a 100%);
    border-bottom: 1px solid var(--border-teal);
    padding: 0;
    position: sticky; top: 0; z-index: 1;
  }
  .header-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 32px;
  }
  .logo-block { display: flex; align-items: center; gap: 14px; }
  .logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--teal), #23133a);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 20px #be52e50f;
  }
  .logo-text { font-size: 13px; font-weight: 700;  text-transform: uppercase; color: var(--text-primary); }
  .logo-sub { font-size: 10px; color: var(--text-secondary);  text-transform: uppercase; }
  .header-badge {
    display: flex; align-items: center; gap: 8px;
    background: #291a3e; border: 1px solid var(--border-teal);
    border-radius: 20px; padding: 5px 14px;
     font-size: 11px; color: var(--teal);
    
  }
  .badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
  @keyframes pulse { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(0,212,180,0.4)} 50%{opacity:0.7;box-shadow:0 0 0 4px rgba(0,212,180,0)} }

  /* ─── HERO ─── */
  .hero {
    background: linear-gradient(135deg, #180f26 0%, #180f26 60%, #3a1c63 100%);
    padding: 64px 32px 56px;
    position: relative; overflow: hidden;
    border-bottom: 1px solid var(--border);
    z-index: 0;
  }
  .hero::before {
    content: '';
    position: absolute; top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(152, 0, 212, 0.06) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero::after {
    content: '';
    position: absolute; bottom: -80px; left: 10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(245,158,11,0.04) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero-inner { max-width: 1200px; margin: 0 auto; position: relative; }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
     font-size: 11px;
    color: var(--teal);  text-transform: uppercase;
    margin-bottom: 20px;
    background: var(--teal-glow); border: 1px solid var(--border-teal);
    padding: 5px 14px; border-radius: 4px;
  }
  .hero h1 {
    
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 400; line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
    max-width: 820px;
  }
  .hero h1 em { font-style: italic; color: var(--teal); }
  .hero-desc {
    font-size: 16px; color: var(--text-secondary);
    max-width: 640px; line-height: 1.7;
    margin-bottom: 36px;
  }
  .hero-meta {
    display: flex; flex-wrap: wrap; gap: 24px;
  }
  .meta-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-secondary);
    
  }
  .meta-item span { color: var(--teal); }

  /* ─── PROGRESS BAR ─── */
  .progress-bar-wrap {
    background: #23133a; border-bottom: 1px solid var(--border);
    padding: 14px 32px;
    position: sticky; top: 67px; z-index: 1;
  }
  .progress-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
  .progress-label {  font-size: 11px; color: var(--text-secondary); white-space: nowrap; }
  .progress-track { flex: 1; height: 4px; background: #282035; border-radius: 2px; overflow: hidden; }
  .progress-fill { height: 100%; background: linear-gradient(90deg, var(--teal), #684895); border-radius: 2px; transition: width 0.5s ease; width: 0%; }
  .progress-pct {  font-size: 11px; color: var(--teal); min-width: 36px; text-align: right; }

  /* ─── NAV TABS ─── */
  .nav-tabs-wrap {
    background: var(--navy-mid); border-bottom: 1px solid var(--border);
    overflow-x: auto; white-space: nowrap;
  }
  .nav-tabs { max-width: 1200px; margin: 0 auto; display: flex; padding: 0 32px; }
  .nav-tab {
    padding: 16px 20px; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); cursor: pointer; border: none;
    background: transparent; border-bottom: 2px solid transparent;
    transition: all 0.2s;  white-space: nowrap;

    display: flex; align-items: center; gap: 7px;
  }
  .nav-tab:hover { color: #fff; }
  .nav-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
  .tab-num {
     font-size: 10px;
    background: rgba(255,255,255,0.06); border-radius: 3px;
    padding: 1px 5px; color: var(--text-dim);
  }
  .nav-tab.active .tab-num { background: #291a3e; color: var(--teal); }

  /* ─── MAIN LAYOUT ─── */
  .main { max-width: 1200px; margin: 0 auto; padding: 48px 32px; }
  .section { display: none; }
  .section.active { display: block; animation: fadeIn 0.3s ease; }
  @keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

  /* ─── SECTION HEADERS ─── */
  .section-header { margin-bottom: 36px; }
  .section-tag {
     font-size: 10px; 
    text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
  }
  .section-tag::before { content:''; display:inline-block; width:20px; height:1px; background:var(--teal); }
  .section-title {
     font-size: clamp(26px, 3vw, 38px);
    font-weight: 400; line-height: 1.2; color: var(--text-primary); margin-bottom: 12px;
  }
  .section-title em { color: var(--teal); font-style: italic; }
  .section-desc { font-size: 15px; color: var(--text-secondary); max-width: 700px; line-height: 1.7; }

  /* ─── CARDS ─── */
  .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 32px; }
  .card {
    background: var(--navy-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: default;
  }
  .card:hover { border-color: var(--border-teal); box-shadow: 0 0 24px var(--teal-glow); }
  .card.warn { border-left: 3px solid var(--amber); }
  .card.warn:hover { border-color: var(--border-amber); box-shadow: 0 0 24px var(--amber-glow); }
  .card.danger { border-left: 3px solid var(--red); }
  .card-icon { font-size: 22px; margin-bottom: 14px; }
  .card-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; text-transform: uppercase;  }
  .card-body { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

  /* ─── SYSTEM TABLE ─── */
  .system-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
  .system-table th {
    text-align: left;  font-size: 10px;
     text-transform: uppercase; color: var(--text-dim);
    padding: 10px 14px; border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
  }
  .system-table td {
    padding: 13px 14px; border-bottom: 1px solid var(--border);
    font-size: 13.5px; vertical-align: top;
  }
  .system-table tr:hover td { background: rgba(255,255,255,0.02); }
  .sys-name { font-weight: 600; color: var(--text-primary); }
  .sys-abbr {  font-size: 11px; color: var(--teal); margin-left: 6px; }
  .risk-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; 
  }
  .risk-critical { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
  .risk-high { background: rgba(245,158,11,0.15); color: var(--amber); border: 1px solid rgba(245,158,11,0.3); }
  .risk-medium { background: #291a3e; color: var(--blue); border: 1px solid #3a1c63; }
  .risk-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

  /* ─── EXPANDABLE PANELS ─── */
  .expand-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
  .expand-item { background: var(--navy-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
  .expand-trigger {
    width: 100%; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; border: none; background: transparent; color: var(--text-primary);
     font-size: 14px; font-weight: 600; text-align: left;
    transition: background 0.2s;
  }
  .expand-trigger:hover { background: rgba(255, 255, 255, 0.02); }
  .expand-trigger.open { background: rgba(152, 0, 212, 0.04); }
  .expand-arrow {
    width: 20px; height: 20px; border-radius: 50%;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; flex-shrink: 0; transition: transform 0.25s, border-color 0.25s;
    color: var(--text-secondary);
  }
  .expand-trigger.open .expand-arrow { transform: rotate(180deg); border-color: var(--teal); color: var(--teal); }
  .expand-body { display: none; padding: 0 22px 22px; }
  .expand-body.open { display: block; animation: fadeIn 0.2s ease; }
  .expand-left { display: flex; align-items: center; gap: 14px; }
  .expand-icon { font-size: 18px; }
  .expand-sub { font-size: 11px; color: var(--text-secondary); font-weight: 400; margin-top: 1px; }

  /* ─── ALERT BOXES ─── */
  .alert {
    padding: 16px 20px; border-radius: 8px; margin-bottom: 20px;
    display: flex; gap: 14px; align-items: flex-start;
  }
  .alert-warn { background: var(--amber-glow); border: 1px solid var(--border-amber); }
  .alert-danger { background: #2a1647; border: 1px solid #5e309d; }
  .alert-info { background: var(--teal-glow); border: 1px solid var(--border-teal); }
  .alert-success { background: #1f1232; border: 1px solid #3a1c63; }
  .alert-icon { font-size: 18px; flex-shrink: 0; padding-top: 1px; }
  .alert-title { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
  .alert-warn .alert-title { color: var(--amber); }
  .alert-danger .alert-title { color: var(--red); }
  .alert-info .alert-title { color: var(--teal); }
  .alert-success .alert-title { color: var(--green); }
  .alert-text { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

  /* ─── CODE BLOCKS ─── */
  .code-block {
    background: #080d1a; border: 1px solid var(--border);
    border-radius: 8px; padding: 16px 20px; margin: 12px 0 20px;
     font-size: 12px;
    color: #a0b4d0; line-height: 1.7; overflow-x: auto;
  }
  .code-block .hl-teal { color: var(--teal); }
  .code-block .hl-amber { color: var(--amber); }
  .code-block .hl-purple { color: #a78bfa; }
  .code-block .hl-comment { color: #3a4a5e; font-style: italic; }

  /* ─── CHECKLIST ─── */
  .checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
  .checklist li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 14px; color: var(--text-secondary); line-height: 1.5;
    padding: 12px 16px; background: rgba(255,255,255,0.02);
    border: 1px solid var(--border); border-radius: 8px;
    cursor: pointer; transition: all 0.2s;
  }
  .checklist li:hover { border-color: var(--border-teal); background: var(--teal-glow); }
  .checklist li.checked { color: var(--text-primary); }
  .checklist li.checked .check-box { background: var(--teal); border-color: var(--teal); }
  .check-box {
    width: 18px; height: 18px; border: 1.5px solid var(--border);
    border-radius: 4px; flex-shrink: 0; margin-top: 1px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; transition: all 0.2s;
  }

  /* ─── PILLAR DIAGRAM ─── */
  .pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
  .pillar {
    background: var(--navy-card); border: 1px solid var(--border); border-radius: 12px;
    padding: 24px; text-align: center; transition: all 0.25s;
  }
  .pillar:hover { transform: translateY(-3px); border-color: var(--border-teal); box-shadow: 0 8px 32px rgba(0,212,180,0.08); }
  .pillar-icon { font-size: 32px; margin-bottom: 16px; }
  .pillar-title { font-size: 13px; font-weight: 700; color: var(--text-primary); text-transform: uppercase;  margin-bottom: 10px; }
  .pillar-text { font-size: 13px; color: var(--text-secondary); }

  /* ─── TIMELINE ─── */
  .timeline { position: relative; padding-left: 28px; margin-bottom: 28px; }
  .timeline::before { content:''; position:absolute; left:8px; top:8px; bottom:8px; width:1px; background: linear-gradient(180deg, var(--teal), transparent); }
  .tl-item { position: relative; margin-bottom: 24px; }
  .tl-dot {
    position: absolute; left: -24px; top: 4px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--teal); border: 2px solid var(--navy);
    box-shadow: 0 0 8px rgba(0,212,180,0.4);
  }
  .tl-label {  font-size: 10px; color: var(--teal); text-transform: uppercase;  margin-bottom: 4px; }
  .tl-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
  .tl-text { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

  /* ─── QUIZ ─── */
  .quiz-card {
    background: var(--navy-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 28px; margin-bottom: 20px;
  }
  .quiz-q { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 20px; line-height: 1.5; }
  .quiz-options { display: flex; flex-direction: column; gap: 10px; }
  .quiz-option {
    padding: 13px 18px; border: 1px solid var(--border); border-radius: 8px;
    cursor: pointer; font-size: 14px; color: var(--text-secondary);
    transition: all 0.2s; background: rgba(255,255,255,0.02);
    display: flex; align-items: center; gap: 12px;
  }
  .quiz-option:hover { border-color: var(--border-teal); background: var(--teal-glow); color: var(--text-primary); }
  .quiz-option.correct { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.4); color: var(--green); }
  .quiz-option.wrong { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: var(--red); }
  .quiz-option.disabled { cursor: default; pointer-events: none; }
  .opt-letter {
    width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor;
    display: flex; align-items: center; justify-content: center;
     font-size: 11px; flex-shrink: 0;
  }
  .quiz-feedback { margin-top: 16px; padding: 14px 18px; border-radius: 8px; font-size: 13.5px; display: none; }
  .quiz-score {
    background: var(--navy-card); border: 1px solid var(--border-teal);
    border-radius: 12px; padding: 32px; text-align: center; display: none;
    margin-top: 24px;
  }
  .score-num {  font-size: 64px; color: var(--teal); line-height: 1; }
  .score-label { font-size: 14px; color: var(--text-secondary); margin-top: 8px; }

  /* ─── COMPARISON TABLE ─── */
  .compare-wrap { overflow-x: auto; margin-bottom: 28px; }
  .compare-table { width: 100%; border-collapse: collapse; min-width: 600px; }
  .compare-table th:first-child { text-align: left; }
  .compare-table th {
    padding: 12px 16px;  font-size: 11px;
     text-transform: uppercase;
    border-bottom: 1px solid var(--border);
  }
  .compare-table th:not(:first-child) { text-align: center; }
  .compare-table th.col-delinea { color: var(--teal); background: rgba(127, 0, 212, 0.05); }
  .compare-table td {
    padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px;
  }
  .compare-table td:not(:first-child) { text-align: center; }
  .compare-table td.col-delinea { background: rgba(169, 102, 215, 0.04); }
  .compare-table tr:hover td { background: #3a1c6350; }
  .compare-table tr:hover td.col-delinea { background: rgba(113, 0, 212, 0.07); }
  .feat-name { font-weight: 500; color: var(--text-primary); }
  .feat-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
  .ck { color: var(--teal); font-size: 16px; }
  .cx { color: #bdcbdf; font-size: 16px; }
  .cp { color: var(--amber); font-size: 13px; }

  /* ─── TWO-COL ─── */
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
  .two-col-left { display: flex; flex-direction: column; gap: 12px; }

  /* ─── NAV BUTTONS ─── */
  .nav-buttons {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border);
  }
  .btn {
    padding: 11px 24px; border-radius: 8px; 
    font-size: 13px; font-weight: 700;  cursor: pointer;
    border: none; transition: all 0.2s; text-transform: uppercase;
  }
  .btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
  .btn-ghost:hover { border-color: var(--border-teal); color: var(--text-primary); }
  .btn-primary { background: linear-gradient(135deg, var(--teal), #684895); color: var(--navy); }
  .btn-primary:hover { box-shadow: 0 0 20px #883cf0e0; transform: translateY(-1px); }
  .btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }

  /* ─── STAT STRIP ─── */
  .stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 32px; }
  .stat-item { background: var(--navy-card); padding: 20px 22px; }
  .stat-num {  font-size: 36px; color: var(--teal); line-height: 1; margin-bottom: 4px; }
  .stat-label { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

  /* ─── SCROLLABLE LIST ─── */
  .scroll-list { max-height: 280px; overflow-y: auto; padding-right: 4px; }
  .scroll-list::-webkit-scrollbar { width: 4px; }
  .scroll-list::-webkit-scrollbar-track { background: transparent; }
  .scroll-list::-webkit-scrollbar-thumb { background: var(--border-teal); border-radius: 2px; }
  .list-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px;
  }
  .list-item:last-child { border-bottom: none; }
  .list-bullet { color: var(--teal); flex-shrink: 0; font-size: 8px; margin-top: 6px; }
  .list-text { color: var(--text-secondary); line-height: 1.5; }
  .list-text strong { color: var(--text-primary); font-weight: 600; }

  /* ─── FOOTER ─── */
  .footer {
    background: var(--navy-mid); border-top: 1px solid var(--border);
    padding: 24px 32px; margin-top: 48px;
  }
  .footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
  .footer-text {  font-size: 11px; color: var(--text-dim); }
  .footer-right { display: flex; gap: 16px; }
  .footer-tag {
     font-size: 10px; padding: 4px 10px;
    border: 1px solid var(--border); border-radius: 4px; color: var(--text-dim);
  }

  /* ─── UTILITY ─── */
  .divider { height: 1px; background: var(--border); margin: 32px 0; }
  .mt-4 { margin-top: 16px; }
  .mb-4 { margin-bottom: 16px; }
  .mt-6 { margin-top: 24px; }
  .mb-6 { margin-bottom: 24px; }
  .text-teal { color: var(--teal); }
  .text-amber { color: var(--amber); }
  .text-small { font-size: 13px; color: var(--text-secondary); }
  .fw-bold { font-weight: 700; }

  @media (max-width: 768px) {
    .header-inner, .hero, .main, .footer-inner { padding-left: 16px; padding-right: 16px; }
    .pillars, .two-col { grid-template-columns: 1fr; }
    .stat-strip { grid-template-columns: 1fr 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .progress-bar-wrap { position: unset; }
    .header-inner{
      flex-direction: column;
      gap: 10px;
    }
  }


  ::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #873cf015; }
::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }