/* ===================================================================
   NEW EDUCATION RESOURCES (neweducationresources.com)
   Modern, Accessible, Professional Educational Design System
   =================================================================== */

:root {
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-light: #eff6ff;
  --primary-subtle: #dbeafe;
  --secondary: #0d9488;
  --secondary-hover: #0f766e;
  --secondary-light: #f0fdfa;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --danger: #ef4444;
  --success: #10b981;
  
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-dark: #090d16;
  --bg-dark-surface: #111827;
  
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-focus: #3b82f6;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  --max-width: 1240px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, svg, picture, video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* Skip link for Accessibility */
.skip-link {
  position: absolute;
  top: -999px;
  left: 20px;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 20px;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 20px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 860px;
}

/* ===================================================================
   TOP ANNOUNCEMENT BAR
   =================================================================== */
.top-bar {
  background: #0b132b;
  color: #cbd5e1;
  font-size: 0.825rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-badge {
  background: rgba(37, 99, 235, 0.25);
  color: #60a5fa;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.top-bar-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
}

.top-bar-link:hover {
  color: #ffffff;
}

/* ===================================================================
   HEADER & NAVIGATION
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-name span {
  color: var(--primary);
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.75rem 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 110;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-body);
  transition: background var(--transition-fast);
}

.dropdown-link:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}

.dropdown-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.dropdown-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.dropdown-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
}

.btn-secondary {
  background: var(--secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-dark);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
              #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-subtle);
  margin-bottom: 1.25rem;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 60%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.35rem 0.5rem 0.35rem 1.2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.75rem;
  max-width: 580px;
  transition: border-color var(--transition-fast);
}

.hero-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.hero-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.hero-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-tag {
  background: var(--bg-subtle);
  color: var(--text-body);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.hero-tag:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Hero Visual & Feature Cards */
.hero-visual {
  position: relative;
}

.hero-card-main {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.hero-card-body {
  padding: 1.5rem;
}

.floating-pill {
  position: absolute;
  background: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 10;
  animation: float 4s ease-in-out infinite;
}

.floating-pill-1 {
  top: -15px;
  left: -20px;
}

.floating-pill-2 {
  bottom: 25px;
  right: -20px;
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-pill-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pill-blue { background: #dbeafe; color: #1d4ed8; }
.pill-green { background: #d1fae5; color: #047857; }

/* ===================================================================
   METRICS & TRUST BANNER
   =================================================================== */
.stats-banner {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 2.25rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===================================================================
   SECTION COMMONS
   =================================================================== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: #f1f5f9;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-body);
}

/* ===================================================================
   CATEGORY CARDS & TRACKS
   =================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background var(--transition-fast);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-subtle);
}

.category-card:hover::before {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.category-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.category-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.category-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.category-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ===================================================================
   RESOURCE FILTER & CARDS
   =================================================================== */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.resource-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xs);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-subtle);
}

.resource-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #e2e8f0;
}

.resource-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.resource-card:hover .resource-thumb img {
  transform: scale(1.05);
}

.resource-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
}

.resource-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.resource-curriculum {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.resource-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.resource-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.resource-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.resource-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.resource-actions .btn {
  flex: 1;
}

/* ===================================================================
   INTERACTIVE SIMULATION SPOTLIGHT
   =================================================================== */
.sim-spotlight {
  background: linear-gradient(135deg, #090d16 0%, #1e1b4b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.sim-spotlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.sim-tag {
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: block;
}

.sim-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.sim-desc {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.sim-features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.sim-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.sim-feature-check {
  color: #34d399;
}

.sim-interactive-preview {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
}

.interactive-box {
  background: #0b1120;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.slider-group {
  margin-bottom: 1.25rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.sim-slider {
  width: 100%;
  accent-color: #3b82f6;
  cursor: pointer;
}

.result-meter {
  background: rgba(30, 41, 59, 0.7);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.meter-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #38bdf8;
  font-family: var(--font-mono);
}

.meter-label {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* ===================================================================
   BLOG & EDITORIAL ARTICLES
   =================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-subtle);
}

.blog-thumb {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.05);
}

.blog-tag-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffffff;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.blog-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.blog-title a {
  color: var(--text-dark);
}

.blog-title a:hover {
  color: var(--primary);
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

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

.author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.author-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===================================================================
   TESTIMONIALS & INDIAN EDUCATOR REVIEWS
   =================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-stars {
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  gap: 2px;
}

.testimonial-text {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.user-photo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.user-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
}

.user-title {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===================================================================
   NEWSLETTER SUBSCRIPTION SECTION
   =================================================================== */
.newsletter-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #0d9488 100%);
  color: #ffffff;
  padding: 4.5rem 0;
  position: relative;
}

.newsletter-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-box .section-tag {
  color: #93c5fd;
}

.newsletter-box .section-title {
  color: #ffffff;
}

.newsletter-box .section-desc {
  color: #e0e7ff;
  margin-bottom: 2rem;
}

.subscribe-form {
  display: flex;
  gap: 0.75rem;
  max-width: 540px;
  margin: 0 auto 1rem;
}

.subscribe-input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: all var(--transition-fast);
}

.subscribe-input:focus {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.subscribe-note {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.subscribe-note a {
  color: #ffffff;
  text-decoration: underline;
}

/* ===================================================================
   CONTACT SECTION & DETAILS
   =================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 0.98rem;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.45;
}

.contact-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-label span.req {
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  background: #ffffff;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* Status Messages & Spinners */
.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner 0.75s linear infinite;
}

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

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: #090e1a;
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .brand-name {
  color: #ffffff;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 1.25rem 0 1.5rem;
  color: #94a3b8;
  max-width: 320px;
}

.footer-contact-mini {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.footer-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #94a3b8;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #ffffff;
  padding-left: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #94a3b8;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* ===================================================================
   LEGAL / ARTICLE PAGES (Privacy, Terms, GDPR)
   =================================================================== */
.legal-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 4.5rem 0 3.5rem;
}

.legal-header .legal-tag {
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.legal-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.legal-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

.legal-content {
  padding: 4rem 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.toc-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: block;
}

.toc-link:hover, .toc-link.active {
  color: var(--primary);
  font-weight: 600;
  padding-left: 4px;
}

.legal-body {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  color: var(--text-body);
}

.legal-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.legal-body h2:first-of-type {
  margin-top: 0;
}

.legal-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.5rem 0 0.75rem;
}

.legal-body p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.legal-body ul, .legal-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-body ul li {
  list-style: disc;
  margin-bottom: 0.5rem;
}

.legal-body ol li {
  list-style: decimal;
  margin-bottom: 0.5rem;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.legal-body th, .legal-body td {
  border: 1px solid var(--border-light);
  padding: 0.75rem 1rem;
  text-align: left;
}

.legal-body th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-dark);
}

.callout-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

/* ===================================================================
   TOAST NOTIFICATION COMPONENT
   =================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #ffffff;
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 320px;
  max-width: 440px;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  background: #d1fae5;
  color: #059669;
}

.toast-error .toast-icon {
  background: #fee2e2;
  color: #dc2626;
}

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.toast-msg {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===================================================================
   ACCORDION & INTERACTIVE FAQ
   =================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
}

.faq-header:hover {
  color: var(--primary);
}

.faq-icon {
  transition: transform var(--transition-normal);
  color: var(--text-muted);
}

.faq-card.open .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-card.open .faq-body {
  max-height: 350px;
  padding: 0 1.5rem 1.25rem;
}

/* ===================================================================
   RESPONSIVENESS / MEDIA QUERIES
   =================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-visual {
    max-width: 580px;
    margin: 0 auto;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .sim-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .legal-layout {
    grid-template-columns: 1fr;
  }
  
  .legal-toc {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-150%);
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 99;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0.5rem 0 0.5rem 1rem;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  
  .nav-item.dropdown-open .dropdown-menu {
    display: block;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-actions .btn {
    display: none;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .subscribe-form {
    flex-direction: column;
  }
  
  .category-grid, .resource-grid, .blog-grid, .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================================================================
   DOWNLOAD MODAL DIALOG
   =================================================================== */
.download-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.download-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.download-modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-light);
}

.download-modal-overlay.active .download-modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-dark);
}

.download-modal-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
  background: #dcfce7;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.download-progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 1.25rem 0;
}

.download-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1d4ed8, #059669);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.download-meta-list {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.download-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.download-meta-label {
  color: #64748b;
  font-weight: 500;
}

.download-meta-val {
  color: #0f172a;
  font-weight: 700;
}
