/* Professional Game CSS with Dark/Light Theme Toggle */
:root {
  /* Light Theme Variables */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --accent-primary: #4f46e5;
  --accent-secondary: #06b6d4;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.1);
  --card-bg: #ffffff;
  --navbar-bg: linear-gradient(90deg, #4f46e5, #06b6d4);
}

[data-theme="dark"] {
  /* Dark Theme Variables */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --accent-primary: #6366f1;
  --accent-secondary: #22d3ee;
  --success: #34d399;
  --error: #f87171;
  --warning: #fbbf24;
  --border: #334155;
  --shadow: rgba(0, 0, 0, 0.3);
  --card-bg: #1e293b;
  --navbar-bg: linear-gradient(90deg, #1e293b, #0f172a);
}

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

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: all 0.3s ease;
  min-height: 100vh;
}

/* Enhanced Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px var(--shadow);
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

.navbar .logo img {
  height: 40px;
  width: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text {
  color: white;
}

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

.hamburger-line {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

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

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

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

/* Navigation Menu */
.nav-menu {
  display: block;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu ul li a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  position: relative;
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 25px var(--shadow);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 0.5rem 0;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  padding: 0.75rem 1rem;
  display: block;
  color: var(--text-primary) !important;
  border-radius: 0;
  margin: 0;
  transition: all 0.2s ease;
  text-shadow: none;
}

.dropdown-menu li a:hover {
  background: var(--accent-primary);
  color: white !important;
  transform: none;
}

.dropdown-menu .divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
  padding: 0;
}

.dropdown-menu .divider:hover {
  background: var(--border);
}

/* Theme Toggle Button */
.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Game Container */
.game-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.game-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow);
  border: 1px solid var(--border);
}

.game-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.game-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Status Bar */
.status-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.status-item {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px var(--shadow);
  transition: transform 0.3s ease;
}

.status-item:hover {
  transform: translateY(-2px);
}

.status-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.status-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* Game Area */
.game-area {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  text-align: center;
}

.question-display {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: 12px;
  border: 2px solid var(--border);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.option-btn {
  background: var(--card-bg);
  border: 2px solid var(--border);
  color: var(--text-primary);
  padding: 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.option-btn:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow);
}

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

.option-btn:active {
  transform: translateY(-1px);
}

.option-btn.correct {
  background: var(--success);
  border-color: var(--success);
  color: white;
  animation: correctPulse 0.6s ease;
}

.option-btn.incorrect {
  background: var(--error);
  border-color: var(--error);
  color: white;
  animation: incorrectShake 0.6s ease;
}

@keyframes correctPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes incorrectShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Control Buttons */
.game-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

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

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 2px solid var(--border);
  box-shadow: 0 4px 15px var(--shadow);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 25px var(--shadow);
}

/* Game Results */
.game-results {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 15px 35px var(--shadow);
  border: 1px solid var(--border);
}

.results-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.final-score {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--success), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 1rem 0;
}

.performance-message {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

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

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

.fade-in-up {
  animation: fadeInUp 0.6s ease;
}

.slide-in-right {
  animation: slideInRight 0.4s ease;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

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

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .navbar nav ul {
    gap: 1rem;
  }

  .game-container {
    margin: 1rem auto;
    padding: 0 0.5rem;
  }

  .game-header,
  .game-area {
    padding: 1.5rem;
  }

  .game-title {
    font-size: 2rem;
  }

  .question-display {
    font-size: 1.8rem;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .game-title {
    font-size: 1.5rem;
  }

  .question-display {
    font-size: 1.4rem;
  }

  .status-bar {
    grid-template-columns: 1fr;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border);
  border-radius: 50%;
  border-top-color: var(--accent-primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}

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

/* Index Page Specific Styles */
.hero-section {
  background: var(--bg-gradient);
  background-image: url("../assert/Number Ninja Games Hero Section Background Image.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.8),
    rgba(6, 182, 212, 0.8)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-btn {
  font-size: 1.2rem;
  padding: 1rem 2rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-secondary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.games-section {
  padding: 4rem 2rem;
  background: var(--bg-primary);
}

.games-header {
  text-align: center;
  margin-bottom: 3rem;
}

.games-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.games-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.game-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: 0 8px 25px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 70, 229, 0.1),
    transparent
  );
  transition: left 0.6s;
}

.game-card:hover::before {
  left: 100%;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow);
  border-color: var(--accent-primary);
}

.game-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.game-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.game-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.game-difficulty {
  background: var(--accent-primary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Difficulty Colors Based on Actual Game Difficulty */
/* Easy Games - Green (#22c55e) */
.game-card:nth-child(1) .game-difficulty, /* Addition - Easy */
.game-card:nth-child(2) .game-difficulty, /* Subtraction - Easy */
.game-card:nth-child(15) .game-difficulty, /* Rounding Rush - Easy */
.game-card:nth-child(17) .game-difficulty {
  /* Odd/Even - Easy */
  background: #22c55e !important;
}

/* Medium Games - Yellow (#f59e0b) */
.game-card:nth-child(3) .game-difficulty, /* Multiplication - Medium */
.game-card:nth-child(4) .game-difficulty, /* Division - Medium */
.game-card:nth-child(6) .game-difficulty, /* Factor Finder - Medium */
.game-card:nth-child(7) .game-difficulty, /* Memory Match - Medium */
.game-card:nth-child(10) .game-difficulty, /* Decimal Dash - Medium */
.game-card:nth-child(14) .game-difficulty {
  /* Times Tables - Medium */
  background: #f59e0b !important;
}

/* Hard Games - Red (#ef4444) */
.game-card:nth-child(5) .game-difficulty, /* Prime Hunter - Hard */
.game-card:nth-child(8) .game-difficulty, /* Number Sequence - Hard */
.game-card:nth-child(9) .game-difficulty, /* Fraction Ninja - Hard */
.game-card:nth-child(11) .game-difficulty, /* Percentage Power - Hard */
.game-card:nth-child(13) .game-difficulty, /* Geometry Genius - Hard */
.game-card:nth-child(16) .game-difficulty {
  /* Square Samurai - Hard */
  background: #ef4444 !important;
}

/* Expert Games - Purple (#8b5cf6) */
.game-card:nth-child(12) .game-difficulty, /* Algebra Arena - Expert */
.game-card:nth-child(18) .game-difficulty, /* Logic Puzzles - Expert */
.game-card:nth-child(19) .game-difficulty, /* Speed Math - Expert */
.game-card:nth-child(20) .game-difficulty {
  /* Mixed Challenge - Expert */
  background: #8b5cf6 !important;
}

/* Memory Game Specific Styles */
.memory-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.memory-card {
  aspect-ratio: 1;
  cursor: pointer;
  perspective: 1000px;
  border-radius: 12px;
  overflow: hidden;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.memory-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid var(--border);
}

.card-front {
  background: var(--accent-primary);
  color: white;
  font-size: 2rem;
}

.card-back {
  background: var(--card-bg);
  color: var(--text-primary);
  transform: rotateY(180deg);
}

.memory-card.matched .card-inner {
  transform: rotateY(180deg);
}

.memory-card.matched .card-back {
  background: var(--success);
  color: white;
  animation: matchPulse 0.6s ease;
}

@keyframes matchPulse {
  0%,
  100% {
    transform: rotateY(180deg) scale(1);
  }
  50% {
    transform: rotateY(180deg) scale(1.1);
  }
}

/* Page Layout Styles for Legal Pages */
.page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 200px);
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.last-updated {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 25px var(--shadow);
  border: 1px solid var(--border);
}

.content-card h2 {
  color: var(--accent-primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.content-card h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
}

.content-card h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
}

.content-card p {
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.content-card ul,
.content-card ol {
  color: var(--text-primary);
  line-height: 1.7;
  margin: 1rem 0;
  padding-left: 2rem;
}

.content-card li {
  margin-bottom: 0.5rem;
}

.content-card a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}

.content-card a:hover {
  text-decoration: underline;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-item {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.feature-item h3 {
  color: var(--accent-primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.benefit-item h4 {
  color: var(--accent-primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.benefit-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Lists */
.approach-list,
.commitment-list,
.feedback-list {
  list-style: none;
  padding: 0;
}

.approach-list li,
.commitment-list li,
.feedback-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.approach-list li:last-child,
.commitment-list li:last-child,
.feedback-list li:last-child {
  border-bottom: none;
}

/* Contact Page Specific */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-method h3 {
  color: var(--accent-primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-primary) !important;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-note {
  background: var(--bg-primary);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-primary);
  margin-top: 1rem;
}

.form-note p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.faq-item {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.faq-item h3 {
  color: var(--accent-primary);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* Social Section */
.social-section {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

.social-section p {
  margin: 0.5rem 0;
}

/* CTA Section */
.cta-section {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

/* Summary Grid */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.summary-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.summary-item h3 {
  color: var(--success);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.summary-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Contact Info */
.contact-info {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent-primary);
  margin: 1.5rem 0;
}

.contact-info p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

/* Footer Enhancements */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.footer-section h3 {
  color: var(--accent-primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .navbar ul {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  /* Mobile Navigation */
  .navbar {
    flex-direction: row !important;
    padding: 1rem 2rem;
    gap: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
  }

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

  .nav-menu ul {
    flex-direction: column;
    gap: 0;
    padding: 2rem 0;
    width: 100%;
  }

  .nav-menu ul li {
    width: 100%;
  }

  .nav-menu ul li a {
    padding: 1rem 2rem;
    color: var(--text-primary) !important;
    text-shadow: none;
    justify-content: flex-start;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu ul li a:hover {
    background: var(--accent-primary);
    color: white !important;
    transform: none;
  }

  .theme-toggle {
    margin: 1rem 2rem;
    width: calc(100% - 4rem);
    background: var(--accent-primary);
    color: white;
    border: none;
  }

  /* Mobile Dropdown */
  .dropdown {
    position: relative;
  }

  .dropdown-toggle {
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--bg-primary);
    padding: 0;
    margin-left: 2rem;
    transition: all 0.3s ease;
  }

  .dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 300px;
    padding: 0.5rem 0;
  }

  .dropdown-menu li a {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    border-bottom: none;
    display: block;
  }

  /* Hero Section */
  .hero-section {
    min-height: 60vh;
    padding: 2rem 1rem;
    background-attachment: scroll;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Games Grid */
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .game-card {
    padding: 1.5rem;
  }

  .game-icon {
    font-size: 2rem;
  }

  .game-card h3 {
    font-size: 1.1rem;
  }

  /* Legal Pages */
  .page-container {
    padding: 1rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .benefits-grid,
  .faq-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Content Cards */
  .content-card {
    padding: 1.5rem;
  }

  .content-card h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .hero-title {
    font-size: 1.8rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .navbar ul {
    flex-direction: column;
    width: 100%;
  }

  .navbar ul li {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-item {
    min-width: auto;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .content-card {
    padding: 1rem;
  }
}

/* Article Styles */
.game-article {
  background: var(--bg-secondary);
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  overflow: hidden;
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.article-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.article-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}

.article-content {
  line-height: 1.8;
  font-size: 1rem;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.article-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin: 1.5rem 0 0.5rem 0;
}

.article-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  text-align: justify;
}

.article-content p:last-child {
  margin-bottom: 0;
}

.article-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
  text-align: center;
}

.article-cta {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.cta-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.cta-link:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

/* Article Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
}

.article-content table th,
.article-content table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-content table th {
  background: var(--accent-primary);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-content table td {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.article-content table tbody tr:hover {
  background: var(--bg-primary);
}

.article-content table tbody tr:last-child td {
  border-bottom: none;
}

/* Enhanced Article Lists */
.article-content ul {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.article-content ul li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  margin-bottom: 1rem;
  background: var(--bg-primary);
  border-radius: 8px;
  border-left: 4px solid var(--accent-primary);
  transition: all 0.3s ease;
}

.article-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  color: var(--accent-primary);
  font-weight: bold;
  font-size: 1.1rem;
}

.article-content ul li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px var(--shadow);
}

.article-content ul li strong {
  color: var(--accent-primary);
  font-weight: 600;
}

/* Ordered Lists for Steps */
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
  counter-reset: step-counter;
}

.article-content ol li {
  position: relative;
  padding: 1rem 1rem 1rem 4rem;
  margin-bottom: 1rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px var(--shadow);
  counter-increment: step-counter;
  transition: all 0.3s ease;
}

.article-content ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  background: var(--accent-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.article-content ol li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow);
}

/* FAQ Section Styling */
.article-content ul li strong:first-child {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* Internal Links Section */
.article-content ul li a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.article-content ul li a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

/* Salary List Styling */
.article-content ul li:has(+ li:contains("$")) {
  background: var(--success);
  color: white;
  border-left-color: var(--success);
}

/* Special styling for salary/career lists */
.article-content p + ul li {
  background: var(--bg-primary);
  border-left: 4px solid var(--success);
}

.article-content p + ul li::before {
  content: "$";
  color: var(--success);
}

/* Article Responsive Design */
@media (max-width: 768px) {
  .article-container {
    padding: 1.5rem;
  }

  .article-title {
    font-size: 1.8rem;
  }

  .article-subtitle {
    font-size: 1rem;
  }

  .article-content h3 {
    font-size: 1.3rem;
  }

  .article-content h4 {
    font-size: 1.1rem;
  }

  .article-content table {
    font-size: 0.85rem;
  }

  .article-content table th,
  .article-content table td {
    padding: 0.75rem 0.5rem;
  }

  .article-content ul li,
  .article-content ol li {
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  }

  .article-content ol li::before {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .article-container {
    padding: 1rem;
  }

  .article-title {
    font-size: 1.6rem;
  }

  .article-content {
    font-size: 0.95rem;
  }

  .article-content p {
    text-align: left;
  }

  .article-content table {
    font-size: 0.8rem;
  }

  .article-content table th,
  .article-content table td {
    padding: 0.5rem 0.25rem;
  }

  .article-content ul li {
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    margin-bottom: 0.75rem;
  }

  .article-content ol li {
    padding: 0.75rem 0.5rem 0.75rem 2.5rem;
  }

  .article-content ol li::before {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
    left: 0.75rem;
  }
}
