/* ===================================================
   11PlusQuiz.co.uk — Main Stylesheet
   =================================================== */

/* --- Design Tokens --- */
:root {
  --primary: #5170ff;
  --primary-dark: #3a58e8;
  --primary-light: #eef0ff;
  --primary-glow: rgba(81, 112, 255, 0.25);
  --grey-50: #f9fafb;
  --grey-100: #f3f4f6;
  --grey-200: #e5e7eb;
  --grey-300: #d1d5db;
  --grey-500: #6b7280;
  --grey-700: #374151;
  --grey-900: #111827;
  --coral: #ff6b6b;
  --yellow: #ffd93d;
  --green: #6bcb77;
  --teal: #4ecdc4;
  --purple: #c084fc;
  --white: #ffffff;
  --bg: #f8faff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(81,112,255,0.10), 0 2px 8px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 40px rgba(81,112,255,0.15), 0 4px 16px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(81,112,255,0.18), 0 8px 24px rgba(0,0,0,0.10);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition: 0.22s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--grey-700);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, textarea, select { font-family: var(--font); }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  color: var(--grey-900);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { color: var(--grey-500); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }
.font-semibold { font-weight: 600; }
.text-white { color: var(--white); }
.text-primary { color: var(--primary); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header p {
  font-size: 1.08rem;
  margin-top: 14px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(81,112,255,0.38);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(81,112,255,0.45);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  color: var(--grey-500);
  background: transparent;
  padding: 12px 20px;
}
.btn-ghost:hover { color: var(--primary); background: var(--primary-light); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255,107,107,0.35);
}
.btn-coral:hover {
  background: #e85d5d;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,107,0.42);
}
.btn-green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(107,203,119,0.35);
}
.btn-green:hover {
  background: #52b85e;
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-sm { padding: 24px; }

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-200);
  box-shadow: 0 2px 12px rgba(81,112,255,0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--grey-900); }
.logo-dot { color: var(--coral); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: var(--grey-700);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-cta { margin-left: 8px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--grey-700);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--grey-200);
  background: var(--white);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--grey-700);
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.mobile-nav a:hover { color: var(--primary); background: var(--primary-light); }

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #eef0ff 0%, #f0fff4 50%, #fff8e7 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(81,112,255,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(107,203,119,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--green);
  color: #2d8a3e;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 32px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--grey-500);
}
.hero-trust .stars { color: var(--yellow); font-size: 0.9rem; letter-spacing: 1px; }
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz-card-preview {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 400px;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
.quiz-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.quiz-preview-title { font-weight: 700; font-size: 1rem; color: var(--grey-900); }
.quiz-timer-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.quiz-preview-progress {
  background: var(--grey-100);
  border-radius: var(--radius-full);
  height: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}
.quiz-preview-bar {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  border-radius: var(--radius-full);
  animation: progress-anim 3s ease-in-out infinite alternate;
}
@keyframes progress-anim {
  from { width: 20%; }
  to { width: 75%; }
}
.quiz-preview-q {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: 14px;
  line-height: 1.5;
}
.quiz-preview-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-preview-opt {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  border: 2px solid var(--grey-200);
  color: var(--grey-700);
  cursor: pointer;
  transition: all var(--transition);
}
.quiz-preview-opt.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.quiz-preview-opt:hover { border-color: var(--primary); }
.floating-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  animation: float-sm 3s ease-in-out infinite;
}
@keyframes float-sm {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.floating-badge.badge-1 { top: -16px; right: -16px; color: var(--green); }
.floating-badge.badge-2 { bottom: -16px; left: -16px; color: var(--primary); animation-delay: 1.5s; }

/* --- Features Section --- */
.features-section { background: var(--white); }
.feature-card {
  text-align: center;
  padding: 36px 28px;
}
.feature-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  animation: icon-bounce 3s ease-in-out infinite;
}
.feature-icon.blue { background: #eef0ff; }
.feature-icon.green { background: #f0fff4; }
.feature-icon.coral { background: #fff5f5; }
.feature-icon.yellow { background: #fffbeb; }
.feature-icon.purple { background: #faf5ff; }
.feature-icon.teal { background: #f0fdfa; }
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.feature-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature-card p { font-size: 0.9rem; line-height: 1.65; }

/* --- Stats Strip --- */
.stats-strip {
  background: linear-gradient(135deg, var(--primary) 0%, #6c8fff 100%);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { color: rgba(255,255,255,0.8); font-size: 0.88rem; font-weight: 500; }

/* --- How It Works --- */
.how-it-works { background: var(--bg); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px; left: calc(16.66% + 16px); right: calc(16.66% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-light));
  z-index: 0;
}
.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), #7c9fff);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(81,112,255,0.35);
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; }

/* --- Trust Section --- */
.trust-section { background: var(--white); }
.trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.trust-badges { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
}
.trust-badge-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.trust-badge-text h4 { font-size: 0.95rem; margin-bottom: 3px; color: var(--grey-900); }
.trust-badge-text p { font-size: 0.83rem; }
.donation-cta-card {
  background: linear-gradient(135deg, #f5f7ff 0%, #fff8f0 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 2px solid var(--primary-light);
  text-align: center;
}
.donation-cta-card .amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}
.amount-chip {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--grey-200);
  background: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.amount-chip:hover, .amount-chip.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

/* --- Subject Areas --- */
.subjects-section { background: var(--bg); }
.subject-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.subject-card.maths { border-color: #dbeafe; }
.subject-card.verbal { border-color: #dcfce7; }
.subject-card.non-verbal { border-color: #fce7f3; }
.subject-card.english { border-color: #fef3c7; }
.subject-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.subject-card.maths .subject-pill { background: #dbeafe; color: #1d4ed8; }
.subject-card.verbal .subject-pill { background: #dcfce7; color: #16a34a; }
.subject-card.non-verbal .subject-pill { background: #fce7f3; color: #be185d; }
.subject-card.english .subject-pill { background: #fef3c7; color: #b45309; }
.subject-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.subject-card p { font-size: 0.88rem; line-height: 1.6; }
.subject-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.subject-topic {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--grey-100);
  color: var(--grey-700);
}

/* --- FAQ Section --- */
.faq-section { background: var(--white); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-200);
  background: var(--white);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--grey-900);
  user-select: none;
  gap: 16px;
}
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 24px 20px; }
.faq-answer p { font-size: 0.92rem; line-height: 1.7; }

/* --- Blog Section --- */
.blog-section { background: var(--bg); }
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.blog-thumb.blue { background: linear-gradient(135deg, #eef0ff, #dbeafe); }
.blog-thumb.green { background: linear-gradient(135deg, #f0fff4, #dcfce7); }
.blog-thumb.yellow { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.blog-content { padding: 24px; }
.blog-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.blog-content h3 { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.4; }
.blog-content p { font-size: 0.87rem; line-height: 1.65; margin-bottom: 16px; }
.blog-meta { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; color: var(--grey-500); }
.blog-read-more { margin-top: 12px; font-size: 0.88rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #7c9fff 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 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%3Ccircle cx='30' cy='30' r='10'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; position: relative; }
.cta-banner-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn-white {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-white:hover {
  background: var(--grey-50);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.65);
  font-weight: 600;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* --- Footer --- */
.site-footer {
  background: var(--grey-900);
  color: rgba(255,255,255,0.65);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 14px; font-size: 1.3rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}
.footer-school {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}

/* --- Donation Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,0.65);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grey-100);
  color: var(--grey-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.modal-close:hover { background: var(--grey-200); color: var(--grey-900); }
.modal h3 { margin-bottom: 8px; font-size: 1.4rem; }
.modal > p { font-size: 0.9rem; margin-bottom: 24px; }
.donation-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.donation-amount-btn {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 2px solid var(--grey-200);
  background: var(--white);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  font-family: var(--font);
}
.donation-amount-btn:hover, .donation-amount-btn.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.custom-amount-wrap { margin-bottom: 24px; }
.custom-amount-wrap label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--grey-700); }
.custom-amount-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color var(--transition);
  outline: none;
}
.custom-amount-input:focus { border-color: var(--primary); }
.payment-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.payment-logo {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1.5px solid var(--grey-200);
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.payment-logo.paypal { color: #003087; }
.payment-logo.mastercard { color: #eb001b; }
.payment-logo.visa { color: #1434cb; letter-spacing: 0.06em; }
.payment-logo.amex { color: #007bc1; }
.payment-secured { font-size: 0.75rem; color: var(--grey-500); text-align: center; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* --- Quiz Page --- */
.quiz-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.quiz-intro {
  background: linear-gradient(135deg, #eef0ff 0%, #f5f3ff 100%);
  padding: 80px 0;
  text-align: center;
}
.quiz-intro-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 660px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
}
.quiz-intro-card h1 { font-size: 2rem; margin-bottom: 16px; }
.quiz-intro-card > p { font-size: 1rem; margin-bottom: 28px; }
.quiz-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.quiz-info-item {
  background: var(--grey-50);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.quiz-info-item .icon { font-size: 1.8rem; margin-bottom: 6px; }
.quiz-info-item strong { display: block; font-size: 1rem; color: var(--grey-900); font-weight: 700; }
.quiz-info-item span { font-size: 0.8rem; color: var(--grey-500); }
.quiz-areas { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.quiz-area-tag {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}
.quiz-area-tag.maths { background: #dbeafe; color: #1d4ed8; }
.quiz-area-tag.verbal { background: #dcfce7; color: #16a34a; }
.quiz-area-tag.nvr { background: #fce7f3; color: #be185d; }
.quiz-area-tag.english { background: #fef3c7; color: #b45309; }

/* Quiz Interface */
.quiz-interface { display: none; padding: 40px 0 60px; background: var(--bg); }
.quiz-interface.active { display: block; }
.quiz-header-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
  gap: 16px;
}
.quiz-progress-info { display: flex; align-items: center; gap: 16px; }
.q-counter { font-weight: 700; color: var(--grey-900); font-size: 0.95rem; }
.q-subject-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
}
.quiz-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--grey-900);
  font-variant-numeric: tabular-nums;
}
.quiz-timer .timer-icon { font-size: 1.1rem; }
.quiz-timer.warning { color: var(--coral); animation: timer-pulse 1s ease-in-out infinite; }
.quiz-timer.danger { color: #dc2626; animation: timer-pulse 0.5s ease-in-out infinite; }
@keyframes timer-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.quiz-progress-bar {
  height: 6px;
  background: var(--grey-200);
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}
.quiz-question-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  animation: slideInUp 0.3s ease;
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.question-number {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 14px;
}
.question-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--grey-900);
  line-height: 1.55;
  margin-bottom: 28px;
}
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--grey-700);
  font-family: var(--font);
  width: 100%;
}
.option-btn:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.option-btn.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.option-btn.correct { border-color: var(--green); background: #f0fff4; color: #166534; }
.option-btn.incorrect { border-color: var(--coral); background: #fff5f5; color: #b91c1c; }
.option-btn.unanswered { border-color: var(--yellow); background: #fffbeb; color: #92400e; }
.option-letter {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grey-100);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.option-btn.selected .option-letter { background: var(--primary); color: var(--white); }
.option-btn.correct .option-letter { background: var(--green); color: var(--white); }
.option-btn.incorrect .option-letter { background: var(--coral); color: var(--white); }
.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.quiz-nav-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.nav-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--grey-200);
  cursor: pointer;
  transition: all var(--transition);
}
.nav-dot.answered { background: var(--primary); }
.nav-dot.current { background: var(--teal); transform: scale(1.3); }
.nav-dot.unanswered-flag { background: var(--yellow); }

/* Quiz Alert (timer warnings) */
.quiz-alert {
  position: fixed;
  top: 90px; right: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--coral);
  z-index: 200;
  max-width: 300px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.quiz-alert.show { transform: translateX(0); }
.quiz-alert h4 { font-size: 0.9rem; color: var(--grey-900); margin-bottom: 4px; }
.quiz-alert p { font-size: 0.82rem; }

/* Report */
.quiz-report { display: none; padding: 60px 0; background: var(--bg); }
.quiz-report.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.report-hero {
  background: linear-gradient(135deg, var(--primary), #6c8fff);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  color: var(--white);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.report-score {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  margin: 16px 0 8px;
}
.report-score-sub { font-size: 1.1rem; opacity: 0.85; }
.report-grade-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-full);
  padding: 8px 24px;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 16px;
}
.report-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.report-subject-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.report-subject-card .score { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.report-subject-card .label { font-size: 0.8rem; color: var(--grey-500); margin-top: 4px; }
.report-subject-card .fraction { font-size: 0.85rem; color: var(--grey-700); font-weight: 600; }
.report-questions-review { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.report-q-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--grey-100);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
}
.report-q-item:last-child { border-bottom: none; }
.report-q-status {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.report-q-status.correct { background: #f0fff4; color: var(--green); }
.report-q-status.incorrect { background: #fff5f5; color: var(--coral); }
.report-q-status.unanswered { background: #fffbeb; color: var(--yellow); }
.report-q-text { font-size: 0.88rem; }
.report-q-text strong { display: block; color: var(--grey-900); margin-bottom: 4px; }
.report-q-text .explanation { color: var(--grey-500); font-size: 0.82rem; }
.report-q-subject { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-full); background: var(--primary-light); color: var(--primary); white-space: nowrap; }

/* --- Contact Page --- */
.contact-page { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { margin-bottom: 28px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon {
  width: 40px; height: 40px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail-item h4 { font-size: 0.88rem; margin-bottom: 2px; }
.contact-detail-item p, .contact-detail-item a { font-size: 0.88rem; }
.contact-form-card { background: var(--white); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-lg); }
.contact-form-card h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--grey-700); margin-bottom: 8px; }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color var(--transition);
  outline: none;
  background: var(--white);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}
.form-success.show { display: block; animation: fadeIn 0.4s ease; }
.success-icon { font-size: 3rem; margin-bottom: 12px; }

/* --- Blog Post Page --- */
.blog-hero { background: linear-gradient(135deg, #eef0ff, #f5f3ff); padding: 60px 0; }
.blog-post-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.blog-post-tag { font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-full); background: var(--primary-light); color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; }
.blog-post-date { font-size: 0.82rem; color: var(--grey-500); }
.blog-post-read-time { font-size: 0.82rem; color: var(--grey-500); }
.blog-post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}
.blog-post-content h2 { font-size: 1.6rem; margin: 48px 0 16px; color: var(--grey-900); }
.blog-post-content h3 { font-size: 1.2rem; margin: 36px 0 12px; color: var(--grey-900); }
.blog-post-content p { font-size: 0.97rem; line-height: 1.85; margin-bottom: 20px; color: var(--grey-700); }
.blog-post-content ul, .blog-post-content ol { margin-bottom: 20px; padding-left: 24px; }
.blog-post-content li { font-size: 0.97rem; line-height: 1.8; color: var(--grey-700); margin-bottom: 6px; list-style: disc; }
.blog-post-content ol li { list-style: decimal; }
.blog-callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.blog-callout p { color: var(--primary-dark) !important; font-weight: 500; margin: 0; }
.blog-cta-inline {
  background: linear-gradient(135deg, var(--primary), #6c8fff);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}
.blog-cta-inline h3 { color: var(--white); margin-bottom: 12px; }
.blog-cta-inline p { color: rgba(255,255,255,0.85); margin-bottom: 20px; font-size: 0.92rem; }

/* --- Privacy / Terms --- */
.legal-page { padding: 60px 0; }
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h1 { margin-bottom: 8px; }
.legal-content .last-updated { color: var(--grey-500); font-size: 0.875rem; margin-bottom: 48px; display: block; }
.legal-content h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal-content p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 16px; color: var(--grey-700); }
.legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.legal-content ul li { font-size: 0.95rem; line-height: 1.8; color: var(--grey-700); margin-bottom: 6px; list-style: disc; }

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--grey-900);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 500;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--green); }
.toast.error { background: var(--coral); }

/* --- Icon Colours (Font Awesome) --- */
.feature-icon i { font-size: 1.5rem; }
.feature-icon.blue i { color: #5170ff; }
.feature-icon.green i { color: #16a34a; }
.feature-icon.coral i { color: #ff6b6b; }
.feature-icon.yellow i { color: #b45309; }
.feature-icon.purple i { color: #9333ea; }
.feature-icon.teal i { color: #0d9488; }
.blog-thumb i { font-size: 3rem; }
.blog-thumb.blue i { color: #5170ff; }
.blog-thumb.green i { color: #16a34a; }
.blog-thumb.yellow i { color: #b45309; }
.trust-badge-icon i { font-size: 1.1rem; }
.contact-icon i { font-size: 1rem; }
.quiz-info-item .icon i { font-size: 1.6rem; }

/* Hidden for SEO */
.seo-only { 
  position: absolute; 
  left: -9999px; 
  width: 1px; 
  height: 1px; 
  overflow: hidden; 
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .report-breakdown { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .grid-2, .grid-3, .steps-grid, .trust-inner, .contact-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .quiz-info-grid { grid-template-columns: 1fr 1fr; }
  .quiz-question-card { padding: 24px; }
  .report-breakdown { grid-template-columns: repeat(2, 1fr); }
  .donation-amounts { grid-template-columns: repeat(2, 1fr); }
  .form-grid-2 { grid-template-columns: 1fr; }
  .report-q-item { grid-template-columns: auto 1fr; }
  .report-q-subject { display: none; }
  .hero-cta-group { justify-content: center; }
  .quiz-header-bar { flex-direction: column; align-items: flex-start; }
  .modal { padding: 28px 24px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 40px; }
  .quiz-intro-card { padding: 28px 20px; }
  .report-hero { padding: 32px 24px; }
  .report-score { font-size: 3.5rem; }
  .cta-banner { padding: 56px 0; }
  .report-breakdown { grid-template-columns: repeat(2, 1fr); }
}

/* --- Utility animations --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
