  :root {
    --bg: #23133a;
    --surface: #23133a;
    --surface2: #2b1f3d;
    --surface3: #1f1232;
    --border: #3a1c63;
    --border-bright: #5e309d;
    --amber: #883CF0;
    --amber-dim: #883CF0;
    --amber-glow: #873cf0d2;
    --cyan: #e8fbfd;
    --cyan-dim: #d3dadb;
    --cyan-glow: #1f1232;
    --red: #f87171;
    --red-glow: rgba(240, 185, 185, 0.12);
    --green: #4ade80;
    --green-glow: rgba(196, 238, 211, 0.1);
    --text: #883CF0;
    --text-dim: #d6d6d6;
    --text-muted: #d6d6d6;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  /* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #873cf015; }
::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }

  .ai-governance-training-guide {
    background: var(--bg);
    color: var(--text);
   
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
  }

  /* ── NOISE OVERLAY ── */
  .ai-governance-training-guide::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
  }

  /* ── LAYOUT ── */
  .shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
  }

  /* ── SIDEBAR ── */
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background:#180f26;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .sidebar-brand {
    padding: 24px 20px 16px;
    border-bottom: 1px solid var(--border);
  }

  .brand-eyebrow {
    font-size: 9px;
    color: var(--amber);
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .brand-eyebrow::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--amber);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
  }

  .brand-title {
    
    font-size: 18px;
    line-height: 1.3;
    color: var(--text);
    font-style: italic;
  }

  .progress-bar-wrap {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }

  .progress-label {
    display: flex;
    justify-content: space-between;
    
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 8px;
  }

  .progress-track {
    height: 3px;
    background: #282035;
    border-radius: 2px;
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--amber), var(--cyan));
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
  }

  .nav-section {
    padding: 14px 20px 8px;
  }

  .nav-section-label {
    
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
  }

  .nav-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 2px;
    border: 1px solid transparent;
    position: relative;
  }

  .nav-item:hover {
    background: #23133a9f;
    border-color: var(--border);
  }

  .nav-item.active {
    background: #23133a;
    border-color: var(--amber-dim);
  }

  .nav-item.active .nav-label {
    color: var(--amber);
  }

  .nav-item.completed .nav-num {
    background: #2b1f3d;
    color: #fff;
  }

  .nav-num {
    
    font-size: 10px;
    width: 20px;
    height: 20px;
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s;
    color: var(--text-muted);
  }

  .nav-label {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-dim);
    transition: color 0.15s;
  }

  .sidebar-footer {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    font-size: 10px;
    color: var(--text-muted);
  }

  /* ── MAIN CONTENT ── */
  .main {
    overflow-y: auto;
    padding: 48px 60px 80px;
    /* max-width: 860px; */
    height:100vh;
    background-color: #191127;
  }

  /* ── MODULE SECTIONS ── */
  .module {
    display: none;
    animation: fadeSlide 0.4s ease;
  }

  .module.active {
    display: block;
  }

  @keyframes fadeSlide {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── MODULE HEADER ── */
  .mod-eyebrow {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mod-eyebrow::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--amber-dim), transparent);
  }

  .mod-title {
    font-size: 42px;
    line-height: 1.15;
    font-weight: 400;
    margin-bottom: 16px;
  }

  .mod-title em {
    color: var(--amber);
  }

  .mod-intro {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-dim);
    max-width: 640px;
    margin-bottom: 40px;
    border-left: 2px solid var(--border-bright);
    padding-left: 18px;
  }

  /* ── LEARNING OBJECTIVES ── */
  .objectives-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
  }

  .objectives-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--amber), var(--cyan), transparent);
  }

  .objectives-title {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 14px;
  }

  .objectives-list {
    list-style: none;
    display: grid;
    gap: 8px;
  }

  .objectives-list li {
    font-size: 13.5px;
    color: var(--text-dim);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
  }

  .objectives-list li::before {
    content: '→';
    color: var(--amber);
    
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
  }

  /* ── SECTION HEADINGS ── */
  .section-h2 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--cyan);
    margin: 40px 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .section-h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan-dim), transparent);
    opacity: 0.4;
  }

  .section-h3 {
   
    font-size: 20px;
    font-weight: 500;
    color: var(--text);
    margin: 28px 0 12px;
    line-height: 1.3;
  }

  /* ── BODY TEXT ── */
  .body-text {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 16px;
  }

  .body-text strong {
    color: var(--text);
    font-weight: 600;
  }

  /* ── FRAMEWORK CARDS ── */
  .framework-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 24px 0;
  }

  .fw-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.2s;
    cursor: default;
    position: relative;
    overflow: hidden;
  }

  .fw-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .fw-card.govern { border-top: 2px solid #a78bfa; }
  .fw-card.map    { border-top: 2px solid var(--cyan); }
  .fw-card.measure{ border-top: 2px solid var(--amber); }
  .fw-card.manage { border-top: 2px solid var(--green); }

  .fw-tag {
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .fw-card.govern .fw-tag { color: #a78bfa; }
  .fw-card.map .fw-tag    { color: var(--cyan); }
  .fw-card.measure .fw-tag{ color: var(--amber); }
  .fw-card.manage .fw-tag { color: var(--green); }

  .fw-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
  }

  .fw-body {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-dim);
  }

  .fw-bullets {
    list-style: none;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .fw-bullets li {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    gap: 7px;
    line-height: 1.5;
  }

  .fw-bullets li::before {
    content: '·';
    flex-shrink: 0;
    color: var(--border-bright);
  }

  /* ── RISK ACCORDION ── */
  .accordion {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin: 24px 0;
  }

  .acc-item {
    border-bottom: 1px solid var(--border);
  }

  .acc-item:last-child {
    border-bottom: none;
  }

  .acc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    background: var(--surface);
    transition: background 0.15s;
    user-select: none;
  }

  .acc-header:hover {
    background: var(--surface2);
  }

  .acc-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
  }

  .acc-icon.red { background: var(--red-glow); }
  .acc-icon.amber { background: var(--amber-glow); }
  .acc-icon.cyan { background: var(--cyan-glow); }
  .acc-icon.purple { background: rgba(167,139,250,0.1); }

  .acc-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    flex: 1;
  }

  .acc-chevron {
    
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.2s;
  }

  .acc-item.open .acc-chevron {
    transform: rotate(180deg);
  }

  .acc-body {
    display: none;
    padding: 0 20px 18px 62px;
    background: var(--surface);
  }

  .acc-item.open .acc-body {
    display: block;
    animation: fadeSlide 0.25s ease;
  }

  .acc-body p {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--text-dim);
    margin-bottom: 10px;
  }

  .acc-body p:last-child { margin-bottom: 0; }

  /* ── CALLOUT BOXES ── */
  .callout {
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 13.5px;
    line-height: 1.7;
    display: flex;
    gap: 14px;
    align-items: flex-start;
  }

  .callout.warn {
    background: var(--amber-glow);
    border: 1px solid var(--amber-dim);
    color: #fcd34d;
  }

  .callout.info {
    background: var(--cyan-glow);
    border: 1px solid var(--border);
    color: var(--cyan);
  }

  .callout.danger {
    background: var(--red-glow);
    border: 1px solid #b45454;
    color: var(--red);
  }

  .callout.success {
    background: var(--green-glow);
    border: 1px solid #2d6a45;
    color: var(--green);
  }

  .callout-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .callout-text { flex: 1; }
  .callout-text strong { font-weight: 600; }

  /* ── CODE / MONO BLOCKS ── */
  .mono-block {
    background: #060809;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    
    font-size: 12px;
    line-height: 1.7;
    color: #94a3b8;
    margin: 16px 0;
    overflow-x: auto;
  }

  .mono-block .key { color: var(--cyan); }
  .mono-block .val { color: var(--amber); }
  .mono-block .comment { color: var(--text-muted); }
  .mono-block .highlight { color: var(--green); }

  /* ── COMPARISON TABLE ── */
  .compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
  }

  .compare-table th {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
  }

  .compare-table td {
    padding: 11px 14px;
    border: 1px solid var(--border);
    color: var(--text-dim);
    vertical-align: top;
    line-height: 1.6;
    background: var(--bg);
  }

  .compare-table tr:hover td {
    background: var(--surface);
  }

  .tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
  }

  .tag-pill.red { background: var(--red-glow); color: var(--red); border: 1px solid #7f3535; }
  .tag-pill.amber { background: #1f1232; color: var(--amber); border: 1px solid var(--amber-dim); }
  .tag-pill.green { background: var(--green-glow); color: var(--green); border: 1px solid #2d6a45; }
  .tag-pill.cyan { background: var(--cyan-glow); color: var(--cyan); border: 1px solid var(--border-bright); }

  /* ── DELINEA CONTROL CARDS ── */
  .control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
  }

  .ctrl-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    transition: all 0.2s;
  }

  .ctrl-card:hover {
    border-color: var(--cyan-dim);
    background: var(--surface2);
    box-shadow: 0 0 20px var(--cyan-glow);
  }

  .ctrl-num {
    
    font-size: 28px;
    font-weight: 300;
    color: var(--border-bright);
    line-height: 1;
    margin-bottom: 10px;
  }

  .ctrl-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
  }

  .ctrl-desc {
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--text-muted);
  }

  /* ── SCENARIO WALKTHROUGH ── */
  .scenario-steps {
    margin: 24px 0;
    position: relative;
  }

  .scenario-steps::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--amber-dim), var(--cyan-dim), transparent);
  }

  .step-item {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    position: relative;
  }

  .step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.2s;
  }

  .step-item:hover .step-dot {
    border-color: var(--amber);
    color: var(--amber);
    background: var(--amber-glow);
  }

  .step-content {
    padding-top: 4px;
    flex: 1;
  }

  .step-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
  }

  .step-body {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-dim);
  }

  /* ── KNOWLEDGE CHECK QUIZ ── */
  .quiz-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
  }

  .quiz-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--amber), transparent);
  }

  .quiz-heading {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .quiz-q {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }

  .quiz-q:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

  .quiz-question {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.5;
  }

  .quiz-options {
    display: grid;
    gap: 8px;
  }

  .quiz-opt {
    background: #1f1232;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 11px 16px;
    font-size: 13.5px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .quiz-opt:hover:not(.locked) {
    border-color: var(--border);
    background: #2a1647;
    color: var(--text);
  }

  .quiz-opt.correct {
    border-color: #2d6a45;
    background: #77b25520;
    color: var(--green);
  }

  .quiz-opt.wrong {
    border-color: #dc143c;
    background: #dc143c2b;
    color: var(--red);
  }

  .quiz-opt.locked { cursor: default; }

  .opt-letter {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: var(--surface3);
    border: 1px solid var(--border);
    
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
  }

  .quiz-feedback {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
    padding: 10px 14px;
    border-radius: 6px;
    display: none;
  }

  .quiz-feedback.show { display: block; }
  .quiz-feedback.ok { background: var(--green-glow); color: var(--green); border: 1px solid #2d6a45; }
  .quiz-feedback.bad { background: var(--red-glow); color: var(--red); border: 1px solid #7f3535; }

  /* ── NAV BUTTONS ── */
  .module-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    text-decoration: none;
  }

  .btn:hover {
    border-color: var(--border-bright);
    background: var(--surface2);
    color: var(--text);
  }

  .btn.primary {
    background: #883CF0;
    border-color: var(--border);
    color: #fff;
  }

  .btn.primary:hover {
    background: #883cf0e0;
    border-color: var(--border);
  }

  .btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }

  /* ── COMPLETION SCREEN ── */
  .completion-screen {
    text-align: center;
    padding: 60px 40px;
  }

  .cert-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--amber);
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: var(--amber-glow);
    box-shadow: 0 0 40px var(--amber-glow);
    animation: ring-glow 2s ease-in-out infinite;
  }

  @keyframes ring-glow {
    0%, 100% { box-shadow: 0 0 20px var(--amber-glow); }
    50% { box-shadow: 0 0 60px rgba(245,158,11,0.3); }
  }

  .cert-title {
    
    font-size: 36px;
    font-style: italic;
    margin-bottom: 12px;
  }

  .cert-sub {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 32px;
    line-height: 1.6;
  }

  .score-display {
    
    font-size: 48px;
    font-weight: 300;
    color: var(--amber);
    margin-bottom: 8px;
  }

  .score-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 32px;
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .main { padding: 28px 24px 60px; }
    .framework-grid { grid-template-columns: 1fr; }
    .control-grid { grid-template-columns: 1fr 1fr; }
  }

  /* ── DIVIDER ── */
  .divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 32px 0;
  }

  /* ── INLINE TAG ── */
  .inline-tag {
    
    font-size: 11px;
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    color: var(--text-dim);
  }

  /* ── PAM DIAGRAM ── */
  .pam-diagram {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    margin: 24px 0;
    
    font-size: 12px;
    line-height: 2;
    color: var(--text-muted);
    overflow-x: auto;
  }

  .pam-diagram .layer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 7px;
    margin-bottom: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.2s;
  }

  .pam-diagram .layer:hover {
    border-color: var(--cyan-dim);
    background: var(--surface2);
  }

  .pam-diagram .layer-icon { font-size: 16px; }
  .pam-diagram .layer-label { color: var(--text); font-size: 13px; flex: 1; }
  .pam-diagram .layer-tag { font-size: 10px; }

  .arrow-down {
    text-align: center;
    color: var(--border-bright);
    font-size: 16px;
    margin: 2px 0;
  }