/* Namespace Security Academy - Main Styles */

/* Import Local Fonts */
@import url('../fonts/fonts.css');

:root {
  /* Core Palette (Dark Theme - Default) */
  --bg-primary: #0d1117; /* GitHub Dark-like background */
  --bg-secondary: #161b22; /* Slightly lighter background for cards, headers */
  --bg-elevated: #1c2128;
  --border-primary: #30363d;
  --border-secondary: #8b949e;
  --text-primary: #c9d1d9; /* Light gray for primary text */
  --text-secondary: #8b949e; /* Muted gray for secondary text */
  --text-tertiary: #58a6ff; /* Blue for links and highlights */

  /* Accent & Brand Colors */
  --brand-glow: rgba(88, 166, 255, 0.3);
  --brand-primary: #58a6ff;
  --brand-secondary: #1f6feb;
  --brand-accent: #238636; /* Green for success states */
  --cyan-primary: #1f6feb; /* Adjusted for better contrast */
  --cyan-light: #58a6ff;
  --green-primary: #238636;
  --amber-primary: #f0b623;
  --red-primary: #f85149;
  --purple-primary: #a371f7;
  --blue-primary: #58a6ff;

  /* Gradients */
  --gradient-primary: linear-gradient(45deg, var(--brand-secondary), var(--purple-primary));
  --gradient-card: radial-gradient(circle at 100%, var(--brand-secondary) 0, rgba(255,255,255,0) 50%);
}

/* Light Theme */
[data-theme="light"] {
  /* Core Palette (Light Theme) */
  --bg-primary: #ffffff;
  --bg-secondary: #f6f8fa;
  --bg-elevated: #ffffff;
  --border-primary: #d0d7de;
  --border-secondary: #6e7781;
  --text-primary: #24292f;
  --text-secondary: #57606a;
  --text-tertiary: #0969da;

  /* Accent & Brand Colors - adjusted for light mode */
  --brand-glow: rgba(9, 105, 218, 0.15);
  --brand-primary: #0969da;
  --brand-secondary: #0550ae;
  --brand-accent: #1a7f37;
  --cyan-primary: #0550ae;
  --cyan-light: #0969da;
  --green-primary: #1a7f37;
  --amber-primary: #9a6700;
  --red-primary: #cf222e;
  --purple-primary: #8250df;
  --blue-primary: #0969da;

  /* Gradients */
  --gradient-primary: linear-gradient(45deg, var(--brand-secondary), var(--purple-primary));
  --gradient-card: radial-gradient(circle at 100%, var(--brand-secondary) 0, rgba(0,0,0,0) 50%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: radial-gradient(circle at 1px 1px, var(--border-primary) 1px, transparent 0);
  background-size: 2rem 2rem;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--cyan-light);
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header - Always Dark Theme */
header {
  background: rgba(13, 17, 23, 0.95);
  border-bottom: 1px solid #30363d;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

/* Force header elements to use dark theme colors */
header .site-title,
header .site-subtitle,
header nav a,
header .powered-by {
  color: #c9d1d9 !important;
}

header .site-subtitle {
  color: #8b949e !important;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.logo {
  height: 36px;
  width: auto;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.2;
}

.site-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: block;
}

/* NodeZro Branding */
.nodezro-branding {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(88, 166, 255, 0.05);
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: auto;
}

.nodezro-branding:hover {
  background: rgba(88, 166, 255, 0.1);
  border-color: rgba(88, 166, 255, 0.3);
  transform: translateY(-1px);
  text-decoration: none;
}

.nodezro-logo {
  height: 20px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  filter: brightness(0) invert(1);
}

.nodezro-branding:hover .nodezro-logo {
  opacity: 1;
}

.powered-by {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Theme Toggle - Always Dark */
.theme-toggle {
  position: relative;
  width: 36px;
  height: 36px;
  border: none;
  background: #1c2128;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #30363d;
  transition: all 0.3s ease;
  overflow: hidden;
  flex-shrink: 0;
  margin-left: 1rem;
}

.theme-toggle:hover {
  background: #161b22;
  border-color: #58a6ff;
  transform: scale(1.05);
}

.theme-toggle i {
  position: absolute;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.theme-toggle .fa-sun {
  color: var(--amber-primary);
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.theme-toggle .fa-moon {
  color: var(--brand-primary);
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .fa-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .fa-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

@media (max-width: 992px) {
  .powered-by {
    display: none;
  }

  .nodezro-branding {
    padding: 0.5rem;
    gap: 0;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
  }

  .theme-toggle i {
    font-size: 0.875rem;
  }
}

/* Navigation - Always Dark */
nav {
  display: flex;
  gap: 0.5rem;
}

nav a {
  color: #8b949e;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s, color 0.2s;
}

nav a:hover, nav a.active {
  background-color: #1c2128;
  color: #c9d1d9;
  text-decoration: none;
}

/* Mega Menu */
.nav-item-with-mega {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.nav-item-with-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
}

.mega-menu-content {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 0.75rem;
  padding: 1rem;
  min-width: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.mega-menu-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #c9d1d9;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.mega-menu-item:last-child {
  margin-bottom: 0;
}

.mega-menu-item:hover {
  background: #1c2128;
  transform: translateX(4px);
}

.mega-menu-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: #58a6ff;
  margin-bottom: 0.25rem;
}

.mega-menu-desc {
  font-size: 0.75rem;
  color: #8b949e;
  line-height: 1.3;
}

/* Mobile Menu Toggle - Always Dark */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #c9d1d9;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: flex;
    order: 4;
  }

  .nodezro-branding {
    order: 2;
    margin-left: 0;
  }

  .theme-toggle {
    order: 3;
    margin-left: 0;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #161b22;
    border-left: 1px solid #30363d;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    order: 5;
    overflow-y: auto; /* Enable scrolling on mobile menu */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }

  nav.mobile-nav-active {
    right: 0;
  }

  /* Consistent styling for all menu items (nav links and phases) */
  nav a,
  .mega-menu-item {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background 0.2s ease;
  }

  nav a:hover,
  nav a:active,
  .mega-menu-item:hover,
  .mega-menu-item:active {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Ensure last item has same margin */
  nav a:last-child,
  .mega-menu-item:last-child {
    margin-bottom: 0.5rem;
  }

  /* Show "Modules" parent link on mobile with same styling */
  .nav-item-with-mega > a {
    display: flex;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    min-height: 48px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background 0.2s ease;
  }

  .nav-item-with-mega > a:hover,
  .nav-item-with-mega > a:active {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Remove any special styling from nav-item-with-mega container on mobile */
  .nav-item-with-mega {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Hide mega menu on mobile, show items inline */
  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    padding: 0;
    margin: 0;
    transform: none;
  }

  .mega-menu-content {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    min-width: auto;
    width: 100%;
  }

  .mega-menu-title {
    font-size: 1rem; /* Match nav link font size */
  }

  .mega-menu-desc {
    display: none; /* Hide help text on mobile */
  }

  .header-content {
    flex-wrap: nowrap;
  }

  .logo-section {
    flex: 0 1 auto;
    min-width: 0;
  }

  .site-title {
    font-size: 1.125rem;
  }

  .site-subtitle {
    font-size: 0.75rem;
  }
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  text-align: center;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.15), rgba(163, 113, 247, 0.08), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -2px;
  background: linear-gradient(120deg, #fff 0%, var(--brand-primary) 50%, var(--purple-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

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

.hero p {
  font-size: 1.25rem;
  max-width: 850px;
  margin: 0 auto 2rem;
  color: var(--text-primary);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 2px solid var(--border-primary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  border-color: var(--brand-primary);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(88, 166, 255, 0.2);
}

.btn-primary:hover {
  color: white;
  box-shadow: 0 6px 22px rgba(88, 166, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px) scale(1.01);
}

/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
  box-shadow: 0 10px 30px rgba(88, 166, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card:hover::before {
  opacity: 0.08;
}

.card:hover::after {
  opacity: 1;
}

/* Clickable Card */
a.clickable-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.clickable-card:hover {
  text-decoration: none;
  cursor: pointer;
}

a.clickable-card h3 {
  color: var(--text-primary);
}

a.clickable-card p {
  color: var(--text-secondary);
}

.card-icon {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
  border-radius: 50%;
  border: 1px solid var(--border-primary);
  box-shadow: 0 4px 20px rgba(88, 166, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 25px rgba(88, 166, 255, 0.5);
}

.card h3 {
  color: var(--text-primary);
}

/* Section Styling */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 700;
}

/* Phase Navigation */
.phase-nav-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: block;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.phase-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.1), transparent);
  transition: left 0.5s ease-in-out;
}

.phase-nav-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--brand-primary);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(88, 166, 255, 0.3);
  background: linear-gradient(135deg, var(--bg-secondary), rgba(88, 166, 255, 0.05));
}

.phase-nav-item:hover::before {
  left: 100%;
}

.phase-number {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.phase-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease-in-out;
}

.phase-nav-item:hover .phase-name {
  color: var(--brand-primary);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  padding: 2rem 0;
  margin-top: 4rem;
}

footer nav a {
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

footer nav a:hover {
  color: var(--cyan-light);
  background: none;
}

/* Icon Styles */
.icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: middle;
  margin-right: 0.75rem;
}

/* Grid Layouts */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Utility Classes */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }

/* Card Title with Icon */
.card-title-icon {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
}

.card-title-icon .icon {
  color: var(--amber-primary);
}

/* Improved Link Hover Effects */
a:not(.btn):not(.clickable-card):not(.phase-nav-item):not(.nodezro-branding) {
  position: relative;
}

a:not(.btn):not(.clickable-card):not(.phase-nav-item):not(.nodezro-branding):hover {
  color: var(--cyan-light);
}

a:not(.btn):not(.clickable-card):not(.phase-nav-item):not(.nodezro-branding)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary));
  transition: width 0.3s ease;
}

a:not(.btn):not(.clickable-card):not(.phase-nav-item):not(.nodezro-branding):hover::after {
  width: 100%;
}

/* Improved Code Blocks */
code {
  background: var(--bg-elevated);
  color: var(--cyan-light);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  border: 1px solid var(--border-primary);
}

/* Enhanced List Styling */
ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 0.5rem;
}

ul li::marker {
  color: var(--brand-primary);
}

/* Selection Color */
::selection {
  background: var(--brand-primary);
  color: white;
}

::-moz-selection {
  background: var(--brand-primary);
  color: white;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(88, 166, 255, 0.5);
}

/* Quiz Progress Indicator */
.quiz-progress {
  position: sticky;
  top: 70px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.quiz-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 1rem;
  overflow: hidden;
  margin-top: 1rem;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary));
  transition: width 0.3s ease;
  border-radius: 1rem;
}

.quiz-progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  font-weight: 600;
}

/* Final Polish */
body::-webkit-scrollbar {
  width: 12px;
}
body::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
body::-webkit-scrollbar-thumb {
  background-color: var(--border-primary);
  border-radius: 20px;
  border: 3px solid var(--bg-primary);
}

/* Cookie Banner */
/* GDPR Cookie Consent Banner */
.gdpr-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 10000;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.gdpr-cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.gdpr-cookie-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  color: var(--text-primary);
}

.gdpr-cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.gdpr-cookie-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gdpr-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.gdpr-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.gdpr-cookie-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.gdpr-cookie-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.gdpr-cookie-option {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  overflow: hidden;
}

.gdpr-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.gdpr-option-header label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  flex: 1;
}

.gdpr-option-header input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--brand-primary);
}

.gdpr-option-header input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.gdpr-option-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.gdpr-toggle-details {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.gdpr-toggle-details:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-primary);
}

.gdpr-option-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
}

.gdpr-option-details.visible {
  max-height: 200px;
  padding: 0 1rem 1rem 1rem;
}

.gdpr-option-details p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.gdpr-cookie-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-primary);
}

.gdpr-cookie-links a {
  color: var(--brand-primary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.gdpr-cookie-links a:hover {
  color: var(--cyan-primary);
  text-decoration: underline;
}

.gdpr-cookie-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.gdpr-btn {
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.gdpr-btn-accept {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
}

.gdpr-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 166, 255, 0.5);
}

.gdpr-btn-custom {
  background: rgba(88, 166, 255, 0.1);
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}

.gdpr-btn-custom:hover {
  background: rgba(88, 166, 255, 0.2);
  transform: translateY(-2px);
}

.gdpr-btn-reject {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}

.gdpr-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .gdpr-cookie-content {
    padding: 1.5rem;
  }

  .gdpr-cookie-header h3 {
    font-size: 1.25rem;
  }

  .gdpr-cookie-actions {
    flex-direction: column;
  }

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

  .gdpr-cookie-links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Quiz Page Specific Styles */
.quiz-page .hero {
  background: var(--gradient-primary);
  padding: 4rem 0;
}

.quiz-page .hero h1 {
  color: white;
  -webkit-text-fill-color: white;
}

/* Light mode override for quiz hero */
[data-theme="light"] .quiz-page .hero {
  background: var(--bg-secondary);
}

[data-theme="light"] .quiz-page .hero h1,
[data-theme="light"] .quiz-page .hero p {
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
}

#quiz-form {
  max-width: 900px;
  margin: 0 auto;
}

.phase-section {
  margin-bottom: 4rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  overflow: hidden;
}

.phase-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-primary);
}

.phase-header h2 {
  font-size: 1.75rem;
  margin: 0;
  color: var(--text-primary);
}

.phase-header p {
  margin: 0;
  color: var(--text-secondary);
}

.quiz-question {
  padding: 2rem;
  border-bottom: 1px solid var(--border-primary);
}

.quiz-question:last-child {
  border-bottom: none;
}

.quiz-question h3 {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--bg-elevated);
  color: var(--brand-primary);
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-option {
  display: flex;
}

.quiz-option input[type="radio"] {
  display: none;
}

.quiz-option label {
  padding: 1rem 1.5rem;
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  width: 100%;
}

.quiz-option input[type="radio"]:checked + label {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 15px var(--brand-glow);
}

.quiz-option label:hover {
  background: var(--bg-elevated);
  border-color: var(--border-secondary);
  transform: translateX(5px);
}

.quiz-option label:active {
  transform: scale(0.98);
}

.quiz-option input[type="radio"]:checked + label {
  animation: selectPulse 0.4s ease-out;
}

@keyframes selectPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

#quiz-results {
  text-align: center;
}

.quiz-results-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  padding: 3rem;
}

.score-bar {
  width: 100%;
  height: 2rem;
  background: var(--bg-elevated);
  border-radius: 1rem;
  overflow: hidden;
  margin: 2rem 0;
}

.score-fill {
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

/* Resource Card Specific Styles */
.resource-card {
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.resource-card:hover {
  border-bottom-color: var(--brand-primary);
  transform: translateY(-5px);
  cursor: pointer;
}

/* Glossary Page Specific Styles */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.glossary-item h3 {
  font-size: 1.5rem;
  color: var(--brand-primary);
}

/* Case Study Page Specific Styles */
.case-study {
  max-width: 900px;
  margin: 0 auto;
}

.case-study-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.case-study-meta {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.case-study-content h3 {
  font-size: 1.75rem;
  color: var(--brand-primary);
  margin-top: 2rem;
}

.case-study-content ul {
  list-style-type: disc;
  margin-left: 1.5rem;
}

/* Compliance Guide Page Specific Styles */
.compliance-guide {
  max-width: 900px;
  margin: 0 auto 2rem;
}

.compliance-guide-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.compliance-guide-content h3 {
  font-size: 1.75rem;
  color: var(--brand-primary);
  margin-top: 2rem;
}

.compliance-guide-content ul {
  list-style-type: disc;
  margin-left: 1.5rem;
}

/* Module Page Specific Styles */
.module-page .hero {
  padding: 4rem 0;
}

.module-number {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.breadcrumb-section {
  padding: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
}

.breadcrumb {
  padding: 1rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a.active {
  color: var(--brand-primary);
  font-weight: 600;
}

/* Mobile Responsive - Breadcrumb Navigation */
@media (max-width: 768px) {
  .breadcrumb {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.8125rem;
  }

  .breadcrumb a {
    display: block;
    padding: 0.5rem 1rem;
    text-align: center;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
  }

  .breadcrumb a.active {
    background: var(--brand-primary);
    color: white;
  }

  .breadcrumb a:not(.active) {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
  }

  .breadcrumb a:not(.active):hover {
    background: var(--bg-secondary);
    border-color: var(--brand-primary);
  }

  /* Hide chevron arrows on mobile */
  .breadcrumb i.fa-chevron-right {
    display: none;
  }
}

.module-content {
  max-width: 900px;
  margin: 0 auto;
}

.module-content h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.module-content h3 {
  font-size: 1.75rem;
  color: var(--brand-primary);
  margin-top: 2rem;
}

.module-content ul {
  list-style-type: disc;
  margin-left: 1.5rem;
}

/* Video Placeholder */
.video-placeholder {
  background: var(--bg-elevated);
  border: 1px dashed var(--border-primary);
  border-radius: 1rem;
  padding: 4rem;
  text-align: center;
  margin-bottom: 2rem;
}

.video-placeholder i {
  font-size: 4rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.video-placeholder p {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .phase-nav-item {
    padding: 1.5rem 1rem;
  }
}

/* Fade In Animation */
.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Focus Styles for Accessibility */
a:focus, button:focus, input:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Enhanced Card Depth */
.card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-primary);
  box-shadow: 0 15px 40px rgba(88, 166, 255, 0.25), 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Smooth Transitions - Exclude animations */
*:not([class*="animate"]):not([class*="hero"]) {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

/* Quiz Question Validation Indicator */
.quiz-question.answered {
  border-left: 3px solid var(--brand-primary);
}

.quiz-question.unanswered {
  border-left: 3px solid transparent;
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--border-primary);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ========================================
   DIKW PYRAMID VISUAL COMPONENT
   ======================================== */

.dikw-pyramid-container {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  perspective: 1200px;
  position: relative;
}

.dikw-pyramid-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--brand-primary), transparent);
  opacity: 0.3;
  z-index: 0;
}

.dikw-pyramid {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 2rem 0;
  z-index: 1;
}

.pyramid-level {
  position: relative;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pyramid-level:hover {
  transform: translateY(-5px) scale(1.02);
}

/* Level 4: WISDOM (Top) */
.pyramid-level.wisdom {
  width: 35%;
  margin-bottom: 1rem;
}

.pyramid-level.wisdom .pyramid-shape {
  background: linear-gradient(135deg, #a371f7 0%, #8b5cf6 100%);
  box-shadow: 0 8px 24px rgba(163, 113, 247, 0.25), 0 0 30px rgba(163, 113, 247, 0.1);
  border: 2px solid rgba(199, 181, 253, 0.3);
}

/* Level 3: KNOWLEDGE */
.pyramid-level.knowledge {
  width: 55%;
  margin-bottom: 1rem;
}

.pyramid-level.knowledge .pyramid-shape {
  background: linear-gradient(135deg, #58a6ff 0%, #1f6feb 100%);
  box-shadow: 0 8px 24px rgba(88, 166, 255, 0.25), 0 0 30px rgba(88, 166, 255, 0.1);
  border: 2px solid rgba(88, 166, 255, 0.3);
}

/* Level 2: INFORMATION */
.pyramid-level.information {
  width: 75%;
  margin-bottom: 1rem;
}

.pyramid-level.information .pyramid-shape {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25), 0 0 30px rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(96, 165, 250, 0.3);
}

/* Level 1: DATA (Bottom) */
.pyramid-level.data {
  width: 95%;
}

.pyramid-level.data .pyramid-shape {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.25), 0 0 30px rgba(30, 64, 175, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.pyramid-shape {
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
}

.pyramid-shape::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;
}

.pyramid-level:hover .pyramid-shape::before {
  left: 100%;
}

.pyramid-level-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.pyramid-level-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pyramid-level-question {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.pyramid-level-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0;
}

.pyramid-connector {
  width: 3px;
  height: 2.5rem;
  background: linear-gradient(to bottom, rgba(88, 166, 255, 0.6), rgba(88, 166, 255, 0.2));
  margin: 0.5rem auto;
  position: relative;
  border-radius: 2px;
}

.pyramid-connector::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--brand-primary);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(88, 166, 255, 0.6);
}

.pyramid-connector::after {
  content: '▼';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--brand-primary);
  font-size: 0.75rem;
  text-shadow: 0 0 10px rgba(88, 166, 255, 0.8);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(3px); }
}

/* Phase Mapping Pills */
.phase-mapping {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  font-size: 0.8125rem;
  color: white;
  font-weight: 700;
  margin-top: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive - DIKW Pyramid */
@media (max-width: 768px) {
  .dikw-pyramid-container {
    padding: 2rem 1rem;
  }

  .dikw-pyramid-container::before {
    display: none; /* Hide the vertical line on mobile */
  }

  .dikw-pyramid {
    padding: 1rem 0;
  }

  /* Make all pyramid levels full width on mobile */
  .pyramid-level.wisdom,
  .pyramid-level.knowledge,
  .pyramid-level.information,
  .pyramid-level.data {
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .pyramid-shape {
    padding: 1.5rem 1rem;
  }

  .pyramid-level-title {
    font-size: 1.25rem;
    letter-spacing: 1px;
  }

  .pyramid-level-question {
    font-size: 0.875rem;
  }

  .pyramid-level-desc {
    font-size: 0.875rem;
  }

  .pyramid-connector {
    height: 1.5rem;
  }
}

/* DIKW Intro Section */
.dikw-intro {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(163, 113, 247, 0.1));
  border: 2px solid var(--brand-primary);
  border-radius: 1rem;
  padding: 3rem 2rem;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.dikw-intro::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.15), transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

.dikw-intro-content {
  position: relative;
  z-index: 1;
}

/* Phase-Level Badge */
.phase-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
}

.phase-level-badge i {
  font-size: 1rem;
}

/* Next Phase Navigation */
.next-phase-nav {
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(163, 113, 247, 0.1));
  border: 2px solid var(--brand-primary);
  border-radius: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.next-phase-nav::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.1), transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

.next-phase-nav-content {
  position: relative;
  z-index: 1;
}

.next-phase-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.next-phase-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.next-phase-dikw {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(88, 166, 255, 0.15);
  border: 1px solid var(--brand-primary);
  border-radius: 1rem;
  font-size: 0.75rem;
  color: var(--brand-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.next-phase-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 1rem auto 2rem;
  line-height: 1.6;
}

.next-phase-nav .btn-primary {
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

.next-phase-nav .btn-primary i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.next-phase-nav .btn-primary:hover i {
  transform: translateX(5px);
}

/* Phase Grid Layout */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .phase-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .phase-grid a:nth-child(4) {
    grid-column: 1 / 2;
  }

  .phase-grid a:nth-child(5) {
    grid-column: 2 / 3;
  }
}

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

/* Responsive Pyramid */
@media (max-width: 768px) {
  .dikw-pyramid {
    padding: 2rem 0;
  }

  .pyramid-level-title {
    font-size: 1.125rem;
  }

  .pyramid-level-desc {
    font-size: 0.8125rem;
  }

  .pyramid-shape {
    padding: 1.25rem 1rem;
  }

  .dikw-pyramid-container {
    padding: 2rem 1rem;
  }
}