  :root {
    --navy-card: #23133a;
    --navy-border: #3a1c63;
    --teal: #883CF0;
    --teal-dim: #883CF0;
    --teal-glow: #883cf0e0;
    --amber: #ad3ef2;
    --amber-dim: #ad3ef2b8;
    --red: #ad3ef2;
    --green: #ad3ef2;
    --text: #e8edf5;
    --text-muted: #d6d6d6;
    --text-mid: #e8f0ff;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  .hipaa-delinea-training-guide {
    background: #191127;
    color: var(--text);
    position: relative;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
    height:100vh;
    overflow-y: auto;
  }

  /* ─── GRID BACKGROUND ─── */
  .hipaa-delinea-training-guide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(#e343be08 1px, transparent 1px),
      linear-gradient(90deg, #e343be08 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
  }

  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; position: relative; }

  /* ─── TOP BAR ─── */
  .topbar {
    border-bottom: 1px solid var(--navy-border);
    background: #180f26;
    backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 1;
    padding: 0 28px;
  }
  .topbar-inner {
    max-width: 1120px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 56px;
  }
  .topbar-logo {
    display: flex; align-items: center; gap: 10px;
     font-size: 12px; color: var(--teal); 
  }
  .topbar-logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
  .progress-bar-wrap { display: flex; align-items: center; gap: 12px; }
  .progress-label {  font-size: 11px; color: var(--text-muted); }
  .progress-track { width: 160px; height: 4px; background: #282035; border-radius: 2px; overflow: hidden; }
  .progress-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--amber)); border-radius: 2px; width: 0%; transition: width 0.6s ease; }
  .progress-pct {  font-size: 11px; color: var(--teal); min-width: 30px; }

  /* ─── HERO ─── */
  .hero {
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--navy-border);
    position: relative; overflow: hidden;
  }
  .hero::after {
    content: '';
    position: absolute; bottom: -60px; right: -60px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, #6848952d 0%, transparent 70%);
    pointer-events: none;
  }
  .hero-label {
    display: inline-flex; align-items: center; gap: 8px;
     font-size: 11px; 
    color: var(--teal); text-transform: uppercase;
    border: 1px solid #3a1c63; border-radius: 3px;
    padding: 4px 12px; margin-bottom: 24px;
  }
  .hero h1 {
     font-size: clamp(32px, 5vw, 54px);
    font-weight: 400; line-height: 1.15; margin-bottom: 20px;
    
  }
  .hero h1 em { color: var(--teal); font-style: italic; }
  .hero-sub {
    font-size: 16px; color: var(--text-mid); max-width: 660px;
    line-height: 1.8; margin-bottom: 36px;
  }
  .hero-meta {
    display: flex; gap: 32px; flex-wrap: wrap;
  }
  .meta-item { display: flex; flex-direction: column; gap: 4px; }
  .meta-key {  font-size: 10px; color: var(--text-muted); text-transform: uppercase;  }
  .meta-val { font-size: 13px; font-weight: 600; color: var(--text); }

  /* ─── CONTEXT BANNER ─── */
  .context-banner {
    margin: 36px 0;
    background: linear-gradient(135deg, #3a1c63, #684895);
    border: 1px solid var(--navy-border);
    border-left: 3px solid var(--teal);
    border-radius: 8px;
    padding: 20px 24px;
  }
  .context-banner h3 {
     font-size: 11px; color: var(--teal); 
    text-transform: uppercase; margin-bottom: 8px;
  }
  .context-banner p { font-size: 14px; color: var(--text-mid); line-height: 1.7; }
  .context-banner strong { color: var(--text); }

  /* ─── NAV TABS ─── */
  .nav-tabs {
    display: flex; gap: 4px; padding: 28px 0 0;
    border-bottom: 1px solid var(--navy-border);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .nav-tab {
    flex-shrink: 0; padding: 10px 20px;
     font-size: 12px; 
    color: var(--text-muted); background: none; border: none; cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.2s;
    display: flex; align-items: center; gap: 8px;
  }
  .nav-tab:hover { color: var(--text); }
  .nav-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
  .tab-num { width: 20px; height: 20px; border-radius: 50%; background: var(--navy-border); font-size: 10px; display: flex; align-items: center; justify-content: center; }
  .nav-tab.active .tab-num { background: var(--teal); color: #fff; }
  .nav-tab.completed .tab-num { background: var(--green); color: var(--navy); }

  /* ─── SECTION PANELS ─── */
  .panel { display: none; padding: 40px 0; }
  .panel.active { display: block; animation: fadeIn 0.35s ease; }
  @keyframes fadeIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: none; } }

  /* ─── MODULE CARDS ─── */
  .module-header {
    display: flex; align-items: flex-start; gap: 20px; margin-bottom: 32px;
  }
  .module-icon {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; position: relative;
  }
  .module-icon.admin { background: linear-gradient(135deg, #23133a, #1f1232); border: 1px solid #5e309d; }
  .module-icon.tech  { background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(245,158,11,0.05)); border: 1px solid rgba(245,158,11,0.25); }
  .module-icon.audit { background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(168,85,247,0.05)); border: 1px solid rgba(168,85,247,0.25); }
  .module-icon.access{ background: linear-gradient(135deg, #23133a, #1f1232); border: 1px solid #5e309d; }
  .module-title-block h2 {  font-size: 28px; font-weight: 400; line-height: 1.2; margin-bottom: 6px; }
  .module-rule {
     font-size: 11px; color: var(--teal);
     text-transform: uppercase;
  }

  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
  @media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

  .info-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: 10px; padding: 22px;
  }
  .info-card h4 {
     font-size: 11px; color: var(--text-muted);
    text-transform: uppercase;  margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
  }
  .info-card h4 .chip {
    padding: 2px 8px; border-radius: 3px; font-size: 10px;
    background: #1f1232; color: var(--teal);
  }
  .info-card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; }
  .info-card ul { list-style: none; margin-top: 8px; }
  .info-card ul li {
    font-size: 14px; color: var(--text-mid); padding: 5px 0;
    border-bottom: 1px solid var(--navy-border); display: flex; align-items: flex-start; gap: 10px;
  }
  .info-card ul li:last-child { border-bottom: none; }
  .info-card ul li::before { content: '→'; color: var(--teal);  flex-shrink: 0; margin-top: 1px; }

  .control-map {
    background: var(--navy-card); border: 1px solid var(--navy-border);
    border-radius: 10px; overflow: hidden; margin-bottom: 24px;
  }
  .control-map-head {
    background: #883cf050; border-bottom: 1px solid var(--navy-border);
    padding: 14px 22px; display: flex; align-items: center; justify-content: space-between;
  }
  .control-map-head span {  font-size: 12px; color: var(--teal);  }
  .control-map-head .badge {
     font-size: 10px; padding: 3px 10px;
    background: #1f1232; color: var(--teal); border-radius: 3px;
  }
  .control-row {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding: 16px 22px; border-bottom: 1px solid var(--navy-border); gap: 16px;
  }
  .control-row:last-child { border-bottom: none; }
  .ctrl-hipaa { font-size: 13px; color: var(--text); }
  .ctrl-hipaa span {  font-size: 11px; color: var(--text-muted); display: block; margin-bottom: 2px; }
  .ctrl-arrow { color: var(--teal);  font-size: 18px; text-align: center; }
  .ctrl-delinea { font-size: 13px; color: var(--text); text-align: right; }
  .ctrl-delinea span {  font-size: 11px; color: var(--amber); display: block; margin-bottom: 2px; }

  .callout {
    padding: 16px 20px; border-radius: 8px; margin-bottom: 20px;
    display: flex; gap: 14px; align-items: flex-start;
    font-size: 14px; line-height: 1.7;
  }
  .callout.info { background: #23133a; border: 1px solid #3a1c63; color: var(--text-mid); }
  .callout.warn { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); color: var(--text-mid); }
  .callout.success { background: #1f1232; border: 1px solid #5e309d; color: var(--text-mid); }
  .callout .icon { font-size: 18px; flex-shrink: 0; }

  /* ─── QUIZ ─── */
  .quiz-box {
    background: var(--navy-card); border: 1px solid var(--navy-border);
    border-radius: 10px; padding: 24px; margin-top: 24px;
  }
  .quiz-box h4 {  font-size: 11px; color: var(--amber); text-transform: uppercase;  margin-bottom: 16px; }
  .quiz-q { font-size: 15px; margin-bottom: 16px; color: var(--text); font-weight: 500; }
  .quiz-options { display: flex; flex-direction: column; gap: 8px; }
  .quiz-opt {
    padding: 12px 16px; border: 1px solid var(--navy-border); border-radius: 7px;
    cursor: pointer; font-size: 14px; color: var(--text-mid); background: var(--navy);
    transition: all 0.2s; text-align: left; display: flex; align-items: center; gap: 12px;
  }
  .quiz-opt:hover { border-color: var(--teal); color: var(--text); }
  .quiz-opt .opt-label {  font-size: 11px; width: 20px; flex-shrink: 0; color: var(--text-muted); }
  .quiz-opt.correct { border-color: #77b255;
    background: #77b25520;
    color: #60c090; }
  .quiz-opt.wrong   { border-color: #dc143c;
    background: #dc143c2b;
    color:#ff7a90; }
  .quiz-feedback { margin-top: 14px; font-size: 14px; padding: 12px 16px; border-radius: 7px; display: none; }
  .quiz-feedback.show { display: block; }
  .quiz-feedback.ok { background: #77b25520;
    border: 1px solid #77b255;
    color: #60c090; }
  .quiz-feedback.bad { background: #dc143c2b;
    border: 1px solid #dc143c;
    color: #ff7a90; }

  /* ─── MODULE COMPLETE BTN ─── */
  .module-complete-btn {
    margin-top: 28px; padding: 14px 28px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dim));
    color: var(--navy); border: none; border-radius: 8px;
     font-size: 13px; font-weight: 600;
     cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 10px;
  }
  .module-complete-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px #be52e50f; }
  .module-complete-btn:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }
  .module-complete-btn.done { background: linear-gradient(135deg, var(--green), #684895); }

  /* ─── CHECKLIST PANEL ─── */
  .checklist-intro { margin-bottom: 32px; }
  .checklist-intro h2 {  font-size: 32px; font-weight: 400; margin-bottom: 10px; }
  .checklist-intro p { color: var(--text-mid); font-size: 15px; max-width: 640px; }

  .checklist-section { margin-bottom: 28px; }
  .checklist-section-title {
     font-size: 11px; color: var(--teal); 
    text-transform: uppercase; margin-bottom: 12px;
    display: flex; align-items: center; gap: 10px;
  }
  .checklist-section-title::after { content: ''; flex: 1; height: 1px; background: var(--navy-border); }

  .checklist-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 16px; margin-bottom: 6px;
    background: var(--navy-card); border: 1px solid var(--navy-border);
    border-radius: 8px; cursor: pointer; transition: all 0.2s;
  }
  .checklist-item:hover { border-color: #1f1232; }
  .checklist-item.checked { border-color: #5e309d; background: #1f1232; }
  .check-box {
    width: 20px; height: 20px; border-radius: 4px; border: 2px solid var(--navy-border);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    margin-top: 2px; transition: all 0.2s; font-size: 12px;
  }
  .checklist-item.checked .check-box { background: var(--green); border-color: var(--green); }
  .check-content { flex: 1; }
  .check-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 3px; }
  .check-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
  .check-tag {
    flex-shrink: 0; padding: 3px 10px; border-radius: 3px; 
    font-size: 10px;  margin-top: 2px;
    align-self: flex-start;
  }
  .tag-admin { background: #282035; color: var(--teal); }
  .tag-tech  { background: rgba(245,158,11,0.12); color: var(--amber); }
  .tag-audit { background: rgba(168,85,247,0.12); color: #c084fc; }
  .tag-access{ background: #7643c9; color: #cfdded; }

  .checklist-summary {
    background: var(--navy-card); border: 1px solid var(--navy-border);
    border-radius: 10px; padding: 24px; margin-top: 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  }
  .summary-stat { text-align: center; }
  .summary-num {  font-size: 36px; color: var(--teal); line-height: 1; }
  .summary-lbl {  font-size: 11px; color: var(--text-muted); text-transform: uppercase;  margin-top: 4px; }
  .export-btn {
    padding: 12px 22px; background: transparent;
    border: 1px solid var(--teal); color: var(--teal);
    border-radius: 7px;  font-size: 12px;
     cursor: pointer; transition: all 0.2s;
  }
  .export-btn:hover { background: var(--teal-glow); color:#fff; }

  /* ─── OVERVIEW PANEL ─── */
  .overview-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 32px; }
  @media (max-width: 600px) { .overview-grid { grid-template-columns: 1fr; } }
  .ov-card {
    background: var(--navy-card); border: 1px solid var(--navy-border);
    border-radius: 10px; padding: 22px; cursor: pointer;
    transition: all 0.25s; position: relative; overflow: hidden;
  }
  .ov-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
  .ov-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  }
  .ov-card.c1::before { background: linear-gradient(90deg, var(--teal), transparent); }
  .ov-card.c2::before { background: linear-gradient(90deg, var(--amber), transparent); }
  .ov-card.c3::before { background: linear-gradient(90deg, #c084fc, transparent); }
  .ov-card.c4::before { background: linear-gradient(90deg, #e03ef2b8, transparent); }
  .ov-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .ov-card-icon { font-size: 22px; }
  .ov-card-num {  font-size: 11px; color: var(--text-muted); }
  .ov-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
  .ov-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
  .ov-card-footer { margin-top: 14px;  font-size: 11px; color: var(--teal); display: flex; align-items: center; gap: 6px; }

  .stat-row { display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
  .stat-box {
    flex: 1; min-width: 140px; background: var(--navy-card); border: 1px solid var(--navy-border);
    border-radius: 10px; padding: 18px 20px;
  }
  .stat-box .s-num {  font-size: 32px; color: var(--teal); line-height: 1; }
  .stat-box .s-lbl {  font-size: 11px; color: var(--text-muted); text-transform: uppercase;  margin-top: 6px; }
  .stat-box .s-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

  .timeline { position: relative; padding-left: 28px; }
  .timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 1px; background: var(--navy-border); }
  .tl-item { position: relative; margin-bottom: 24px; }
  .tl-dot { position: absolute; left: -24px; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--teal); background: var(--navy); }
  .tl-dot.filled { background: var(--teal); }
  .tl-year {  font-size: 11px; color: var(--amber); margin-bottom: 4px; }
  .tl-text { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
  .tl-text strong { color: var(--text); }

  .hipaa-delinea-training-guide footer {
    border-top: 1px solid var(--navy-border); padding: 28px 0;
    margin-top: 60px; text-align: center;
     font-size: 11px; color: var(--text-muted); 
  }


    ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: #873cf015; }


  @media (max-width: 767px){
      .topbar-inner{
          flex-direction: column;
          height: auto;
          padding: 10px;
          gap: 10px;
      }
  }