
    /* ============================================
       CSS CUSTOM PROPERTIES (Design Tokens)
       Tactical UI Theme - Rookie Academy
       ============================================ */
    :root {
      /* Rookie Academy Color Palette */
      --color-academy-black: #0D0D0D;
      --color-academy-black-light: #151515;
      --color-fire-red: #D62828;
      --color-fire-red-hover: #B82222;
      --color-fire-red-glow: rgba(214, 40, 40, 0.6);
      --color-safety-yellow: #F7B801;
      --color-safety-yellow-glow: rgba(247, 184, 1, 0.5);
      --color-steel-gray: #3D4F5F;
      --color-steel-gray-light: #4A6275;
      --color-steel-gray-dark: #2A3844;
      --color-smoke-white: #F5F5F5;
      --color-ember-orange: #F77F00;
      --color-ember-orange-hover: #E07200;
      --color-ember-glow: rgba(247, 127, 0, 0.6);
      --color-success: #22C55E;
      --color-success-glow: rgba(34, 197, 94, 0.4);
      --color-text-muted: #9CA3AF;

      /* Tactical UI Gradients */
      --gradient-ember: linear-gradient(90deg, #D62828 0%, #F77F00 50%, #F7B801 100%);
      --gradient-ember-vertical: linear-gradient(180deg, #D62828 0%, #F77F00 100%);
      --gradient-card: linear-gradient(135deg, rgba(61, 79, 95, 0.4) 0%, rgba(42, 56, 68, 0.6) 100%);
      --gradient-card-hover: linear-gradient(135deg, rgba(61, 79, 95, 0.6) 0%, rgba(42, 56, 68, 0.8) 100%);
      --gradient-dark-overlay: linear-gradient(180deg, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 0.95) 100%);

      /* Typography */
      --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      --font-family-display: 'Oswald', 'Inter', sans-serif;
      --font-size-xs: 0.75rem;
      --font-size-sm: 0.875rem;
      --font-size-base: 1rem;
      --font-size-lg: 1.125rem;
      --font-size-xl: 1.25rem;
      --font-size-2xl: 1.5rem;
      --font-size-3xl: 1.875rem;
      --font-size-4xl: 2.25rem;
      --font-size-5xl: 3rem;
      --font-size-6xl: 4rem;

      /* Spacing */
      --space-1: 0.25rem;
      --space-2: 0.5rem;
      --space-3: 0.75rem;
      --space-4: 1rem;
      --space-5: 1.25rem;
      --space-6: 1.5rem;
      --space-8: 2rem;
      --space-10: 2.5rem;
      --space-12: 3rem;
      --space-16: 4rem;
      --space-20: 5rem;

      /* Border Radius */
      --radius-sm: 4px;
      --radius-md: 8px;
      --radius-lg: 12px;
      --radius-xl: 16px;

      /* Tactical Border */
      --border-tactical: 1px solid rgba(247, 184, 1, 0.2);
      --border-tactical-bright: 1px solid rgba(247, 184, 1, 0.4);

      /* Shadows & Glows */
      --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
      --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
      --glow-red: 0 0 30px var(--color-fire-red-glow);
      --glow-orange: 0 0 30px var(--color-ember-glow);
      --glow-yellow: 0 0 30px var(--color-safety-yellow-glow);
      --glow-success: 0 0 20px var(--color-success-glow);

      /* Transitions */
      --transition-fast: 150ms ease;
      --transition-base: 250ms ease;
      --transition-slow: 400ms ease;

      /* Touch Target */
      --touch-target-min: 44px;
    }

    /* ============================================
       LIGHT THEME
       ============================================ */
    [data-theme="light"] {
      /* Light Theme Color Palette */
      --color-academy-black: #FFFFFF;
      --color-academy-black-light: #F5F5F5;
      --color-smoke-white: #1A1A1A;
      --color-text-muted: #4A5568;
      --color-steel-gray: #CBD5E0;
      --color-steel-gray-light: #E2E8F0;
      --color-steel-gray-dark: #A0AEC0;

      /* Accent colors darkened for contrast on white backgrounds (WCAG AA) */
      --color-safety-yellow: #B45309;
      --color-ember-orange: #C2410C;
      --color-ember-orange-hover: #9A3412;
      --gradient-ember: linear-gradient(90deg, #B91C1C 0%, #C2410C 50%, #B45309 100%);
      --gradient-ember-vertical: linear-gradient(180deg, #B91C1C 0%, #C2410C 100%);

      /* Adjusted glows for light mode */
      --color-fire-red-glow: rgba(214, 40, 40, 0.25);
      --color-safety-yellow-glow: rgba(180, 83, 9, 0.3);
      --color-ember-glow: rgba(194, 65, 12, 0.3);
      --color-success-glow: rgba(34, 197, 94, 0.25);

      /* Light mode gradients */
      --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.95) 100%);
      --gradient-card-hover: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(241, 245, 249, 1) 100%);
      --gradient-dark-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);

      /* Light mode borders */
      --border-tactical: 1px solid rgba(214, 40, 40, 0.2);
      --border-tactical-bright: 1px solid rgba(214, 40, 40, 0.4);

      /* Light mode shadows */
      --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
      --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
      --glow-red: 0 0 20px var(--color-fire-red-glow);
      --glow-orange: 0 0 20px var(--color-ember-glow);
      --glow-yellow: 0 0 20px var(--color-safety-yellow-glow);
    }

    /* Light mode specific element overrides */
    [data-theme="light"] .site-header {
      background: rgba(255, 255, 255, 0.95);
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    [data-theme="light"] .logo-text span {
      color: var(--color-fire-red);
    }

    [data-theme="light"] .training-card {
      background: var(--gradient-card);
      border: 1px solid rgba(0, 0, 0, 0.1);
    }

    [data-theme="light"] .training-card:hover {
      border-color: var(--color-fire-red);
    }

    [data-theme="light"] .training-card::before,
    [data-theme="light"] .training-card::after {
      border-color: rgba(0, 0, 0, 0.15);
    }

    [data-theme="light"] .training-card:hover::before,
    [data-theme="light"] .training-card:hover::after {
      border-color: var(--color-fire-red);
    }

    [data-theme="light"] .card-day {
      color: var(--color-fire-red);
    }

    [data-theme="light"] .progress-segment {
      background: rgba(0, 0, 0, 0.1);
    }

    [data-theme="light"] .hero-badge {
      background: rgba(214, 40, 40, 0.08);
    }

    [data-theme="light"] .nav-links a:hover,
    [data-theme="light"] .nav-links a:focus {
      background: rgba(214, 40, 40, 0.08);
    }

    [data-theme="light"] .hero-stats-panel {
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(0, 0, 0, 0.1);
    }

    [data-theme="light"] .section-label {
      color: var(--color-fire-red);
    }

    [data-theme="light"] .footer-feature svg {
      fill: var(--color-fire-red);
    }

    [data-theme="light"] .cert-badge.earned {
      background: rgba(214, 40, 40, 0.1);
      border-color: var(--color-fire-red);
    }

    [data-theme="light"] .cert-badge.earned svg {
      fill: var(--color-fire-red);
    }

    [data-theme="light"] .cta-section {
      background: linear-gradient(135deg, #FFF5F5 0%, #FED7D7 100%);
    }

    [data-theme="light"] .site-footer {
      background: #F7FAFC;
      border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    [data-theme="light"] .footer-logo .logo-icon {
      background: var(--gradient-ember-vertical);
    }

    [data-theme="light"] .particle {
      opacity: 0.3;
    }

    /* Light mode text contrast fixes */
    [data-theme="light"] .hero-subtitle-main {
      color: #1A1A1A;
    }

    [data-theme="light"] .hero-subtitle {
      color: #4A5568;
    }

    [data-theme="light"] .hero-title {
      color: #1A1A1A;
    }

    [data-theme="light"] .hero-title-accent {
      background: var(--gradient-ember);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    [data-theme="light"] .stats-header {
      color: var(--color-fire-red);
    }

    [data-theme="light"] .stat-value {
      color: #1A1A1A;
    }

    [data-theme="light"] .stat-value.highlight {
      color: var(--color-fire-red);
    }

    [data-theme="light"] .stat-label {
      color: #4A5568;
    }

    /* Light mode training cards text */
    [data-theme="light"] .card-day {
      color: var(--color-fire-red);
    }

    [data-theme="light"] .card-title {
      color: #1A1A1A;
    }

    [data-theme="light"] .card-description {
      color: #4B5563;
    }

    [data-theme="light"] .card-duration {
      color: #6B7280;
    }

    [data-theme="light"] .card-status.locked {
      color: #6B7280;
    }

    [data-theme="light"] .card-status.current {
      color: var(--color-fire-red);
    }

    [data-theme="light"] .training-card.locked .card-title {
      color: #6B7280;
    }

    [data-theme="light"] .training-card.locked .card-description {
      color: #9CA3AF;
    }

    /* Light mode section headers */
    [data-theme="light"] .section-label {
      color: var(--color-fire-red);
    }

    [data-theme="light"] .section-title {
      color: #1A1A1A;
    }

    [data-theme="light"] .section-description {
      color: #4B5563;
    }

    /* Light mode CTA section */
    [data-theme="light"] .cta-title {
      color: #1A1A1A;
    }

    [data-theme="light"] .cta-description {
      color: #4B5563;
    }

    /* Light mode footer text */
    [data-theme="light"] .footer-text {
      color: #4B5563;
    }

    [data-theme="light"] .footer-links a {
      color: #4B5563;
    }

    [data-theme="light"] .footer-links a:hover {
      color: var(--color-fire-red);
    }

    /* Light mode nav links */
    [data-theme="light"] .nav-links a {
      color: #4B5563;
    }

    [data-theme="light"] .nav-links a:hover,
    [data-theme="light"] .nav-links a:focus {
      color: #1A1A1A;
    }

    [data-theme="light"] .logo-text {
      color: #1A1A1A;
    }

    /* ============================================
       CSS RESET & BASE
       ============================================ */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      font-size: 16px;
      scroll-behavior: smooth;
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }

    body {
      font-family: var(--font-family);
      font-size: var(--font-size-base);
      line-height: 1.5;
      color: var(--color-smoke-white);
      background-color: var(--color-academy-black);
      background-image: url('images/landing-hero.jpg');
      background-size: cover;
      background-position: top center;
      background-attachment: fixed;
      -webkit-font-smoothing: antialiased;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* ============================================
       ACCESSIBILITY
       ============================================ */
    .skip-link {
      position: absolute;
      top: -100%;
      left: var(--space-4);
      z-index: 9999;
      padding: var(--space-3) var(--space-4);
      background: var(--color-ember-orange);
      color: var(--color-academy-black);
      font-weight: 600;
      text-decoration: none;
      border-radius: var(--radius-md);
      transition: top var(--transition-fast);
    }

    .skip-link:focus {
      top: var(--space-4);
      outline: 3px solid var(--color-smoke-white);
      outline-offset: 2px;
    }

    :focus { outline: 2px solid var(--color-safety-yellow); outline-offset: 2px; }
    :focus:not(:focus-visible) { outline: none; }
    :focus-visible { outline: 3px solid var(--color-safety-yellow); outline-offset: 2px; }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .announcer {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    /* ============================================
       LAYOUT
       ============================================ */
    .container {
      width: 100%;
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 var(--space-4);
    }

    @media (min-width: 640px) { .container { padding: 0 var(--space-6); } }
    @media (min-width: 1024px) { .container { padding: 0 var(--space-8); } }

    /* ============================================
       TACTICAL HEADER
       ============================================ */
    .site-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 200;
      background: rgba(13, 13, 13, 0.9);
      backdrop-filter: blur(12px);
      border-bottom: var(--border-tactical);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 72px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: var(--space-3);
      text-decoration: none;
      color: var(--color-smoke-white);
    }

    .logo-icon {
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--gradient-ember-vertical);
      border-radius: var(--radius-md);
      box-shadow: var(--glow-orange);
    }

    .logo-icon svg {
      width: 26px;
      height: 26px;
      fill: var(--color-smoke-white);
    }

    .logo-text {
      font-family: var(--font-family-display);
      font-size: var(--font-size-xl);
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .logo-text span {
      color: var(--color-fire-red);
    }

    .nav-links {
      display: none;
      list-style: none;
      gap: var(--space-2);
    }

    @media (min-width: 768px) {
      .nav-links { display: flex; }
    }

    .nav-links a {
      color: var(--color-text-muted);
      text-decoration: none;
      font-size: var(--font-size-sm);
      font-weight: 500;
      padding: var(--space-2) var(--space-4);
      border-radius: var(--radius-md);
      transition: all var(--transition-fast);
      min-height: var(--touch-target-min);
      display: flex;
      align-items: center;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .nav-links a:hover,
    .nav-links a:focus {
      color: var(--color-smoke-white);
      background: rgba(247, 184, 1, 0.1);
    }

    .nav-cta {
      padding: var(--space-1) var(--space-4);
      background: var(--color-fire-red);
      color: var(--color-smoke-white) !important;
      border-radius: var(--radius-md);
      font-size: var(--font-size-sm);
      font-weight: 600;
      text-decoration: none;
      white-space: nowrap;
    }

    .nav-cta:hover {
      background: var(--color-fire-red-hover) !important;
    }

    .mobile-menu-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: var(--touch-target-min);
      height: var(--touch-target-min);
      background: transparent;
      border: var(--border-tactical);
      color: var(--color-smoke-white);
      cursor: pointer;
      border-radius: var(--radius-md);
    }

    @media (min-width: 768px) {
      .mobile-menu-btn { display: none; }
    }

    /* ============================================
       THEME TOGGLE
       ============================================ */
    .theme-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      width: var(--touch-target-min);
      height: var(--touch-target-min);
      background: transparent;
      border: var(--border-tactical);
      color: var(--color-smoke-white);
      cursor: pointer;
      border-radius: var(--radius-md);
      transition: all var(--transition-fast);
      margin-left: var(--space-2);
    }

    .theme-toggle:hover {
      background: rgba(247, 184, 1, 0.1);
      border-color: var(--color-safety-yellow);
    }

    .theme-toggle:focus {
      outline: none;
      box-shadow: 0 0 0 3px var(--color-safety-yellow);
    }

    .theme-toggle svg {
      width: 20px;
      height: 20px;
      transition: transform var(--transition-base);
    }

    .theme-toggle:hover svg {
      transform: rotate(15deg);
    }

    /* Sun icon (shown in dark mode) */
    .theme-toggle .sun-icon {
      display: block;
    }

    .theme-toggle .moon-icon {
      display: none;
    }

    /* Moon icon (shown in light mode) */
    [data-theme="light"] .theme-toggle .sun-icon {
      display: none;
    }

    [data-theme="light"] .theme-toggle .moon-icon {
      display: block;
    }

    [data-theme="light"] .theme-toggle {
      border-color: rgba(0, 0, 0, 0.2);
      color: var(--color-smoke-white);
    }

    [data-theme="light"] .theme-toggle:hover {
      background: rgba(214, 40, 40, 0.08);
      border-color: var(--color-fire-red);
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: var(--space-2);
    }

    /* ============================================
       HERO SECTION - TACTICAL STYLE
       ============================================ */
    main {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .hero {
      position: relative;
      flex: 1;
      display: flex;
      align-items: center;
      padding-top: 72px;
      padding-bottom: var(--space-4);
      overflow: hidden;
    }

    .hero-background {
      position: absolute;
      inset: 0;
      z-index: -1;
      background: linear-gradient(180deg, rgba(10, 14, 20, 0.7) 0%, rgba(10, 14, 20, 0.45) 40%, rgba(10, 14, 20, 0.7) 100%);
    }

    .hero-background::before {
      display: none;
    }

    /* Ember/Smoke Particles */
    .hero-particles {
      position: absolute;
      inset: 0;
      z-index: 2;
      pointer-events: none;
      overflow: hidden;
    }

    .particle {
      position: absolute;
      width: 4px;
      height: 4px;
      background: var(--color-ember-orange);
      border-radius: 50%;
      opacity: 0;
      animation: particle-rise 8s ease-out infinite;
      box-shadow: 0 0 6px var(--color-ember-orange), 0 0 12px var(--color-fire-red);
    }

    .particle:nth-child(1) { left: 10%; animation-delay: 0s; }
    .particle:nth-child(2) { left: 20%; animation-delay: 1s; }
    .particle:nth-child(3) { left: 35%; animation-delay: 2s; }
    .particle:nth-child(4) { left: 50%; animation-delay: 0.5s; }
    .particle:nth-child(5) { left: 65%; animation-delay: 3s; }
    .particle:nth-child(6) { left: 75%; animation-delay: 1.5s; }
    .particle:nth-child(7) { left: 85%; animation-delay: 2.5s; }
    .particle:nth-child(8) { left: 92%; animation-delay: 0.8s; }

    @keyframes particle-rise {
      0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
      }
      10% {
        opacity: 1;
      }
      90% {
        opacity: 0.5;
      }
      100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .particle { animation: none; display: none; }
    }

    .hero-content {
      position: relative;
      z-index: 3;
      padding: var(--space-8) 0;
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--space-6);
    }

    @media (min-width: 768px) {
      .hero-content {
        grid-template-columns: 1fr auto;
        align-items: center;
      }
    }

    .hero-text {
      min-width: 0;
    }

    .hero-actions {
      display: flex;
      flex-direction: column;
      gap: var(--space-3);
    }

    @media (min-width: 768px) {
      .hero-actions {
        align-items: flex-end;
        min-width: 220px;
      }

      .hero-actions .btn {
        width: 100%;
        justify-content: center;
      }
    }

    /* Tactical Badge */
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: var(--space-2);
      padding: var(--space-2) var(--space-4);
      background: rgba(214, 40, 40, 0.15);
      border: 1px solid var(--color-fire-red);
      border-radius: var(--radius-sm);
      font-size: var(--font-size-xs);
      font-weight: 600;
      color: var(--color-fire-red);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: var(--space-6);
    }

    .hero-badge svg {
      width: 14px;
      height: 14px;
      fill: currentColor;
    }

    .hero-title {
      font-family: var(--font-family-display);
      font-size: var(--font-size-5xl);
      font-weight: 700;
      line-height: 1;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      margin-bottom: var(--space-4);
    }

    @media (min-width: 640px) {
      .hero-title { font-size: var(--font-size-6xl); }
    }

    .hero-title-accent {
      background: var(--gradient-ember);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero-subtitle-wrapper {
      max-width: 600px;
      margin-bottom: var(--space-6);
    }

    .hero-subtitle-main {
      font-size: var(--font-size-xl);
      font-weight: 500;
      color: var(--color-smoke-white);
      margin-bottom: var(--space-2);
    }

    .hero-subtitle {
      font-size: var(--font-size-base);
      color: var(--color-text-muted);
      line-height: 1.6;
    }


    .hero-training-grid-wrapper {
      margin-top: var(--space-4);
    }

    .hero-training-grid-wrapper .training-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: var(--space-3);
    }

    @media (min-width: 768px) {
      .hero-training-grid-wrapper .training-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    .hero-training-grid-wrapper .training-card {
      padding: var(--space-3) var(--space-4);
      background: rgba(10, 14, 20, 0.7);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(247, 184, 1, 0.2);
    }

    .hero-training-grid-wrapper .training-card:hover {
      background: rgba(10, 14, 20, 0.85);
      border-color: var(--color-safety-yellow);
    }

    .hero-training-grid-wrapper .card-description,
    .hero-training-grid-wrapper .card-progress {
      display: none;
    }

    .hero-training-grid-wrapper .card-day {
      font-size: var(--font-size-xs);
    }

    .hero-training-grid-wrapper .card-title {
      font-size: var(--font-size-sm);
      margin-bottom: var(--space-1);
    }

    .hero-training-grid-wrapper .card-footer {
      margin-top: var(--space-2);
      padding-top: var(--space-2);
    }

    .hero-training-grid-wrapper .card-duration {
      font-size: var(--font-size-xs);
    }

    /* ============================================
       TACTICAL BUTTONS
       ============================================ */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: var(--space-3);
      min-height: var(--touch-target-min);
      padding: var(--space-3) var(--space-6);
      font-family: var(--font-family);
      font-size: var(--font-size-sm);
      font-weight: 600;
      text-decoration: none;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      border: none;
      border-radius: var(--radius-md);
      cursor: pointer;
      transition: all var(--transition-base);
      white-space: nowrap;
    }

    .btn-primary {
      position: relative;
      background: var(--color-ember-orange);
      color: var(--color-academy-black);
      box-shadow: var(--glow-orange);
      overflow: hidden;
    }

    .btn-primary::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
      transition: left 0.5s ease;
    }

    .btn-primary:hover::before {
      left: 100%;
    }

    .btn-primary:hover {
      background: var(--color-safety-yellow);
      transform: translateY(-2px);
      box-shadow: var(--glow-yellow);
    }

    .btn-secondary {
      background: transparent;
      color: var(--color-smoke-white);
      border: 2px solid var(--color-steel-gray);
    }

    .btn-secondary:hover {
      border-color: var(--color-safety-yellow);
      color: var(--color-safety-yellow);
    }

    .btn-lg {
      min-height: 56px;
      padding: var(--space-4) var(--space-8);
      font-size: var(--font-size-base);
    }

    .btn svg {
      width: 18px;
      height: 18px;
    }

    /* ============================================
       TACTICAL STATS PANEL
       ============================================ */
    .hero-stats-panel {
      background: var(--gradient-card);
      border: var(--border-tactical);
      border-radius: var(--radius-lg);
      padding: var(--space-6);
      position: relative;
      overflow: hidden;
    }

    /* Corner accents - tactical look */
    .hero-stats-panel::before,
    .hero-stats-panel::after {
      content: '';
      position: absolute;
      width: 20px;
      height: 20px;
      border: 2px solid var(--color-safety-yellow);
    }

    .hero-stats-panel::before {
      top: -1px;
      left: -1px;
      border-right: none;
      border-bottom: none;
    }

    .hero-stats-panel::after {
      bottom: -1px;
      right: -1px;
      border-left: none;
      border-top: none;
    }

    .stats-header {
      font-size: var(--font-size-xs);
      font-weight: 600;
      color: var(--color-safety-yellow);
      text-transform: uppercase;
      letter-spacing: 0.15em;
      margin-bottom: var(--space-4);
      padding-bottom: var(--space-3);
      border-bottom: 1px solid rgba(247, 184, 1, 0.2);
    }

    .hero-stats {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: var(--space-6);
    }

    @media (min-width: 640px) {
      .hero-stats {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    .stat-item {
      text-align: center;
    }

    .stat-value {
      font-family: var(--font-family-display);
      font-size: var(--font-size-3xl);
      font-weight: 700;
      color: var(--color-smoke-white);
      line-height: 1;
    }

    .stat-value.highlight {
      background: var(--gradient-ember);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .stat-label {
      font-size: var(--font-size-xs);
      color: var(--color-text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-top: var(--space-1);
    }

    /* ============================================
       TRAINING SECTION - TACTICAL DASHBOARD
       ============================================ */
    .training-section {
      padding: var(--space-16) 0;
      background: linear-gradient(180deg, var(--color-academy-black) 0%, var(--color-academy-black-light) 100%);
      position: relative;
    }

    .section-header {
      text-align: center;
      margin-bottom: var(--space-12);
    }

    .section-label {
      display: inline-block;
      font-size: var(--font-size-xs);
      font-weight: 600;
      color: var(--color-fire-red);
      text-transform: uppercase;
      letter-spacing: 0.15em;
      margin-bottom: var(--space-3);
    }

    .section-title {
      font-family: var(--font-family-display);
      font-size: var(--font-size-3xl);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.02em;
      margin-bottom: var(--space-4);
    }

    @media (min-width: 640px) {
      .section-title { font-size: var(--font-size-4xl); }
    }

    .section-description {
      font-size: var(--font-size-base);
      color: var(--color-text-muted);
      max-width: 600px;
      margin: 0 auto;
    }

    /* ============================================
       TACTICAL TRAINING CARDS
       ============================================ */
    .training-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--space-4);
    }

    @media (min-width: 640px) {
      .training-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (min-width: 1024px) {
      .training-grid { grid-template-columns: repeat(4, 1fr); }
    }

    .training-card {
      position: relative;
      background: var(--gradient-card);
      border: var(--border-tactical);
      border-radius: var(--radius-lg);
      padding: var(--space-5);
      transition: all var(--transition-base);
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    /* Corner accents */
    .training-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 16px;
      height: 16px;
      border-top: 2px solid var(--color-steel-gray);
      border-left: 2px solid var(--color-steel-gray);
      transition: all var(--transition-base);
    }

    .training-card::after {
      content: '';
      position: absolute;
      bottom: 0;
      right: 0;
      width: 16px;
      height: 16px;
      border-bottom: 2px solid var(--color-steel-gray);
      border-right: 2px solid var(--color-steel-gray);
      transition: all var(--transition-base);
    }

    .training-card:hover,
    .training-card:focus {
      transform: translateY(-4px);
      box-shadow: var(--shadow-card-hover);
      border-color: rgba(247, 184, 1, 0.4);
    }

    .training-card:hover::before,
    .training-card:hover::after {
      border-color: var(--color-safety-yellow);
    }

    .training-card:focus {
      outline: 3px solid var(--color-safety-yellow);
      outline-offset: 2px;
    }

    /* Card States */
    .training-card.locked {
      opacity: 0.5;
      pointer-events: none;
    }

    .training-card.completed {
      border-color: var(--color-success);
    }

    .training-card.completed::before,
    .training-card.completed::after {
      border-color: var(--color-success);
    }

    .training-card.current {
      border-color: var(--color-ember-orange);
      box-shadow: var(--glow-orange);
    }

    .training-card.current::before,
    .training-card.current::after {
      border-color: var(--color-ember-orange);
    }

    /* Status indicator dot */
    .card-status-indicator {
      position: absolute;
      top: var(--space-4);
      right: var(--space-4);
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }

    .training-card.completed .card-status-indicator {
      background: var(--color-success);
      box-shadow: 0 0 8px var(--color-success-glow);
    }

    .training-card.current .card-status-indicator {
      background: var(--color-ember-orange);
      box-shadow: 0 0 8px var(--color-ember-glow);
      animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.7; transform: scale(1.2); }
    }

    .card-day {
      font-size: var(--font-size-xs);
      font-weight: 600;
      color: var(--color-fire-red);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: var(--space-2);
    }

    .training-card.completed .card-day {
      color: var(--color-success);
    }

    .training-card.current .card-day {
      color: var(--color-ember-orange);
    }

    .card-title {
      font-size: var(--font-size-lg);
      font-weight: 600;
      margin-bottom: var(--space-2);
      line-height: 1.3;
    }

    .card-description {
      font-size: var(--font-size-sm);
      color: var(--color-text-muted);
      margin-bottom: var(--space-4);
      flex-grow: 1;
    }

    /* Segmented Progress Bar */
    .card-progress {
      margin-bottom: var(--space-3);
    }

    .progress-bar-segmented {
      display: flex;
      gap: 3px;
      height: 6px;
    }

    .progress-segment {
      flex: 1;
      background: var(--color-steel-gray-dark);
      border-radius: 2px;
    }

    .progress-segment.filled {
      background: var(--gradient-ember);
      box-shadow: 0 0 6px var(--color-ember-glow);
    }

    .training-card.completed .progress-segment {
      background: var(--color-success);
      box-shadow: 0 0 6px var(--color-success-glow);
    }

    .card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .card-status {
      display: inline-flex;
      align-items: center;
      gap: var(--space-2);
      font-size: var(--font-size-xs);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .card-status.completed { color: var(--color-success); }
    .card-status.in-progress { color: var(--color-ember-orange); }
    .card-status.locked { color: var(--color-text-muted); }

    .card-status svg {
      width: 14px;
      height: 14px;
      fill: currentColor;
    }

    .card-duration {
      font-size: var(--font-size-xs);
      color: var(--color-text-muted);
    }

    /* ============================================
       CERTIFICATIONS PREVIEW
       ============================================ */
    .certifications-section {
      padding: var(--space-12) 0;
      background: var(--color-academy-black);
    }

    .cert-grid {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: var(--space-6);
    }

    .cert-badge {
      width: 80px;
      height: 80px;
      background: var(--gradient-card);
      border: var(--border-tactical);
      border-radius: var(--radius-lg);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .cert-badge.earned {
      border-color: var(--color-safety-yellow);
      box-shadow: var(--glow-yellow);
    }

    .cert-badge.earned::before {
      content: '';
      position: absolute;
      inset: -2px;
      background: var(--gradient-ember);
      border-radius: inherit;
      z-index: -1;
      opacity: 0.3;
    }

    .cert-badge svg {
      width: 40px;
      height: 40px;
      fill: var(--color-steel-gray-light);
    }

    .cert-badge.earned svg {
      fill: var(--color-safety-yellow);
    }

    /* ============================================
       FEATURES SECTION
       ============================================ */
    .footer-features {
      display: flex;
      justify-content: center;
      gap: var(--space-6);
      padding-bottom: var(--space-3);
      margin-bottom: var(--space-3);
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .footer-feature {
      display: flex;
      align-items: center;
      gap: var(--space-2);
      font-size: var(--font-size-sm);
      font-weight: 600;
      color: var(--color-text-muted);
    }

    .footer-feature svg {
      width: 16px;
      height: 16px;
      fill: var(--color-safety-yellow);
      flex-shrink: 0;
    }

    /* ============================================
       CTA SECTION - TACTICAL
       ============================================ */
    .cta-section {
      padding: var(--space-16) 0;
      background: var(--gradient-card);
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .cta-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--gradient-ember);
    }

    .cta-title {
      font-family: var(--font-family-display);
      font-size: var(--font-size-3xl);
      font-weight: 700;
      text-transform: uppercase;
      margin-bottom: var(--space-4);
    }

    @media (min-width: 640px) {
      .cta-title { font-size: var(--font-size-4xl); }
    }

    .cta-description {
      font-size: var(--font-size-base);
      color: var(--color-text-muted);
      max-width: 500px;
      margin: 0 auto var(--space-8);
    }

    /* ============================================
       FOOTER
       ============================================ */
    .site-footer {
      padding: var(--space-3) 0;
      background: rgba(10, 14, 20, 0.9);
      border-top: 1px solid rgba(255,255,255,0.05);
    }

    .footer-inner {
      display: flex;
      flex-direction: column;
      gap: var(--space-2);
      align-items: center;
      text-align: center;
    }

    @media (min-width: 768px) {
      .footer-inner {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-6);
      }
    }

    .footer-text {
      font-size: var(--font-size-sm);
      color: var(--color-text-muted);
    }

    .footer-links {
      display: flex;
      gap: var(--space-6);
      list-style: none;
    }

    .footer-links a {
      font-size: var(--font-size-sm);
      color: var(--color-text-muted);
      text-decoration: none;
      transition: color var(--transition-fast);
    }

    .footer-links a:hover {
      color: var(--color-safety-yellow);
    }

    /* ============================================
       HIGH CONTRAST & PRINT
       ============================================ */
    @media (prefers-contrast: high) {
      :root {
        --color-text-primary: #ffffff;
        --color-text-secondary: #e0e0e0;
      }

      .btn-primary {
        border: 2px solid var(--color-ember-orange);
      }

      .training-card {
        border: 2px solid var(--color-steel-gray);
      }
    }

    @media print {
      .site-header, .hero-particles, .btn, .mobile-menu-btn { display: none !important; }
      body { background: white; color: black; }
      .hero { min-height: auto; padding: 2rem 0; }
      .training-card { break-inside: avoid; border: 1px solid #ccc; }
    }
  

/* ============================================
   LESSON-SPECIFIC STYLES
   ============================================ */

/* Missing CSS variable additions */
:root {
  --color-error: #DC2626;
  --card-bg: rgba(61, 79, 95, 0.3);
  --font-heading: var(--font-family-display);
  --font-size-md: 1.0625rem;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] {
  --color-error: #DC2626;
  --card-bg: rgba(241, 245, 249, 0.9);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* Accent colors darkened for contrast on white backgrounds (WCAG AA) */
  --color-safety-yellow: #B45309;
  --color-safety-yellow-glow: rgba(180, 83, 9, 0.3);
  --color-ember-orange: #C2410C;
  --color-ember-orange-hover: #9A3412;
  --color-ember-glow: rgba(194, 65, 12, 0.3);
  --gradient-ember: linear-gradient(90deg, #B91C1C 0%, #C2410C 50%, #B45309 100%);
  --gradient-ember-vertical: linear-gradient(180deg, #B91C1C 0%, #C2410C 100%);
}

.lesson-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.lesson-hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: top center;
}

.lesson-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-dark-overlay);
}

.lesson-hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-8) 0;
}

.lesson-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: rgba(214, 40, 40, 0.15);
  border: 1px solid var(--color-fire-red);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-fire-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.lesson-title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-4xl);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.lesson-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.lesson-objectives {
  background: var(--gradient-card);
  border: var(--border-tactical);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  max-width: 800px;
}

.objectives-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-safety-yellow);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.objectives-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.objectives-list li {
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  position: relative;
}

.objectives-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-fire-red);
  font-weight: bold;
}

.lesson-meta {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.lesson-duration {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.lesson-progress-bar {
  height: 4px;
  background: var(--color-steel-gray-dark);
  position: relative;
}

.lesson-progress-fill {
  height: 100%;
  background: var(--gradient-ember);
  transition: width var(--transition-slow);
}

.content-section {
  padding: var(--space-12) 0;
  background: var(--color-academy-black);
}

.content-section:nth-child(even) {
  background: var(--color-academy-black-light);
}

.section-title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.section-intro {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 800px;
}

.definition-box {
  background: var(--gradient-card);
  border: var(--border-tactical-bright);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

.definition-term {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-safety-yellow);
  margin-bottom: var(--space-3);
}

.definition-text {
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.key-point {
  background: rgba(247, 184, 1, 0.1);
  border-left: 4px solid var(--color-safety-yellow);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-6) 0;
  font-style: italic;
}

.context-note {
  background: rgba(61, 79, 95, 0.2);
  border: var(--border-tactical);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-4) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.concept-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-safety-yellow);
  margin: 0 0 var(--space-3) 0;
}

.concept-leadin {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  color: var(--color-smoke-white);
  margin-bottom: var(--space-5);
}

.concept-text {
  line-height: 1.7;
  color: var(--color-smoke-white);
  margin-bottom: var(--space-4);
}

.real-world-example {
  background: var(--gradient-card);
  border: var(--border-tactical);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

.real-world-example h4 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-safety-yellow);
  margin: 0 0 var(--space-3) 0;
}

.real-world-example ul {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.real-world-example li {
  position: relative;
  padding-left: var(--space-5);
  line-height: 1.6;
}

.real-world-example li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-fire-red);
}

.real-world-example p {
  line-height: 1.6;
  margin: var(--space-2) 0;
}

/* --- Breakdown Grid (WHAT/WHO/WHY/WHEN/HOW) --- */

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.breakdown-item {
  background: rgba(61, 79, 95, 0.2);
  border: 1px solid rgba(247, 184, 1, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  transition: border-color var(--transition-fast);
}

.breakdown-item:hover {
  border-color: rgba(247, 184, 1, 0.4);
}

.breakdown-label {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-academy-black);
  background: var(--color-safety-yellow);
  padding: 2px var(--space-3);
  border-radius: var(--radius-sm);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}

.breakdown-item p {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin: 0;
  color: var(--color-smoke-white);
}

.comparison-table {
  margin: var(--space-6) 0;
  border: var(--border-tactical);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--gradient-card);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
  letter-spacing: 0.05em;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: var(--border-tactical);
}

.comparison-col {
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.comparison-col:first-child {
  border-right: var(--border-tactical);
}

.is-column {
  background: rgba(34, 197, 94, 0.05);
}

.is-not-column {
  background: rgba(214, 40, 40, 0.05);
}

.comparison-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.is-column .comparison-icon {
  fill: var(--color-success);
}

.is-not-column .comparison-icon {
  fill: var(--color-fire-red);
}

.framework-grid,
.principles-grid,
.objectives-grid,
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin: var(--space-6) 0;
}

@media (min-width: 768px) {
  .framework-grid,
  .principles-grid,
  .objectives-grid,
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.framework-card,
.principle-card,
.objective-card,
.audience-card,
.voice-card,
.takeaway-card {
  background: var(--gradient-card);
  border: var(--border-tactical);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
}

.framework-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--color-fire-red);
  border-left: 2px solid var(--color-fire-red);
}

/* Framework card sub-elements */
.framework-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(247, 184, 1, 0.15);
  color: var(--color-safety-yellow);
  font-weight: 800;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}

.framework-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-smoke-white);
  margin: 0 0 var(--space-2) 0;
}

.framework-definition {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 var(--space-3) 0;
}

.framework-explanation {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: var(--font-size-sm);
  margin: 0 0 var(--space-4) 0;
}

.framework-examples {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.framework-examples li {
  position: relative;
  padding: var(--space-3) var(--space-4);
  padding-left: var(--space-8);
  background: rgba(61, 79, 95, 0.2);
  border: 1px solid rgba(247, 184, 1, 0.1);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--color-smoke-white);
  line-height: 1.5;
}

.framework-examples li::before {
  content: '';
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-safety-yellow);
}

.framework-example {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(247, 184, 1, 0.06);
  border-left: 3px solid var(--color-safety-yellow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--font-size-sm);
  color: var(--color-smoke-white);
  line-height: 1.6;
}

/* ============================================
   MISSING SECTION STYLES - Audit Fix Batch
   ============================================ */

/* Roadmap Section (lesson-intro) */
.roadmap-section .roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.roadmap-section .roadmap-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: rgba(61, 79, 95, 0.25);
  border: 1px solid rgba(247, 184, 1, 0.12);
  border-radius: var(--radius-md);
}

.roadmap-section .roadmap-day-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(247, 184, 1, 0.15);
  border: 2px solid rgba(247, 184, 1, 0.4);
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-safety-yellow);
}

.roadmap-section .roadmap-card-body {
  flex: 1;
  min-width: 0;
}

.roadmap-section .roadmap-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-smoke-white);
  margin-bottom: 2px;
}

.roadmap-section .roadmap-description {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.roadmap-section .roadmap-duration {
  flex-shrink: 0;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.roadmap-section .roadmap-total {
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: rgba(247, 184, 1, 0.06);
  border: 1px solid rgba(247, 184, 1, 0.2);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--color-smoke-white);
  text-align: center;
}

@media (max-width: 640px) {
  .roadmap-section .roadmap-grid { grid-template-columns: 1fr; }
}

/* Instructions Section (lesson-intro) */
.instructions-section .instructions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.instructions-section .instruction-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-tactical);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.instructions-section .instruction-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-safety-yellow);
  color: #1a1a2e;
  font-weight: 800;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-3);
}

.instructions-section .instruction-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-smoke-white);
  margin-bottom: var(--space-2);
}

.instructions-section .instruction-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.pro-tip {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: rgba(247, 184, 1, 0.06);
  border-left: 3px solid var(--color-safety-yellow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-smoke-white);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* Summary Section Sub-Elements */
.summary-header {
  margin-bottom: var(--space-5);
}

.summary-recap {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.key-takeaways {
  margin-bottom: var(--space-6);
}

.takeaway-point {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-smoke-white);
  margin-bottom: var(--space-2);
}

.takeaway-detail {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.up-next {
  padding: var(--space-5);
  background: rgba(247, 184, 1, 0.06);
  border: 1px solid rgba(247, 184, 1, 0.2);
  border-radius: var(--radius-lg);
}

.next-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-safety-yellow);
  margin-bottom: var(--space-2);
}

.next-preview {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Process Section Sub-Elements */
.process-step-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.process-actions {
  margin-top: var(--space-3);
}

.process-actions h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-smoke-white);
  margin-bottom: var(--space-2);
}

.process-actions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-actions li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.process-actions li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-safety-yellow);
}

.process-tip {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(34, 197, 94, 0.08);
  border-left: 3px solid var(--color-success);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--font-size-sm);
  color: var(--color-smoke-white);
  line-height: 1.6;
}

.process-warning {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(214, 40, 40, 0.08);
  border-left: 3px solid var(--color-fire-red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--font-size-sm);
  color: var(--color-smoke-white);
  line-height: 1.6;
  font-weight: 500;
}

/* Audience Section Sub-Elements */
.audience-group {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-smoke-white);
  margin-bottom: var(--space-2);
}

.audience-examples {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.scope-box {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: rgba(247, 184, 1, 0.06);
  border: 1px solid rgba(247, 184, 1, 0.2);
  border-radius: var(--radius-lg);
}

/* Key Takeaway (comparison section) */
.key-takeaway {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: rgba(247, 184, 1, 0.08);
  border: 1px solid rgba(247, 184, 1, 0.25);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  color: var(--color-smoke-white);
  line-height: 1.7;
}

/* Hero Section Sub-Elements */
.hero-content-section {
  padding-bottom: var(--space-8);
}

.hero-text-content {
  max-width: 720px;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.motivational-note {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: rgba(247, 184, 1, 0.06);
  border-left: 3px solid var(--color-safety-yellow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-smoke-white);
  font-size: var(--font-size-sm);
  font-style: italic;
  line-height: 1.6;
}

/* Objectives Section Sub-Elements */
.objective-icon {
  flex-shrink: 0;
  display: inline-flex;
  margin-right: var(--space-2);
}

/* Quiz Instructions */
.quiz-instructions {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

/* Example / Conclusion */
.example-conclusion {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: rgba(247, 184, 1, 0.06);
  border-left: 3px solid var(--color-safety-yellow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--font-size-sm);
  color: var(--color-smoke-white);
  font-style: italic;
  line-height: 1.6;
}

/* Lesson Completion */
.lesson-completion {
  text-align: center;
  padding: var(--space-6) 0;
}

.complete-lesson-btn {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  background: var(--color-safety-yellow);
  color: #1a1a2e;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--font-size-base);
  transition: background var(--transition-base), transform var(--transition-base);
}

.complete-lesson-btn:hover {
  background: var(--color-ember-orange);
  transform: translateY(-1px);
}

/* Generic Content Section Sub-Elements */
.section-headline {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-smoke-white);
  margin-bottom: var(--space-4);
}

.instructions-box {
  padding: var(--space-4) var(--space-5);
  background: rgba(247, 184, 1, 0.06);
  border: 1px solid rgba(247, 184, 1, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}

.exam-launch-container {
  text-align: center;
  margin: var(--space-6) 0;
}

.exam-launch-btn {
  display: inline-block;
  padding: var(--space-4) var(--space-10);
  font-size: var(--font-size-lg);
  font-weight: 700;
  text-decoration: none;
}

.exam-note {
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.review-numbered-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.review-numbered-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(61, 79, 95, 0.3);
  border: 1px solid rgba(247, 184, 1, 0.15);
  border-radius: var(--radius-md);
}

.review-item-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(247, 184, 1, 0.2);
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--color-safety-yellow);
}

.review-item-text {
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .review-numbered-grid {
    grid-template-columns: 1fr;
  }
}

.definition-box-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-safety-yellow);
  margin-bottom: var(--space-3);
}

/* Scenario Walkthrough Sub-Elements */
.scenario-header {
  margin-bottom: var(--space-4);
}

.scenario-question {
  margin-bottom: var(--space-4);
  font-weight: 500;
  color: var(--color-smoke-white);
}

/* Comparison Panels */
.comparison-panels {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Hotspot Count */
.hotspot-count {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

/* Real World Example - support both h3 and h4 */
.real-world-example h3 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-safety-yellow);
  margin-bottom: var(--space-3);
}

/* Characteristic sections - Lesson 3 management characteristics */
.characteristic-section .char-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.characteristic-section .char-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-safety-yellow) 0%, rgba(247, 184, 1, 0.7) 100%);
  color: #1a1a2e;
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: var(--radius-lg);
  line-height: 1;
}

.characteristic-section .char-header-text {
  flex: 1;
}

.characteristic-section .char-definition {
  margin-top: var(--space-2);
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  line-height: 1.6;
  font-style: italic;
}

.characteristic-section .char-why-box {
  background: rgba(247, 184, 1, 0.06);
  border: 1px solid rgba(247, 184, 1, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
}

.characteristic-section .char-why-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-safety-yellow);
  margin-bottom: var(--space-2);
}

.characteristic-section .char-why-box p {
  color: var(--color-smoke-white);
  line-height: 1.7;
  margin: 0;
}

.characteristic-section .char-list-block {
  margin-bottom: var(--space-5);
}

.characteristic-section .char-list-label {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-smoke-white);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-tactical);
}

.characteristic-section .char-facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.characteristic-section .char-facility-card {
  background: var(--card-bg);
  border: 1px solid var(--border-tactical);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.characteristic-section .char-facility-name {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-safety-yellow);
  margin-bottom: var(--space-2);
}

.characteristic-section .char-facility-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .characteristic-section .char-header {
    flex-direction: column;
    gap: var(--space-3);
  }
  .characteristic-section .char-number {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .characteristic-section .char-facilities-grid {
    grid-template-columns: 1fr;
  }
}

/* Principles v2 - numbered expandable cards */
.principles-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin: var(--space-6) 0;
}

.principle-card-v2 {
  background: var(--gradient-card);
  border: var(--border-tactical);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.principle-card-v2:hover,
.principle-card-v2.is-open {
  border-color: rgba(247, 184, 1, 0.4);
}

.principle-header {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
}

.principle-number-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  width: 56px;
}

.principle-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-safety-yellow);
  letter-spacing: -0.04em;
}

.principle-icon {
  width: 20px;
  height: 20px;
  color: rgba(247, 184, 1, 0.5);
}

.principle-icon svg {
  width: 100%;
  height: 100%;
}

.principle-headline {
  flex: 1;
  min-width: 0;
}

.principle-card-v2 .principle-name {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-smoke-white);
  margin: 0 0 4px 0;
}

.principle-card-v2 .principle-definition {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.principle-toggle {
  background: none;
  border: var(--border-tactical);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.principle-toggle:hover {
  border-color: var(--color-safety-yellow);
  background: rgba(247, 184, 1, 0.1);
}

.principle-chevron {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.principle-card-v2.is-open .principle-chevron {
  transform: rotate(180deg);
}

.principle-detail {
  padding: 0 var(--space-6) var(--space-6) var(--space-6);
  margin-left: 76px;
  border-top: var(--border-tactical);
  padding-top: var(--space-5);
}

.principle-detail[hidden] {
  display: none;
}

.principle-explanation-box {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.principle-explanation-box p {
  margin: 0;
}

.principle-scenario {
  background: rgba(247, 184, 1, 0.06);
  border-left: 3px solid var(--color-safety-yellow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-4);
}

.principle-scenario-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-safety-yellow);
  margin-bottom: var(--space-2);
}

.principle-scenario p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .principle-header {
    gap: var(--space-3);
    padding: var(--space-4);
  }
  .principle-number-icon {
    width: 40px;
  }
  .principle-number {
    font-size: 1.5rem;
  }
  .principle-detail {
    margin-left: 0;
    padding: 0 var(--space-4) var(--space-4);
  }
}

.quiz-section {
  background: var(--color-academy-black-light);
}

.quiz-container {
  background: var(--gradient-card);
  border: var(--border-tactical);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-6);
}

.quiz-progress-indicator {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-safety-yellow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-6);
  text-align: center;
  padding: var(--space-3);
  background: rgba(247, 184, 1, 0.1);
  border-radius: var(--radius-md);
}

.current-question-number {
  color: var(--color-fire-red);
  font-size: var(--font-size-base);
}

.quiz-question {
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid rgba(247, 184, 1, 0.2);
}

.quiz-question:last-of-type {
  border-bottom: none;
  margin-bottom: var(--space-4);
}

.question-number {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-safety-yellow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.question-text {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.question-options {
  margin: var(--space-4) 0;
}

.option-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  background: rgba(61, 79, 95, 0.2);
}

.option-label:hover {
  background: rgba(247, 184, 1, 0.1);
  border-color: rgba(247, 184, 1, 0.3);
}

.option-input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

.option-text {
  line-height: 1.5;
}

.quiz-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.submit-quiz-btn {
  min-width: 200px;
}

.quiz-prev-btn,
.quiz-next-btn {
  min-width: 180px;
}

.question-feedback {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
}

.feedback-correct {
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
}

.feedback-correct svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.feedback-incorrect {
  color: var(--color-fire-red);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
}

.feedback-incorrect svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.quiz-results {
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-lg);
  text-align: center;
}

.results-score {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-success);
}

.lesson-navigation {
  background: var(--gradient-card);
  border-top: var(--border-tactical);
  padding: var(--space-8) 0;
  margin-top: var(--space-12);
}

.lesson-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  align-items: center;
}

@media (max-width: 767px) {
  .lesson-nav-inner {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .lesson-nav-prev,
  .lesson-nav-next,
  .lesson-nav-home {
    justify-self: stretch !important;
  }
}

.lesson-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: transparent;
  border: var(--border-tactical);
  color: var(--color-smoke-white);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.lesson-nav-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.lesson-nav-btn:hover {
  border-color: var(--color-safety-yellow);
  background: rgba(247, 184, 1, 0.1);
  transform: translateY(-1px);
}

.lesson-nav-btn:active {
  transform: translateY(0);
}

.lesson-nav-next {
  justify-self: end;
}

.lesson-nav-home {
  justify-self: center;
}

.lesson-nav-prev {
  justify-self: start;
}

.process-timeline {
  position: relative;
  margin: var(--space-8) 0;
}

.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.process-step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-ember-vertical);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--glow-orange);
}

.process-step-content {
  background: var(--gradient-card);
  border: var(--border-tactical);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.process-step-name {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.summary-section {
  background: var(--gradient-card) !important;
  border-top: 2px solid var(--color-safety-yellow);
}

.summary-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.takeaways-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

@media (min-width: 768px) {
  .takeaways-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.up-next {
  background: rgba(247, 127, 0, 0.1);
  border: 1px solid var(--color-ember-orange);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-8);
  text-align: center;
}

.next-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-ember-orange);
  margin: var(--space-3) 0;
}

/* Voice of Experience Section */
.voices-section {
  background: var(--color-academy-black);
}

.voice-card-single {
  background: var(--gradient-card);
  border: var(--border-tactical);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin: var(--space-6) 0;
  position: relative;
  overflow: hidden;
}

.voice-card-single::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-size: 120px;
  font-weight: 700;
  color: rgba(247, 184, 1, 0.1);
  line-height: 1;
  font-family: Georgia, serif;
}

.voices-tabs {
  margin: var(--space-6) 0;
}

.voices-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  border-bottom: 2px solid rgba(247, 184, 1, 0.2);
  padding-bottom: var(--space-2);
}

.voice-tab-btn {
  padding: var(--space-3) var(--space-5);
  background: transparent;
  border: 1px solid rgba(247, 184, 1, 0.2);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.voice-tab-btn:hover {
  background: rgba(247, 184, 1, 0.1);
  border-color: rgba(247, 184, 1, 0.4);
  color: var(--color-smoke-white);
}

.voice-tab-btn.active {
  background: rgba(247, 184, 1, 0.15);
  border-color: var(--color-safety-yellow);
  border-bottom-color: transparent;
  color: var(--color-safety-yellow);
  position: relative;
  bottom: -2px;
}

.voices-tab-content {
  position: relative;
  min-height: 200px;
}

.voice-tab-panel {
  background: var(--gradient-card);
  border: var(--border-tactical);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
}

.voice-tab-panel[hidden] {
  display: none;
}

.voice-tab-panel.active {
  display: block;
}

.voice-quote {
  font-size: var(--font-size-lg);
  line-height: 1.6;
  font-style: italic;
  color: var(--color-smoke-white);
  margin: 0 0 var(--space-6) 0;
  position: relative;
  padding-left: var(--space-6);
  border-left: 4px solid var(--color-safety-yellow);
}

/* Image Zoom Lightbox */
.zoomable-image {
  cursor: zoom-in;
  transition: opacity var(--transition-base);
}

.zoomable-image:hover {
  opacity: 0.85;
}

.zoom-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-style: italic;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.image-lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.image-lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background var(--transition-base);
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.voice-quote-inline {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  background: rgba(247, 184, 1, 0.04);
  border: 1px solid rgba(247, 184, 1, 0.15);
  border-radius: var(--radius-lg);
}

.voice-quote-inline .voice-quote {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-3);
}

.voice-quote-inline .voice-attribution {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  border-top: none;
  padding-top: 0;
}

.voice-attribution {
  padding-top: var(--space-4);
  border-top: 1px solid rgba(247, 184, 1, 0.2);
}

.voice-name {
  font-weight: 700;
  font-size: var(--font-size-base);
  color: var(--color-smoke-white);
  margin-bottom: var(--space-1);
}

.voice-title {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

.voice-audio-player {
  margin: var(--space-4) 0;
  padding: var(--space-3);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

.voice-audio-player audio {
  width: 100%;
  max-width: 500px;
  height: 40px;
}

.voices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin: var(--space-6) 0;
}

@media (min-width: 768px) {
  .voices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.voice-card {
  background: var(--gradient-card);
  border: var(--border-tactical);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
}

/* ============================================
   MATCHING QUESTIONS
   ============================================ */

.matching-question {
  /* Matching questions have special styling */
}

.matching-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin: var(--space-6) 0;
}

@media (min-width: 768px) {
  .matching-container {
    grid-template-columns: 1fr 2fr;
  }
}

.matching-terms {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.matching-term {
  background: rgba(247, 184, 1, 0.1);
  border: 1px solid rgba(247, 184, 1, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.term-label {
  font-weight: 700;
  color: var(--color-safety-yellow);
  font-size: var(--font-size-lg);
  min-width: 30px;
  flex-shrink: 0;
}

.term-text {
  line-height: 1.4;
}

.matching-definitions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.matching-definition-row {
  background: rgba(61, 79, 95, 0.3);
  border: 1px solid rgba(247, 184, 1, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .matching-definition-row {
    flex-direction: row;
    align-items: center;
  }
}

.definition-text {
  flex: 1;
  line-height: 1.5;
  color: var(--color-smoke-white);
}

.matching-select {
  min-width: 120px;
  padding: var(--space-2) var(--space-3);
  background: var(--color-academy-black);
  border: 1px solid rgba(247, 184, 1, 0.3);
  border-radius: var(--radius-sm);
  color: var(--color-smoke-white);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.matching-select:hover {
  border-color: var(--color-safety-yellow);
  background: rgba(247, 184, 1, 0.05);
}

.matching-select:focus {
  outline: 2px solid var(--color-safety-yellow);
  outline-offset: 2px;
  border-color: var(--color-safety-yellow);
}

.matching-select option {
  background: var(--color-academy-black);
  color: var(--color-smoke-white);
  padding: var(--space-2);
}

/* Correct/Incorrect states for matching */
.matching-question.correct .matching-definition-row {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--color-success);
}

.matching-question.incorrect .matching-definition-row {
  background: rgba(214, 40, 40, 0.15);
  border-color: var(--color-fire-red);
}

/* ============================================
   DIAGRAM AND VISUAL STYLES
   ============================================ */

.diagram-container {
  margin: var(--space-6) 0;
  text-align: center;
}

.content-diagram {
  max-width: 100%;
  margin: 0 auto;
  background: rgba(61, 79, 95, 0.3);
  border: 1px solid rgba(247, 184, 1, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.diagram-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  margin: 0 auto;
}

.diagram-caption {
  margin-top: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-safety-yellow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.model-diagrams-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin: var(--space-6) 0;
}

.model-diagram {
  background: rgba(61, 79, 95, 0.3);
  border: 1px solid rgba(247, 184, 1, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
}

.model-diagram img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.model-diagram figcaption {
  font-size: var(--font-size-sm);
  color: var(--color-safety-yellow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   RESOURCE CATEGORY STYLES
   ============================================ */

.resource-category {
  margin: var(--space-8) 0;
}

.resource-category-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-safety-yellow);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid rgba(247, 184, 1, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.resource-category .framework-card a {
  color: var(--color-safety-yellow);
  word-break: break-all;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.resource-category .framework-card a:hover {
  color: var(--color-fire-red);
  text-decoration: underline;
}

/* ============================================
   INTERACTIVE COMPONENTS - SHARED STYLES
   ============================================ */

.interactive-section {
  background: var(--color-academy-black-light);
}

.interactive-instructions {
  font-size: var(--font-size-base);
  color: var(--color-smoke-white);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.interactive-mobile-instructions {
  display: none;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  font-style: italic;
}

@media (max-width: 768px) {
  .interactive-mobile-instructions { display: block; }
}

.interactive-container {
  background: var(--gradient-card);
  border: var(--border-tactical);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-6);
}

.interactive-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(247, 184, 1, 0.15);
}

.interactive-feedback {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  text-align: center;
}

.interactive-feedback .feedback-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--color-success);
  font-weight: 600;
  padding: var(--space-4);
  background: rgba(46, 125, 50, 0.15);
  border-radius: var(--radius-md);
  border: 1px solid rgba(46, 125, 50, 0.3);
}

.interactive-feedback .feedback-success svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.interactive-feedback .feedback-partial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--color-safety-yellow);
  font-weight: 600;
  padding: var(--space-4);
  background: rgba(247, 184, 1, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(247, 184, 1, 0.3);
}

.interactive-feedback .feedback-partial svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.interactive-reset-btn {
  min-width: 120px;
}

.interactive-check-btn {
  min-width: 160px;
}

/* --- Drag & Drop Categorize --- */

.dd-source-pool {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(61, 79, 95, 0.2);
  border-radius: var(--radius-md);
  min-height: 60px;
  margin-bottom: var(--space-6);
}

.dd-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(247, 184, 1, 0.12);
  border: 1px solid rgba(247, 184, 1, 0.35);
  border-radius: var(--radius-md);
  color: var(--color-smoke-white);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: grab;
  user-select: none;
  transition: all var(--transition-fast);
}

.dd-item:hover {
  background: rgba(247, 184, 1, 0.22);
  border-color: var(--color-safety-yellow);
  transform: translateY(-1px);
}

.dd-item:focus {
  outline: 3px solid var(--color-safety-yellow);
  outline-offset: 2px;
}

.dd-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.dd-item.selected {
  background: rgba(247, 184, 1, 0.3);
  border-color: var(--color-safety-yellow);
  box-shadow: 0 0 0 2px var(--color-safety-yellow);
}

.dd-item.correct {
  background: rgba(46, 125, 50, 0.2);
  border-color: var(--color-success);
}

.dd-item.incorrect {
  background: rgba(198, 40, 40, 0.2);
  border-color: var(--color-error);
}

.dd-item-icon {
  opacity: 0.5;
  display: flex;
}

.dd-item-icon svg {
  width: 16px;
  height: 16px;
}

.dd-zones-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.dd-zone {
  background: rgba(61, 79, 95, 0.15);
  border: 2px dashed rgba(247, 184, 1, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  min-height: 150px;
  transition: all var(--transition-fast);
}

.dd-zone.drag-over {
  border-color: var(--color-safety-yellow);
  background: rgba(247, 184, 1, 0.08);
  box-shadow: inset 0 0 20px rgba(247, 184, 1, 0.05);
}

.dd-zone-header {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(247, 184, 1, 0.15);
}

.dd-zone-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-safety-yellow);
  margin: 0;
}

.dd-zone-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin: var(--space-1) 0 0;
}

.dd-zone-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  min-height: 40px;
}

/* --- Step Sequencing --- */

.seq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.seq-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(61, 79, 95, 0.2);
  border: 1px solid rgba(247, 184, 1, 0.2);
  border-radius: var(--radius-md);
  cursor: grab;
  user-select: none;
  transition: all var(--transition-fast);
}

.seq-item:hover {
  background: rgba(247, 184, 1, 0.1);
  border-color: rgba(247, 184, 1, 0.4);
}

.seq-item:focus {
  outline: 3px solid var(--color-safety-yellow);
  outline-offset: 2px;
}

.seq-item.dragging {
  opacity: 0.5;
}

.seq-item.correct {
  background: rgba(46, 125, 50, 0.15);
  border-color: var(--color-success);
}

.seq-item.incorrect {
  background: rgba(198, 40, 40, 0.15);
  border-color: var(--color-error);
}

.seq-item-handle {
  opacity: 0.4;
  cursor: grab;
  display: flex;
}

.seq-item-handle svg {
  width: 20px;
  height: 20px;
}

.seq-item-number {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 184, 1, 0.2);
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--color-safety-yellow);
  flex-shrink: 0;
}

.seq-item-text {
  flex: 1;
  font-weight: 500;
}

.seq-item-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* --- Matching Interactive --- */

.match-columns {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: var(--space-2);
  align-items: start;
}

@media (max-width: 768px) {
  .match-columns {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .match-connections { display: none; }
}

.match-column-header {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-safety-yellow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.match-left-item, .match-right-item {
  padding: var(--space-3) var(--space-4);
  background: rgba(61, 79, 95, 0.2);
  border: 1px solid rgba(247, 184, 1, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--font-size-sm);
}

.match-left-item:hover, .match-right-item:hover {
  background: rgba(247, 184, 1, 0.1);
  border-color: rgba(247, 184, 1, 0.4);
}

.match-left-item:focus, .match-right-item:focus {
  outline: 3px solid var(--color-safety-yellow);
  outline-offset: 2px;
}

.match-left-item.selected, .match-right-item.selected {
  background: rgba(247, 184, 1, 0.2);
  border-color: var(--color-safety-yellow);
  box-shadow: 0 0 0 2px var(--color-safety-yellow);
}

.match-left-item.matched, .match-right-item.matched {
  background: rgba(247, 184, 1, 0.08);
  border-color: rgba(247, 184, 1, 0.5);
  opacity: 0.7;
}

.match-left-item.correct, .match-right-item.correct {
  background: rgba(46, 125, 50, 0.15);
  border-color: var(--color-success);
  opacity: 1;
}

.match-left-item.incorrect, .match-right-item.incorrect {
  background: rgba(198, 40, 40, 0.15);
  border-color: var(--color-error);
  opacity: 1;
}

.match-connections {
  position: relative;
  min-height: 40px;
}

.match-connections svg {
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* Match pair number badges */
.match-pair-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: auto;
}

.match-left-item .match-pair-badge,
.match-right-item .match-pair-badge {
  display: none;
}

.match-left-item.matched .match-pair-badge,
.match-right-item.matched .match-pair-badge {
  display: inline-flex;
}

/* Match pair colors - 9 distinct colors for up to 9 pairs */
.match-pair-1 .match-pair-badge { background: #D62828; color: white; }
.match-pair-2 .match-pair-badge { background: #F77F00; color: white; }
.match-pair-3 .match-pair-badge { background: #F7B801; color: #0D0D0D; }
.match-pair-4 .match-pair-badge { background: #2E7D32; color: white; }
.match-pair-5 .match-pair-badge { background: #1565C0; color: white; }
.match-pair-6 .match-pair-badge { background: #7B1FA2; color: white; }
.match-pair-7 .match-pair-badge { background: #00838F; color: white; }
.match-pair-8 .match-pair-badge { background: #AD1457; color: white; }
.match-pair-9 .match-pair-badge { background: #5D4037; color: white; }

.match-pair-1 { border-left: 3px solid #D62828 !important; }
.match-pair-2 { border-left: 3px solid #F77F00 !important; }
.match-pair-3 { border-left: 3px solid #F7B801 !important; }
.match-pair-4 { border-left: 3px solid #2E7D32 !important; }
.match-pair-5 { border-left: 3px solid #1565C0 !important; }
.match-pair-6 { border-left: 3px solid #7B1FA2 !important; }
.match-pair-7 { border-left: 3px solid #00838F !important; }
.match-pair-8 { border-left: 3px solid #AD1457 !important; }
.match-pair-9 { border-left: 3px solid #5D4037 !important; }

/* --- Scenario Walkthrough --- */

.scenario-progress {
  margin-bottom: var(--space-6);
}

.scenario-progress-bar {
  height: 4px;
  background: rgba(61, 79, 95, 0.4);
  border-radius: 2px;
  overflow: hidden;
}

.scenario-progress-fill {
  height: 100%;
  background: var(--color-safety-yellow);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.scenario-step {
  padding: var(--space-6);
  background: rgba(61, 79, 95, 0.15);
  border-radius: var(--radius-md);
  border: 1px solid rgba(247, 184, 1, 0.15);
}

.scenario-badge {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-safety-yellow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.scenario-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.scenario-description {
  line-height: 1.7;
  margin-bottom: var(--space-4);
  color: var(--color-smoke-white);
}

.scenario-prompt {
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-safety-yellow);
}

.scenario-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.scenario-option-btn {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: rgba(61, 79, 95, 0.2);
  border: 1px solid rgba(247, 184, 1, 0.2);
  border-radius: var(--radius-md);
  color: var(--color-smoke-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--font-size-sm);
}

.scenario-option-btn:hover {
  background: rgba(247, 184, 1, 0.1);
  border-color: rgba(247, 184, 1, 0.4);
}

.scenario-option-btn.selected-correct {
  background: rgba(46, 125, 50, 0.2);
  border-color: var(--color-success);
}

.scenario-option-btn.selected-incorrect {
  background: rgba(198, 40, 40, 0.2);
  border-color: var(--color-error);
}

.scenario-option-btn:disabled {
  cursor: default;
  opacity: 0.7;
}

.scenario-option-feedback {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  background: rgba(61, 79, 95, 0.2);
}

.scenario-outcome {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: rgba(46, 125, 50, 0.1);
  border-left: 3px solid var(--color-success);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.scenario-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* --- Side-by-Side Comparison --- */

.comparison-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  border-bottom: 2px solid rgba(247, 184, 1, 0.15);
  padding-bottom: var(--space-2);
  flex-wrap: wrap;
}

.comparison-tab-btn {
  padding: var(--space-2) var(--space-4);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.comparison-tab-btn:hover {
  color: var(--color-smoke-white);
  background: rgba(247, 184, 1, 0.08);
}

.comparison-tab-btn.active {
  color: var(--color-safety-yellow);
  border-color: rgba(247, 184, 1, 0.3);
  background: rgba(247, 184, 1, 0.1);
  border-bottom-color: transparent;
}

.comparison-panel {
  padding: var(--space-6);
  background: rgba(61, 79, 95, 0.15);
  border-radius: var(--radius-md);
  border: 1px solid rgba(247, 184, 1, 0.1);
}

.comparison-panel-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-safety-yellow);
  margin-bottom: var(--space-3);
}

.comparison-panel-desc {
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.comparison-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}

.comparison-features li {
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
  border-bottom: 1px solid rgba(61, 79, 95, 0.3);
}

.comparison-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--color-safety-yellow);
  border-radius: 50%;
}

.comparison-strengths h4, .comparison-limitations h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.comparison-strengths h4 { color: var(--color-success); }
.comparison-limitations h4 { color: var(--color-error); }

.comparison-strengths ul, .comparison-limitations ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.comparison-strengths li, .comparison-limitations li {
  padding: var(--space-1) 0;
  font-size: var(--font-size-sm);
}

/* --- Clickable Diagram --- */

.diagram-canvas {
  position: relative;
  padding: var(--space-4) var(--space-8) 0;
}

.diagram-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: rgba(247, 184, 1, 0.3);
}

.diagram-nodes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  position: relative;
}

.diagram-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  background: rgba(61, 79, 95, 0.3);
  border: 2px solid rgba(247, 184, 1, 0.25);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 140px;
  text-align: center;
  color: var(--color-smoke-white);
}

.diagram-node:hover {
  background: rgba(247, 184, 1, 0.12);
  border-color: var(--color-safety-yellow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.diagram-node:focus {
  outline: 3px solid var(--color-safety-yellow);
  outline-offset: 2px;
}

.diagram-node.active {
  background: rgba(247, 184, 1, 0.2);
  border-color: var(--color-safety-yellow);
  box-shadow: 0 0 15px rgba(247, 184, 1, 0.2);
}

.diagram-node-icon {
  font-size: 1.5rem;
}

.diagram-node-label {
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.diagram-details-panel {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(247, 184, 1, 0.15);
}

.diagram-prompt {
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
}

.diagram-detail {
  padding: var(--space-6);
  background: rgba(247, 184, 1, 0.08);
  border: 1px solid rgba(247, 184, 1, 0.2);
  border-radius: var(--radius-md);
  position: relative;
  animation: fadeIn var(--transition-base);
}

.diagram-detail-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-safety-yellow);
  margin-bottom: var(--space-3);
}

.diagram-detail-text {
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.diagram-detail-list {
  list-style: disc;
  padding-left: var(--space-6);
}

.diagram-detail-list li {
  padding: var(--space-1) 0;
  font-size: var(--font-size-sm);
}

.diagram-detail-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.diagram-detail-close:hover {
  color: var(--color-smoke-white);
  background: rgba(247, 184, 1, 0.15);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .diagram-canvas {
    padding: var(--space-2) var(--space-3) 0;
  }
  .diagram-nodes {
    gap: var(--space-2);
  }
  .diagram-node {
    padding: var(--space-2) var(--space-3);
    min-width: 0;
    flex: 1 1 auto;
  }
  .diagram-node-icon {
    font-size: 1.1rem;
  }
  .diagram-node-label {
    font-size: var(--font-size-xs);
  }
  .diagram-detail {
    padding: var(--space-3);
  }
}

/* --- Calculator --- */

.calc-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
}

.calc-label {
  font-weight: 600;
  color: var(--color-safety-yellow);
  font-size: var(--font-size-base);
}

.calc-slider {
  width: 100%;
  max-width: 400px;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(61, 79, 95, 0.4);
  border-radius: 4px;
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-safety-yellow);
  cursor: pointer;
  border: 2px solid var(--color-academy-black);
}

.calc-slider:focus {
  outline: 3px solid var(--color-safety-yellow);
  outline-offset: 4px;
}

.calc-value-display {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.calc-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-safety-yellow);
}

.calc-unit {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.calc-result {
  text-align: center;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.calc-result.optimal {
  background: rgba(46, 125, 50, 0.15);
  border: 1px solid rgba(46, 125, 50, 0.3);
}

.calc-result.warning {
  background: rgba(247, 184, 1, 0.1);
  border: 1px solid rgba(247, 184, 1, 0.3);
}

.calc-result.danger {
  background: rgba(198, 40, 40, 0.15);
  border: 1px solid rgba(198, 40, 40, 0.3);
}

.calc-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-bottom: var(--space-2);
}

.calc-result.optimal .calc-indicator { background: var(--color-success); }
.calc-result.warning .calc-indicator { background: var(--color-safety-yellow); }
.calc-result.danger .calc-indicator { background: var(--color-error); }

.calc-message {
  font-weight: 600;
  font-size: var(--font-size-base);
}

.calc-formula {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

/* --- Hotspot Label --- */

.hotspot-image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.hotspot-base-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.hotspot-pin {
  position: absolute;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.hotspot-dot {
  display: block;
  width: 16px;
  height: 16px;
  background: var(--color-safety-yellow);
  border: 2px solid var(--color-academy-black);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.hotspot-pulse {
  display: block;
  width: 32px;
  height: 32px;
  background: rgba(247, 184, 1, 0.3);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: hotspotPulse 2s ease-in-out infinite;
}

@keyframes hotspotPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.hotspot-pin:focus .hotspot-dot {
  outline: 3px solid var(--color-safety-yellow);
  outline-offset: 4px;
}

.hotspot-pin.explored .hotspot-dot {
  background: var(--color-success);
}

.hotspot-pin.explored .hotspot-pulse {
  animation: none;
  opacity: 0;
}

.hotspot-tooltip {
  position: absolute;
  z-index: 10;
  background: var(--color-academy-black);
  border: 1px solid rgba(247, 184, 1, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  max-width: 300px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn var(--transition-fast);
}

.hotspot-tooltip-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-safety-yellow);
  margin-bottom: var(--space-2);
}

.hotspot-tooltip-text {
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.hotspot-legend {
  text-align: center;
  margin-top: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.hotspot-explored {
  font-weight: 700;
  color: var(--color-safety-yellow);
}

/* --- Practice Quiz Overrides --- */

.practice-quiz-section .quiz-container {
  border-color: rgba(247, 119, 0, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .hotspot-pulse { animation: none; }
  .diagram-detail { animation: none; }
  .dd-item, .seq-item, .match-left-item, .match-right-item,
  .diagram-node, .scenario-option-btn { transition: none; }
}

/* ============================================
   VIDEO SLIDESHOW PLAYER - FEMA Rookie Academy
   ============================================ */

.video-player-section {
  margin: 2rem 0 3rem 0;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(247, 184, 1, 0.12);
}

.video-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #c62828 0%, #8e1515 100%);
  color: white;
}

.video-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-family-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.video-title svg {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.video-duration {
  font-family: var(--font-family-base);
  font-size: 0.8125rem;
  opacity: 0.9;
  background: rgba(255,255,255,0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.video-container {
  position: relative;
  background: #0f172a;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-scenes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.video-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  overflow: hidden;
}

.video-scene.active {
  opacity: 1;
  visibility: visible;
}

@keyframes ken-burns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.scene-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.video-scene.active .scene-background {
  animation: ken-burns 15s ease-out forwards;
}

.scene-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.3) 100%);
}

.scene-content {
  width: 55%;
  padding: 2rem 2.5rem;
  padding-bottom: 5rem;
  color: #fff;
}

.scene-heading {
  font-family: var(--font-family-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  color: #fff;
  max-width: 80%;
}

.scene-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-safety-yellow), #f5c842);
  margin-top: 0.75rem;
  border-radius: 2px;
}

.scene-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 70%;
}

.scene-bullets li {
  font-family: var(--font-family-base);
  font-size: clamp(0.875rem, 1.5vw, 1.0625rem);
  padding: 0.625rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.scene-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--color-safety-yellow);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(247, 184, 1, 0.5);
}

@keyframes bullet-enter {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}

.video-scene.active .scene-bullets li {
  animation: bullet-enter 0.5s ease-out forwards;
}

.video-scene.active .scene-bullets li:nth-child(1) { animation-delay: 0.2s; opacity: 0; }
.video-scene.active .scene-bullets li:nth-child(2) { animation-delay: 0.35s; opacity: 0; }
.video-scene.active .scene-bullets li:nth-child(3) { animation-delay: 0.5s; opacity: 0; }
.video-scene.active .scene-bullets li:nth-child(4) { animation-delay: 0.65s; opacity: 0; }
.video-scene.active .scene-bullets li:nth-child(5) { animation-delay: 0.8s; opacity: 0; }

/* Attribution line for quote scenes */
.scene-attribution {
  font-family: var(--font-family-base);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  font-style: italic;
}

/* Video Controls */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, transparent 100%);
  opacity: 1;
  transition: opacity 0.3s;
}

.video-container:not(:hover) .video-controls { opacity: 0.4; }
.video-container:hover .video-controls { opacity: 1; }

.video-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
}

.video-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.4);
  transform: scale(1.05);
}

.video-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.video-btn svg { width: 18px; height: 18px; }

.video-play-pause {
  width: 52px;
  height: 52px;
  background: var(--color-safety-yellow);
  border: 2px solid #f5c842;
}

.video-play-pause:hover {
  background: #f5c842;
  transform: scale(1.08);
}

.video-play-pause svg { width: 22px; height: 22px; color: #1a1a1a; }

.video-progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.progress-bar {
  height: 5px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-safety-yellow), #f5c842);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  font-family: var(--font-family-base);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.video-instructions {
  padding: 0.75rem 1.5rem;
  background: var(--card-bg);
  border-top: 1px solid rgba(247, 184, 1, 0.12);
  text-align: center;
  font-family: var(--font-family-base);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Closed Captions */
.video-caption {
  position: absolute;
  bottom: 80px;
  left: 10%;
  right: 10%;
  text-align: center;
  z-index: 90;
  pointer-events: none;
  transition: opacity 0.3s;
}

.video-caption.hidden { opacity: 0; }

.video-caption-text {
  display: inline-block;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 100%;
  font-family: var(--font-family-base);
  text-shadow: none;
}

.video-btn.video-cc.active {
  background: rgba(247, 184, 1, 0.4);
  border-color: var(--color-safety-yellow);
}

.video-btn.video-cc svg { width: 20px; height: 20px; }

/* Volume slider */
.video-volume { display: flex; align-items: center; gap: 0.5rem; }

.video-volume-slider {
  width: 70px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, width 0.2s;
  width: 0;
}

.video-volume:hover .video-volume-slider,
.video-volume-slider:focus { opacity: 1; width: 70px; }

.video-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  background: var(--color-safety-yellow);
  border-radius: 50%;
  cursor: pointer;
}

.video-volume-slider::-moz-range-thumb {
  width: 12px; height: 12px;
  background: var(--color-safety-yellow);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Fullscreen */
.video-btn.video-fullscreen svg { width: 18px; height: 18px; }

.video-player-section.fullscreen {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999; border-radius: 0; margin: 0;
}

.video-player-section.fullscreen .video-container { height: 100%; aspect-ratio: unset; }
.video-player-section.fullscreen .video-header,
.video-player-section.fullscreen .video-instructions { display: none; }

/* --- Slide Template: Intro --- */
.video-scene[data-template="intro"] .scene-overlay {
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.9), rgba(142, 21, 21, 0.95));
}

.video-scene[data-template="intro"] .scene-content { text-align: center; padding: 3rem; display: flex; flex-direction: column; align-items: center; }
.video-scene[data-template="intro"] .scene-heading { font-size: clamp(2rem, 5vw, 3rem); max-width: 100%; }
.video-scene[data-template="intro"] .scene-heading::after { margin: 1rem auto 0; width: 120px; }
.video-scene[data-template="intro"] .scene-bullets { text-align: left; display: inline-block; }
.video-scene[data-template="intro"] .scene-bullets li { text-align: left; white-space: nowrap; }

/* --- Slide Template: Split Left --- */
.video-scene[data-template="split-left"] .scene-overlay { align-items: stretch; background: none; }

.video-scene[data-template="split-left"] .scene-content {
  width: 50%; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem 2.5rem; padding-bottom: 5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.7));
  backdrop-filter: blur(4px);
}

/* --- Slide Template: Split Right --- */
.video-scene[data-template="split-right"] .scene-overlay { align-items: stretch; justify-content: flex-end; background: none; }

.video-scene[data-template="split-right"] .scene-content {
  width: 50%; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem 2.5rem; padding-bottom: 5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.7));
  backdrop-filter: blur(4px);
}

/* --- Slide Template: Diagonal --- */
.video-scene[data-template="diagonal"] .scene-overlay {
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 40%, transparent 60%);
}

.video-scene[data-template="diagonal"] .scene-content {
  width: 55%; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem 2.5rem; padding-bottom: 5rem;
}

/* --- Slide Template: Quote --- */
.video-scene[data-template="quote"] .scene-overlay {
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.9));
}

.video-scene[data-template="quote"] .scene-content {
  width: 85%; max-width: 800px; text-align: center; padding: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px; backdrop-filter: blur(12px);
}

.video-scene[data-template="quote"] .scene-heading {
  max-width: 100%;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.4; font-style: italic; position: relative;
}

.video-scene[data-template="quote"] .scene-heading::before {
  content: '\201C';
  position: absolute; top: -0.5em; left: -0.3em;
  font-size: 4rem; color: var(--color-safety-yellow); opacity: 0.5;
  font-family: Georgia, serif; line-height: 1;
}

.video-scene[data-template="quote"] .scene-heading::after { margin: 1.5rem auto 0; width: 100px; }
.video-scene[data-template="quote"] .scene-bullets { max-width: 100%; margin-top: 1rem; }
.video-scene[data-template="quote"] .scene-bullets li { text-align: center; padding-left: 0; }
.video-scene[data-template="quote"] .scene-bullets li::before { display: none; }

/* --- Slide Template: Outro --- */
.video-scene[data-template="outro"] .scene-overlay {
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.95), rgba(142, 21, 21, 0.98));
}

.video-scene[data-template="outro"] .scene-content {
  text-align: center; padding: 3rem;
  display: flex; flex-direction: column; align-items: center;
}

.video-scene[data-template="outro"] .scene-heading { max-width: 100%; }
.video-scene[data-template="outro"] .scene-heading::after { margin: 1rem auto 0; }
.video-scene[data-template="outro"] .scene-bullets { text-align: left; display: inline-block; }
.video-scene[data-template="outro"] .scene-bullets li { text-align: left; white-space: nowrap; }

.video-scene[data-template="outro"] .scene-content::before {
  content: '';
  display: block; width: 64px; height: 64px; margin: 0 auto 1.5rem;
  background: var(--color-safety-yellow); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 32px; background-position: center; background-repeat: no-repeat;
  box-shadow: 0 8px 32px rgba(247, 184, 1, 0.4);
}

/* --- Video Responsive: Mobile --- */
@media (max-width: 768px) {
  .video-player-section .scene-overlay {
    align-items: flex-end !important;
    justify-content: flex-start !important;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.85) 40%, rgba(15, 23, 42, 0.4) 70%, transparent 100%) !important;
  }

  .video-player-section .scene-content {
    width: 100% !important; height: auto !important;
    padding: 1rem 1rem 4.5rem 1rem !important;
    background: none !important; backdrop-filter: none !important;
  }

  .video-player-section .scene-heading { font-size: 1rem !important; max-width: 100%; margin-bottom: 0.5rem; }
  .video-player-section .scene-heading::after { width: 50px; height: 2px; margin-top: 0.5rem; }
  .video-player-section .scene-bullets { max-width: 100%; }
  .video-player-section .scene-bullets li { font-size: 0.8rem !important; padding: 0.35rem 0; padding-left: 1.25rem; }
  .video-player-section .scene-bullets li::before { width: 6px; height: 6px; }

  .video-controls { flex-wrap: wrap; gap: 0.4rem; padding: 0.6rem 0.75rem; }
  .video-progress { order: 10; width: 100%; margin-top: 0.4rem; }
  .progress-text { font-size: 0.65rem; }
  .video-play-pause { width: 40px; height: 40px; }
  .video-play-pause svg { width: 18px; height: 18px; }
  .video-btn { width: 32px; height: 32px; }
  .video-btn svg { width: 14px; height: 14px; }
  .video-caption { bottom: 70px; left: 5%; right: 5%; }
  .video-caption-text { font-size: 0.8rem; padding: 6px 12px; }

  .video-scene[data-template="intro"] .scene-content { padding: 1.5rem 1rem 4.5rem !important; }
  .video-scene[data-template="intro"] .scene-heading { font-size: 1.25rem !important; }
  .video-scene[data-template="intro"] .scene-bullets { text-align: left !important; display: block; }
  .video-scene[data-template="intro"] .scene-bullets li { text-align: left !important; white-space: normal; font-size: 0.75rem !important; }
  .video-scene[data-template="quote"] .scene-content { width: 95% !important; padding: 1.5rem 1rem !important; }
  .video-scene[data-template="quote"] .scene-heading { font-size: 1rem !important; }
  .video-scene[data-template="quote"] .scene-heading::before { font-size: 2.5rem; top: -0.3em; left: -0.1em; }

  .video-scene[data-template="outro"] .scene-content {
    padding: 1.5rem 1rem 4.5rem !important;
    text-align: left; display: flex; flex-direction: row; align-items: center; gap: 1rem;
  }
  .video-scene[data-template="outro"] .scene-content::before { width: 40px; height: 40px; min-width: 40px; background-size: 20px; margin: 0; flex-shrink: 0; }
  .video-scene[data-template="outro"] .scene-heading { font-size: 1.1rem !important; text-align: left; margin-bottom: 0.5rem; }
  .video-scene[data-template="outro"] .scene-heading::after { display: none; }
  .video-scene[data-template="outro"] .scene-bullets { text-align: left !important; display: block; }
  .video-scene[data-template="outro"] .scene-bullets li { text-align: left !important; padding-left: 1.25rem !important; font-size: 0.75rem !important; }
  .video-scene[data-template="outro"] .scene-bullets li::before { display: block !important; }

  .video-header { padding: 0.6rem 1rem; }
  .video-title { font-size: 0.9rem; gap: 0.5rem; }
  .video-title svg { width: 16px; height: 16px; }
  .video-duration { font-size: 0.7rem; padding: 0.2rem 0.5rem; }
  .video-instructions { padding: 0.5rem 1rem; font-size: 0.65rem; }
}

/* --- Video Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .scene-background, .video-scene, .scene-bullets li,
  .video-btn, .progress-fill { animation: none !important; transition: none !important; }
  .video-scene.active .scene-bullets li { opacity: 1; }
}

/* --- Video Light Theme --- */
[data-theme="light"] .video-player-section {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(198, 40, 40, 0.15);
}

[data-theme="light"] .video-instructions {
  background: rgba(241, 245, 249, 0.9);
  border-top-color: rgba(0, 0, 0, 0.08);
}
