:root {
  --navy: #071a2e;
  --navy-mid: #23133a;
  --navy-light: #873cf015;
  --teal: #883CF0;
  --teal-dim: #883CF0;
  --teal-glow: #23133a;
  --sky: #eaf8fd;
  --white: #f1f5f8;
  --off: #dbe9f3;
  --muted: #d6d6d6;
  --danger: #ef4444;
  --success: #22c55e;
  --warn: #f59e0b;
  --card-bg: #23133a;
  --border: #3a1c63;
  --radius: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

.strongdm-auth-training {
  
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── LAYOUT ── */
.shell { position: relative; display: flex; min-height: 100vh; }

/* ── SIDEBAR ── */
.strongdm-auth-training .sidebar {
  width: 280px; flex-shrink: 0;
  background: #180f26;
  border-right: 1px solid var(--border);
  position: sticky; top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  overflow-y: auto;
  height: 100vh;
  z-index: 1;
  backdrop-filter: blur(12px);
}
.sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo .brand {
  font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.brand-dot { width: 10px; height: 10px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 12px var(--teal); }
.sidebar-meta {
  font-size: 0.7rem; font-weight: 500; 
  color: var(--muted); text-transform: uppercase; margin-top: 4px;
}

.progress-wrap { padding: 16px 24px; border-bottom: 1px solid var(--border); }
.progress-label { font-size: 0.72rem; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; }
.progress-bar-track { height: 4px; background: #282035; border-radius: 99px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--sky)); border-radius: 99px; transition: width 0.5s ease; width: 0%; }

.strongdm-auth-training nav { flex: 1; padding: 16px 12px; }
.nav-section-label {
  font-size: 0.65rem;  text-transform: uppercase;
  color: var(--muted); padding: 8px 12px 4px; margin-top: 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  font-size: 0.82rem; color: var(--off);
  transition: all 0.2s; margin-bottom: 2px;
  border: 1px solid transparent;
  user-select: none;
}
.nav-item:hover { background: var(--teal-glow); color: var(--white); border-color: var(--border); }
.nav-item.active { background: var(--teal-glow); color: var(--teal); border-color: #3a1c63; font-weight: 600; }
.nav-item .nav-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy-light); font-size: 0.68rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; 
  border: 1px solid var(--border); transition: all 0.2s;
}
.nav-item.active .nav-num { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.nav-item.done .nav-num { background: var(--success); color: var(--navy); border-color: var(--success); }
.nav-item.done .nav-num::after { content: '✓'; }
.nav-item.done .num-text { display: none; }

/* ── MAIN ── */
.main {  flex: 1; height: 100vh; background-color:#191127;
    overflow-y: auto;}

.main .right-shadow{
  position: absolute;
  border-radius: 50%; filter: blur(120px);
  width: 600px; height: 600px; background: #be52e50f; top:-200px; right:-200px;
}

.main .left-shadow{
  position: absolute;
  border-radius: 50%; filter: blur(120px);
  width: 500px; height: 500px; background: #be52e50f; bottom:0px; left:-100px;
}

/* ── HERO ── */
.hero {
  padding: 72px 64px 60px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #23133a 0%, transparent 60%);
  position: relative; overflow: hidden;
}
.hero::after {
  content: 'SDM 201';
  position: absolute; right: 40px; top: 40px;
  font-size: 8rem; font-weight: 800;
  color: #873cf011; line-height: 1; pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-glow); border: 1px solid #3a1c63;
  border-radius: 99px; padding: 5px 14px;
  font-size: 0.72rem; font-weight: 600; 
  text-transform: uppercase; color: var(--teal); margin-bottom: 20px;
}
.hero-badge-dot { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
.hero h1 {
  
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--teal); }
.hero p {
  font-size: 1.05rem; color: var(--off); max-width: 640px; line-height: 1.7;
  font-weight: 300;
}
.hero-stats {
  display: flex; gap: 32px; margin-top: 36px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-val {  font-size: 1.8rem; font-weight: 500; color: var(--teal); }
.stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; }

/* ── CONTENT AREA ── */
.content { padding: 48px 64px 96px; max-width: 960px; }

/* ── SECTION CARDS ── */
.section-block {
  margin-bottom: 64px;
  opacity: 0; transform: translateY(24px);
  animation: fadeUp 0.5s ease forwards;
}
@keyframes fadeUp { to { opacity:1; transform:translateY(0); } }

.section-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
}
.section-num {
  
  font-size: 0.75rem; color: var(--teal);
  background: var(--teal-glow); border: 1px solid #3a1c63;
  padding: 4px 10px; border-radius: 6px; flex-shrink: 0;
}
.section-header h2 {
  
  font-size: 1.55rem; font-weight: 700; 
}
.divider { flex: 1; height: 1px; background: var(--border); }

/* ── INFO CARDS ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: #3a1c63; box-shadow: 0 0 30px #be52e50f; }

.card-title {
   font-size: 1rem; font-weight: 700;
  color: var(--teal); margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.card-icon { font-size: 1.1rem; }
.card p { font-size: 0.9rem; color: var(--off); line-height: 1.75; }

/* ── TWO-COL GRID ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 16px; }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: linear-gradient(135deg, #23133a, #23133aa1);
  border: 1px solid #3a1c63;
  border-left: 3px solid var(--teal);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px;
}
.highlight-box.warn { border-left-color: var(--warn); background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.2); }
.highlight-box.danger { border-left-color: var(--danger); background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.2); }
.highlight-box strong { font-size: 0.8rem; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 6px; }
.highlight-box.warn strong { color: var(--warn); }
.highlight-box.danger strong { color: var(--danger); }
.highlight-box p, .highlight-box li { font-size: 0.88rem; color: var(--off); line-height: 1.7; }
.highlight-box ul { padding-left: 18px; }
.highlight-box li { margin-bottom: 4px; }

/* ── FLOW DIAGRAM ── */
.flow-diagram {
  display: flex; align-items: center; gap: 0;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 32px;
  overflow-x: auto; margin-bottom: 20px;
}
.flow-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; flex-shrink: 0; cursor: pointer;
}
.flow-box {
  width: 120px; background: var(--navy-mid);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 10px; font-size: 0.78rem; font-weight: 600;
  color: var(--off); transition: all 0.2s; line-height: 1.4;
}
.flow-step:hover .flow-box, .flow-step.active-flow .flow-box {
  background: #291a3e; border-color: var(--teal); color: var(--teal);
}
.flow-arrow {
  width: 40px; text-align: center; color: var(--muted);
  font-size: 1.2rem; flex-shrink: 0;
}
.flow-detail {
  display: none; margin-top: 16px; padding: 16px 20px;
  background: var(--teal-glow); border: 1px solid #3a1c63;
  border-radius: 10px; font-size: 0.85rem; color: var(--off); line-height: 1.65;
}
.flow-detail.visible { display: block; }

/* ── ACCORDION ── */
.accordion {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 12px;
  transition: border-color 0.2s;
}
.accordion:hover { border-color: #5e309d; }
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; cursor: pointer; user-select: none;
  font-weight: 600; font-size: 0.92rem;
}
.accordion-header .chevron {
  transition: transform 0.3s; color: var(--muted); font-size: 0.9rem;
}
.accordion.open .chevron { transform: rotate(180deg); color: var(--teal); }
.accordion-body {
  display: none; padding: 0 24px 20px;
  font-size: 0.87rem; color: var(--off); line-height: 1.75;
}
.accordion.open .accordion-body { display: block; }
.accordion.open .accordion-header { color: var(--teal); }

/* ── TAG PILLS ── */
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  
  font-size: 0.72rem; padding: 4px 10px; border-radius: 6px;
  background: var(--navy-light); border: 1px solid var(--border); color: var(--off);
}
.tag.teal { background: #291a3e; border-color: #3a1c63; color: var(--teal); }
.tag.sky { background: #291a3e; border-color: #3a1c63; color: var(--sky); }

/* ── COMPARISON TABLE ── */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; margin-bottom: 16px; }
.compare-table th {
  background: var(--navy-mid); color: var(--teal);
   font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase;
  padding: 12px 16px; border: 1px solid var(--border); text-align: left;
}
.compare-table td {
  padding: 11px 16px; border: 1px solid var(--border);
  color: var(--off); vertical-align: top; line-height: 1.6;
  background: var(--card-bg);
}
.compare-table tr:hover td { background: #291a3e; }
.compare-table td:first-child { font-weight: 600; color: var(--white); }

/* ── QUIZ ── */
.quiz-block {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  margin-top: 24px;
}
.quiz-title {
   font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.quiz-q { font-size: 1rem; font-weight: 600; margin-bottom: 18px; line-height: 1.5; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: flex; align-items: center; gap: 12px;
  background: #1f1232; border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 16px; cursor: pointer;
  font-size: 0.88rem; color: var(--off); transition: all 0.2s;
  user-select: none;
}
.quiz-option:hover { border-color: #3a1c63; background: #2a1647; color: var(--white); }
.quiz-option.correct { border-color: var(--success); background: rgba(34,197,94,0.1); color: var(--success); }
.quiz-option.wrong { border-color: var(--danger); background: rgba(239,68,68,0.1); color: var(--danger); }
.quiz-option.disabled { cursor: default; pointer-events: none; }
.quiz-letter {
  width: 26px; height: 26px; border-radius: 6px; display: flex;
  align-items: center; justify-content: center; 
  font-size: 0.75rem; background: var(--navy-light); flex-shrink: 0;
  border: 1px solid var(--border);
}
.quiz-feedback {
  display: none; margin-top: 16px; padding: 14px 18px;
  border-radius: 10px; font-size: 0.87rem; line-height: 1.6;
}
.quiz-feedback.show { display: block; }
.quiz-feedback.ok { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--success); }
.quiz-feedback.bad { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }

/* ── MFA FLOW VISUAL ── */
.mfa-flow {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0; align-items: center;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; margin-bottom: 16px;
}
.mfa-node {
  text-align: center; padding: 14px; border-radius: 10px;
  background: var(--navy-light); border: 1px solid var(--border);
}
.mfa-node.trigger { background: #291a3e; border-color: #3a1c63; }
.mfa-node.outcome-good { background: #291a3e; border-color: #3a1c63; }
.mfa-node.outcome-bad { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); }
.mfa-node-icon { font-size: 1.5rem; margin-bottom: 6px; }
.mfa-node-label { font-size: 0.78rem; font-weight: 600; }
.mfa-arrow { text-align: center; color: var(--muted); font-size: 1.4rem; padding: 0 8px; }

/* ── CREDENTIAL VISUAL ── */
.cred-visual {
  display: grid; grid-template-columns: auto 1fr auto 1fr auto;
  gap: 8px; align-items: center;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 16px;
}
.cred-node {
  text-align: center; padding: 12px 16px;
  border-radius: 10px; font-size: 0.78rem; font-weight: 600;
  background: var(--navy-light); border: 1px solid var(--border); color: var(--off);
}
.cred-arrow { text-align: center; color: var(--muted); font-size: 1.1rem; }
.cred-node.highlight { background: var(--teal-glow); border-color: #3a1c63; color: var(--teal); }

/* ── IDP GRID ── */
.idp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.idp-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
  font-size: 0.82rem; font-weight: 500; color: var(--off);
  display: flex; align-items: center; gap: 10px;
  transition: all 0.2s; cursor: default;
}
.idp-card:hover { border-color: #5e309d; color: var(--white); }
.idp-icon { font-size: 1.2rem; }

/* ── PROGRESS COMPLETE ── */
.complete-banner {
  display: none; background: linear-gradient(135deg, #23133a, #23133a83);
  border: 1px solid #3a1c63; border-radius: var(--radius-lg);
  padding: 32px; text-align: center; margin: 32px 0;
}
.complete-banner.show { display: block; }
.complete-banner h3 {  font-size: 1.4rem; font-weight: 700; color: var(--success); margin-bottom: 8px; }
.complete-banner p { font-size: 0.9rem; color: var(--off); }

/* ── BTN ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--navy);
   font-weight: 700;
  font-size: 0.85rem; padding: 11px 22px; border-radius: 8px;
  border: none; cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.btn:hover { background: #883cf0e0; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; border: 1px solid var(--border); color: var(--off);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-glow); }

.mark-btn {
  font-size: 0.78rem; padding: 7px 14px; border-radius: 6px; margin-top: 20px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #873cf015; }
::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }
/* ::-webkit-scrollbar-thumb:hover { background: var(--teal-dim); } */

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .strongdm-auth-training .sidebar { display: none; }
  .main { margin-left: 0; }
  .content { padding: 32px 24px; }
  .hero { padding: 40px 24px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .flow-diagram { gap: 4px; }
  .idp-grid { grid-template-columns: 1fr 1fr; }
  .cred-visual, .mfa-flow { grid-template-columns: 1fr; text-align: center; }
  .cred-arrow, .mfa-arrow { transform: rotate(90deg); }
}

/* ── MOBILE SIDEBAR (OFF-CANVAS) ── */
.strongdm-auth-training .mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 1;
  height: 56px;
  padding: 0 16px;
  background: #180f26;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  align-items: center;
  gap: 12px;
}
.mobile-title {
  min-width: 0;
  
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.menu-btn:hover { border-color: #3a1c63; background: var(--teal-glow); }
.menu-btn:active { transform: translateY(1px); }
.menu-btn svg { width: 18px; height: 18px; }

.sidebar-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
body.sidebar-open .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .strongdm-auth-training .mobile-topbar {
    display: flex;
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
  }
  .shell { display: block; padding-top: 56px; }
  .strongdm-auth-training .sidebar {
    display: flex;
    position: absolute;
    top: 56px;
    bottom: 0;
    left: 0;
    height: auto;
    width: min(320px, 86vw);
    transform: translateX(-110%);
    transition: transform 0.22s ease;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    z-index: 1;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open { overflow: hidden; }
}

/* ── RESPONSIVE HELPERS ── */
img, video, canvas, svg { max-width: 100%; height: auto; }
table { max-width: 100%; }
@media (max-width: 720px) {
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
pre { max-width: 100%; overflow-x: auto; }

.obj-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.obj-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 18px; font-size: 0.88rem; color: var(--off); line-height: 1.5;
}
.obj-check {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 6px;
  background: #2b1f3d; border: 1px solid #5e309d;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
  font-size: 0.85rem; color: var(--teal);
}

.section-num-tag {
   font-size: 0.7rem;
  color: var(--muted); 
}