﻿@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* =============================================
   VIDYATRAIL – Vibrant Educational Light Theme
   ============================================= */
:root {
  /* === Brand Core === */
  --brand-deep:    #1d4ed8;
  --brand-mid:     #2563eb;
  --brand-primary: #3b82f6;
  --brand-light:   #60a5fa;
  --brand-xlight:  #dbeafe;
  --brand-xxlight: #eff6ff;

  /* === Subject Accent Colors === */
  --maths:    #2563eb;  /* blue       */
  --science:  #059669;  /* emerald    */
  --english:  #7c3aed;  /* violet     */
  --social:   #f97316;  /* orange     */
  --physics:  #0891b2;  /* cyan       */
  --chemistry:#10b981;  /* teal       */
  --biology:  #16a34a;  /* green      */
  --accounts: #ca8a04;  /* amber      */
  --economics:#e11d48;  /* rose       */
  --hindi:    #b45309;  /* brown      */

  /* === UI Accents === */
  --accent-gold:   #f59e0b;
  --accent-green:  #22c55e;
  --accent-teal:   #14b8a6;
  --accent-coral:  #f43f5e;
  --accent-purple: #8b5cf6;
  --accent-sky:    #0ea5e9;
  --accent-orange: #f97316;

  /* === Backgrounds — light & airy === */
  --bg-page:      #ffffff;
  --bg-section:   #f8faff;
  --bg-alt:       #f0f9ff;
  --bg-highlight: #fefce8;

  /* === Cards & Borders === */
  --card-bg:     #ffffff;
  --card-border: rgba(59,130,246,0.12);
  --card-shadow: 0 2px 16px -2px rgba(37,99,235,0.06), 0 1px 4px rgba(0,0,0,0.03);
  --card-shadow-hover: 0 16px 40px -8px rgba(37,99,235,0.18), 0 4px 16px -4px rgba(0,0,0,0.06);

  /* === Text === */
  --text-main:  #0f172a;
  --text-sub:   #1e40af;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  /* === Typography === */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  /* === Spacing === */
  --sp-xs: 0.25rem;  --sp-sm: 0.5rem;
  --sp-md: 1rem;     --sp-lg: 1.5rem;
  --sp-xl: 2rem;     --sp-2xl: 3rem;

  /* === Radius === */
  --r-sm: 10px;  --r-md: 16px;
  --r-lg: 24px;  --r-xl: 32px;
  --r-pill: 9999px;

  /* === Motion === */
  --ease: cubic-bezier(0.4,0,0.2,1);
  --dur: 0.22s;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }

/* =============================================
   SPLASH LOADER
   ============================================= */
.splash-loader {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #e0e7ff 100%);
}
.splash-logo { text-align: center; animation: fadeUp 0.6s var(--ease) both; }
.splash-icon { font-size: 3.5rem; display: block; margin-bottom: 1rem; animation: pulse 1.5s ease infinite; }
.splash-logo h2 {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 900;
  color: var(--brand-deep); margin-bottom: 0.5rem;
}
.splash-logo p { color: var(--text-muted); font-size: 0.95rem; }

/* =============================================
   LAYOUT
   ============================================= */
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* =============================================
   HEADER / NAV — white with blue accent
   ============================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--brand-xlight);
  box-shadow: 0 2px 16px rgba(37,99,235,0.07);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 1rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 900;
  color: var(--brand-deep); white-space: nowrap;
}
.nav-logo-icon { font-size: 1.7rem; }
.nav-logo .brand-trail { color: var(--accent-orange); }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem; list-style: none;
}
.nav-links a {
  padding: 0.42rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: 0.88rem; font-weight: 700;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--brand-deep); background: var(--brand-xxlight); }
.nav-links a.active {
  color: var(--brand-deep);
  background: var(--brand-xlight);
}
.nav-cta {
  background: linear-gradient(135deg, var(--brand-mid), var(--accent-purple)) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(37,99,235,0.4) !important;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none; padding: 0.5rem;
}
.hamburger span {
  display: block; width: 22px; height: 2.5px;
  background: var(--brand-deep); border-radius: var(--r-pill);
  transition: all var(--dur) var(--ease);
}
.mobile-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--brand-xlight);
  padding: 1rem 1.5rem; flex-direction: column; gap: 0.25rem;
  animation: slideDown 0.2s var(--ease) both;
  box-shadow: 0 8px 24px rgba(37,99,235,0.1);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.65rem 0.85rem; border-radius: var(--r-sm);
  font-size: 0.9rem; font-weight: 700; color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.mobile-nav a:hover { background: var(--brand-xxlight); color: var(--brand-deep); }

/* =============================================
   HERO — vivid blue gradient + shapes
   ============================================= */
.hero {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 40%, #0891b2 100%);
  position: relative; overflow: hidden;
  padding: 5rem 0 4.5rem;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 70% 40%, rgba(255,255,255,0.1) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(249,115,22,0.18) 0%, transparent 65%);
  pointer-events: none;
}
/* Floating confetti shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-shape {
  position: absolute; border-radius: 50%;
  opacity: 0.15;
  animation: floatOrb 9s ease-in-out infinite;
}
.hero-shape:nth-child(1) { width: 320px; height: 320px; background: #fbbf24; top: -80px; right: 5%; animation-delay: 0s; }
.hero-shape:nth-child(2) { width: 200px; height: 200px; background: #34d399; bottom: -60px; left: 10%; animation-delay: -4s; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.hero-shape:nth-child(3) { width: 140px; height: 140px; background: #f472b6; top: 50%; left: 42%; animation-delay: -7s; border-radius: 50% 20% 50% 20%; }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 2; }
.hero-content { animation: fadeUp 0.7s var(--ease) 0.1s both; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.35);
  color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 0.35rem 1rem; border-radius: var(--r-pill);
  text-transform: uppercase; letter-spacing: 0.09em;
  margin-bottom: 1.25rem;
}
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #fbbf24; animation: pulse 1.8s ease infinite; }

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900;
  color: #fff; margin-bottom: 0.6rem; line-height: 1.08;
}
.hero-title .hero-brand { color: #fde68a; }
.hero-title .hero-sub  { color: rgba(255,255,255,0.85); font-size: 0.65em; display: block; font-weight: 700; margin-top: 0.2em; }

.hero-tagline {
  font-size: 1.15rem; font-weight: 700;
  color: rgba(255,255,255,0.85); margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.hero-tagline .dot { color: #fbbf24; margin: 0 0.3em; }

.hero-desc {
  color: rgba(255,255,255,0.72); font-size: 1rem;
  max-width: 480px; margin-bottom: 2rem; line-height: 1.75;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: var(--brand-deep);
  font-weight: 800; font-size: 1rem;
  padding: 0.85rem 1.9rem; border-radius: var(--r-md); border: none;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  transition: all var(--dur) var(--ease);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }

.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff; font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.75rem; border-radius: var(--r-md);
  transition: all var(--dur) var(--ease);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.25); }

.hero-stats {
  display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 900; color: #fff;
}
.hero-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); font-weight: 600; }

/* Hero visual card */
.hero-visual { animation: fadeUp 0.7s var(--ease) 0.25s both; }
.hero-main-card {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: var(--r-lg); padding: 1.75rem;
  backdrop-filter: blur(16px);
  animation: floatCard 5s ease-in-out infinite;
  position: relative;
}
.hero-card-label {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.55); margin-bottom: 1rem;
}
.hero-subject-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.hero-subject-tile {
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-md); padding: 1rem 0.75rem;
  text-align: center; cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.hero-subject-tile:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.tile-icon { font-size: 1.8rem; margin-bottom: 0.35rem; }
.tile-name { font-size: 0.78rem; font-weight: 800; color: #fff; font-family: var(--font-display); }
.tile-count { font-size: 0.67rem; color: rgba(255,255,255,0.5); margin-top: 0.15rem; }

.hero-floating-badge {
  position: absolute; font-weight: 800; font-size: 0.74rem;
  padding: 0.38rem 0.9rem; border-radius: var(--r-pill);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15); white-space: nowrap; color: #fff;
}
.hero-floating-badge.top-right {
  top: -14px; right: 20px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  animation: floatBadge 4s ease-in-out infinite;
}
.hero-floating-badge.bot-left {
  bottom: -14px; left: 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  animation: floatBadge 4s ease-in-out infinite -2s;
}

/* =============================================
   CONTENT NAV TABS
   ============================================= */
.content-nav {
  background: #fff;
  border-bottom: 2px solid var(--brand-xlight);
  position: sticky; top: 66px; z-index: 90;
  box-shadow: 0 2px 10px rgba(37,99,235,0.05);
}
.content-tabs {
  display: flex; overflow-x: auto; scrollbar-width: none;
}
.content-tabs::-webkit-scrollbar { display: none; }
.content-tab {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 1rem 1.3rem; white-space: nowrap;
  font-size: 0.88rem; font-weight: 700; color: var(--text-muted);
  border-bottom: 3px solid transparent;
  background: transparent; border-top: none; border-left: none; border-right: none;
  transition: all var(--dur) var(--ease); cursor: pointer;
}
.content-tab:hover { color: var(--brand-deep); background: var(--brand-xxlight); }
.content-tab.active { color: var(--brand-deep); border-bottom-color: var(--brand-mid); }
.tab-icon { font-size: 1.05rem; }

/* =============================================
   SECTION
   ============================================= */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-section); }
.section-header { margin-bottom: 2.5rem; }
.section-header.centered { text-align: center; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.74rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.11em; color: var(--brand-mid);
  background: var(--brand-xxlight); padding: 0.25rem 0.8rem;
  border-radius: var(--r-pill); margin-bottom: 0.7rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900;
  color: var(--text-main); margin-bottom: 0.55rem;
}
.section-title .accent { color: var(--brand-mid); }
.section-title .accent-orange { color: var(--accent-orange); }
.section-title .accent-green  { color: var(--science); }
.section-subtitle { font-size: 1rem; color: var(--text-muted); max-width: 540px; line-height: 1.7; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* =============================================
   CLASS SELECTOR PILLS
   ============================================= */
.class-selector { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; align-items: center; }
.class-label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); margin-right: 0.25rem; }
.class-btn {
  padding: 0.48rem 1.1rem; border-radius: var(--r-pill);
  font-size: 0.88rem; font-weight: 700;
  border: 2px solid var(--card-border); background: #fff; color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.class-btn:hover { border-color: var(--brand-primary); color: var(--brand-deep); background: var(--brand-xxlight); }
.class-btn.active {
  background: var(--brand-mid); border-color: var(--brand-mid);
  color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

/* =============================================
   SUBJECT CARDS — colourful top-stripe
   ============================================= */
.subjects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.subject-card {
  background: #fff; border: 1.5px solid var(--card-border);
  border-radius: var(--r-md); padding: 1.4rem 1.2rem;
  cursor: pointer; transition: all var(--dur) var(--ease);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.subject-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--card-accent, var(--brand-primary)); border-radius: 4px 4px 0 0;
}
.subject-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(37,99,235,0.2);
}
.subject-icon { font-size: 2.1rem; }
.subject-name { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--text-main); }
.subject-meta { font-size: 0.78rem; color: var(--text-muted); }
.subject-pill {
  display: inline-flex; align-items: center;
  font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.65rem; border-radius: var(--r-pill);
  margin-top: auto; width: fit-content;
  background: var(--card-xlight, var(--brand-xxlight));
  color: var(--card-accent, var(--brand-mid));
}

/* =============================================
   PAPER CARDS
   ============================================= */
.papers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.paper-card {
  background: #fff; border: 1.5px solid var(--card-border);
  border-radius: var(--r-md); padding: 1.4rem;
  transition: all var(--dur) var(--ease);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.paper-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); border-color: rgba(37,99,235,0.18); }
.paper-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.paper-card-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 800; color: var(--text-main); line-height: 1.35; }
.paper-badge {
  flex-shrink: 0; font-size: 0.7rem; font-weight: 800;
  padding: 0.22rem 0.65rem; border-radius: var(--r-pill);
}
.paper-badge.blue   { background: #dbeafe; color: #1d4ed8; }
.paper-badge.gold   { background: #fef3c7; color: #92400e; }
.paper-badge.green  { background: #dcfce7; color: #166534; }
.paper-badge.violet { background: #ede9fe; color: #5b21b6; }
.paper-badge.orange { background: #ffedd5; color: #9a3412; }

.paper-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.paper-meta-item {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.78rem; color: var(--text-muted); font-weight: 600;
}
.paper-actions { display: flex; gap: 0.5rem; margin-top: auto; }
.btn-paper {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.58rem; border-radius: var(--r-sm); font-size: 0.82rem; font-weight: 700;
  border: 1.5px solid var(--card-border); background: #fff; color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.btn-paper:hover { border-color: var(--brand-primary); color: var(--brand-deep); background: var(--brand-xxlight); }
.btn-paper.primary {
  background: var(--brand-mid); border-color: var(--brand-mid);
  color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.btn-paper.primary:hover { background: var(--brand-deep); box-shadow: 0 6px 20px rgba(37,99,235,0.38); }

/* =============================================
   VIDEO CARDS
   ============================================= */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.video-card {
  background: #fff; border: 1.5px solid var(--card-border);
  border-radius: var(--r-md); overflow: hidden;
  transition: all var(--dur) var(--ease); cursor: pointer;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); border-color: rgba(37,99,235,0.2); }
.video-thumb {
  position: relative; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.video-play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; transition: all var(--dur) var(--ease);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25); z-index: 2;
}
.video-card:hover .video-play-btn { transform: scale(1.12); background: #fff; }
.video-duration {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  background: rgba(0,0,0,0.65); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 0.2rem 0.5rem; border-radius: var(--r-sm);
}
.video-thumb-emoji { font-size: 3.5rem; opacity: 0.35; position: absolute; }
.video-body { padding: 1rem 1.1rem; }
.video-title {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 800;
  color: var(--text-main); margin-bottom: 0.5rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-meta { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.video-tag {
  font-size: 0.7rem; font-weight: 700;
  padding: 0.15rem 0.55rem; border-radius: var(--r-pill);
  background: var(--brand-xxlight); color: var(--brand-mid);
}

/* =============================================
   NOTES CARDS
   ============================================= */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.note-card {
  background: #fff; border: 1.5px solid var(--card-border);
  border-radius: var(--r-md); padding: 1.2rem;
  transition: all var(--dur) var(--ease);
  display: flex; gap: 0.9rem; align-items: flex-start;
}
.note-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); border-color: rgba(37,99,235,0.18); }
.note-icon-wrap {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.note-info { flex: 1; }
.note-title { font-family: var(--font-display); font-size: 0.88rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.2rem; }
.note-meta { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.note-download {
  flex-shrink: 0; padding: 0.42rem 0.9rem;
  border-radius: var(--r-sm); font-size: 0.8rem; font-weight: 800;
  border: 1.5px solid var(--card-border); background: #fff; color: var(--text-muted);
  transition: all var(--dur) var(--ease);
  display: flex; align-items: center; gap: 0.3rem; align-self: center;
}
.note-download:hover { background: var(--brand-mid); border-color: var(--brand-mid); color: #fff; }

/* =============================================
   TEST CARDS
   ============================================= */
.tests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.test-card {
  background: #fff; border: 1.5px solid var(--card-border);
  border-radius: var(--r-md); padding: 1.5rem;
  transition: all var(--dur) var(--ease); position: relative; overflow: hidden;
}
.test-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--card-accent, var(--brand-primary));
}
.test-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.test-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.test-icon { font-size: 1.8rem; }
.test-title { font-family: var(--font-display); font-size: 0.98rem; font-weight: 800; color: var(--text-main); }
.test-subject { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.test-stats { display: flex; gap: 1.5rem; margin-bottom: 1rem; }
.test-stat-val { font-family: var(--font-display); font-size: 1.2rem; font-weight: 900; color: var(--brand-mid); }
.test-stat-lbl { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; }
.test-difficulty {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 800; margin-bottom: 1rem;
  padding: 0.22rem 0.65rem; border-radius: var(--r-pill);
}
.test-difficulty.easy   { background: #dcfce7; color: #166534; }
.test-difficulty.medium { background: #fef9c3; color: #713f12; }
.test-difficulty.hard   { background: #fee2e2; color: #991b1b; }
.btn-start-test {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.72rem; border-radius: var(--r-sm); font-size: 0.9rem; font-weight: 800;
  background: linear-gradient(135deg, var(--brand-mid), var(--accent-purple));
  color: #fff; border: none;
  box-shadow: 0 4px 14px rgba(37,99,235,0.28);
  transition: all var(--dur) var(--ease);
}
.btn-start-test:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(37,99,235,0.4); }

/* =============================================
   FEATURES GRID
   ============================================= */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.feature-card {
  background: #fff; border: 1.5px solid var(--card-border);
  border-radius: var(--r-md); padding: 1.5rem;
  transition: all var(--dur) var(--ease);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); border-color: rgba(37,99,235,0.18); }
.feature-icon-wrap {
  width: 54px; height: 54px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem; margin-bottom: 1rem;
}
.feature-title { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.4rem; }
.feature-desc { font-size: 0.87rem; color: var(--text-muted); line-height: 1.65; }

/* =============================================
   SEARCH
   ============================================= */
.search-wrap { margin-bottom: 1.75rem; }
.search-bar {
  display: flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 2px solid var(--card-border);
  border-radius: var(--r-md); padding: 0.55rem 1rem;
  max-width: 480px; transition: all var(--dur) var(--ease);
}
.search-bar:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(59,130,246,0.1); }
.search-bar input { flex: 1; border: none; outline: none; font-size: 0.92rem; font-family: var(--font-body); color: var(--text-main); background: transparent; }
.search-bar input::placeholder { color: var(--text-faint); }
.search-icon { color: var(--text-faint); font-size: 1.1rem; }

/* =============================================
   COMING SOON
   ============================================= */
.coming-soon-banner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4rem 2rem; text-align: center;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border-radius: var(--r-lg); border: 2px dashed rgba(99,102,241,0.25);
  margin: 1rem 0;
}
.coming-soon-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.coming-soon-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: var(--text-main); margin-bottom: 0.5rem; }
.coming-soon-desc { color: var(--text-muted); font-size: 0.95rem; max-width: 380px; line-height: 1.7; }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb-item { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.breadcrumb-item.active { color: var(--brand-deep); }
.breadcrumb-item a:hover { color: var(--brand-deep); }
.breadcrumb-sep { color: var(--text-faint); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.55);
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-logo {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 900;
  color: #fff; margin-bottom: 0.75rem;
}
.footer-logo .brand-trail { color: var(--accent-orange); }
.footer-desc { font-size: 0.85rem; line-height: 1.75; max-width: 250px; }
.footer-tagline { margin-top: 0.5rem; font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.35); letter-spacing: 0.05em; }
.footer-col-title {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 900;
  color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.85rem; transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: #93c5fd; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.25rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom-text { font-size: 0.8rem; }
.footer-heart { color: var(--accent-coral); }
.footer-bottom-right { display: flex; gap: 1.25rem; }
.footer-bottom-right a { font-size: 0.8rem; transition: color var(--dur) var(--ease); }
.footer-bottom-right a:hover { color: #93c5fd; }

/* =============================================
   BADGE RIBBON (top-right corner)
   ============================================= */
.ribbon {
  position: absolute; top: 12px; right: -28px;
  background: var(--accent-gold); color: #fff;
  font-size: 0.64rem; font-weight: 800; text-transform: uppercase;
  padding: 0.2rem 2.2rem; transform: rotate(35deg);
  box-shadow: 0 2px 8px rgba(245,158,11,0.35);
  pointer-events: none;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
@keyframes floatOrb {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(18px,-18px) scale(1.06); }
  66%     { transform: translate(-14px,10px) scale(0.96); }
}
@keyframes floatBadge {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.12); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; }
  .papers-grid, .video-grid, .tests-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 3rem; }
}


/* ==========================================================================
   APP COMPONENT SPECIFIC STYLES (MATCHING app.js)
   ========================================================================== */

/* Header */
.app-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(37,99,235,0.08);
}
.header-container {
  max-width: 1280px; margin: 0 auto; padding: 0.75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand-logo {
  display: flex; align-items: center; gap: 0.75rem; cursor: pointer; user-select: none;
}
.brand-icon {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(37,99,235,0.15);
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 900;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #f97316 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.brand-tagline {
  font-size: 0.76rem; font-weight: 600; color: #64748b; letter-spacing: 0.02em;
}

/* Nav Links */
.nav-links {
  display: flex; align-items: center; gap: 0.4rem; list-style: none;
}
.nav-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 0.95rem; border-radius: 9999px;
  font-size: 0.88rem; font-weight: 700;
  color: #475569; background: transparent; border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.nav-btn:hover {
  color: #1d4ed8; background: #eff6ff;
}
.nav-btn.active {
  color: #1d4ed8; background: #dbeafe; border-color: rgba(37,99,235,0.2);
}
.nav-badge {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  background: #f97316; color: #fff; padding: 0.15rem 0.5rem;
  border-radius: 9999px; letter-spacing: 0.04em;
}
.free-badge-pill {
  padding: 0.5rem 1rem; border-radius: 9999px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; font-size: 0.82rem; font-weight: 800; border: none;
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
  cursor: pointer; transition: transform 0.2s;
}
.free-badge-pill:hover { transform: scale(1.04); }

/* Main layout */
.main-content-area {
  min-height: calc(100vh - 180px);
  background: #f8faff;
}

/* Hero */
.hero-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 50%, #eff6ff 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 4rem 1.5rem 3.5rem;
  position: relative; overflow: hidden;
}
.hero-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 75% 25%, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-container {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 3.5rem; align-items: center;
  position: relative; z-index: 2;
}
.hero-badge {
  display: inline-block; padding: 0.35rem 0.95rem; border-radius: 9999px;
  background: #dbeafe; color: #1e40af; font-size: 0.82rem; font-weight: 800;
  margin-bottom: 1.25rem; border: 1px solid rgba(59,130,246,0.25);
}
.hero-heading {
  font-family: 'Outfit', sans-serif; font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 900; line-height: 1.15; color: #0f172a; margin-bottom: 1.25rem;
}
.highlight-gradient {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subheading {
  font-size: 1.08rem; color: #475569; line-height: 1.7; margin-bottom: 2rem; max-width: 600px;
}
.hero-cta-group {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem;
}
.hero-btn-primary {
  padding: 0.85rem 1.75rem; border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff; font-size: 0.98rem; font-weight: 800; border: none;
  box-shadow: 0 8px 24px -4px rgba(37,99,235,0.4);
  cursor: pointer; transition: all 0.2s;
}
.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(37,99,235,0.5);
}
.hero-btn-secondary {
  padding: 0.85rem 1.75rem; border-radius: 12px;
  background: #fff; color: #1e293b; font-size: 0.98rem; font-weight: 800;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer; transition: all 0.2s;
}
.hero-btn-secondary:hover {
  background: #f8fafc; border-color: #94a3b8;
}
.hero-stat-row {
  display: flex; align-items: center; gap: 1.75rem;
  padding-top: 1.5rem; border-top: 1px solid #e2e8f0;
}
.stat-num {
  font-family: 'Outfit', sans-serif; font-size: 1.45rem; font-weight: 900; color: #1e40af;
}
.stat-lbl {
  font-size: 0.78rem; font-weight: 600; color: #64748b; margin-top: 0.1rem;
}
.stat-divider { width: 1px; height: 36px; background: #e2e8f0; }

/* Featured Showcase Card */
.featured-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px -10px rgba(37,99,235,0.15), 0 0 1px 1px rgba(37,99,235,0.1);
  border: 2px solid #dbeafe;
}
.featured-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;
}
.featured-tag {
  background: #fef3c7; color: #b45309; padding: 0.3rem 0.75rem;
  border-radius: 9999px; font-size: 0.78rem; font-weight: 800;
}
.featured-class {
  background: #eff6ff; color: #1d4ed8; padding: 0.3rem 0.75rem;
  border-radius: 9999px; font-size: 0.78rem; font-weight: 800;
}
.featured-card h3 {
  font-size: 1.35rem; font-weight: 800; color: #0f172a; margin-bottom: 0.5rem;
}
.featured-card p {
  color: #64748b; font-size: 0.92rem; line-height: 1.6; margin-bottom: 1.25rem;
}
.featured-features {
  display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem;
  font-size: 0.88rem; font-weight: 600; color: #334155;
}
.featured-action-btn {
  width: 100%; padding: 0.85rem; border-radius: 12px;
  background: #2563eb; color: #fff; font-weight: 800; font-size: 0.95rem;
  border: none; cursor: pointer; transition: background 0.2s;
}
.featured-action-btn:hover { background: #1d4ed8; }

/* Class Selector Strip */
.class-selector-strip {
  background: #ffffff; border-bottom: 1px solid #e2e8f0;
  padding: 0.9rem 1.5rem; position: sticky; top: 74px; z-index: 90;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.03);
}
.class-strip-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.strip-label {
  font-size: 0.88rem; font-weight: 800; color: #334155; text-transform: uppercase; letter-spacing: 0.04em;
}
.class-pills-row {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.class-pill-btn {
  padding: 0.45rem 1.15rem; border-radius: 9999px;
  font-size: 0.86rem; font-weight: 700;
  border: 1.5px solid #cbd5e1; background: #ffffff; color: #334155;
  cursor: pointer; transition: all 0.2s;
}
.class-pill-btn:hover {
  border-color: #3b82f6; color: #2563eb; background: #eff6ff;
}
.class-pill-btn.active {
  background: #2563eb; color: #ffffff; border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

/* Subject Chips */
.subject-filter-chips {
  max-width: 1240px; margin: 1.5rem auto 1rem; padding: 0 1.5rem;
  display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem;
}
.subject-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 1rem; border-radius: 9999px;
  background: #ffffff; border: 1.5px solid #e2e8f0;
  font-size: 0.84rem; font-weight: 700; color: #475569;
  white-space: nowrap; cursor: pointer; transition: all 0.2s;
}
.subject-chip:hover {
  border-color: #93c5fd; background: #f0f7ff; color: #1e40af;
}
.subject-chip.active {
  background: #1e40af; color: #fff; border-color: #1e40af;
  box-shadow: 0 4px 12px rgba(30,64,175,0.25);
}

/* Section Pillars */
.pillars-section, .preview-papers-section, .why-section {
  max-width: 1240px; margin: 3.5rem auto; padding: 0 1.5rem;
}
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header.flex-between {
  display: flex; justify-content: space-between; align-items: flex-end; text-align: left;
}
.sec-subtitle {
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase;
  color: #2563eb; letter-spacing: 0.08em; display: block; margin-bottom: 0.4rem;
}
.sec-title {
  font-family: 'Outfit', sans-serif; font-size: 2.1rem; font-weight: 900; color: #0f172a;
}
.sec-desc {
  font-size: 1rem; color: #64748b; margin-top: 0.5rem; max-width: 650px; margin-left: auto; margin-right: auto;
}
.btn-view-all {
  padding: 0.6rem 1.25rem; border-radius: 10px;
  background: #eff6ff; color: #1d4ed8; font-size: 0.88rem; font-weight: 800;
  border: 1.5px solid #bfdbfe; cursor: pointer; transition: all 0.2s;
}
.btn-view-all:hover {
  background: #2563eb; color: #fff; border-color: #2563eb;
}

.pillars-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem;
}
.pillar-card {
  background: #ffffff; border-radius: 16px; padding: 2rem;
  border: 1.5px solid #e2e8f0; box-shadow: 0 4px 20px -2px rgba(0,0,0,0.03);
  display: flex; flex-direction: column; transition: all 0.25s;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -4px rgba(37,99,235,0.12);
  border-color: #93c5fd;
}
.pillar-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.pillar-title {
  font-size: 1.25rem; font-weight: 800; color: #0f172a; margin-bottom: 0.65rem;
}
.pillar-desc {
  font-size: 0.92rem; color: #64748b; line-height: 1.6; margin-bottom: 1.5rem; flex-grow: 1;
}
.pillar-btn {
  background: none; border: none; font-size: 0.9rem; font-weight: 800; color: #2563eb;
  padding: 0; cursor: pointer; text-align: left;
}

/* Papers Grid & Paper Card */
.papers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1.5rem;
  max-width: 1240px; margin: 1rem auto 3rem; padding: 0 1.5rem;
}
.paper-card {
  background: #ffffff; border-radius: 16px; padding: 1.5rem;
  border: 1.5px solid #e2e8f0; box-shadow: 0 4px 16px -2px rgba(0,0,0,0.04);
  display: flex; flex-direction: column; transition: all 0.2s;
}
.paper-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 12px 28px -4px rgba(37,99,235,0.12);
  transform: translateY(-2px);
}
.paper-card-top {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.85rem;
}
.paper-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag-class {
  background: #eff6ff; color: #1d4ed8; padding: 0.2rem 0.6rem;
  border-radius: 6px; font-size: 0.75rem; font-weight: 800;
}
.tag-subject {
  padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.75rem; font-weight: 800;
}
.tag-year {
  background: #f1f5f9; color: #475569; padding: 0.2rem 0.6rem;
  border-radius: 6px; font-size: 0.75rem; font-weight: 700;
}
.tag-type {
  background: #fef3c7; color: #92400e; padding: 0.2rem 0.6rem;
  border-radius: 6px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
}
.paper-title {
  font-size: 1.15rem; font-weight: 800; color: #0f172a; margin-bottom: 0.65rem; line-height: 1.35;
}
.paper-desc {
  font-size: 0.88rem; color: #64748b; line-height: 1.55; margin-bottom: 1rem; flex-grow: 1;
}
.paper-highlights {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.15rem;
}
.hl-tag {
  background: #f8fafc; border: 1px solid #e2e8f0; color: #334155;
  padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600;
}
.paper-meta-row {
  display: flex; gap: 1rem; font-size: 0.78rem; font-weight: 700; color: #64748b;
  padding-top: 0.85rem; border-top: 1px solid #f1f5f9; margin-bottom: 1rem;
}
.paper-card-actions {
  display: grid; grid-template-columns: 1fr auto; gap: 0.6rem;
}
.btn-view-sol {
  padding: 0.65rem; border-radius: 10px;
  background: #2563eb; color: #ffffff; font-size: 0.88rem; font-weight: 800;
  border: none; cursor: pointer; transition: background 0.2s;
}
.btn-view-sol:hover { background: #1d4ed8; }
.btn-download-pdf {
  padding: 0.65rem 1rem; border-radius: 10px;
  background: #eff6ff; color: #1d4ed8; font-size: 0.88rem; font-weight: 800;
  border: 1.5px solid #bfdbfe; cursor: pointer; transition: all 0.2s;
}
.btn-download-pdf:hover { background: #dbeafe; }

/* Page Header */
.page-header {
  max-width: 1240px; margin: 2rem auto 1rem; padding: 0 1.5rem;
}
.page-badge {
  display: inline-block; font-size: 0.82rem; font-weight: 800;
  padding: 0.3rem 0.8rem; border-radius: 9999px;
  background: #dbeafe; color: #1e40af; margin-bottom: 0.6rem;
}
.page-header h1 {
  font-family: 'Outfit', sans-serif; font-size: 2.2rem; font-weight: 900; color: #0f172a; margin-bottom: 0.5rem;
}
.page-header p {
  color: #64748b; font-size: 1rem; max-width: 750px; line-height: 1.6;
}
.search-box-wrapper {
  margin-top: 1.25rem; max-width: 600px; position: relative;
}
.search-input {
  width: 100%; padding: 0.85rem 2.5rem 0.85rem 1.25rem; border-radius: 12px;
  border: 1.5px solid #cbd5e1; font-size: 0.95rem; font-family: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03); outline: none; transition: border-color 0.2s;
}
.search-input:focus { border-color: #2563eb; }
.search-clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 1rem; color: #94a3b8; cursor: pointer;
}
.results-count-bar {
  max-width: 1240px; margin: 1rem auto; padding: 0 1.5rem;
  font-size: 0.88rem; color: #64748b;
}

/* Subjects Grid */
.subjects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
  max-width: 1240px; margin: 1.5rem auto 3rem; padding: 0 1.5rem;
}
.subject-overview-card {
  background: #ffffff; border-radius: 16px; padding: 1.75rem;
  box-shadow: 0 4px 16px -2px rgba(0,0,0,0.04);
  border: 1.5px solid #e2e8f0; display: flex; flex-direction: column;
}
.subj-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 1rem;
}
.subj-name { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin-bottom: 0.25rem; }
.subj-stream {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  color: #64748b; background: #f1f5f9; padding: 0.15rem 0.5rem;
  border-radius: 6px; width: fit-content; margin-bottom: 1.25rem;
}
.subj-metrics {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem;
  background: #f8fafc; border-radius: 10px; padding: 0.75rem; margin-bottom: 1.25rem;
  text-align: center;
}
.metric-num { font-size: 1.15rem; font-weight: 800; color: #1e293b; display: block; }
.metric-lbl { font-size: 0.68rem; font-weight: 600; color: #64748b; display: block; }
.subj-action-btn {
  width: 100%; padding: 0.65rem; border-radius: 10px;
  background: #eff6ff; color: #1d4ed8; font-weight: 800; font-size: 0.86rem;
  border: 1.5px solid #bfdbfe; cursor: pointer; transition: all 0.2s;
}
.subj-action-btn:hover { background: #2563eb; color: #fff; border-color: #2563eb; }

/* Videos Grid */
.videos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem;
  max-width: 1240px; margin: 1.5rem auto 3rem; padding: 0 1.5rem;
}
.video-card {
  background: #ffffff; border-radius: 16px; overflow: hidden;
  border: 1.5px solid #e2e8f0; box-shadow: 0 4px 16px -2px rgba(0,0,0,0.04);
  display: flex; flex-direction: column;
}
.video-thumb {
  background: linear-gradient(135deg, #1e293b, #334155);
  height: 180px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.video-thumb-icon { font-size: 3.5rem; opacity: 0.8; }
.video-duration {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(0,0,0,0.75); color: #fff; padding: 0.2rem 0.55rem;
  border-radius: 6px; font-size: 0.75rem; font-weight: 700;
}
.play-floating-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: #2563eb; color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.play-floating-btn:hover { transform: scale(1.1); }
.video-info { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }
.video-tag-row { display: flex; gap: 0.4rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.video-tag-badge {
  background: #fef3c7; color: #b45309; padding: 0.2rem 0.6rem;
  border-radius: 6px; font-size: 0.72rem; font-weight: 800;
}
.video-title { font-size: 1.05rem; font-weight: 800; color: #0f172a; margin-bottom: 0.5rem; }
.video-desc { font-size: 0.86rem; color: #64748b; line-height: 1.55; margin-bottom: 1rem; flex-grow: 1; }
.video-meta-footer {
  display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 700;
  color: #64748b; padding-top: 0.75rem; border-top: 1px solid #f1f5f9;
}

/* Notes Grid */
.notes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem;
  max-width: 1240px; margin: 1.5rem auto 3rem; padding: 0 1.5rem;
}
.note-card {
  background: #ffffff; border-radius: 16px; padding: 1.5rem;
  border: 1.5px solid #e2e8f0; box-shadow: 0 4px 16px -2px rgba(0,0,0,0.04);
  display: flex; flex-direction: column;
}
.note-card-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.note-icon-box {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.note-badges { display: flex; gap: 0.4rem; }
.note-title { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin-bottom: 0.5rem; }
.note-desc { font-size: 0.86rem; color: #64748b; line-height: 1.55; margin-bottom: 1rem; flex-grow: 1; }
.note-meta {
  display: flex; gap: 1.25rem; font-size: 0.78rem; font-weight: 700; color: #64748b;
  margin-bottom: 1rem;
}
.note-actions { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; }
.btn-read-note {
  padding: 0.65rem; border-radius: 10px;
  background: #2563eb; color: #ffffff; font-size: 0.88rem; font-weight: 800;
  border: none; cursor: pointer;
}
.btn-download-note {
  padding: 0.65rem 1rem; border-radius: 10px;
  background: #eff6ff; color: #1d4ed8; font-size: 0.88rem; font-weight: 800;
  border: 1.5px solid #bfdbfe; cursor: pointer;
}

/* Tests Grid & Quiz Runner */
.tests-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem;
  max-width: 1240px; margin: 1.5rem auto 3rem; padding: 0 1.5rem;
}
.test-card {
  background: #ffffff; border-radius: 16px; padding: 1.75rem;
  border: 1.5px solid #e2e8f0; box-shadow: 0 4px 16px -2px rgba(0,0,0,0.04);
  display: flex; flex-direction: column;
}
.test-card-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;
}
.test-icon-badge {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.diff-badge {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 6px;
}
.diff-easy { background: #dcfce7; color: #15803d; }
.diff-medium { background: #fef3c7; color: #b45309; }
.diff-hard { background: #fee2e2; color: #b91c1c; }
.test-title { font-size: 1.15rem; font-weight: 800; color: #0f172a; margin-bottom: 0.85rem; }
.test-meta {
  display: flex; gap: 1rem; font-size: 0.8rem; font-weight: 700; color: #64748b;
  margin-bottom: 1.5rem;
}
.btn-start-test {
  width: 100%; padding: 0.75rem; border-radius: 10px;
  background: #2563eb; color: #fff; font-weight: 800; font-size: 0.9rem;
  border: none; cursor: pointer; transition: background 0.2s;
}
.btn-start-test:hover { background: #1d4ed8; }

/* Quiz Runner Mode */
.quiz-runner-container {
  max-width: 860px; margin: 2rem auto 4rem; padding: 0 1.5rem;
}
.quiz-runner-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem;
}
.btn-back-test {
  padding: 0.5rem 1rem; border-radius: 8px;
  background: #f1f5f9; color: #475569; font-size: 0.86rem; font-weight: 700;
  border: 1px solid #cbd5e1; cursor: pointer;
}
.quiz-title-badge {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.92rem; font-weight: 800; color: #1e293b;
}
.score-card-banner {
  background: #ffffff; border-radius: 16px; padding: 2rem;
  border: 2px solid #3b82f6; box-shadow: 0 8px 24px rgba(37,99,235,0.12);
  display: flex; align-items: center; gap: 2rem; margin-bottom: 2rem;
}
.score-ring {
  width: 90px; height: 90px; border-radius: 50%;
  background: #eff6ff; border: 4px solid #2563eb;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.score-fraction { font-size: 1.35rem; font-weight: 900; color: #1e40af; line-height: 1; }
.score-percent { font-size: 0.78rem; font-weight: 700; color: #2563eb; }
.score-text h2 { font-size: 1.3rem; font-weight: 800; color: #0f172a; margin-bottom: 0.25rem; }
.score-text p { font-size: 0.9rem; color: #64748b; }
.btn-retry-test {
  margin-left: auto; padding: 0.65rem 1.25rem; border-radius: 10px;
  background: #2563eb; color: #fff; font-weight: 800; font-size: 0.88rem;
  border: none; cursor: pointer; flex-shrink: 0;
}

.question-block {
  background: #ffffff; border-radius: 16px; padding: 1.75rem;
  border: 1.5px solid #e2e8f0; margin-bottom: 1.25rem;
}
.question-block.q-correct { border-color: #22c55e; background: #f0fdf4; }
.question-block.q-wrong { border-color: #ef4444; background: #fef2f2; }
.q-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.q-num { font-size: 0.82rem; font-weight: 800; color: #64748b; text-transform: uppercase; }
.status-tag { font-size: 0.78rem; font-weight: 800; padding: 0.2rem 0.6rem; border-radius: 6px; }
.tag-correct { background: #dcfce7; color: #15803d; }
.tag-incorrect { background: #fee2e2; color: #b91c1c; }
.q-text { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 1.25rem; line-height: 1.5; }
.options-grid { display: flex; flex-direction: column; gap: 0.65rem; }
.opt-btn {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1rem; border-radius: 10px;
  border: 1.5px solid #e2e8f0; background: #ffffff;
  text-align: left; font-size: 0.92rem; font-weight: 600; color: #334155;
  cursor: pointer; transition: all 0.15s;
}
.opt-btn:hover:not(:disabled) { border-color: #3b82f6; background: #eff6ff; }
.opt-btn.selected { border-color: #2563eb; background: #dbeafe; color: #1e40af; font-weight: 700; }
.opt-btn.opt-is-correct { border-color: #22c55e !important; background: #dcfce7 !important; color: #15803d !important; font-weight: 800; }
.opt-btn.opt-is-wrong { border-color: #ef4444 !important; background: #fee2e2 !important; color: #b91c1c !important; }
.opt-letter {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.82rem; flex-shrink: 0;
}
.explanation-box {
  margin-top: 1rem; padding: 0.85rem; border-radius: 8px;
  background: #fffbeb; border: 1px solid #fef3c7; color: #92400e; font-size: 0.88rem; line-height: 1.5;
}
.quiz-submit-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: #ffffff; padding: 1.25rem 1.75rem; border-radius: 14px;
  border: 1.5px solid #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.btn-submit-quiz {
  padding: 0.85rem 1.75rem; border-radius: 10px;
  background: #2563eb; color: #fff; font-weight: 800; font-size: 0.95rem;
  border: none; cursor: pointer;
}

/* Modals */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-window {
  background: #ffffff; border-radius: 20px; width: 100%; max-width: 760px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.25);
  border: 1px solid #e2e8f0;
}
.modal-header {
  padding: 1.5rem 1.75rem; border-bottom: 1px solid #e2e8f0;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.modal-tags { display: flex; gap: 0.4rem; margin-bottom: 0.5rem; }
.modal-title { font-size: 1.35rem; font-weight: 900; color: #0f172a; line-height: 1.3; }
.modal-close-btn {
  background: #f1f5f9; border: none; width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.1rem; color: #475569; cursor: pointer;
}
.modal-body { padding: 1.75rem; }
.solution-verified-banner {
  background: #ecfdf5; border: 1.5px solid #a7f3d0; border-radius: 12px;
  padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.ver-icon { font-size: 1.5rem; }
.solution-verified-banner strong { color: #065f46; font-size: 0.95rem; display: block; }
.solution-verified-banner p { color: #047857; font-size: 0.85rem; margin-top: 0.2rem; }
.solution-section { margin-bottom: 1.5rem; }
.solution-section h4 { font-size: 1.05rem; font-weight: 800; color: #1e293b; margin-bottom: 0.5rem; }
.solution-section p { font-size: 0.92rem; color: #475569; line-height: 1.6; }
.modal-stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-top: 1rem;
}
.modal-stat-box {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 0.75rem; text-align: center;
}
.modal-stat-box .lbl { font-size: 0.72rem; font-weight: 600; color: #64748b; display: block; }
.modal-stat-box strong { font-size: 1.1rem; color: #0f172a; font-weight: 800; }
.solution-code-preview {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 1.25rem; font-family: inherit; font-size: 0.9rem; color: #334155;
  white-space: pre-line; line-height: 1.7;
}
.modal-footer {
  padding: 1.25rem 1.75rem; border-top: 1px solid #e2e8f0;
  display: flex; justify-content: flex-end; gap: 0.75rem; background: #fafafa;
}
.btn-secondary-close {
  padding: 0.65rem 1.25rem; border-radius: 10px;
  background: #f1f5f9; color: #475569; font-weight: 700; border: 1px solid #cbd5e1; cursor: pointer;
}

/* Footer */
.app-footer {
  background: #ffffff; border-top: 2px solid #e2e8f0;
  padding: 3.5rem 1.5rem 2rem;
}
.footer-container {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem;
}
.footer-brand-col .footer-text {
  font-size: 0.9rem; color: #64748b; line-height: 1.65; margin: 1rem 0; max-width: 340px;
}
.footer-free-tag {
  display: inline-block; padding: 0.3rem 0.8rem; border-radius: 9999px;
  background: #ecfdf5; color: #059669; font-size: 0.78rem; font-weight: 800;
}
.footer-links-col h4 {
  font-size: 0.95rem; font-weight: 800; color: #0f172a; margin-bottom: 1rem;
}
.footer-links-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links-col li {
  font-size: 0.86rem; color: #64748b; cursor: pointer; transition: color 0.15s;
}
.footer-links-col li:hover { color: #2563eb; }
.footer-bottom {
  max-width: 1240px; margin: 2.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9; text-align: center;
  font-size: 0.82rem; color: #94a3b8;
}

/* Toast */
.toast-notification {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  background: #0f172a; color: #ffffff; padding: 0.85rem 1.5rem;
  border-radius: 12px; font-size: 0.88rem; font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: slideInUp 0.3s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slideInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}



/* ==========================================================================
   DEDICATED SOLVED-PAPER PAGE & COMPLIANCE STYLES
   ========================================================================== */

.clickable-title {
  cursor: pointer;
  transition: color 0.15s;
}
.clickable-title:hover {
  color: #2563eb;
}

.btn-quick-preview {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-quick-preview:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.tag-preview-badge {
  background: #f1f5f9;
  color: #64748b;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-cta-callout {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1.5px solid #93c5fd;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.preview-cta-callout h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 0.25rem;
}
.preview-cta-callout p {
  font-size: 0.84rem;
  color: #3b82f6;
}
.btn-open-full-page {
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
  transition: transform 0.2s;
}
.btn-open-full-page:hover {
  transform: translateY(-2px);
  background: #1d4ed8;
}

/* Breadcrumb */
.paper-breadcrumb-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
}
.breadcrumb-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #64748b;
  flex-wrap: wrap;
}
.bc-link {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
}
.bc-link:hover { text-decoration: underline; }
.bc-sep { color: #cbd5e1; }
.bc-current { color: #0f172a; font-weight: 700; }

/* Dedicated Hero */
.dedicated-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 50%, #eff6ff 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 3rem 1.5rem 2.5rem;
}
.dedicated-hero-container {
  max-width: 1240px;
  margin: 0 auto;
}
.paper-meta-pills {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.dedicated-paper-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}
.dedicated-paper-summary {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.65;
  max-width: 820px;
  margin-bottom: 1.75rem;
}

/* Actions Group */
.dedicated-actions-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
}
.btn-jump-solutions {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
  transition: transform 0.2s;
}
.btn-jump-solutions:hover {
  transform: translateY(-2px);
  color: #ffffff;
}
.btn-hero-download {
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.92rem;
  border: 1.5px solid #bfdbfe;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-hero-download:hover {
  background: #dbeafe;
}
.btn-attempt-test {
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 800;
  font-size: 0.92rem;
  border: 1.5px solid #fed7aa;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-attempt-test:hover {
  background: #ffedd5;
}
.btn-share-paper {
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
  font-size: 0.92rem;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-share-paper:hover {
  background: #f1f5f9;
}

/* Exam Spec Grid */
.exam-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  max-width: 900px;
}
.spec-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.spec-lbl {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}
.spec-val {
  font-size: 1.2rem;
  font-weight: 900;
  color: #0f172a;
}

/* Layout */
.dedicated-layout {
  max-width: 1240px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 2.5rem;
  align-items: flex-start;
}
@media (max-width: 960px) {
  .dedicated-layout { grid-template-columns: 1fr; }
  .paper-sidebar { order: -1; }
}

/* Compliance Banner */
.compliance-verified-banner {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(16,185,129,0.06);
}
.comp-icon {
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #d1fae5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comp-text strong {
  font-size: 1.05rem;
  color: #065f46;
  display: block;
  font-weight: 800;
}
.comp-text p {
  font-size: 0.88rem;
  color: #047857;
  margin-top: 0.25rem;
  line-height: 1.55;
}

/* Blueprint Section */
.paper-section-block {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.sec-block-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
}
.blueprint-table-wrap { overflow-x: auto; }
.blueprint-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.blueprint-table th {
  background: #f8fafc;
  color: #334155;
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 800;
}
.blueprint-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
}
.blueprint-table tr:last-child td { border-bottom: none; }
.blueprint-table tr:hover td { background: #fafafa; }

/* Non-Intrusive Ad Slots */
.ad-slot-container {
  margin: 2rem 0;
}
.ad-placeholder-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}
.ad-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.35rem;
}
.ad-text {
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 600;
}

/* Question Solutions */
.solution-section-container {
  margin-bottom: 2.5rem;
  scroll-margin-top: 100px;
}
.section-title-bar {
  background: #ffffff;
  border: 1.5px solid #dbeafe;
  border-left: 6px solid #2563eb;
  border-radius: 12px;
  padding: 1.15rem 1.5rem;
  margin-bottom: 1.25rem;
}
.section-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 0.2rem;
}
.section-sub {
  font-size: 0.86rem;
  color: #64748b;
}

.question-solution-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px -2px rgba(0,0,0,0.03);
  transition: border-color 0.2s;
}
.question-solution-card:hover {
  border-color: #93c5fd;
}
.qs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.qs-badge {
  background: #1e40af;
  color: #ffffff;
  font-weight: 900;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.qs-marks {
  background: #fef3c7;
  color: #92400e;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}
.qs-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.qs-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 640px) {
  .qs-options-grid { grid-template-columns: 1fr; }
}
.qs-option-pill {
  padding: 0.65rem 0.95rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.88rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.qs-opt-tag {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.76rem;
  flex-shrink: 0;
}
.qs-opt-correct {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
  font-weight: 700;
}
.qs-opt-correct .qs-opt-tag {
  background: #10b981;
  color: #ffffff;
}

.qs-solution-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.qs-correct-answer {
  font-size: 0.92rem;
  color: #065f46;
  background: #d1fae5;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 1rem;
}
.qs-working strong {
  display: block;
  font-size: 0.88rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
.working-pre {
  font-family: inherit;
  font-size: 0.92rem;
  color: #334155;
  white-space: pre-line;
  line-height: 1.7;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  border-radius: 8px;
}
.qs-step-marking-allocation {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #cbd5e1;
}
.qs-step-marking-allocation strong {
  display: block;
  font-size: 0.84rem;
  color: #b45309;
  margin-bottom: 0.4rem;
}
.marks-pre {
  font-family: inherit;
  font-size: 0.85rem;
  color: #78350f;
  white-space: pre-line;
  background: #fffbeb;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #fef3c7;
}

/* Related Resources Row */
.related-resources-section {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 2rem;
}
.related-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.related-action-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.2s;
}
.related-action-card:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}
.rel-icon { font-size: 2rem; flex-shrink: 0; }
.rel-content h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.rel-content p {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.85rem;
}
.btn-rel-action {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
}

/* Sidebar TOC */
.paper-sidebar {
  position: sticky;
  top: 90px;
}
.sidebar-sticky-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  margin-bottom: 1.5rem;
}
.toc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}
.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.toc-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s;
}
.toc-link:hover {
  background: #eff6ff;
  color: #1d4ed8;
}
.toc-badge {
  font-size: 0.7rem;
  font-weight: 800;
  background: #f1f5f9;
  color: #64748b;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.sidebar-download-cta {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}
.sidebar-download-cta p {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}
.btn-sidebar-download {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-sidebar-download:hover {
  background: #1d4ed8;
}

.sidebar-ad-card {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
}
.sidebar-ad-inner {
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 0.5rem;
}



/* ==========================================================================
   EMPTY STATE STYLING
   ========================================================================== */
.empty-state {
  max-width: 640px;
  margin: 3rem auto 5rem;
  padding: 3rem 2rem;
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: pulse 2s infinite ease-in-out;
}
.empty-state h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.6rem;
}
.empty-state p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 1.75rem;
}
.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s;
}
.btn-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}
/* Policy and Video Modal Styles */
.video-modal-window {
  max-width: 820px;
  width: 95%;
}

.video-modal-body {
  padding: 0;
}

.video-embed-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
  border-radius: 8px 8px 0 0;
}

.youtube-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-info {
  padding: 20px 24px;
}

.video-author-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.video-teacher-tag {
  color: #38bdf8;
  font-weight: 600;
}

.video-dur-tag, .video-views-tag {
  color: #94a3b8;
}

.video-modal-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.video-compliance-note {
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid #38bdf8;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Policy Modals */
.policy-modal-window {
  max-width: 720px;
  width: 92%;
}

.policy-modal-body {
  max-height: 65vh;
  overflow-y: auto;
  padding: 24px;
}

.policy-section {
  margin-bottom: 20px;
}

.policy-section h4 {
  color: #f1f5f9;
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.policy-section p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.65;
}

.policy-list {
  padding-left: 20px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.65;
}

.policy-list li {
  margin-bottom: 8px;
}

.contact-details-box {
  background: #1e1b4b;
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
}

.contact-item {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

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

.contact-item strong {
  color: #38bdf8;
}

.contact-item span {
  color: #f1f5f9;
}

.policy-note {
  font-size: 0.85rem !important;
  color: #94a3b8 !important;
  font-style: italic;
}

/* Footer Policy Row */
.footer-policy-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 24px;
}

.footer-policy-link {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 4px 8px;
}

.footer-policy-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.footer-policy-sep {
  color: #475569;
  font-size: 0.8rem;
}
