/*
Theme Name: HiTheButton Maths
Theme URI: https://hithebutton.co.uk
Author: HiTheButton Maths
Author URI: https://hithebutton.co.uk
Description: A professional, SEO-optimized WordPress theme for Hit The Button Maths - UK's free mental maths game for KS1 & KS2 children aged 6-11.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: education, maths, kids, uk, responsive, seo
Text Domain: hithebutton
*/

/* ============================================================
   GOOGLE FONTS
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Open+Sans:wght@400;500;600&display=swap');

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  --primary: #1a3a6b;
  --primary-dark: #0f2548;
  --secondary: #2ecc71;
  --secondary-dark: #27ae60;
  --accent: #f39c12;
  --accent-dark: #e67e22;
  --purple: #8e44ad;
  --red: #e74c3c;
  --light-bg: #f8faff;
  --white: #ffffff;
  --text-dark: #2c3e50;
  --text-medium: #5a6a7e;
  --text-light: #8a9bb0;
  --border: #e0e8f0;
  --shadow: 0 4px 20px rgba(26,58,107,0.12);
  --shadow-hover: 0 8px 35px rgba(26,58,107,0.22);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: all 0.3s ease;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  line-height: 1.3;
  color: var(--primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p { margin-bottom: 1rem; color: var(--text-medium); font-size: 1.05rem; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ============================================================
   UTILITY CLASSES
============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { margin-bottom: 15px; }
.section-title p { font-size: 1.1rem; max-width: 680px; margin: 0 auto; }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.bg-primary { background: var(--primary); }
.bg-light { background: var(--light-bg); }
.bg-gradient { background: linear-gradient(135deg, var(--primary) 0%, #2c5aa0 100%); }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
}
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: #dcfce7; color: #16a34a; }
.badge-orange { background: #fef3c7; color: #d97706; }
.badge-purple { background: #f3e8ff; color: #7c3aed; }
.badge-red { background: #fee2e2; color: #dc2626; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  box-shadow: 0 4px 20px rgba(46,204,113,0.4);
}
.btn-primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(46,204,113,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-3px);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(243,156,18,0.4);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-3px);
}
.btn-lg { padding: 18px 40px; font-size: 1.15rem; }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }

/* ============================================================
   NAVIGATION
============================================================ */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  padding: 14px 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
#main-nav.scrolled {
  box-shadow: 0 4px 30px rgba(26,58,107,0.15);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), #2c5aa0);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem;
}
.nav-logo-text .site-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--primary);
  display: block;
  line-height: 1.2;
}
.nav-logo-text .site-tagline {
  font-size: 0.7rem;
  color: var(--secondary-dark);
  font-weight: 700;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--light-bg);
  color: var(--primary);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 73px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 20px;
  z-index: 999;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
}
.mobile-menu a:hover { background: var(--light-bg); color: var(--primary); }

/* ============================================================
   HERO SECTION
============================================================ */
#hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4d9e 40%, #2c5aa0 70%, #1a8cff 100%);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.floating-numbers {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
}
.floating-num {
  position: absolute;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  color: rgba(255,255,255,0.07);
  animation: floatUp 15s infinite linear;
  user-select: none;
}
@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
#hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-sub {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  max-width: 650px;
  margin: 0 auto 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}
.hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; }
.trust-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  backdrop-filter: blur(5px);
  transition: var(--transition);
}
.trust-badge:hover { background: rgba(255,255,255,0.2); }
.trust-badge .icon { font-size: 1rem; }

/* ============================================================
   GAME SECTION
============================================================ */
#game-section {
  background: linear-gradient(180deg, #0f2548 0%, var(--primary) 100%);
  padding: 60px 0;
}
.game-header { text-align: center; margin-bottom: 30px; }
.game-header h2 { color: white; margin-bottom: 10px; }
.game-header p { color: rgba(255,255,255,0.8); }
.game-wrapper {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  max-width: 820px;
  margin: 0 auto;
}
.game-iframe-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.game-iframe-container iframe {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
}
/* Plugin shortcode container */
.game-plugin-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-plugin-container iframe,
.game-plugin-container canvas,
.game-plugin-container .game-container,
.game-plugin-container > * {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 480px;
  border: none !important;
  display: block;
}
.game-note {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-top: 14px;
}
.game-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.game-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(46,204,113,0.15);
  border: 1px solid rgba(46,204,113,0.3);
  color: #7fffc0;
  padding: 7px 16px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
}

/* ============================================================
   WHAT IS SECTION
============================================================ */
#what-is { background: var(--light-bg); }
.what-is-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.what-is-content h2 { margin-bottom: 20px; }
.what-is-content p { font-size: 1.05rem; margin-bottom: 16px; }
.origin-box {
  background: var(--white);
  border-left: 4px solid var(--secondary);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-medium);
  font-size: 0.95rem;
}
.what-is-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stat-num {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--primary);
  display: block;
}
.stat-label { font-size: 0.85rem; color: var(--text-medium); font-weight: 600; }
.what-is-visual {
  position: relative;
  background: linear-gradient(135deg, var(--primary), #2c5aa0);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: white;
  text-align: center;
  overflow: hidden;
}
.visual-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  margin-bottom: 24px;
}
.mode-circles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mode-circle {
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.mode-circle:hover { background: rgba(255,255,255,0.22); transform: scale(1.05); border-color: rgba(255,255,255,0.5); }
.mode-circle .emoji { font-size: 1.6rem; display: block; margin-bottom: 4px; }
.mode-circle .name { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.7rem; color: rgba(255,255,255,0.9); text-align: center; }

/* ============================================================
   GAME MODES SECTION
============================================================ */
#game-modes { background: var(--white); }
.modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mode-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.mode-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.mode-card.blue::before { background: linear-gradient(90deg, #3b82f6, #06b6d4); }
.mode-card.green::before { background: linear-gradient(90deg, #22c55e, #84cc16); }
.mode-card.orange::before { background: linear-gradient(90deg, #f97316, #f59e0b); }
.mode-card.purple::before { background: linear-gradient(90deg, #a855f7, #ec4899); }
.mode-card.teal::before { background: linear-gradient(90deg, #14b8a6, #06b6d4); }
.mode-card.red::before { background: linear-gradient(90deg, #ef4444, #f97316); }
.mode-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}
.mode-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 18px;
}
.mode-card.blue .mode-icon { background: #dbeafe; }
.mode-card.green .mode-icon { background: #dcfce7; }
.mode-card.orange .mode-icon { background: #fef3c7; }
.mode-card.purple .mode-icon { background: #f3e8ff; }
.mode-card.teal .mode-icon { background: #ccfbf1; }
.mode-card.red .mode-icon { background: #fee2e2; }
.mode-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary); }
.mode-card p { font-size: 0.93rem; margin-bottom: 16px; color: var(--text-medium); }
.mode-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.hot-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ============================================================
   UK CURRICULUM TABLE
============================================================ */
#curriculum { background: var(--light-bg); }
.curriculum-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.curriculum-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.95rem;
}
.curriculum-table th {
  background: var(--primary);
  color: white;
  padding: 16px 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}
.curriculum-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-medium);
}
.curriculum-table tr:last-child td { border-bottom: none; }
.curriculum-table tr:nth-child(even) td { background: #f8faff; }
.curriculum-table tr:hover td { background: #eff6ff; }
.curriculum-table .year-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
}
.curriculum-table .ks-badge { background: var(--secondary); }
.check-icon { color: var(--secondary); font-weight: 900; font-size: 1.1rem; }

/* ============================================================
   MTC SECTION
============================================================ */
#mtc-section {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 40%, #fbbf24 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
#mtc-section::before {
  content: '🎯';
  position: absolute;
  right: -30px; top: -20px;
  font-size: 180px;
  opacity: 0.1;
}
.mtc-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mtc-content h2 { color: #92400e; margin-bottom: 16px; }
.mtc-content p { color: #78350f; }
.mtc-what {
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
  border: 2px solid rgba(217,119,6,0.3);
}
.mtc-what h4 { color: #92400e; font-family: 'Nunito', sans-serif; margin-bottom: 10px; font-size: 1rem; }
.mtc-what ul { padding-left: 0; }
.mtc-what ul li {
  padding: 6px 0;
  color: #78350f;
  font-size: 0.95rem;
  display: flex; align-items: center; gap: 8px;
}
.mtc-what ul li::before { content: '📌'; font-size: 0.85rem; }
.mtc-tips-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 8px 40px rgba(217,119,6,0.2);
}
.mtc-tips-card h3 { color: var(--primary); margin-bottom: 20px; font-size: 1.3rem; }
.tip-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.tip-item:last-child { border-bottom: none; }
.tip-num {
  width: 32px; height: 32px; min-width: 32px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 0.9rem;
}
.tip-text { flex: 1; }
.tip-text strong { display: block; color: var(--primary); font-family: 'Nunito', sans-serif; margin-bottom: 3px; }
.tip-text span { font-size: 0.9rem; color: var(--text-medium); }
.mtc-urgency {
  background: var(--red);
  color: white;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-top: 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

/* ============================================================
   DAILY ROUTINES
============================================================ */
#daily-routines { background: var(--white); }
.routines-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.routine-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.routine-card.ks1 {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #bfdbfe;
}
.routine-card.ks2 {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #bbf7d0;
}
.routine-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.routine-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.ks1 .routine-icon { background: #bfdbfe; }
.ks2 .routine-icon { background: #bbf7d0; }
.routine-card-header h3 { font-size: 1.25rem; }
.ks1 h3 { color: #1d4ed8; }
.ks2 h3 { color: #16a34a; }
.routine-sub { font-size: 0.85rem; color: var(--text-medium); margin-top: 2px; }
.routine-steps { display: flex; flex-direction: column; gap: 12px; }
.routine-step {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.7);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
}
.step-time {
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
}
.ks2 .step-time { background: var(--secondary-dark); }
.step-desc { font-size: 0.92rem; color: var(--text-dark); font-weight: 600; font-family: 'Nunito', sans-serif; }
.research-box {
  background: linear-gradient(135deg, var(--primary) 0%, #2c5aa0 100%);
  color: white;
  text-align: center;
  padding: 30px;
  border-radius: var(--radius-lg);
  margin-top: 30px;
}
.research-box p { color: rgba(255,255,255,0.9); margin: 0; font-size: 1.05rem; font-style: italic; }
.research-box strong { color: var(--accent); }

/* ============================================================
   WHY CHOOSE US (BENEFITS)
============================================================ */
#benefits { background: var(--light-bg); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}
.benefit-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), #2c5aa0);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: white;
}
.benefit-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.benefit-card p { font-size: 0.92rem; margin: 0; }

/* ============================================================
   COMPARISON TABLE
============================================================ */
#comparison { background: var(--white); }
.comp-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.comp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.93rem;
}
.comp-table th {
  padding: 16px 18px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  text-align: center;
  background: #f8faff;
  border-bottom: 2px solid var(--border);
  color: var(--primary);
  font-size: 0.9rem;
}
.comp-table th.our-col {
  background: var(--primary);
  color: white;
}
.comp-table th:first-child { text-align: left; }
.comp-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--text-medium);
}
.comp-table td:first-child { text-align: left; font-weight: 600; color: var(--text-dark); }
.comp-table td.our-col { background: #f0fdf4; font-weight: 700; color: var(--secondary-dark); }
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:hover td { background: #f8faff; }
.comp-table tr:hover td.our-col { background: #dcfce7; }
.yes { color: var(--secondary-dark); font-size: 1.1rem; }
.no { color: var(--red); font-size: 1.1rem; }
.partial { color: var(--accent); font-size: 1.1rem; }
.comp-note {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ============================================================
   HOW TO PLAY
============================================================ */
#how-to-play { background: var(--light-bg); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
  text-align: center;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.step-number {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), #2c5aa0);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}
.step-emoji { font-size: 2rem; display: block; margin-bottom: 12px; }
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; margin: 0; }
.teacher-tip {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 2px solid #fcd34d;
  border-radius: var(--radius);
  padding: 22px 28px;
  margin-top: 30px;
  display: flex; align-items: center; gap: 16px;
}
.tip-icon { font-size: 2rem; }
.teacher-tip p { margin: 0; color: #92400e; font-weight: 600; font-size: 0.98rem; }

/* ============================================================
   TESTIMONIALS
============================================================ */
#testimonials { background: var(--white); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  transition: var(--transition);
  border: 2px solid transparent;
}
.testi-card:hover { transform: translateY(-6px); border-color: var(--border); box-shadow: var(--shadow-hover); }
.testi-quote {
  font-size: 3.5rem;
  color: var(--secondary);
  line-height: 1;
  font-family: Georgia, serif;
  margin-bottom: 8px;
}
.testi-text {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #2c5aa0);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
}
.testi-name { font-family: 'Nunito', sans-serif; font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.testi-role { font-size: 0.8rem; color: var(--text-light); }
.stars { color: #f59e0b; font-size: 0.9rem; letter-spacing: 1px; display: block; margin-bottom: 4px; }

/* ============================================================
   BLOG SECTION
============================================================ */
#blog-section { background: var(--light-bg); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.blog-thumb {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  position: relative;
}
.blog-thumb.blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.blog-thumb.green { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.blog-thumb.orange { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.blog-body { padding: 24px; }
.blog-cat {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--secondary-dark);
  margin-bottom: 8px;
  display: block;
}
.blog-card h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.4; }
.blog-card h3 a { color: var(--primary); }
.blog-card h3 a:hover { color: var(--secondary-dark); }
.blog-card p { font-size: 0.88rem; margin-bottom: 16px; }
.blog-read-more {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  display: flex; align-items: center; gap: 6px;
}
.blog-read-more:hover { color: var(--secondary-dark); gap: 10px; }

/* ============================================================
   FAQ SECTION
============================================================ */
#faq { background: var(--white); }
.faq-container { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--primary); box-shadow: 0 4px 20px rgba(26,58,107,0.1); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--white);
  transition: var(--transition);
  gap: 16px;
}
.faq-question:hover { background: var(--light-bg); }
.faq-q-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
}
.faq-icon {
  width: 28px; height: 28px; min-width: 28px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--primary);
  font-weight: 900;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--primary); color: white; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-medium);
  font-size: 0.97rem;
  line-height: 1.75;
}

/* ============================================================
   NEWSLETTER SECTION
============================================================ */
#newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, #2c5aa0 100%);
  padding: 80px 0;
}
.newsletter-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.newsletter-inner h2 { color: white; margin-bottom: 12px; }
.newsletter-inner p { color: rgba(255,255,255,0.8); margin-bottom: 30px; font-size: 1.05rem; }
.newsletter-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  padding: 14px 22px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  width: 320px;
  max-width: 100%;
  outline: none;
  font-family: 'Open Sans', sans-serif;
}
.newsletter-note { color: rgba(255,255,255,0.6); font-size: 0.82rem; margin-top: 14px; }

/* ============================================================
   FOOTER
============================================================ */
#footer {
  background: #0a1628;
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .footer-logo {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: white;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: white;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy { color: rgba(255,255,255,0.4); font-size: 0.82rem; }
.footer-badges { display: flex; gap: 8px; }
.footer-badge {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.45);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}

/* ============================================================
   BACK TO TOP
============================================================ */
#back-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(26,58,107,0.4);
  font-size: 1.2rem;
  z-index: 999;
  transition: var(--transition);
  border: none;
}
#back-top:hover { background: var(--secondary-dark); transform: translateY(-4px); }
#back-top.visible { display: flex; }

/* ============================================================
   BREADCRUMB
============================================================ */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--text-medium); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-light); margin: 0 6px; }

/* ============================================================
   SINGLE POST
============================================================ */
.post-header {
  background: linear-gradient(135deg, var(--primary), #2c5aa0);
  padding: 120px 0 60px;
  color: white;
}
.post-header h1 { color: white; max-width: 800px; }
.post-meta { display: flex; gap: 20px; margin-top: 14px; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.post-content { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.post-content h2 { margin: 36px 0 16px; }
.post-content h3 { margin: 28px 0 12px; }
.post-content p { margin-bottom: 20px; font-size: 1.05rem; line-height: 1.8; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 20px; }
.post-content li { margin-bottom: 8px; font-size: 1.02rem; color: var(--text-medium); line-height: 1.7; }

/* ============================================================
   RESPONSIVE DESIGN
============================================================ */
@media (max-width: 1024px) {
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .nav-links, .nav-cta .btn:not(.play-btn) { display: none; }
  .hamburger { display: flex; }
  #hero { padding: 120px 0 70px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .what-is-grid { grid-template-columns: 1fr; }
  .what-is-stats { grid-template-columns: repeat(2, 1fr); }
  .what-is-visual { display: none; }
  .modes-grid { grid-template-columns: 1fr; }
  .mtc-inner { grid-template-columns: 1fr; }
  .routines-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .game-iframe-container iframe { height: 380px; } .game-plugin-container { min-height: 380px; } .game-plugin-container iframe, .game-plugin-container canvas { min-height: 380px; }
  .comp-table { min-width: 600px; }
  .trust-badges { gap: 8px; }
  .trust-badge { font-size: 0.78rem; padding: 7px 14px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  #hero { padding: 100px 0 60px; }
  .hero-badge { font-size: 0.8rem; }
  .btn-lg { padding: 15px 28px; font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .what-is-stats { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; align-items: center; }
  .newsletter-form input { width: 100%; }
}

/* ============================================================
   WORDPRESS SPECIFIC
============================================================ */
.wp-block-image img { border-radius: var(--radius-sm); }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { text-align: center; }
.wp-caption { font-size: 0.85rem; color: var(--text-light); text-align: center; }
.comment-section { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.screen-reader-text { display: none; }
