@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary-navy: #0e3852;
  --primary-navy-dark: #072335;
  --primary-navy-light: #164e72;
  --accent-blue: #0284c7;
  --accent-cyan: #06b6d4;
  --bg-white: #ffffff;
  --bg-canvas: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --border-card: #cbd5e1;
  
  /* Risk Palette */
  --risk-low: #10b981;
  --risk-low-bg: #ecfdf5;
  --risk-med: #f59e0b;
  --risk-med-bg: #fffbeb;
  --risk-high: #f97316;
  --risk-high-bg: #fff7ed;
  --risk-crit: #ef4444;
  --risk-crit-bg: #fef2f2;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(14, 56, 82, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(14, 56, 82, 0.1), 0 8px 10px -6px rgba(14, 56, 82, 0.05);
  --shadow-lg: 0 20px 35px -10px rgba(14, 56, 82, 0.15);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans Georgian', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* ========================================================
   TOP NAVIGATION & TOOLBAR
   ======================================================== */
.presentation-header {
  height: 60px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-dots {
  display: flex;
  gap: 4px;
}

.brand-logo-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-navy);
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: -0.2px;
}

.brand-badge {
  font-size: 11px;
  font-weight: 600;
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-tool {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-tool:hover {
  background: #e2e8f0;
  color: var(--primary-navy);
  border-color: #cbd5e1;
}

.btn-tool.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

.slide-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-navy);
  padding: 6px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  min-width: 80px;
  text-align: center;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-navy), var(--accent-blue));
  transition: width 0.3s ease;
}

/* ========================================================
   PRESENTATION VIEWPORT & SLIDES
   ======================================================== */
.viewport-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.slides-wrapper {
  width: 100%;
  max-width: 1440px;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 120px);
  position: relative;
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

/* Standard Slide Styling */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  padding: 34px 55px 24px 55px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  overflow: hidden;
  user-select: text;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 10;
}

.slide.prev {
  transform: translateX(-40px);
}

/* ========================================================
   SIGNATURE PDF MOTIFS (5 Dots, Accent Lines)
   ======================================================== */
.pdf-dots-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pdf-dots-row span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-navy);
  display: inline-block;
  flex-shrink: 0;
}

/* Standard Slide: Top-Right Dots & Bottom-Left Dots */
.slide-top-right-dots {
  position: absolute;
  top: 48px;
  right: 65px;
  z-index: 2;
}

.slide-bottom-left-dots {
  position: absolute;
  bottom: 40px;
  left: 65px;
  z-index: 2;
}

/* Title Slide Specific Signature Header & Footer */
.title-top-motif {
  position: absolute;
  top: 45px;
  left: 65px;
  right: 65px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.title-top-motif .line {
  flex: 1;
  height: 4px;
  background-color: var(--primary-navy);
  border-radius: 2px;
}

.title-bottom-motif {
  position: absolute;
  bottom: 45px;
  left: 65px;
  right: 65px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.title-bottom-motif .line {
  flex: 1;
  height: 4px;
  background-color: var(--primary-navy);
  border-radius: 2px;
}

/* Slide Typography */
.slide-title {
  font-size: 32px;
  font-weight: 800;
  color: #000000;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 80%;
}

.slide-title .en-term {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-navy);
}

.slide-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  margin-top: 4px;
  margin-bottom: 16px;
  overflow: visible;
}

.slide-lead-text {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 400;
}

.slide-lead-text strong {
  color: #000000;
  font-weight: 700;
}

/* Subheadings */
.sub-heading {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 14px;
}

/* Bullet Lists matching PDF */
.styled-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.styled-list li {
  position: relative;
  padding-left: 28px;
  font-size: 18px;
  line-height: 1.5;
  color: #111827;
  font-weight: 500;
}

.styled-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  top: -2px;
  font-size: 26px;
  color: #000000;
}

.styled-list li strong {
  color: #000000;
  font-weight: 700;
}

/* 2-Column Layout */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  height: 100%;
}

.grid-2col-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.grid-2col-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

.visual-card {
  width: 100%;
  height: 100%;
  max-height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  background: #f8fafc;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.visual-card:hover img {
  transform: scale(1.03);
}

.visual-overlay-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(14, 56, 82, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* ========================================================
   SLIDE 1: TITLE SLIDE (Exact PDF Match)
   ======================================================== */
.slide-title-layout {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.title-main-box {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(28px, 2.7vw, 42px);
  font-weight: 900;
  color: #000000;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 26px;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 30px;
}

.hero-author {
  font-size: 20px;
  font-weight: 600;
  color: #334155;
  margin-top: 15px;
}

.hero-tag {
  display: inline-block;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 20px;
}

/* ========================================================
   SLIDE 2: AGENDA (Exact PDF Motif Layout)
   ======================================================== */
.agenda-layout {
  padding-top: 45px;
}

.agenda-center-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
}

.agenda-dots-motif {
  display: flex;
  gap: 14px;
  margin: 10px 0;
}

.agenda-dots-motif span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--primary-navy);
}

.agenda-divider-line {
  width: 550px;
  max-width: 85%;
  height: 3px;
  background-color: var(--primary-navy);
  margin: 12px 0 20px 0;
  border-radius: 2px;
}

.agenda-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-align: left;
  width: fit-content;
}

.agenda-list li {
  position: relative;
  padding-left: 24px;
  font-size: 19px;
  font-weight: 700;
  color: #000000;
}

.agenda-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: -2px;
  font-size: 24px;
  color: #000000;
}

/* ========================================================
   INTERACTIVE CARDS & DIAGRAMS (CIA, FORMULA, ETC)
   ======================================================== */
.concept-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.pillar-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-navy);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.pillar-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.pillar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.pillar-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Formula Banner */
.formula-banner {
  background: linear-gradient(135deg, #0e3852 0%, #164e72 100%);
  color: #ffffff;
  padding: 20px 28px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.formula-math {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #7dd3fc;
  letter-spacing: 0.5px;
}

.formula-label {
  font-size: 14px;
  color: #e2e8f0;
  max-width: 450px;
  line-height: 1.4;
}

/* CIA Triad Triangle Diagram (SVG/CSS) */
.cia-diagram-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.cia-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

/* ========================================================
   SLIDE 6: 5x5 INTERACTIVE RISK MATRIX / HEATMAP
   ======================================================== */
.matrix-container {
  display: grid;
  grid-template-columns: auto minmax(340px, 420px) 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 4px;
}

.matrix-y-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 700;
  font-size: 13px;
  color: var(--primary-navy);
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
  height: fit-content;
  align-self: center;
}

.matrix-grid-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.matrix-cell {
  height: 46px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid transparent;
  color: #ffffff;
  position: relative;
}

.matrix-cell:hover {
  transform: scale(1.06);
  z-index: 5;
  box-shadow: var(--shadow-md);
}

.matrix-cell.selected {
  border-color: #0f172a;
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.3);
  z-index: 6;
}

/* Matrix Risk Level Classes */
.cell-low {
  background-color: #22c55e;
}
.cell-med {
  background-color: #eab308;
}
.cell-high {
  background-color: #f97316;
}
.cell-crit {
  background-color: #ef4444;
}

.matrix-x-axis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 5px;
}

.matrix-x-label {
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--primary-navy);
  margin-top: 4px;
}

.matrix-inspector {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  min-height: 260px;
  max-height: 310px;
  justify-content: space-between;
}

.inspector-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.inspector-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.inspector-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-navy);
}

.inspector-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.inspector-action {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #1e293b;
}

/* ========================================================
   CVSS & CVE VULNERABILITY SCORING STYLES
   ======================================================== */
.cvss-meter-bar {
  display: flex;
  width: 100%;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.cvss-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  transition: flex 0.3s ease;
}

.cvss-seg.none { background: #94a3b8; flex: 1; }
.cvss-seg.low { background: #10b981; flex: 3.9; }
.cvss-seg.med { background: #f59e0b; flex: 3; }
.cvss-seg.high { background: #f97316; flex: 2; }
.cvss-seg.crit { background: #ef4444; flex: 1.1; }

.cvss-levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.cvss-card {
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease;
}

.cvss-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cvss-card.low { background: #ecfdf5; border-color: #a7f3d0; }
.cvss-card.med { background: #fffbeb; border-color: #fde68a; }
.cvss-card.high { background: #fff7ed; border-color: #fed7aa; }
.cvss-card.crit { background: #fef2f2; border-color: #fecaca; }

.cvss-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
}

.cvss-card.low .cvss-badge { background: #10b981; color: #fff; }
.cvss-card.med .cvss-badge { background: #f59e0b; color: #fff; }
.cvss-card.high .cvss-badge { background: #f97316; color: #fff; }
.cvss-card.crit .cvss-badge { background: #ef4444; color: #fff; }

.cvss-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.cvss-desc {
  font-size: 11.5px;
  line-height: 1.35;
  color: #475569;
}

.cve-example-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.cve-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  background: #0e3852;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ========================================================
   SLIDE 8: 4 RISK STRATEGIES
   ======================================================== */
.strategies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.strategy-card {
  border: 1px solid var(--border-light);
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
}

.strategy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  border-color: var(--primary-navy);
}

.strategy-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.strategy-badge.mitigate { background: #e0f2fe; color: #0284c7; }
.strategy-badge.transfer { background: #fef3c7; color: #d97706; }
.strategy-badge.avoid { background: #fee2e2; color: #dc2626; }
.strategy-badge.accept { background: #f3f4f6; color: #4b5563; }

.strategy-name {
  font-size: 19px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 8px;
}

.strategy-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
}

.strategy-example {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.strategy-example strong {
  color: #0f172a;
}

/* ========================================================
   SLIDE 9: FRAMEWORKS & STANDARDS (Interactive Tabs/Cards)
   ======================================================== */
.frameworks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.fw-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  border-top: 4px solid var(--primary-navy);
}

.fw-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue);
  border-top: 4px solid var(--accent-blue);
}

.fw-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.fw-name {
  font-size: 20px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 8px;
}

.fw-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 14px;
  flex: 1;
}

.fw-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fw-pill {
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ========================================================
   SLIDE 10: REGULATIONS
   ======================================================== */
.reg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.reg-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-fast);
}

.reg-card:hover {
  background: #ffffff;
  border-color: var(--primary-navy);
  box-shadow: var(--shadow-sm);
}

.reg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.reg-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-navy);
}

.reg-scope {
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
  padding: 2px 8px;
  border-radius: 4px;
}

.reg-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.reg-penalty {
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
  background: #fef2f2;
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid #dc2626;
}

/* ========================================================
   SLIDE 12: CASE STUDY
   ======================================================== */
.case-study-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

.case-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.case-banner h4 {
  font-size: 16px;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 4px;
}

.case-banner p {
  font-size: 14px;
  color: #7f1d1d;
  line-height: 1.45;
}

.case-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.case-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.case-step-text {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.case-step-text strong {
  color: #000000;
}

/* ========================================================
   SLIDE 13: INTERACTIVE QUIZ
   ======================================================== */
.quiz-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 950px;
}

.quiz-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.quiz-progress-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.quiz-score-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 6px;
  color: var(--primary-navy);
}

.quiz-question-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.quiz-question-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 18px;
  line-height: 1.4;
}

.quiz-options-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quiz-opt-btn {
  background: #f8fafc;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 14px 18px;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-opt-btn:hover:not(:disabled) {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.quiz-opt-btn.correct {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
  font-weight: 700;
}

.quiz-opt-btn.incorrect {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

.quiz-feedback-box {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.5;
  display: none;
  animation: fadeIn 0.3s ease;
}

.quiz-feedback-box.correct {
  display: block;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.quiz-feedback-box.incorrect {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.quiz-nav-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

/* ========================================================
   BOTTOM CONTROLS BAR
   ======================================================== */
.presentation-footer {
  height: 60px;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.nav-buttons-group {
  display: flex;
  gap: 10px;
}

.btn-nav {
  background: var(--primary-navy);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-nav:hover:not(:disabled) {
  background: var(--primary-navy-light);
}

.btn-nav:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}

.btn-nav-outline {
  background: transparent;
  color: var(--primary-navy);
  border: 1.5px solid var(--primary-navy);
}

.btn-nav-outline:hover:not(:disabled) {
  background: #f1f5f9;
}

.keyboard-hints {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.key-badge {
  background: #f1f5f9;
  border: 1px solid var(--border-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #334155;
}

/* ========================================================
   OVERVIEW GRID MODAL (Slide Selector)
   ======================================================== */
.overview-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.overview-modal.open {
  display: flex;
}

.overview-content {
  background: #ffffff;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  padding: 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.overview-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-navy);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.overview-thumb {
  background: #f8fafc;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 130px;
}

.overview-thumb:hover {
  border-color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.overview-thumb.current {
  border-color: var(--accent-blue);
  background: #f0f9ff;
}

.thumb-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-navy);
}

.thumb-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

/* ========================================================
   PRINT / PDF EXPORT STYLES (@media print)
   ======================================================== */
@media print {
  body {
    background: #ffffff !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  .presentation-header,
  .presentation-footer,
  .overview-modal,
  .progress-container {
    display: none !important;
  }
  
  .viewport-container {
    padding: 0 !important;
    display: block !important;
    overflow: visible !important;
  }
  
  .slides-wrapper {
    box-shadow: none !important;
    border-radius: 0 !important;
    max-width: none !important;
    max-height: none !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
  }
  
  .slide {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
    page-break-after: always !important;
    page-break-inside: avoid !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    padding: 40px 60px !important;
    box-sizing: border-box !important;
  }
  
  .slide-top-right-dots,
  .slide-bottom-left-dots,
  .title-top-motif,
  .title-bottom-motif {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  .cell-low, .cell-med, .cell-high, .cell-crit {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* ========================================================
   RESPONSIVE & MOBILE ADAPTIVE STYLES
   ======================================================== */

/* Tablet & Medium Screens (<= 1024px) */
@media screen and (max-width: 1024px) {
  .concept-grid-4,
  .strategies-grid,
  .frameworks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .cvss-levels-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .matrix-container {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }

  .matrix-inspector {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .case-study-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Tablets Portrait & Mobiles (<= 768px) */
@media screen and (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    height: 100%;
    min-height: 100dvh;
  }

  /* Header adjustments */
  .presentation-header {
    height: 52px;
    padding: 0 12px;
  }

  .brand-logo-dots {
    display: none;
  }

  .brand-title {
    font-size: 13px;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-badge {
    display: none;
  }

  .toolbar-controls {
    gap: 6px;
  }

  .btn-tool {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* Hide print and fullscreen on mobile */
  #printBtn,
  #fullscreenBtn {
    display: none;
  }

  .slide-counter {
    padding: 4px 8px;
    font-size: 12px;
    min-width: 60px;
  }

  /* Viewport and Slides: remove 16:9 fixed ratio and allow full vertical use with internal scrolling */
  .viewport-container {
    padding: 0;
    flex: 1;
    height: auto;
    min-height: 0;
    display: block;
    overflow: hidden;
  }

  .slides-wrapper {
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }

  .slide {
    padding: 18px 16px 36px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  /* Decorative Dots: hide to avoid overlapping text */
  .slide-top-right-dots,
  .slide-bottom-left-dots {
    display: none;
  }

  /* Slide 1 Cover Motifs & Typography */
  .slide.slide-title-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    padding: 24px 14px;
    box-sizing: border-box;
  }

  .title-top-motif,
  .title-bottom-motif {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    gap: 12px;
    margin: 12px 0;
  }

  .pdf-dots-row span {
    width: 9px;
    height: 9px;
  }

  .title-main-box {
    margin: 14px 0;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(20px, 5.8vw, 28px);
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .hero-title-line {
    white-space: normal;
    word-break: normal;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .hero-author {
    font-size: 13px;
    margin-top: 10px;
  }

  .hero-tag {
    font-size: 11px;
    padding: 3px 8px;
    margin-top: 8px;
  }

  /* Slide Headings & Text */
  .slide-title {
    font-size: 19px;
    line-height: 1.3;
    max-width: 100%;
    margin-bottom: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .slide-title .en-term {
    font-size: 14px;
  }

  .slide-lead-text {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .sub-heading {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .styled-list {
    gap: 8px;
  }

  .styled-list li {
    font-size: 13px;
    padding-left: 18px;
    line-height: 1.45;
  }

  .styled-list li::before {
    font-size: 18px;
    left: 4px;
  }

  /* Grids to single column */
  .grid-2col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: auto;
  }

  .grid-2col-content,
  .grid-2col-visual {
    width: 100%;
    height: auto;
  }

  .visual-card {
    max-height: 220px;
  }

  .visual-card img {
    max-height: 220px;
    object-fit: contain;
  }

  .concept-grid-4,
  .strategies-grid,
  .frameworks-grid,
  .reg-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pillar-card,
  .strategy-card,
  .fw-card,
  .reg-card {
    padding: 14px;
  }

  .pillar-title,
  .strategy-name,
  .fw-name,
  .reg-title {
    font-size: 16px;
  }

  .pillar-desc,
  .strategy-desc,
  .fw-desc,
  .reg-desc {
    font-size: 13px;
    line-height: 1.45;
  }

  /* Formula Banner */
  .formula-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }

  .formula-math {
    font-size: 16px;
  }

  .formula-label {
    font-size: 12.5px;
    max-width: 100%;
  }

  /* CIA Triangle Diagram */
  .cia-diagram-wrapper {
    padding: 12px;
  }

  .cia-svg {
    max-width: 260px;
  }

  /* Matrix Heatmap */
  .matrix-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .matrix-y-label {
    writing-mode: horizontal-tb;
    transform: none;
    text-align: left;
    margin-bottom: 4px;
    font-size: 12px;
  }

  .matrix-cell {
    height: 38px;
    font-size: 12px;
  }

  .matrix-x-axis {
    font-size: 9.5px;
  }

  .matrix-x-label {
    font-size: 12px;
  }

  .matrix-inspector {
    padding: 14px;
    min-height: auto;
    max-height: none;
  }

  .inspector-score {
    font-size: 24px;
  }

  .inspector-title {
    font-size: 15px;
  }

  .inspector-desc {
    font-size: 12.5px;
  }

  /* CVSS */
  .cvss-meter-bar {
    height: 22px;
  }

  .cvss-seg {
    font-size: 9.5px;
  }

  .cvss-levels-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cve-example-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* Case study */
  .case-banner {
    padding: 12px 14px;
  }

  .case-banner h4 {
    font-size: 14px;
  }

  .case-banner p {
    font-size: 12.5px;
  }

  .case-steps {
    gap: 10px;
  }

  .case-step-text {
    font-size: 13px;
  }

  /* Quiz */
  .quiz-question-card {
    padding: 16px;
  }

  .quiz-question-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .quiz-options-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quiz-opt-btn {
    padding: 10px 14px;
    font-size: 13.5px;
  }

  /* Agenda */
  .agenda-divider-line {
    width: 100%;
    max-width: 260px;
    margin: 8px 0 14px 0;
  }

  .agenda-list li {
    font-size: 14px;
  }

  /* Footer Navigation */
  .presentation-footer {
    height: 54px;
    padding: 0 14px;
  }

  .keyboard-hints {
    display: none;
  }

  .nav-buttons-group {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .btn-nav {
    flex: 1;
    justify-content: center;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
    min-height: 42px;
  }

  /* Overview Modal */
  .overview-modal {
    padding: 12px;
  }

  .overview-content {
    padding: 16px;
    max-height: 92vh;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .overview-thumb {
    height: auto;
    min-height: 85px;
    padding: 12px;
  }
}

/* Small Phones (<= 480px) */
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 21px;
  }

  .btn-tool {
    padding: 5px 8px;
    font-size: 11px;
  }

  .matrix-cell {
    height: 32px;
    font-size: 11px;
  }

  .matrix-x-axis span {
    font-size: 8px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
