/* ReadyToGo - Master Stylesheet matching image.png visual specification */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Primary Blue Palette */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;

  /* Neutral Canvas */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  /* Accent Colors */
  --accent-purple: #8b5cf6;
  --accent-purple-light: #f5f3ff;
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #ecfeff;
  --accent-pink: #ec4899;
  --accent-pink-light: #fdf2f8;
  --accent-orange: #f59e0b;
  --accent-orange-light: #fffbeb;
  --accent-green: #10b981;
  --accent-green-light: #ecfdf5;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 0.938rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout Utilities */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navbar */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.188rem;
  color: #0f172a;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  box-shadow: 0 2px 8px rgba(36, 96, 227, 0.22);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-logo-img {
  transform: scale(1.08) rotate(-3deg);
}

.brand-to {
  color: #2460E3 !important;
  font-weight: 800;
  display: inline;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.brand:hover .brand-to {
  text-shadow: 0 0 12px rgba(36, 96, 227, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
}

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

.btn-secondary:hover {
  background: #f8fafc;
}

.btn-pill {
  border-radius: var(--radius-full);
}

/* ==========================================================================
   MAANG Preparation Strip (Placed directly under Navbar)
   ========================================================================== */
.maang-strip-section {
  padding: 16px 0 0;
  position: relative;
  z-index: 10;
  text-align: center;
}

.maang-banner-link {
  display: inline-block;
  text-decoration: none;
  max-width: 100%;
}

.maang-banner-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1.5px solid #e8eef8;
  border-radius: 9999px;
  padding: 8px 14px 8px 18px;
  gap: 0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  animation: maangFadeSlideIn 0.4s ease-out;
}

@keyframes maangFadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.maang-banner-link:hover .maang-banner-strip {
  border-color: #cbd5e1;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

/* Left: Trophy + Brand */
.maang-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.maang-trophy-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.maang-brand-text {
  display: inline-flex;
  align-items: center;
  font-size: 0.938rem;
  line-height: 1;
  white-space: nowrap;
}

.maang-text-prefix {
  font-weight: 700;
  color: #0f172a;
}

.maang-text-bold {
  font-weight: 800;
  color: #2563eb;
  margin-left: 5px;
  letter-spacing: 0.02em;
}

/* Vertical Dividers */
.maang-divider {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
  margin: 0 16px;
  display: inline-block;
  flex-shrink: 0;
}

.maang-inner-divider {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
  margin: 0 16px;
  display: inline-block;
  flex-shrink: 0;
}

/* Logos Group */
.maang-logos-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.maang-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 2px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.maang-logo-item:hover {
  transform: translateY(-2px) scale(1.08);
}

/* Right: Tagline + Circular Arrow Button */
.maang-right-group {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.maang-tagline {
  font-size: 0.938rem;
  font-weight: 600;
  color: #475569;
}

.maang-arrow-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2460E3;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(36, 96, 227, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.maang-banner-link:hover .maang-arrow-btn {
  background: #1d4ed8;
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 960px) {
  .maang-tagline-secondary {
    display: none;
  }
}

@media (max-width: 768px) {
  .maang-strip-section {
    padding: 12px 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .maang-banner-strip {
    gap: 10px;
    padding: 6px 12px;
    white-space: nowrap;
  }

  .maang-logos-group {
    gap: 8px;
  }

  .maang-inner-divider {
    display: none;
  }

  .maang-tagline-primary {
    font-size: 0.72rem;
  }
}

/* Hero Section (Screen 1) */
.hero {
  padding: 16px 0 16px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  min-height: 420px;
}

.hero-content-col {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* Hero Button: Start Learning */
.hero-btn-start {
  padding: 12px 26px;
  font-size: 0.938rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.hero-btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: #ffffff;
}

.hero-btn-start .btn-arrow-icon {
  transition: transform 0.22s ease;
}

.hero-btn-start:hover .btn-arrow-icon {
  transform: translateX(4px);
}

.hero-btn-start:active {
  transform: translateY(0) scale(0.98);
}

/* Hero Button: Open Daemon's DSA Sheet */
.hero-btn-dsa {
  padding: 12px 26px;
  font-size: 0.938rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #dbeafe;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.hero-btn-dsa::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.08), transparent);
  transition: left 0.6s ease;
}

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

.hero-btn-dsa:hover {
  border-color: #3b82f6;
  color: #1d4ed8;
  background: #f8faff;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.hero-btn-dsa:active {
  transform: translateY(-1px) scale(0.98);
}

.hero-btn-dsa .dsa-btn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hero-btn-dsa:hover .dsa-btn-badge {
  transform: rotate(18deg) scale(1.12);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.45);
}

.hero-btn-dsa .dsa-btn-arrow {
  transition: transform 0.22s ease, color 0.2s ease;
  color: #94a3b8;
}

.hero-btn-dsa:hover .dsa-btn-arrow {
  transform: translateX(4px);
  color: #2563eb;
}

.hero-stats-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.stat-chip-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Explore Cards Hover & Micro-animations */
.explore-card {
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.explore-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12) !important;
}

.explore-card-icon {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.explore-card:hover .explore-card-icon {
  transform: scale(1.1) rotate(-4deg);
}

.explore-card svg:last-child {
  transition: transform 0.22s ease, stroke 0.22s ease !important;
}

.explore-card:hover svg:last-child {
  transform: translateX(4px);
  stroke: #2563eb !important;
}

/* Hero Illustration - Integrated, no borders */
.hero-ill-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.hero-ill-container img {
  width: 110%;
  max-width: 580px;
  height: auto;
  object-fit: contain;
  display: block;
  /* No border-radius, no shadow, no border - illustration integrates directly */
}

.hero-ill-box {
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
  border-radius: var(--radius-xl);
  padding: 36px 24px 24px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid #dbeafe;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.floating-badge {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 6px;
}

.floating-quote-card {
  position: absolute;
  top: 24px;
  right: -20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
  max-width: 180px;
  line-height: 1.4;
  color: var(--text-main);
}

/* Sections Grid (Screen 1 Explore Sections) */
.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 18px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.explore-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.explore-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.explore-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.explore-card-title {
  font-size: 1.063rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.explore-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Bottom CTA Banner (Screen 1) */
.bottom-cta-banner {
  background: #090d16;
  border-radius: var(--radius-xl);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.bottom-cta-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.bottom-cta-content p {
  color: #94a3b8;
  font-size: 0.938rem;
}

.bottom-cta-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.handwritten-quote {
  font-family: 'Caveat', cursive, var(--font-sans);
  font-size: 1.35rem;
  color: #cbd5e1;
  font-style: italic;
  white-space: nowrap;
}

/* Breadcrumbs */
.breadcrumb-bar {
  padding: 20px 0 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-bar a {
  color: var(--text-muted);
}

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

/* Sheet Topics Grid (Screen 2) */
.sheet-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

.sheet-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.sheet-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

.dsa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.844rem;
  font-weight: 600;
}

.topics-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.topic-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
}

.topic-card:hover {
  border-color: #93c5fd;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.topic-card:hover .topic-icon-box {
  transform: scale(1.08) rotate(-3deg);
}

.topic-card:hover .topic-chevron svg {
  transform: translateX(4px);
  color: #2563eb;
}

.topic-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topic-chevron svg {
  transition: transform 0.2s ease, color 0.2s ease;
  color: #94a3b8;
}

.topic-info-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.topic-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.topic-card-desc {
  font-size: 0.813rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.topic-chevron {
  color: var(--text-subtle);
}

/* Bottom Stats & Quote Bar */
.sheet-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  margin-bottom: 80px;
}

.quote-highlight {
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.938rem;
}

.sheet-stat-items {
  display: flex;
  align-items: center;
  gap: 24px;
}

.sheet-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sheet-stat-val {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
}

.sheet-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Topic Hub (Screen 3) */
.hub-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.hub-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
}

.progress-widget-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-bar-container {
  width: 140px;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: var(--radius-full);
}

/* 3 Navigation Tabs / Cards */
.choice-tabs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.choice-tab-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.15s ease;
}

.choice-tab-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.choice-tab-card.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.choice-tab-card.active .choice-tab-desc {
  color: #bfdbfe;
}

.choice-tab-card.active .choice-tab-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.choice-tab-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  flex-shrink: 0;
}

.choice-tab-title {
  font-size: 1.063rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.choice-tab-desc {
  font-size: 0.813rem;
  color: var(--text-muted);
}

.hub-center-hero {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 56px 24px;
  text-align: center;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hub-hero-title {
  font-size: 1.625rem;
  font-weight: 800;
  margin-top: 24px;
  margin-bottom: 8px;
}

.hub-hero-sub {
  color: var(--text-muted);
  font-size: 0.938rem;
  max-width: 460px;
  margin-bottom: 16px;
}

/* Problems Page (Screen 4) */
.difficulty-bar {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.difficulty-chips {
  display: flex;
  align-items: center;
  gap: 12px;
}

.diff-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.diff-chip.active-easy {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.diff-chip.active-medium {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #ffffff;
}

.diff-chip.active-hard {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.filter-search-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  outline: none;
  background: #ffffff;
}

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
}

.filter-select {
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: #ffffff;
  color: var(--text-main);
  outline: none;
}

/* Problems Table - Redesigned to match Reference Design */
.table-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: visible; /* allows popovers to overflow without being clipped */
  margin-bottom: 80px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: inherit;
}

.problems-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.problems-table th {
  background: #f8fafc;
  padding: 14px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.problems-table td {
  padding: 16px 20px;
  font-size: 0.875rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.problems-table tr:last-child td {
  border-bottom: none;
}

.problem-row {
  transition: background-color 0.15s ease;
}

.problem-row:hover {
  background-color: #f8fafc;
}

/* Problem Name Cell */
.problem-name-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.938rem;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.problem-name-link:hover {
  color: var(--primary);
}

.problem-external-icon {
  color: #94a3b8;
  opacity: 0.8;
  transition: transform 0.15s ease, color 0.15s ease;
}

.problem-name-link:hover .problem-external-icon {
  color: var(--primary);
  opacity: 1;
  transform: translate(1px, -1px);
}

/* Checkbox Toggle */
.custom-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffff;
  user-select: none;
}

.custom-checkbox:hover {
  border-color: var(--primary);
  background-color: #f0f7ff;
}

.custom-checkbox.checked {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.custom-checkbox svg {
  display: block;
}

/* Practice Platforms Cell */
.practice-platforms-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.platform-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.platform-icon-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1.5px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}

/* Company Badges Cell */
.company-badges-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.company-logo-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: default;
  overflow: hidden;
}

.company-logo-badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}

.company-logo-badge svg {
  width: 18px;
  height: 18px;
  display: block;
}

.company-logo-badge .company-logo-linkedin {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 1px rgba(10, 102, 194, 0.18));
}

.company-logo-badge.small img {
  width: 15px;
  height: 15px;
}

.company-logo-badge.small svg {
  width: 15px;
  height: 15px;
}

.company-logo-badge:hover {
  border-color: #cbd5e1;
  transform: translateY(-1.5px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.company-logo-badge.small {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.company-more-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.company-more-badge:hover,
.company-more-badge.active {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* Company Popover */
.company-popover-wrapper {
  position: relative;
  display: inline-flex;
}

.company-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1000;
  min-width: 260px;
  max-width: 320px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
  padding: 12px;
}

.company-popover.active {
  display: block;
  animation: popoverDrop 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popoverDrop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.company-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

.company-popover-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 2px;
}

.company-popover-close:hover {
  color: #0f172a;
}

.company-popover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.company-popover-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  background: #f8fafc;
}

.company-popover-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Action Arrow Button */
.btn-problem-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-problem-arrow:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eff6ff;
  transform: translateX(2px);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.empty-field-dash {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.875rem;
  user-select: none;
}

.problem-num-cell {
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
  padding-left: 24px;
}

@media (max-width: 992px) {
  .problems-table th, 
  .problems-table td {
    padding: 14px 14px;
  }
  .problems-table th:first-child, 
  .problems-table td:first-child {
    padding-left: 16px;
  }
  .problems-table th:last-child, 
  .problems-table td:last-child {
    padding-right: 16px;
  }
}

@media (max-width: 768px) {
  .table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .problems-table {
    min-width: 680px;
  }
}

/* Article Page (Screen 5) */
.article-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  margin-bottom: 80px;
}

.toc-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 90px;
}

.toc-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.toc-link:hover {
  color: var(--primary);
}

.article-content-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.article-content-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 32px 0 16px;
}

.article-content-card h2:first-of-type {
  margin-top: 0;
}

.code-snippet-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 20px 0;
  overflow: hidden;
}

.code-snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--text-muted);
}

.code-snippet-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-x: auto;
  color: #1e293b;
}

.key-point-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.938rem;
}

/* MCQ Quiz Page (Screen 6) */
.mcq-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  margin-bottom: 80px;
}

.mcq-question-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.mcq-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mcq-question-text {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 28px;
}

.mcq-options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.mcq-option-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  background: #ffffff;
}

.mcq-option-item:hover {
  border-color: #94a3b8;
}

.mcq-option-item.selected {
  border-color: var(--primary);
  background: #eff6ff;
}

.mcq-option-item.correct {
  border-color: var(--accent-green);
  background: #ecfdf5;
}

.mcq-option-item.incorrect {
  border-color: #ef4444;
  background: #fef2f2;
}

.palette-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
}

.palette-grid-5x5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 16px 0 24px;
}

.palette-btn {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 0.813rem;
  font-weight: 600;
  cursor: pointer;
}

.palette-btn.current {
  border-color: var(--primary);
  color: var(--primary);
}

.palette-btn.answered {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Auth Pages (Screen 7 & 8) */
.auth-split-layout {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  background: #ffffff;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: #ffffff;
}

.auth-card-inner {
  width: 100%;
  max-width: 420px;
}

.auth-title {
  font-size: 2.125rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.auth-sub {
  color: #64748b;
  font-size: 0.938rem;
  margin-bottom: 28px;
}

.auth-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: #dc2626;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.938rem;
  outline: none;
  background: #ffffff;
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-password-wrapper .form-input {
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-btn:hover {
  color: #64748b;
}

.auth-remember-row, .auth-terms-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 0.875rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  cursor: pointer;
  font-size: 0.875rem;
}

.custom-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #2563eb;
  cursor: pointer;
}

.auth-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.btn-auth-submit {
  width: 100%;
  padding: 12px;
  font-size: 0.938rem;
  font-weight: 600;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-auth-submit:hover {
  background: #1d4ed8;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  position: relative;
  background: #ffffff;
  padding: 0 12px;
  color: #94a3b8;
  font-size: 0.813rem;
  text-transform: lowercase;
}

.btn-google-auth {
  width: 100%;
  padding: 11px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-google-auth:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.auth-switch-text {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: #64748b;
}

/* Auth Graphic Side */
.auth-graphic-side {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6efff 100%);
  border-left: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.auth-graphic-content {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.auth-coder-img-wrap {
  width: 100%;
  margin-bottom: 28px;
}

.auth-coder-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 16px 32px rgba(37, 99, 235, 0.12));
}

.auth-quote-box {
  text-align: center;
}

.auth-quote-line1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.auth-quote-line2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #2563eb;
  line-height: 1.25;
}

/* Specific for Signup Graphic (Screen 7) */
.signup-graphic-container {
  max-width: 520px;
  width: 100%;
}

.signup-quote-header {
  margin-bottom: 24px;
  text-align: left;
}

.signup-quote-title {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.25;
}

.quote-blue {
  color: #2563eb;
}

.quote-dark {
  color: #0f172a;
}

.signup-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 340px;
}

.signup-pills-column {
  position: absolute;
  left: 0;
  top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 3;
}

.signup-feature-pill {
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease;
}

.signup-feature-pill:hover {
  transform: translateX(4px);
}

.feature-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10b981;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-pill-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
}

.signup-image-wrapper {
  max-width: 420px;
  width: 100%;
}

.signup-coder-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 36px rgba(37, 99, 235, 0.15));
}

/* Learner Dashboard (Screen 9) */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 68px);
}

.dashboard-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--border-color);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.user-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: #eff6ff;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
}

.dash-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--text-muted);
}

.dash-nav-item a:hover {
  background: #f8fafc;
  color: var(--text-main);
}

.dash-nav-item.active a {
  background: #eff6ff;
  color: var(--primary);
  font-weight: 600;
}

.dashboard-main {
  padding: 40px;
  max-width: 1000px;
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 28px 0 36px;
}

.dash-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
  border-color: #cbd5e1;
}

.dash-quick-link {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dash-quick-link:hover {
  transform: translateY(-3px);
  border-color: #93c5fd !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12) !important;
}

.dash-quick-link:hover > div {
  transform: scale(1.08) rotate(-3deg);
}

.dash-quick-link > div {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.continue-card-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

/* ==========================================================================
   Page Hero Background & Header Containers (Languages, Subjects, Resources)
   ========================================================================== */
.page-hero-bg-section {
  position: relative;
  background: radial-gradient(120% 120% at 50% 0%, rgba(37, 99, 235, 0.08) 0%, rgba(248, 250, 252, 0) 100%), #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 56px 20px 48px;
  text-align: center;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-hero-bg-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
}

.page-hero-container {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 9999px;
  color: #2563eb;
  font-size: 0.813rem;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.page-hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px 0;
}

.page-hero-subtitle {
  font-size: 1.063rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 660px;
  margin: 0 auto 24px;
}

.page-hero-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-hero-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.781rem;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Modern Card Improvements for Pages */
.modern-curriculum-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 6px 16px rgba(0, 0, 0, 0.02);
}

.modern-curriculum-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.card-icon-banner {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   Redesigned Premium Footer
   ========================================================================== */
.footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 64px 0 32px;
  font-size: 0.875rem;
  color: #64748b;
  position: relative;
}


.footer-grid-5cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}

.footer-brand-col p {
  line-height: 1.65;
  color: #64748b;
  margin: 16px 0 20px;
  max-width: 320px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.footer-col-title {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.938rem;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.footer-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-list a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-col-list a:hover {
  color: #2563eb;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  padding-top: 28px;
  color: #94a3b8;
  font-size: 0.813rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

@media (max-width: 900px) {
  .footer-grid-5cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .footer-grid-5cols {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

/* ==========================================================================
   Overall Progress Strip (Dashboard + Problems Page)
   ========================================================================== */
.progress-strip {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e8ecf4;
  border-radius: 20px;
  padding: 16px 28px;
  gap: 0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03), 0 1px 3px rgba(15, 23, 42, 0.02);
  margin-bottom: 28px;
  box-sizing: border-box;
}

.progress-strip-donut {
  position: relative;
  width: 108px;
  height: 108px;
  flex-shrink: 0;
}

.progress-strip-donut svg {
  transform: rotate(-90deg);
  width: 108px;
  height: 108px;
  display: block;
}

.progress-ring-track {
  fill: none;
  stroke: #eef2f6;
  stroke-width: 8;
}

.progress-ring-fill {
  fill: none;
  stroke: #2563eb;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.progress-strip-donut-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.1;
  width: 74px;
  pointer-events: none;
}

.progress-strip-donut-pct {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  display: block;
  font-feature-settings: "tnum";
}

.progress-strip-donut-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
  display: block;
  margin-top: 3px;
  text-transform: capitalize;
}

.progress-strip-divider {
  width: 1px;
  height: 52px;
  background: #e8ecf4;
  margin: 0 24px;
  flex-shrink: 0;
}

.progress-strip-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  margin-right: auto;
}

.progress-strip-title {
  font-size: 1.063rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.progress-strip-count {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.progress-strip-count-bold {
  font-size: 1.625rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  font-feature-settings: "tnum";
}

.progress-strip-count-total {
  font-size: 1.063rem;
  font-weight: 500;
  color: #94a3b8;
  font-feature-settings: "tnum";
}

.progress-strip-sublabel {
  font-size: 0.813rem;
  color: #94a3b8;
  font-weight: 500;
}

.progress-strip-difficulties {
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-strip-diff-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 14px;
  min-width: 105px;
  border: 1px solid transparent;
  transition: transform 0.15s ease;
}

.progress-strip-diff-card.easy {
  background: #f0fdf4;
  border-color: rgba(220, 252, 231, 0.8);
}

.progress-strip-diff-card.medium {
  background: #fffbeb;
  border-color: rgba(254, 243, 199, 0.8);
}

.progress-strip-diff-card.hard {
  background: #fef2f2;
  border-color: rgba(254, 226, 226, 0.8);
}

.progress-strip-diff-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.progress-strip-diff-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.progress-strip-diff-dot.easy { background: #10b981; }
.progress-strip-diff-dot.medium { background: #f59e0b; }
.progress-strip-diff-dot.hard { background: #ef4444; }

.progress-strip-diff-label {
  font-size: 0.813rem;
  font-weight: 700;
  color: #1e293b;
}

.progress-strip-diff-count {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.progress-strip-diff-solved {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  font-feature-settings: "tnum";
}

.progress-strip-diff-total {
  font-size: 0.813rem;
  font-weight: 500;
  color: #94a3b8;
  font-feature-settings: "tnum";
}

.progress-strip-subrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
}

.progress-strip-micro-bar {
  width: 56px;
  height: 4px;
  background: #eef2f6;
  border-radius: 999px;
  overflow: hidden;
}

.progress-strip-micro-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.progress-strip-diff-badge {
  margin-left: auto;
  font-size: 0.688rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

.progress-strip-diff-badge.easy {
  background: #dcfce7;
  color: #15803d;
}

.progress-strip-diff-badge.medium {
  background: #fef3c7;
  color: #b45309;
}

.progress-strip-diff-badge.hard {
  background: #fee2e2;
  color: #b91c1c;
}

.progress-strip-tech-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-strip-stack-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.progress-strip-stack-title {
  font-size: 0.813rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.progress-strip-stack-sub {
  font-size: 0.688rem;
  color: #94a3b8;
  font-weight: 600;
}

.progress-strip-stack-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  flex-shrink: 0;
}

.tech-icon-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.tech-icon-pill.cpp:hover {
  border-color: #00599c;
  background: #f0f7ff;
}

.tech-icon-pill.java:hover {
  border-color: #ea580c;
  background: #fff7ed;
}

.tech-icon-pill.python:hover {
  border-color: #3776ab;
  background: #f0f9ff;
}

.tech-icon-pill.js:hover {
  border-color: #eab308;
  background: #fefce8;
}

.tech-icon-pill.sql:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.btn-solve-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-solve-pill.leetcode {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.btn-solve-pill.leetcode:hover {
  background: #ffedd5;
  border-color: #f97316;
  color: #9a3412;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.15);
}

.btn-solve-pill.gfg {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.btn-solve-pill.gfg:hover {
  background: #dcfce7;
  border-color: #22c55e;
  color: #14532d;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.15);
}

.progress-strip-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.progress-strip-action:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

.progress-strip-action-icon {
  color: #2563eb;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .progress-strip-divider {
    margin: 0 16px;
  }
  .progress-strip-diff-card {
    padding: 10px 16px;
    min-width: 90px;
  }
}

@media (max-width: 900px) {
  .progress-strip {
    flex-wrap: wrap;
    padding: 18px 20px;
    gap: 16px;
  }
  .progress-strip-divider {
    display: none;
  }
  .progress-strip-difficulties {
    width: 100%;
    justify-content: space-between;
  }
  .progress-strip-diff-card {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
  }
  .progress-strip-action {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .progress-strip-diff-card {
    padding: 8px 10px;
  }
  .progress-strip-diff-solved {
    font-size: 1.1rem;
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid, .auth-split-layout, .dashboard-layout, .article-layout, .mcq-layout, .continue-card-row {
    grid-template-columns: 1fr;
  }
  .hero-ill-container {
    max-height: 340px;
    justify-content: center;
  }
  .hero-ill-container img {
    width: 100%;
    max-width: 400px;
  }
  .hero-grid {
    min-height: auto;
  }
  .explore-grid, .topics-grid-3x3, .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-graphic-side {
    display: none;
  }
}

@media (max-width: 640px) {
  .explore-grid, .topics-grid-3x3, .choice-tabs-grid, .dash-stats-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .bottom-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* ==========================================================================
   MCQ 3-Step Guided Learning Flow Styles (Matching Reference Image 2)
   ========================================================================== */

.mcq-flow-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.mcq-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 24px;
  flex-wrap: wrap;
}

.mcq-breadcrumb {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mcq-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.mcq-breadcrumb a:hover {
  color: #2563eb;
}

.mcq-breadcrumb .breadcrumb-sep {
  color: #94a3b8;
  font-size: 0.75rem;
}

.mcq-page-title {
  font-size: 2.125rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.025em;
}

.mcq-page-subtitle {
  font-size: 0.938rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* 3-Step Progress Indicator */
.mcq-step-indicator {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.mcq-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mcq-step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1.5px solid #cbd5e1;
  color: #64748b;
  background: #ffffff;
  transition: all 0.2s ease;
}

.mcq-step-circle.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.mcq-step-info {
  display: flex;
  flex-direction: column;
}

.mcq-step-title {
  font-size: 0.813rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.mcq-step-desc {
  font-size: 0.688rem;
  color: #64748b;
  font-weight: 500;
}

.mcq-step-divider {
  width: 28px;
  height: 1.5px;
  background: #e2e8f0;
}

/* 3-Column Grid Layout */
.mcq-flow-grid {
  display: grid;
  grid-template-columns: 295px 1fr 355px;
  gap: 24px;
  align-items: start;
}

.mcq-col-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  min-height: 42px;
}

.mcq-col-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px 0;
  letter-spacing: -0.015em;
}

.mcq-col-subtitle {
  font-size: 0.813rem;
  color: #64748b;
  margin: 0;
}

.mcq-view-all-link {
  font-size: 0.813rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.mcq-view-all-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Column 1: Subject Cards */
.mcq-subject-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.mcq-subject-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.mcq-subject-card.active {
  border-color: #3b82f6;
  background: #f8faff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.09);
}

.mcq-subject-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.mcq-subject-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mcq-subject-info {
  flex: 1;
  min-width: 0;
}

.mcq-subject-name {
  font-size: 0.938rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.mcq-subject-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mcq-subject-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.mcq-subject-stats {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.mcq-subject-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mcq-subject-card.active .mcq-subject-arrow {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Column 2: Topic Cards */
.mcq-topic-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.mcq-topic-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.mcq-topic-card.active {
  border-color: #3b82f6;
  background: #f8faff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.09);
}

.mcq-topic-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.mcq-topic-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mcq-topic-info {
  flex: 1;
  min-width: 0;
}

.mcq-topic-name {
  font-size: 0.938rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px 0;
  line-height: 1.3;
}

.mcq-topic-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mcq-topic-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mcq-topic-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.mcq-topic-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mcq-topic-card.active .mcq-topic-arrow {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Column 3: Practice Preview Panel */
.mcq-preview-panel {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 90px;
}

.mcq-preview-progress-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
}

.mcq-preview-progress-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mcq-preview-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mcq-preview-progress-name {
  font-size: 0.938rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.mcq-preview-progress-ratio {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.mcq-preview-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mcq-preview-track {
  flex: 1;
  height: 7px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.mcq-preview-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.mcq-preview-pct {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  min-width: 32px;
  text-align: right;
}

/* Sample Questions */
.mcq-sample-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mcq-sample-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.mcq-sample-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}

.mcq-sample-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: all 0.15s ease;
  text-decoration: none;
}

.mcq-sample-item:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.mcq-sample-num {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.mcq-sample-text {
  font-size: 0.813rem;
  color: #1e293b;
  line-height: 1.45;
  font-weight: 500;
  flex: 1;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mcq-sample-arrow {
  color: #94a3b8;
  margin-top: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Practice CTA Button */
.mcq-practice-cta {
  width: 100%;
  padding: 14px 20px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
  text-align: center;
}

.mcq-practice-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38);
  color: #ffffff;
}

.mcq-practice-cta:active {
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1150px) {
  .mcq-flow-grid {
    grid-template-columns: 270px 1fr 320px;
    gap: 16px;
  }
}

@media (max-width: 980px) {
  .mcq-flow-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .mcq-preview-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .mcq-flow-container {
    padding: 16px 14px 60px;
  }
  .mcq-flow-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
  .mcq-step-indicator {
    width: 100%;
    justify-content: space-between;
    padding: 10px 12px;
  }
  .mcq-step-desc {
    display: none;
  }
  .mcq-page-title {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   FULL PAGE 1: Subject Selection (/mcqs)
   ========================================================================== */

.mcq-full-subjects-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: stretch;
}

.mcq-full-subject-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  min-height: 240px;
}

.mcq-full-subject-card:hover {
  border-color: #3b82f6;
  background: #f8faff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.mcq-full-subject-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.mcq-full-subject-body {
  flex: 1;
  min-width: 0;
}

.mcq-full-subject-title {
  font-size: 1.063rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.mcq-full-subject-desc {
  font-size: 0.813rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 18px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mcq-full-subject-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.mcq-full-subject-meta {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.mcq-full-subject-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mcq-full-subject-card:hover .mcq-full-subject-arrow {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* ==========================================================================
   FULL PAGE 2: Topic Selection (/mcqs/:subject)
   ========================================================================== */

.mcq-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.813rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mcq-back-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.mcq-header-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  min-width: 210px;
}

.mcq-header-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mcq-header-stat-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.mcq-header-stat-value {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
}

.mcq-header-progress-track {
  width: 100px;
  height: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.mcq-header-progress-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.mcq-header-stat-pct {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
}

.mcq-header-count-num {
  font-size: 0.938rem;
  font-weight: 800;
  color: #0f172a;
}

.mcq-header-count-sub {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.mcq-full-topics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: stretch;
}

.mcq-full-topic-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 18px 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  min-height: 205px;
}

.mcq-full-topic-card:hover {
  border-color: #3b82f6;
  background: #f8faff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.mcq-full-topic-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.mcq-full-topic-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mcq-full-topic-title-box {
  flex: 1;
  min-width: 0;
}

.mcq-full-topic-title {
  font-size: 0.938rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px 0;
  line-height: 1.3;
}

.mcq-full-topic-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mcq-full-topic-meta {
  margin-bottom: 12px;
}

.mcq-full-topic-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
}

.mcq-full-topic-progress-wrap {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.mcq-full-topic-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.688rem;
  color: #64748b;
  margin-bottom: 6px;
}

.mcq-full-topic-progress-track {
  height: 5px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.mcq-full-topic-progress-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.mcq-full-topic-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.mcq-full-topic-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mcq-full-topic-card:hover .mcq-full-topic-arrow {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* ==========================================================================
   FULL PAGE 3: MCQ Practice Interface (/mcqs/:subject/:topic)
   ========================================================================== */

.mcq-practice-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.mcq-practice-main {
  min-width: 0;
}

/* Redesigned Topic Progress Bar Above Question */
.mcq-topic-progress-bar {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.mcq-topic-progress-bar:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.05);
}

.mcq-tpb-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.mcq-tpb-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mcq-tpb-title {
  font-size: 0.938rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.mcq-tpb-sub {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

.mcq-tpb-middle {
  flex: 1;
  max-width: 380px;
}

.mcq-tpb-track {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.mcq-tpb-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mcq-tpb-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mcq-tpb-pct {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
}

.mcq-tpb-badge {
  font-size: 0.688rem;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mcq-single-question-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.mcq-statement-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.mcq-statement-badge {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.mcq-statement-text {
  font-size: 1.063rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
}

.mcq-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.mcq-option-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  min-height: 62px;
}

.mcq-option-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.mcq-option-left-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.mcq-option-circle {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: all 0.15s ease;
}

.mcq-option-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.15s ease;
}

.mcq-option-content {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 1;
}

.mcq-option-label {
  font-weight: 700;
  font-size: 0.938rem;
  color: #0f172a;
}

.mcq-option-text {
  font-size: 0.938rem;
  color: #0f172a;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

/* Before Submission: Selected Active State */
.mcq-option-card.selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1px #2563eb;
}

.mcq-option-card.selected .mcq-option-circle {
  border-color: #2563eb;
}

.mcq-option-card.selected .mcq-option-dot {
  background: #2563eb;
}

/* Correct Answer State */
.mcq-option-card.opt-correct,
.mcq-option-card.correct {
  border-color: #16a34a !important;
  background: #f0fdf4 !important;
}

.mcq-option-card.opt-correct .mcq-option-circle,
.mcq-option-card.correct .mcq-option-circle {
  border-color: #16a34a !important;
  background: #ffffff !important;
}

.mcq-option-card.opt-correct .mcq-option-dot,
.mcq-option-card.correct .mcq-option-dot {
  background: #16a34a !important;
}

.mcq-option-card.opt-correct .mcq-option-label,
.mcq-option-card.correct .mcq-option-label {
  color: #0f172a !important;
  font-weight: 700;
}

.mcq-option-card.opt-correct .mcq-option-text,
.mcq-option-card.correct .mcq-option-text {
  color: #0f172a !important;
  font-weight: 600;
}

/* Wrong User Selection State */
.mcq-option-card.opt-wrong,
.mcq-option-card.incorrect {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
}

.mcq-option-card.opt-wrong .mcq-option-circle,
.mcq-option-card.incorrect .mcq-option-circle {
  border-color: #ef4444 !important;
  background: #ffffff !important;
}

.mcq-option-card.opt-wrong .mcq-option-dot,
.mcq-option-card.incorrect .mcq-option-dot {
  background: #ef4444 !important;
}

.mcq-option-card.opt-wrong .mcq-option-label,
.mcq-option-card.incorrect .mcq-option-label {
  color: #0f172a !important;
  font-weight: 700;
}

.mcq-option-card.opt-wrong .mcq-option-text,
.mcq-option-card.incorrect .mcq-option-text {
  color: #0f172a !important;
  font-weight: 600;
}

/* Status Badges on the right */
.mcq-option-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
}

.mcq-badge-check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.25);
}

.mcq-badge-cross {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.25);
}

/* Explanation & Key Card */
.mcq-explanation-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
  animation: fadeInMCQ 0.25s ease-out;
}

@keyframes fadeInMCQ {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mcq-exp-top-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}

.mcq-exp-bulb-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.mcq-exp-header-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mcq-exp-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.mcq-exp-correct-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
}

.mcq-exp-check-circle {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  background: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.mcq-exp-green-label {
  font-weight: 700;
  color: #16a34a;
}

.mcq-exp-answer-val {
  font-weight: 700;
  color: #0f172a;
}

.mcq-exp-text {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  padding-left: 52px;
}

.mcq-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  gap: 14px;
  flex-wrap: wrap;
}

.mcq-btn-clear {
  background: none;
  border: none;
  font-size: 0.813rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
  padding: 6px 0;
}

.mcq-btn-clear:hover {
  color: #0f172a;
}

.mcq-btn-group-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mcq-btn-skip {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #475569 !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 6px 14px;
}

.mcq-btn-skip:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.mcq-practice-sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 16px;
  margin-top: -55px;
}

.mcq-sidebar-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.mcq-palette-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px 0;
}

.mcq-palette-legend {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.mcq-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mcq-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-answered {
  background: #16a34a;
}

.dot-current {
  background: #2563eb;
}

.dot-unattempted {
  background: #cbd5e1;
}

.dot-wrong {
  background: #ef4444;
}

.mcq-palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.mcq-palette-btn {
  height: 36px;
  border-radius: 8px;
  font-size: 0.813rem;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mcq-palette-btn.unattempted {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

.mcq-palette-btn.unattempted:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.mcq-palette-btn.current {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

.mcq-palette-btn.answered,
.mcq-palette-btn.answered-correct {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
}

.mcq-palette-btn.answered-wrong {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

.mcq-palette-btn.is-current {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #2563eb !important;
}

.mcq-quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mcq-action-btn {
  width: 100%;
  padding: 9px 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  font-size: 0.813rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.mcq-action-btn:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}

/* ==========================================================================
   Responsive Rules for 3 Full Pages
   ========================================================================== */

@media (max-width: 1200px) {
  .mcq-full-subjects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mcq-full-topics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .mcq-full-subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mcq-full-topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mcq-header-top-row {
    flex-direction: column;
    align-items: stretch !important;
  }
  .mcq-top-topic-progress {
    width: 100% !important;
  }
  .mcq-practice-layout {
    grid-template-columns: 1fr;
  }
  .mcq-practice-sidebar {
    margin-top: 0 !important;
  }
  .mcq-options-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .mcq-full-subjects-grid {
    grid-template-columns: 1fr;
  }
  padding: 6px 14px;
}

.mcq-btn-skip:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.mcq-practice-sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 16px;
  margin-top: -55px;
}

.mcq-sidebar-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.mcq-palette-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px 0;
}

.mcq-palette-legend {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.mcq-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mcq-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-answered {
  background: #16a34a;
}

.dot-current {
  background: #2563eb;
}

.dot-unattempted {
  background: #cbd5e1;
}

.dot-wrong {
  background: #ef4444;
}

.mcq-palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.mcq-palette-btn {
  height: 36px;
  border-radius: 8px;
  font-size: 0.813rem;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mcq-palette-btn.unattempted {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

.mcq-palette-btn.unattempted:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.mcq-palette-btn.current {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

.mcq-palette-btn.answered,
.mcq-palette-btn.answered-correct {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
}

.mcq-palette-btn.answered-wrong {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

.mcq-palette-btn.is-current {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #2563eb !important;
}

.mcq-quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mcq-action-btn {
  width: 100%;
  padding: 9px 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  font-size: 0.813rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.mcq-action-btn:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}

/* ==========================================================================
   Responsive Rules for 3 Full Pages
   ========================================================================== */

@media (max-width: 1200px) {
  .mcq-full-subjects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mcq-full-topics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .mcq-full-subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mcq-full-topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mcq-header-top-row {
    flex-direction: column;
    align-items: stretch !important;
  }
  .mcq-top-topic-progress {
    width: 100% !important;
  }
  .mcq-practice-layout {
    grid-template-columns: 1fr;
  }
  .mcq-practice-sidebar {
    margin-top: 0 !important;
  }
  .mcq-options-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .mcq-full-subjects-grid {
    grid-template-columns: 1fr;
  }
  .mcq-full-topics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   HOMEPAGE COMPARISON SECTION (Compact, Balanced, Reference-Exact)
   ========================================================================== */

.comparison-section {
  padding: 36px 0 48px 0;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

/* Subtle Corner Glows */
.comp-bg-glow-left {
  position: absolute;
  top: -60px;
  left: 5%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(219, 234, 254, 0.6) 0%, rgba(248, 250, 255, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.comp-bg-glow-right {
  position: absolute;
  top: -60px;
  right: 5%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(219, 234, 254, 0.6) 0%, rgba(248, 250, 255, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.comparison-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

/* Header */
.comparison-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px auto;
  position: relative;
}

.comparison-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid #bfdbfe;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 9999px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.06);
}

.pill-spark-left,
.pill-spark-right {
  display: inline-flex;
  align-items: center;
}

.comparison-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #071b41;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.comparison-highlight {
  color: #2563eb;
  position: relative;
  display: inline-block;
}

.highlight-underline {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 10px;
  pointer-events: none;
}

.comparison-subtitle {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.sub-diff-wrap {
  position: relative;
  display: inline-block;
}

.sub-diff-dash {
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  pointer-events: none;
}

/* Panels Outer Wrapper (Stage for illustrations + cards) */
.comparison-panels-wrapper {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

/* Far-Left Sticky Notes & Dots Grid */
.comp-far-left-decor {
  position: absolute;
  left: 6px;
  top: 10px;
  width: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
  user-select: none;
}

.comp-dots-grid {
  width: 44px;
  height: 32px;
  background-image: radial-gradient(#cbd5e1 2px, transparent 2px);
  background-size: 11px 11px;
  opacity: 0.8;
  margin-bottom: 2px;
}

.sticky-note {
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 8px 6px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #991b1b;
  line-height: 1.15;
  text-align: center;
  transition: transform 0.2s ease;
}

.sticky-note:hover {
  transform: scale(1.08) rotate(0deg) !important;
}

.note-1 {
  transform: rotate(-6deg);
}

.note-2 {
  transform: rotate(4deg);
}

.note-3 {
  transform: rotate(-4deg);
}

/* Side Characters */
.comp-side-character {
  position: absolute;
  bottom: 0;
  z-index: 6;
  pointer-events: none;
  user-select: none;
}

.side-char-left {
  left: -20px;
  width: 225px;
}

.side-char-right {
  right: -25px;
  width: 245px;
}

.student-char-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.06));
}

/* Main Two-Panel Card - Compact & Balanced */
.comparison-main-card {
  display: flex;
  width: 100%;
  max-width: 780px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 10px 36px -4px rgba(15, 23, 42, 0.07);
  position: relative;
  overflow: hidden;
  border: none;
}

/* Side Panels */
.comp-side {
  flex: 1;
  padding: 26px 26px 20px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.comp-side-without {
  background: #FEEBED;
  padding-left: 36px;
}

.comp-side-with {
  background: #EAF3FE;
  padding-right: 36px;
}

.comp-side-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pill-badge-without {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 2.5px 11px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.22);
}

.pill-badge-with {
  background: #10b981;
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 2.5px 11px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.22);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #071b41;
  letter-spacing: -0.02em;
}

.comp-side-desc {
  font-size: 0.813rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 16px;
}

/* Content Rows Stack */
.comp-items-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.comp-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.comp-item-row:last-child {
  border-bottom: none;
}

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

.comp-item-icon svg {
  width: 16px;
  height: 16px;
}

.icon-red-pill {
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.icon-blue-pill {
  background: #dbeafe;
  border: 1px solid #bfdbfe;
}

.icon-purple-pill {
  background: #ede9fe;
  border: 1px solid #ddd6fe;
}

.icon-green-pill {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

.icon-orange-pill {
  background: #ffedd5;
  border: 1px solid #fed7aa;
}

.comp-item-text {
  flex: 1;
}

.item-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: #071b41;
  margin-bottom: 1px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.item-sub {
  font-size: 0.745rem;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
}

/* Left Overwhelmed Doodle (Inside bottom-right of left panel) */
.comp-doodle-overwhelmed {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: 'Caveat', cursive, sans-serif;
  color: #ef4444;
  user-select: none;
}

.doodle-text-arrow {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.05rem;
  font-weight: 700;
}

.doodle-red-arrow {
  width: 24px;
  height: 24px;
}

.scribble-ball {
  width: 36px;
  height: 36px;
}

/* Right Future Callout (Attached to right side character) */
.side-char-right .comp-doodle-future {
  position: absolute;
  right: -22px;
  bottom: 28px;
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2563eb;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

.future-arrow {
  width: 20px;
  height: 24px;
}

/* Top Right Handwritten Callout */
.comp-top-right-callout {
  position: absolute;
  top: 12px;
  right: 18px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  user-select: none;
}

.curved-arrow-top-right {
  width: 24px;
  height: 28px;
}

.handwritten-stay-focused {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1d4ed8;
  line-height: 1.15;
  transform: rotate(3deg);
}

/* Torn Paper Seam */
.comp-torn-seam {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: 14px;
  z-index: 4;
  pointer-events: none;
}

.torn-seam-svg {
  width: 100%;
  height: 100%;
}

/* Center VS Badge */
.comp-center-vs {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

.vs-burst-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-ticks-svg {
  position: absolute;
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.vs-circle-outer {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.vs-circle-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #071b41;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-label {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* Bottom Feature Strip */
.comparison-feature-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 780px;
  margin: 14px auto 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 9px 18px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  position: relative;
  z-index: 2;
}

.feature-strip-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.feature-strip-icon svg {
  width: 16px;
  height: 16px;
}

.strip-bg-blue {
  background: #eff6ff;
  color: #2563eb;
}

.strip-bg-purple {
  background: #fbf5ff;
  color: #7c3aed;
}

.strip-bg-green {
  background: #ecfdf5;
  color: #059669;
}

.strip-bg-amber {
  background: #fffbeb;
  color: #d97706;
}

.feature-strip-content {
  display: flex;
  flex-direction: column;
}

.feature-strip-title {
  font-size: 0.813rem;
  font-weight: 800;
  color: #071b41;
  line-height: 1.2;
}

.feature-strip-sub {
  font-size: 0.688rem;
  color: #64748b;
  margin-top: 1px;
}

.feature-strip-divider {
  width: 1px;
  height: 24px;
  background: #e2e8f0;
  flex-shrink: 0;
}

.feature-strip-cta-wrap {
  flex-shrink: 0;
}

.feature-strip-cta {
  background-color: #2563eb;
  color: #ffffff;
  font-size: 0.775rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 9px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.feature-strip-cta:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  color: #ffffff;
}

/* Footer Tagline */
.comparison-tagline-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.tagline-h-line {
  height: 1px;
  width: 44px;
  background: #cbd5e1;
}

.tagline-text {
  font-size: 0.675rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #94a3b8;
  text-transform: uppercase;
}

/* Responsive Media Queries */
@media (max-width: 1180px) {
  .side-char-left {
    left: -15px;
    width: 205px;
  }
  .side-char-right {
    right: -20px;
    width: 220px;
  }
}

@media (max-width: 1040px) {
  .comp-far-left-decor {
    display: none;
  }
  .side-char-left {
    left: -10px;
    width: 185px;
  }
  .side-char-right {
    right: -15px;
    width: 200px;
  }
}

@media (max-width: 860px) {
  .comp-side-character {
    display: none;
  }
  .comparison-title {
    font-size: 2rem;
  }
  .comparison-main-card {
    flex-direction: column;
    border-radius: 20px;
    max-width: 520px;
  }
  .comp-side-without {
    padding-left: 24px;
  }
  .comp-side-with {
    padding-right: 24px;
  }
  .comp-torn-seam {
    display: none;
  }
  .comp-center-vs {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: flex;
    justify-content: center;
    margin: -18px 0;
    z-index: 15;
  }
  .vs-circle-outer {
    width: 54px;
    height: 54px;
  }
  .vs-circle-inner {
    width: 42px;
    height: 42px;
  }
  .vs-label {
    font-size: 0.95rem;
  }
  .comparison-feature-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    max-width: 520px;
  }
  .feature-strip-divider {
    display: none;
  }
  .feature-strip-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .comparison-section {
    padding: 28px 0 40px 0;
  }
  .comparison-title {
    font-size: 1.75rem;
  }
  .comp-side {
    padding: 20px 16px 0 16px;
  }
  .comp-top-right-callout {
    display: none;
  }
}
