/* ==========================================================================
   Program «على بصيرة» — Presentation Design System & Stylesheet
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --bg-dark: #091a14;
  --bg-dark-card: rgba(14, 47, 36, 0.75);
  --bg-dark-card-hover: rgba(22, 65, 51, 0.9);
  --bg-dark-card-solid: #0e2f24;
  --bg-emerald-deep: #05140e;
  
  --gold-primary: #c5a059;
  --gold-light: #e6c887;
  --gold-glow: rgba(197, 160, 89, 0.35);
  --gold-border: rgba(197, 160, 89, 0.4);
  
  --emerald-accent: #1b4d3e;
  --emerald-light: #2a735d;
  --emerald-tag-bg: rgba(27, 77, 62, 0.4);
  
  --text-white: #ffffff;
  --text-ivory: #f7f4ea;
  --text-muted: #9eb5aa;
  --text-dark: #1a2922;
  
  --alert-red: #e76f51;
  --alert-red-bg: rgba(231, 111, 81, 0.15);
  --alert-red-border: rgba(231, 111, 81, 0.45);
  
  --green-positive: #2a9d8f;
  --green-positive-bg: rgba(42, 157, 143, 0.15);
  --green-positive-border: rgba(42, 157, 143, 0.4);

  /* Glassmorphism & Shadows */
  --glass-bg: rgba(14, 47, 36, 0.65);
  --glass-border: 1px solid rgba(197, 160, 89, 0.25);
  --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
  --glow-shadow: 0 0 25px rgba(197, 160, 89, 0.2);

  /* Typography */
  --font-arabic-heading: 'Amiri', 'Traditional Arabic', serif;
  --font-arabic-body: 'Cairo', 'Tajawal', system-ui, sans-serif;
  --font-latin: 'Outfit', 'Inter', system-ui, sans-serif;
  
  /* Layout Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease-out;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-emerald-deep);
  color: var(--text-ivory);
  font-family: var(--font-arabic-body);
  direction: rtl;
  text-align: right;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Background Atmosphere */
.presentation-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 85% 15%, #164133 0%, #091a14 55%, #05140e 100%);
  pointer-events: none;
}

.ambient-light {
  position: absolute;
  width: 60vw;
  height: 60vh;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
}
.ambient-light-1 {
  top: -10vh;
  right: -10vw;
  background: var(--gold-primary);
}
.ambient-light-2 {
  bottom: -20vh;
  left: -10vw;
  background: var(--emerald-light);
}

/* Main App Container */
#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* ==========================================================================
   Top Header & Navigation Bar
   ========================================================================== */
.presentation-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  background: rgba(9, 26, 20, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  height: 64px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-badge {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: #0e2f24;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 2px 10px var(--gold-glow);
  letter-spacing: 0.5px;
}

.brand-title {
  font-family: var(--font-arabic-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
}

.header-center-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.slide-counter-badge {
  background: rgba(27, 77, 62, 0.6);
  border: 1px solid var(--gold-border);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-family: var(--font-latin);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.session-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-family: var(--font-latin);
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}
.session-timer:hover {
  color: var(--text-white);
  border-color: var(--gold-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  background: rgba(22, 65, 51, 0.5);
  border: 1px solid rgba(197, 160, 89, 0.2);
  color: var(--text-ivory);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.1rem;
}

.icon-btn:hover {
  background: var(--gold-primary);
  color: #0e2f24;
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--gold-glow);
}

.icon-btn.active {
  background: var(--gold-primary);
  color: #0e2f24;
  border-color: var(--gold-light);
}

.btn-presenter-notes {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(27, 77, 62, 0.8), rgba(22, 65, 51, 0.9));
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-presenter-notes:hover {
  background: var(--gold-primary);
  color: #0e2f24;
}

/* ==========================================================================
   Slide Viewport & Stage
   ========================================================================== */
.presentation-viewport {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.5rem 3.8rem 2.5rem;
  overflow: hidden;
}

.slides-wrapper {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Individual Slide Container */
.slide-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96) translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1), visibility 0.45s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 2.8rem;
  background: var(--bg-dark-card);
  backdrop-filter: blur(20px);
  border: var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  pointer-events: none;
}

.slide-card.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Slide Header Elements */
.slide-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  padding-bottom: 0.8rem;
}

.slide-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.slide-category-tag::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-primary);
}

.slide-main-title {
  font-family: var(--font-arabic-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
}

.slide-main-title span.highlight {
  color: var(--gold-light);
  text-shadow: 0 0 15px rgba(230, 200, 135, 0.4);
}

/* Slide Content Body Layouts */
.slide-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 0;
}

/* Split Layout (Visual 45% + Talking Points 55%) */
.slide-split-layout {
  display: grid;
  grid-template-columns: 46% 54%;
  gap: 2.2rem;
  width: 100%;
  height: 100%;
  align-items: center;
}

.slide-media-frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 460px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.3);
  background: #071510;
}

.slide-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.slide-card.active .slide-media-frame img {
  transform: scale(1.02);
}

.media-caption-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  left: 12px;
  background: rgba(9, 26, 20, 0.88);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(197, 160, 89, 0.3);
  font-size: 0.85rem;
  color: var(--gold-light);
  text-align: center;
  font-weight: 600;
}

/* ==========================================================================
   Paired Comparison Cards Layout (Slide 3, 14)
   ========================================================================== */
.paired-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

.paired-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  transition: var(--transition-smooth);
}
.paired-card:hover {
  transform: translateY(-4px);
}

.paired-card-positive {
  background: linear-gradient(180deg, rgba(22, 65, 51, 0.75) 0%, rgba(14, 47, 36, 0.9) 100%);
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45), 0 0 20px var(--gold-glow);
}

.paired-card-negative {
  background: linear-gradient(180deg, rgba(48, 18, 18, 0.75) 0%, rgba(30, 12, 12, 0.9) 100%);
  border: 1.5px solid var(--alert-red-border);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45), 0 0 15px rgba(231, 111, 81, 0.2);
}

.paired-card-img-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
  background: #000;
}
.paired-card-negative .paired-card-img-wrap {
  border-bottom: 1px solid rgba(231, 111, 81, 0.3);
}

.paired-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.paired-card:hover .paired-card-img-wrap img {
  transform: scale(1.04);
}

.paired-card-content {
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.paired-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 800;
}
.paired-card-positive .paired-card-title {
  color: var(--gold-light);
}
.paired-card-negative .paired-card-title {
  color: #f28482;
}

.paired-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.paired-list li {
  position: relative;
  padding-right: 1.6rem;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--text-ivory);
}
.paired-card-positive .paired-list li::before {
  content: '✔';
  position: absolute;
  right: 0;
  color: var(--gold-primary);
  font-weight: bold;
}
.paired-card-negative .paired-list li::before {
  content: '✖';
  position: absolute;
  right: 0;
  color: var(--alert-red);
  font-size: 0.9rem;
}

/* Talking Points Column (Students View - Concise & Progressive) */
.talking-points-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.talking-point-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: rgba(22, 65, 51, 0.45);
  border: 1px solid rgba(197, 160, 89, 0.2);
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  transition: var(--transition-smooth);
}

/* Progressive Reveal Step States */
.talking-point-item.step-item {
  opacity: 0.25;
  transform: translateX(15px);
  filter: blur(1px);
}
.talking-point-item.step-item.revealed {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
  background: rgba(22, 65, 51, 0.8);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 15px rgba(197, 160, 89, 0.1);
}

.point-number-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-primary), #9c7832);
  color: #0e2f24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 2px 10px var(--gold-glow);
}

.point-content {
  flex: 1;
}

.point-headline {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.point-subtext {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Special High-Impact Quote / Big Idea Banner */
.big-idea-banner {
  background: linear-gradient(135deg, rgba(27, 77, 62, 0.85), rgba(14, 47, 36, 0.95));
  border: 1.5px solid var(--gold-primary);
  border-radius: 16px;
  padding: 1.3rem 1.8rem;
  box-shadow: var(--glow-shadow);
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-bottom: 1.1rem;
}

.banner-icon {
  font-size: 2.2rem;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.banner-text {
  font-family: var(--font-arabic-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.5;
}

/* Quranic Verse Box */
.quran-verse-card {
  position: relative;
  background: linear-gradient(135deg, rgba(14, 47, 36, 0.9), rgba(5, 20, 14, 0.95));
  border: 2px solid var(--gold-primary);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(197, 160, 89, 0.15);
}

.quran-text {
  font-family: var(--font-arabic-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.8;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.quran-ref {
  display: inline-block;
  background: rgba(197, 160, 89, 0.2);
  color: var(--gold-primary);
  padding: 0.3rem 1.2rem;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--gold-border);
}

/* 4 Stages Flow Grid (Slide 5) */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  width: 100%;
}

.stage-step-card {
  background: rgba(22, 65, 51, 0.5);
  border: 1px solid var(--gold-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}
.stage-step-card:hover, .stage-step-card.active-stage {
  transform: translateY(-8px);
  border-color: var(--gold-light);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--gold-glow);
  background: rgba(22, 65, 51, 0.85);
}
.stage-step-card.golden-stage {
  border: 2px solid var(--gold-primary);
  background: linear-gradient(180deg, rgba(27, 77, 62, 0.8) 0%, rgba(14, 47, 36, 0.95) 100%);
}

.stage-card-img {
  height: 140px;
  width: 100%;
  overflow: hidden;
}
.stage-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-card-content {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.stage-badge {
  display: inline-block;
  align-self: center;
  background: var(--gold-primary);
  color: #0e2f24;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
}

.stage-name {
  font-family: var(--font-arabic-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
}
.golden-stage .stage-name {
  color: var(--gold-light);
}

.stage-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 4 Grid Cards Layout (Slide 16 Tafsir) */
.grid-4-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  width: 100%;
}

.scholar-card {
  background: rgba(22, 65, 51, 0.6);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 1.3rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: var(--transition-fast);
}
.scholar-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
  background: rgba(22, 65, 51, 0.9);
}

.scholar-name-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--gold-primary);
  color: #0e2f24;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
}

.scholar-definition {
  font-family: var(--font-arabic-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-light);
}

.scholar-subtext {
  font-size: 0.98rem;
  color: var(--text-ivory);
  line-height: 1.5;
}

/* Matrix Table (Slide 20) */
.transformation-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.6rem;
}

.transformation-matrix th {
  background: rgba(14, 47, 36, 0.9);
  color: var(--gold-light);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.8rem 1.2rem;
  text-align: right;
  border-bottom: 2px solid var(--gold-primary);
}
.transformation-matrix th:first-child { border-radius: 0 10px 10px 0; }
.transformation-matrix th:last-child { border-radius: 10px 0 0 10px; }

.transformation-matrix td {
  background: rgba(22, 65, 51, 0.55);
  padding: 1rem 1.2rem;
  font-size: 1rem;
  vertical-align: middle;
  border-top: 1px solid rgba(197, 160, 89, 0.15);
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}
.transformation-matrix tr td:first-child {
  border-right: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 0 12px 12px 0;
  font-weight: 700;
  color: var(--gold-light);
}
.transformation-matrix tr td:last-child {
  border-left: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 12px 0 0 12px;
}
.matrix-bad { color: #f28482; }
.matrix-good { color: #81b29a; font-weight: 600; }

/* ==========================================================================
   Bottom Presentation Controls Bar
   ========================================================================== */
.presentation-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(9, 26, 20, 0.85);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(197, 160, 89, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 25;
}

/* Progress Line */
.progress-bar-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  box-shadow: 0 0 10px var(--gold-primary);
  transition: width 0.3s ease;
}

.controls-left, .controls-right, .controls-center {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-arrow-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(22, 65, 51, 0.7);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  padding: 0.35rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.nav-arrow-btn:hover:not(:disabled) {
  background: var(--gold-primary);
  color: #0e2f24;
  transform: translateY(-2px);
}
.nav-arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.shortcut-pill {
  font-family: var(--font-latin);
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Presenter Notes Panel (Drawer Mode for Teacher)
   ========================================================================== */
.presenter-notes-drawer {
  position: fixed;
  top: 64px;
  bottom: 56px;
  left: 0;
  width: 420px;
  background: rgba(7, 21, 16, 0.96);
  backdrop-filter: blur(24px);
  border-right: 1.5px solid var(--gold-primary);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.7);
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.presenter-notes-drawer.open {
  transform: translateX(0);
}

.notes-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  background: rgba(14, 47, 36, 0.8);
  border-bottom: 1px solid var(--gold-border);
}

.notes-drawer-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
}

.notes-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.note-section-card {
  background: rgba(22, 65, 51, 0.5);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}

.note-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.note-section-content {
  font-size: 0.92rem;
  color: var(--text-ivory);
  line-height: 1.6;
}

.note-talking-script {
  border-right: 3px solid var(--gold-primary);
  padding-right: 0.8rem;
  font-style: normal;
  color: #e2f0ea;
}

/* ==========================================================================
   Slide Overview Grid Modal (Press 'G' or Grid Icon)
   ========================================================================== */
.slide-grid-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 20, 14, 0.94);
  backdrop-filter: blur(20px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  padding: 2rem 3rem;
}

.slide-grid-modal.open {
  opacity: 1;
  visibility: visible;
}

.grid-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.grid-modal-title {
  font-family: var(--font-arabic-heading);
  font-size: 1.8rem;
  color: var(--gold-light);
}

.grid-modal-cards-container {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  padding-bottom: 2rem;
}

.grid-thumb-card {
  background: rgba(14, 47, 36, 0.7);
  border: 1.5px solid rgba(197, 160, 89, 0.3);
  border-radius: 14px;
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.grid-thumb-card:hover {
  transform: scale(1.03);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 25px var(--gold-glow);
  background: rgba(22, 65, 51, 0.95);
}
.grid-thumb-card.active-thumb {
  border-color: var(--gold-light);
  background: linear-gradient(135deg, rgba(27, 77, 62, 0.9), rgba(14, 47, 36, 0.95));
  box-shadow: 0 0 15px var(--gold-primary);
}

.thumb-number {
  font-family: var(--font-latin);
  font-weight: 700;
  color: var(--gold-primary);
  font-size: 0.85rem;
}

.thumb-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
}

/* ==========================================================================
   Laser Pointer & Spotlight
   ========================================================================== */
#laser-pointer {
  position: fixed;
  width: 16px;
  height: 16px;
  background: #ff3366;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px #ff3366, 0 0 25px #ff3366;
  display: none;
}
#laser-pointer.active {
  display: block;
}

/* ==========================================================================
   Keyboard Shortcuts Modal Help
   ========================================================================== */
.help-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}
.help-modal.open {
  opacity: 1;
  visibility: visible;
}
.help-modal-box {
  background: var(--bg-dark-card-solid);
  border: 1.5px solid var(--gold-primary);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  max-width: 550px;
  width: 90%;
  box-shadow: var(--glass-shadow);
}
.help-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.help-shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.help-shortcut-key {
  background: rgba(197, 160, 89, 0.2);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

/* ==========================================================================
   Responsive & Print Utilities
   ========================================================================== */
@media (max-width: 1024px) {
  .slide-split-layout, .paired-comparison-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .slide-media-frame, .paired-card-img-wrap {
    max-height: 200px;
  }
  .slide-card {
    padding: 1.5rem;
  }
  .slide-main-title {
    font-size: 1.6rem;
  }
}
