/* UPSC Test Series courses page (scoped styles) */
.catalog-upsc { --bg1:#ffffff; --bg2:#f8fafc; --ink:#1e293b; --muted:#64748b; --brand:#22c55e; --accent:#3b82f6; }

.catalog-hero { 
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); 
  color: var(--ink); 
  padding: 80px 0 60px; 
  text-align: center; 
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.catalog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
}

.catalog-hero .h1 { 
  color: #0f172a; 
  margin: 0 0 16px; 
  font-size: 48px; 
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.catalog-hero .lead { 
  color: var(--muted); 
  max-width: 680px; 
  margin: 0 auto 24px; 
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
}
.hero-badges { 
  display: flex; 
  gap: 16px; 
  margin: 0 0 32px; 
  flex-wrap: wrap; 
  justify-content: center;
}

.hero-badges .b { 
  background: #f0f9ff; 
  color: #0369a1; 
  border: 1px solid #bae6fd; 
  padding: 8px 16px; 
  border-radius: 24px; 
  font-size: 14px; 
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.hero-badges .b.b--light { 
  background: #f0fdf4; 
  color: #166534; 
  border-color: #bbf7d0; 
}

.hero-cta { 
  display: flex; 
  gap: 16px; 
  margin-top: 32px; 
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .btn { 
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); 
  color: #ffffff; 
  border-radius: 12px; 
  padding: 14px 28px; 
  font-weight: 600; 
  text-decoration: none; 
  box-shadow: 0 4px 14px rgba(59,130,246,.25);
  border: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.hero-cta .btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59,130,246,.35);
}

.hero-cta .btn.btn-outline { 
  background: #ffffff; 
  color: #3b82f6; 
  border: 2px solid #3b82f6;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.hero-cta .btn.btn-outline:hover {
  background: #f8fafc;
  border-color: #1d4ed8;
  color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Trust indicators section */
.hero-stats {
  background: #f8fafc;
  padding: 32px 0;
  border-bottom: 1px solid #e2e8f0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  padding: 16px;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  font-family: system-ui, -apple-system, sans-serif;
}

.stat-label {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.shots { background:#ffffff; color:#374151; padding:28px 0; }
.shots .h2 { color:#1e293b; margin:0 0 8px; }
.shots .muted { color:#64748b; margin:0 0 24px; }

/* Video container with device width */
.video-container { 
  width: 100%; 
  max-width: 100%; 
  margin: 0 auto; 
  padding: 0 15px;
  box-sizing: border-box;
  display: block;
}

@media (min-width: 1200px) {
  .video-container {
    padding: 0 20px;
    max-width: 1200px;
  }
}

@media (max-width: 768px) {
  .video-container {
    padding: 0 20px;
    margin: 24px auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .video-container {
    padding: 0 16px;
    margin: 20px auto;
  }
}
.video-placeholder { 
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); 
  border: 2px solid #e2e8f0; 
  border-radius: 16px; 
  aspect-ratio: 16/9 !important; 
  width: 100%;
  max-width: 100%;
  height: auto !important;
  min-height: unset !important;
  max-height: unset !important;
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  color: #64748b; 
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0 auto;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.video-placeholder:hover { 
  border-color: #3b82f6; 
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.video-placeholder .play-icon { 
  font-size: 48px; 
  color: #3b82f6; 
  margin-bottom: 12px; 
  text-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(59,130,246,.25));
}
.video-placeholder p { 
  margin: 0 0 6px; 
  font-size: 18px; 
  font-weight: 600; 
  color: #1e293b; 
}
.video-placeholder small { 
  font-size: 14px; 
  color: #64748b;
}

.catalog { background:#ffffff; color:#374151; padding:28px 0 60px; }
.catalog .h2 { margin:0 0 16px; color:#1e293b; }
.catalog-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:16px; }

/* Triangle formation: item1 top-center, item2 bottom-left, item3 bottom-right */
.catalog-grid.triangle { grid-template-columns: 1fr 1fr 1fr; grid-auto-rows: 1fr; row-gap: 24px; }
.catalog-grid.triangle > .course-card:nth-child(1) { grid-column: 2; grid-row: 1; }
.catalog-grid.triangle > .course-card:nth-child(2) { grid-column: 1; grid-row: 2; }
.catalog-grid.triangle > .course-card:nth-child(3) { grid-column: 3; grid-row: 2; }
.catalog-grid.triangle > .course-card { align-self: stretch; }

/* Single Course Layout */
.catalog-grid.single-course {
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.course-card.upsc.prestorming {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 500px;
}

.course-card.upsc.prestorming:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.15);
  border-color: #3b82f6;
}

.course-card.upsc.prestorming .title {
  color: #0f172a;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.2;
}

.course-card.upsc.prestorming .desc {
  margin: 0 0 20px;
}

.course-card.upsc.prestorming .desc ol {
  margin: 0;
  padding-left: 20px;
  color: #374151;
}

.course-card.upsc.prestorming .desc ol li {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.5;
}

.course-card.upsc.prestorming .price-row {
  text-align: center;
  margin: 24px 0;
}

.course-card.upsc.prestorming .price {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-right: 12px;
}

.course-card.upsc.prestorming .mrp {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 18px;
  margin-right: 12px;
}

.course-card.upsc.prestorming .note {
  display: block;
  color: #059669;
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
}

/* Dual Button Layout */
.actions.dual-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.actions.dual-buttons .btn {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  text-align: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
}

.actions.dual-buttons .btn.secondary {
  background: #f1f5f9;
  color: #475569;
  border: 2px solid #e2e8f0;
}

.actions.dual-buttons .btn.secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #334155;
  transform: translateY(-1px);
}

.actions.dual-buttons .btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(59,130,246,.25);
}

.actions.dual-buttons .btn.primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59,130,246,.35);
}

/* Pulsing Animation for Join Now Button */
.btn.primary.pulsing {
  animation: prestormingPulse 2s ease-in-out infinite;
}

@keyframes prestormingPulse {
  0% {
    box-shadow: 0 4px 14px rgba(59,130,246,.25), 0 0 0 0 rgba(59,130,246,.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 20px rgba(59,130,246,.35), 0 0 0 8px rgba(59,130,246,0);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 4px 14px rgba(59,130,246,.25), 0 0 0 0 rgba(59,130,246,0);
    transform: scale(1);
  }
}

/* Mobile responsive for single course */
@media (max-width: 640px) {
  .course-card.upsc.prestorming {
    margin: 0 16px;
  }
  
  .course-card.upsc.prestorming .title {
    font-size: 20px;
  }
  
  .actions.dual-buttons {
    flex-direction: column;
  }
  
  .actions.dual-buttons .btn {
    width: 100%;
    max-width: none;
  }
}

.course-card.upsc { position:relative; padding:16px; border-radius:14px; background:linear-gradient(#0f172a, #0f172a) padding-box, linear-gradient(135deg, rgba(56,189,248,.6), rgba(34,197,94,.6)) border-box; border:1px solid transparent; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease; }
.course-card.upsc:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.course-card.upsc .ribbon { position:absolute; top:12px; right:-8px; background:linear-gradient(90deg, #22c55e, #16a34a); color:#052e16; font-weight:700; padding:6px 12px; border-top-left-radius:8px; border-bottom-left-radius:8px; box-shadow:0 4px 14px rgba(16,185,129,.3); }
.course-card.upsc .title { margin:0 0 6px; font-size:18px; color:#e5f8ff; }
.course-card.upsc .desc { margin:0; font-size:14px; color:#a3b4c5; min-height:48px; }
.course-card.upsc .desc ol { margin: 8px 0 0 0; padding-left: 20px; }
.course-card.upsc .desc ol li { margin: 4px 0; font-size: 13px; line-height: 1.4; }
.course-card.upsc .price-row { display:flex; align-items:baseline; gap:10px; margin-top:12px; }
.course-card.upsc .price { font-size:20px; font-weight:800; color:#e2e8f0; }
.course-card.upsc .price--free { color:#86efac; text-shadow: 0 0 12px rgba(134,239,172,.25); }
.course-card.upsc .mrp { color:#94a3b8; text-decoration: line-through; font-size:13px; }
.course-card.upsc .note { color:#86efac; font-size:12px; }
.course-card.upsc .actions { display:flex; gap:10px; margin-top:12px; justify-content:center; }
.course-card.upsc .btn { text-decoration:none; display:inline-block; padding:10px 12px; border-radius:8px; font-weight:700; }
.course-card.upsc .btn.primary { background:#22c55e; color:#052e16; box-shadow: 0 6px 18px rgba(34,197,94,.35); }
.course-card.upsc .btn.ghost { border:1px solid rgba(226,232,240,.3); color:#e2e8f0; }

.course-card.upsc.tier-1 { background:#ef4444; border:1px solid #b91c1c; box-shadow:0 10px 24px rgba(239,68,68,.25); }
.course-card.upsc.tier-1 .title, .course-card.upsc.tier-1 .desc, .course-card.upsc.tier-1 .desc ol, .course-card.upsc.tier-1 .desc ol li, .course-card.upsc.tier-1 .price, .course-card.upsc.tier-1 .note { color:#fff; }
.course-card.upsc.tier-1 .btn.primary { background:#ffffff; color:#7f1d1d; animation: cardPulse 1.4s ease-in-out infinite; }

.course-card.upsc.tier-2 { background:#22c55e; border:1px solid #16a34a; box-shadow:0 10px 24px rgba(34,197,94,.25); }
.course-card.upsc.tier-2 .title, .course-card.upsc.tier-2 .desc, .course-card.upsc.tier-2 .desc ol, .course-card.upsc.tier-2 .desc ol li, .course-card.upsc.tier-2 .price, .course-card.upsc.tier-2 .note { color:#052e16; }
.course-card.upsc.tier-2 .btn.primary { background:#052e16; color:#bbf7d0; }

.course-card.upsc.tier-3 { background:#fbbf24; border:1px solid #d97706; box-shadow:0 10px 24px rgba(245,158,11,.25); }
.course-card.upsc.tier-3 .title, .course-card.upsc.tier-3 .desc, .course-card.upsc.tier-3 .desc ol, .course-card.upsc.tier-3 .desc ol li, .course-card.upsc.tier-3 .price, .course-card.upsc.tier-3 .note { color:#1a1200; }
.course-card.upsc.tier-3 .btn.primary { background:#1a1200; color:#fbbf24; }

@keyframes cardPulse { 0% { box-shadow:0 0 0 0 rgba(255,255,255,.6); transform:translateY(0);} 70% { box-shadow:0 0 0 12px rgba(255,255,255,0); transform:translateY(-2px);} 100% { box-shadow:0 0 0 0 rgba(255,255,255,0); transform:translateY(0);} }

.fixed-try { 
  /* Core positioning - bulletproof center alignment */
  position: fixed !important; 
  left: 50% !important; 
  right: auto !important;
  transform: translateX(-50%) !important; 
  bottom: 16px !important; 
  
  /* Zoom-resistant properties */
  z-index: 10000 !important; 
  margin: 0 !important; /* Force zero margins */
  top: auto !important; /* Ensure bottom positioning */
  
  /* Visual styling */
  background: linear-gradient(90deg, #22c55e, #16a34a) !important; 
  color: #052e16 !important; 
  font-weight: 900 !important; 
  padding: 14px 22px !important; 
  border-radius: 999px !important; 
  text-decoration: none !important; 
  box-shadow: 0 10px 28px rgba(16,185,129,.35) !important; 
  border: 2px solid rgba(255,255,255,.35) !important;
  
  /* Animation and interaction */
  transition: all 0.4s ease !important;
  opacity: 1 !important;
  visibility: visible !important;
  
  /* Size constraints */
  width: 160px !important;
  min-width: 160px !important;
  max-width: calc(100vw - 32px) !important;
  text-align: center !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  
  /* Layout containment for zoom stability */
  contain: layout style !important;
  will-change: transform !important;
  box-sizing: border-box !important;
}
.fixed-try.is-hidden { 
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(-50%) translateY(30px) !important;
  pointer-events: none !important;
  transition: all 0.3s ease !important;
  left: 50% !important; /* Maintain center alignment even when hidden */
  z-index: 10000 !important; /* Keep high z-index */
}
/* Pulse + wiggle for Try for free */
.fixed-try { 
  animation: wigglePulse 2.2s ease-in-out infinite !important;
  /* Ensure button doesn't interfere with page content */
  pointer-events: auto !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  /* Enhanced centering and z-index */
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10000 !important;
}

@keyframes beginPulse {
  0% { transform: translateY(0) scale(1); box-shadow:0 6px 18px rgba(0,0,0,.25); }
  50% { transform: translateY(-2px) scale(1.03); box-shadow:0 10px 26px rgba(0,0,0,.35); }
  100% { transform: translateY(0) scale(1); box-shadow:0 6px 18px rgba(0,0,0,.25); }
}

@keyframes wigglePulse {
  0% { transform: translateX(-50%) translateY(0) rotate(0); }
  15% { transform: translateX(-50%) translateY(-1px) rotate(-1.5deg); }
  30% { transform: translateX(-50%) translateY(1px) rotate(1.5deg); }
  45% { transform: translateX(-50%) translateY(0) rotate(0); }
  60% { transform: translateX(-50%) translateY(-1px) rotate(1deg); }
  75% { transform: translateX(-50%) translateY(0) rotate(0); }
  100% { transform: translateX(-50%) translateY(0) rotate(0); }
}

/* Analytics Preview Section */
.analytics-preview {
  background: #ffffff;
  color: #1e293b;
  padding: 48px 0;
  position: relative;
  border-top: 1px solid #e2e8f0;
}

.analytics-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.3), transparent);
}

.analytics-preview .h2 {
  color: #1e293b;
  margin: 0 0 32px;
  text-align: center;
  font-weight: 700;
  font-size: 28px;
}

.analytics-preview .muted {
  text-align: center;
  color: #64748b;
  margin: 0 0 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Analytics KPI Row - Top horizontal layout like image */
.analytics-kpi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 40px;
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
}

.kpi-box {
  text-align: center;
  flex: 1;
}

.kpi-box:not(:last-child) {
  border-right: 1px solid #e5e7eb;
  margin-right: 20px;
  padding-right: 20px;
}

.kpi-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 500;
}

.kpi-main-value {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
  font-family: system-ui, -apple-system, sans-serif;
}

.kpi-note {
  font-size: 10px;
  color: #94a3b8;
}

/* Charts Row */
.analytics-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

/* Performance Row */
.analytics-performance-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

/* Chart styling */
.chart-subtitle {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 20px;
}

.chart-container {
  position: relative;
  display: flex;
  height: 180px;
}

.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 12px;
  font-size: 11px;
  color: #64748b;
  min-width: 30px;
}

.chart-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chart-bars {
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 140px;
  flex: 1;
  padding: 0 4px;
}

.score-bar, .accuracy-bar {
  background: #3b82f6;
  border-radius: 2px 2px 0 0;
  width: 100%;
  max-width: 24px;
  margin: 0 1px;
  position: relative;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom;
  animation: growBar 1.2s ease-out forwards;
}

.accuracy-bar {
  background: #10b981;
}

.score-bar:hover, .accuracy-bar:hover {
  transform: scaleY(1.05);
  opacity: 0.8;
}

.chart-x-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  padding: 8px 6px 0;
}

.chart-x-label {
  text-align: center;
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
}

/* Horizontal bars for subject/topic performance */
.horizontal-bars {
  margin-bottom: 16px;
}

.bar-item {
  margin-bottom: 16px;
}

.bar-item:not(:last-child) {
  padding-bottom: 12px;
  border-bottom: 1px solid #f9fafb;
}

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

.bar-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.bar-category {
  font-size: 12px;
  color: #374151;
  font-weight: 500;
}

.bar-legend {
  display: flex;
  gap: 12px;
  margin-top: 2px;
}

.bar-legend:first-child .legend-item:first-child {
  margin-left: 0;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 10px;
  color: #64748b;
}

.legend-color {
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-radius: 1px;
}

.legend-color.correct {
  background: #8b5cf6;
}

.legend-color.wrong {
  background: #f59e0b;
}

.horizontal-bar {
  height: 12px;
  background: #f3f4f6;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}

.bar-segment {
  height: 100%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-segment.correct {
  background: #8b5cf6;
}

.bar-segment.wrong {
  background: #f59e0b;
}

.chart-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #94a3b8;
  padding: 8px 0;
  border-top: 1px solid #f3f4f6;
  margin-top: 12px;
}

.topic-filter {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topic-filter label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.topic-filter select {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
  min-width: 120px;
}

.topic-filter select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.topic-filter select:hover {
  border-color: #9ca3af;
}

/* Fix for blue highlight in dropdown options */
.topic-filter select option {
  background: #ffffff;
  color: #374151;
  padding: 8px 12px;
}

.topic-filter select option:checked,
.topic-filter select option:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.analytics-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.analytics-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.06);
  transform: translateY(-2px);
}

.analytics-card h3 {
  color: #374151;
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.analytics-card h3::before {
  content: '';
  width: 3px;
  height: 16px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 2px;
  margin-right: 8px;
}

/* Chart tooltips */
.chart-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  z-index: 10;
  margin-bottom: 4px;
}

.chart-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1f2937;
}

/* KPI Card Styles */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.kpi-item {
  text-align: center;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.kpi-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
  font-family: system-ui, -apple-system, sans-serif;
}

.kpi-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

/* Chart Card Styles */
.chart-container {
  position: relative;
}

.chart-bars {
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 100px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.bar {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 3px 3px 0 0;
  width: 100%;
  max-width: 16px;
  margin: 0 1px;
  position: relative;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom;
  animation: growBar 1.2s ease-out forwards;
}

.bar:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: scaleY(1.05);
}

.bar::after {
  content: attr(data-value);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bar:hover::after {
  opacity: 1;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  padding: 0 6px;
}

.chart-labels span {
  text-align: center;
  flex: 1;
}

/* Subject Performance Styles */
.subject-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subject-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 16px;
}

.subject-name {
  color: #374151;
  font-weight: 500;
  font-size: 13px;
}

.progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 6px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fillProgress 2s ease-out forwards;
}

.subject-score {
  color: #1e293b;
  font-weight: 600;
  font-size: 13px;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Recent Tests Styles */
.recent-tests {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.test-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.test-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.test-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.test-name {
  color: #374151;
  font-weight: 500;
  font-size: 13px;
}

.test-date {
  color: #64748b;
  font-size: 11px;
}

.test-score {
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  font-family: system-ui, -apple-system, sans-serif;
}

.test-score.excellent {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.test-score.good {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* Analytics Footer */
.analytics-footer {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.analytics-note {
  color: #64748b;
  font-size: 14px;
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.analytics-note strong {
  color: #3b82f6;
}

.analytics-cta {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(59,130,246,.25);
}

.analytics-cta:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59,130,246,.35);
  color: white;
}

/* Line Chart Styling */
.line-chart {
  width: 100%;
  height: 140px;
  margin-bottom: 8px;
}

.score-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2s ease-out forwards;
}

.accuracy-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2s ease-out 0.5s forwards;
}

.score-point, .accuracy-point {
  opacity: 0;
  animation: fadeInPoint 0.5s ease-out 2.5s forwards;
  cursor: pointer;
  transition: r 0.2s ease;
}

.score-point:hover, .accuracy-point:hover {
  r: 6;
}

/* Line drawing animation */
@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeInPoint {
  to {
    opacity: 1;
  }
}

/* Animations */
@keyframes growBar {
  from {
    height: 0;
  }
  to {
    height: var(--height);
  }
}

@keyframes fillProgress {
  from {
    width: 0;
  }
  to {
    width: var(--width);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation triggers */
.analytics-card[data-animate="fade-in"] {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.2s;
}

.analytics-card[data-animate="slide-up"] {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.4s;
}

.analytics-card[data-animate="fade-in-delay"] {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.6s;
}

.analytics-card[data-animate="slide-in-right"] {
  animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.8s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .analytics-card {
    padding: 20px;
  }
  
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .kpi-value {
    font-size: 24px;
  }
  
  .subject-item {
    grid-template-columns: 100px 1fr auto;
    gap: 12px;
  }
  
  .subject-name {
    font-size: 13px;
  }
  
  .chart-bars {
    height: 100px;
  }
  
  .bar {
    max-width: 16px;
  }

  .catalog-hero .h1 {
    font-size: 36px;
  }
  
  .catalog-hero .lead {
    font-size: 18px;
  }
  
  .hero-badges {
    gap: 12px;
  }
  
  .hero-badges .b {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .catalog-hero {
    padding: 60px 0 40px;
  }
  
  .catalog-hero .h1 {
    font-size: 28px;
  }
  
  .catalog-hero .lead {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .hero-badges {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .hero-badges .b {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 260px;
    font-size: 15px;
    padding: 12px 24px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  /* Additional mobile optimizations for analytics */
  .analytics-kpi-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .kpi-box {
    padding: 16px 12px;
  }
  
  .kpi-main-value {
    font-size: 18px;
  }
  
  .kpi-label {
    font-size: 10px;
  }
  
  .kpi-note {
    font-size: 8px;
  }
  
  .analytics-preview {
    padding: 32px 0;
  }
  
  .analytics-preview .h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  .analytics-card {
    padding: 12px;
  }
  
  .analytics-card h3 {
    font-size: 15px;
  }
  
  .chart-container {
    height: 140px;
  }
  
  .horizontal-bars {
    margin: 16px 0;
  }
  
  .bar-category {
    font-size: 11px;
  }
  
  .topic-filter select {
    font-size: 12px;
    padding: 6px;
  }
  
  .video-container {
    margin: 24px 0;
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
  }
  
  .video-placeholder {
    aspect-ratio: 16/9 !important;
    height: auto !important;
  }
  
  .video-placeholder .play-icon {
    font-size: 32px;
  }
  
  .video-placeholder p {
    font-size: 14px;
  }
  
  .video-placeholder small {
    font-size: 11px;
  }
}

/* Responsive design for analytics */
@media (max-width: 768px) {
  .analytics-kpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
    padding: 0;
    border-bottom: none;
  }
  
  .kpi-box {
    text-align: center;
    flex: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
  }
  
  .kpi-box:not(:last-child) {
    border-right: 1px solid #e2e8f0;
    margin-right: 0;
    padding-right: 16px;
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 20px;
  }
  
  .kpi-main-value {
    font-size: 20px;
    font-weight: 700;
  }
  
  .kpi-label {
    font-size: 11px;
    margin-bottom: 6px;
  }
  
  .kpi-note {
    font-size: 9px;
  }
  
  .analytics-charts-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .analytics-performance-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .chart-container {
    height: 160px;
  }
  
  .chart-bars {
    height: 120px;
  }
  
  .bar-labels {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .bar-legend {
    gap: 8px;
  }
  
  .analytics-card {
    padding: 16px;
  }
  
  .analytics-card h3 {
    font-size: 16px;
  }
  
  .chart-subtitle {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .analytics-kpi-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .kpi-box {
    padding: 16px 12px;
  }
  
  .kpi-main-value {
    font-size: 18px;
  }
  
  .kpi-label {
    font-size: 10px;
  }
  
  .kpi-note {
    font-size: 8px;
  }
  
  .analytics-preview {
    padding: 32px 0;
  }
  
  .analytics-preview .h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  .analytics-card {
    padding: 12px;
  }
}

@media (max-width: 980px) {
  /* Stack course cards vertically on tablets and mobiles */
  .catalog-grid, .catalog-grid.triangle { grid-template-columns: 1fr !important; grid-auto-flow: row; row-gap: 16px; }
  .catalog-grid.triangle > .course-card { grid-column: 1 / -1 !important; grid-row: auto !important; width: 100% !important; }
  
  /* Video placeholder responsive - maintain aspect ratio */
  .video-placeholder { 
    aspect-ratio: 16/9 !important;
    height: auto !important;
  }
  .video-placeholder .play-icon { font-size: 36px; }
  .video-placeholder p { font-size: 16px; }

  /* Mobile card color themes (based on compare table CTA colors) */
  .course-card.upsc.tier-1 { background:#ef4444 !important; border:1px solid #b91c1c !important; box-shadow:0 10px 24px rgba(239,68,68,.25); }
  .course-card.upsc.tier-1 .title, .course-card.upsc.tier-1 .desc, .course-card.upsc.tier-1 .desc ol, .course-card.upsc.tier-1 .desc ol li, .course-card.upsc.tier-1 .price, .course-card.upsc.tier-1 .note { color:#fff !important; }
  .course-card.upsc.tier-1 .btn.primary { background:#ffffff; color:#7f1d1d; animation: mobilePulse 1.4s ease-in-out infinite; }

  .course-card.upsc.tier-2 { background:#22c55e !important; border:1px solid #16a34a !important; box-shadow:0 10px 24px rgba(34,197,94,.25); }
  .course-card.upsc.tier-2 .title, .course-card.upsc.tier-2 .desc, .course-card.upsc.tier-2 .desc ol, .course-card.upsc.tier-2 .desc ol li, .course-card.upsc.tier-2 .price, .course-card.upsc.tier-2 .note { color:#052e16 !important; }
  .course-card.upsc.tier-2 .btn.primary { background:#052e16; color:#bbf7d0; }

  .course-card.upsc.tier-3 { background:#fbbf24 !important; border:1px solid #d97706 !important; box-shadow:0 10px 24px rgba(245,158,11,.25); }
  .course-card.upsc.tier-3 .title, .course-card.upsc.tier-3 .desc, .course-card.upsc.tier-3 .desc ol, .course-card.upsc.tier-3 .desc ol li, .course-card.upsc.tier-3 .price, .course-card.upsc.tier-3 .note { color:#1a1200 !important; }
  .course-card.upsc.tier-3 .btn.primary { background:#1a1200; color:#f59e0b; }
}

@keyframes mobilePulse { 0% { box-shadow:0 0 0 0 rgba(255,255,255,.6); transform:translateY(0);} 70% { box-shadow:0 0 0 12px rgba(255,255,255,0); transform:translateY(-2px);} 100% { box-shadow:0 0 0 0 rgba(255,255,255,0); transform:translateY(0);} }
@media (max-width: 640px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-hero { text-align:center; }
  .hero-cta { justify-content:center; flex-wrap:wrap; }
}

/* Comparison table */
.compare { background:#ffffff; color:#374151; padding:28px 0; text-align:center; }
.compare .wrap { max-width:980px; margin:0 auto; }
.compare .h2 { margin:0 0 12px; color:#1e293b; }
.compare .compare-table { margin:0 auto; max-width:980px; }
.compare-table { 
  width:100%; 
  border: 2px solid #e5e7eb !important;
  border-radius: 8px !important;
  overflow:hidden; 
  background: #ffffff !important;
  box-shadow: none !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

/* Remove box-shadow for single-plan tables */
.compare-table.single-plan {
  box-shadow: none !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 8px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
.compare-table .row { 
  display:grid; 
  grid-template-columns: 2fr 1fr 1fr 1fr; 
  justify-items:center; 
  align-items:center;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
}
.compare-table .cell { 
  padding:12px; 
  border-bottom: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border: none !important;
  text-align:center; 
  background: #ffffff !important; 
  color:#374151; 
  outline: none !important;
  box-shadow: none !important;
}

/* Old single-plan rules removed - using clean rebuild below */

.compare-table .cell.label { 
  background:#f8fafc; 
  color:#374151; 
  font-weight:600; 
  text-align:left; 
  width:100%;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
}
.compare-table .row.head .cell { 
  font-weight:800; 
  border: none !important;
  border-bottom: 2px solid #e5e7eb !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  background:#f9fafb !important;
  color:#1e293b;
}
/* Note: Single-plan layout - removed multi-column styling */
.compare-table .row.foot .cell { 
  background:#f9fafb !important; 
  font-weight:700;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
}
.compare-table .cell.emph { font-weight:800; color:#1e293b; }

/* Remove older column theme helpers (kept for compatibility if present) */
.col-ess, .col-int, .col-pro { background: transparent !important; }

/* Pulse effect (clean version) */
@keyframes pulseGlow { 
  0% { box-shadow:0 0 0 rgba(59,130,246,.0); transform:scale(1); }
  50% { box-shadow:0 0 18px rgba(59,130,246,.25); transform:scale(1.02); }
  100% { box-shadow:0 0 0 rgba(59,130,246,.0); transform:scale(1); } 
}
.compare-table .pulse { 
  color:#1e40af; 
  background: rgba(59,130,246,.1); 
  border-radius:8px; 
  animation: pulseGlow 1.6s ease-in-out infinite; 
  font-weight:900; 
  padding:4px 6px; 
}

/* CTA button styling - clean white theme */
.compare-table .row.actions { background:transparent; }
.compare-table .row.actions .cell { text-align:center; }
.compare-table .row.actions .cta { 
  display:inline-block; 
  font-weight:700; 
  border-radius:8px; 
  padding:10px 16px; 
  box-shadow:0 2px 8px rgba(0,0,0,.1); 
  transition: all 0.2s ease;
  text-decoration: none;
}
.cta-ess { 
  background:#f1f5f9; 
  color:#475569; 
  border:1px solid #e2e8f0;
}
.cta-int { 
  background:#10b981; 
  color:#ffffff; 
  border:1px solid #059669;
}
.cta-pro { 
  background:#f59e0b; 
  color:#ffffff; 
  border:1px solid #d97706;
}

/* Hover effects */
.cta-ess:hover { 
  background:#e2e8f0; 
  color:#334155;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
}
.cta-int:hover { 
  background:#059669; 
  color:#ffffff;
  box-shadow:0 4px 12px rgba(16,185,129,.25);
}
.cta-pro:hover { 
  background:#d97706; 
  color:#ffffff;
  box-shadow:0 4px 12px rgba(245,158,11,.25);
}

@media (max-width: 720px) {
  .compare-table .row { grid-template-columns: 1.3fr 0.95fr 0.95fr 0.95fr; }
  .compare-table .cell { padding:10px 8px; font-size:14px; line-height:1.35; }
  .compare .h2 { font-size:24px; }
  .compare-table .row.actions .cta { padding:10px 12px; border-radius:8px; font-size:14px; }
}

@media (max-width: 480px) {
  .compare-table .row { grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr; }
  .compare-table .cell { padding:8px 6px; font-size:13px; }
  .compare-table .row.actions .cta { padding:8px 10px; font-size:13px; }
}

/* ========================================
   FEATURES TABLE - PROPER HTML TABLE STRUCTURE
   ======================================== */

.table-container {
  max-width: 600px;
  margin: 0 auto;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.features-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

/* Header styling */
.features-table thead th {
  background: #ffffff;
  color: #1e293b;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 20px;
  border-bottom: 2px solid #e5e7eb;
  text-align: center;
}

.features-table thead th.feature-col {
  text-align: center;
}

.features-table thead th.plan-col {
  text-align: center;
  border-left: 1px solid #e5e7eb;
}

/* Body rows */
.features-table tbody td {
  padding: 16px 20px;
  border: none;
  background: #ffffff;
}

.features-table tbody td.feature-label {
  color: #1e293b;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}

.features-table tbody td.plan-value {
  text-align: center;
  font-weight: 600;
  color: #1e293b;
  border-left: 1px solid #e5e7eb;
}

/* Price row special styling */
.features-table .price-row td.plan-price {
  text-align: center;
  font-weight: 800;
  font-size: 20px;
  color: #0f172a;
  border-left: 1px solid #e5e7eb;
}

.features-table .original-price {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 14px;
  font-weight: 500;
  margin-left: 8px;
}

/* Footer CTA */
.features-table tfoot td.cta-cell {
  text-align: center;
  padding: 20px;
  background: #ffffff;
  border: none;
}

.features-table .cta-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  border: none;
  box-shadow: 0 4px 14px rgba(59,130,246,.25);
  transition: all 0.3s ease;
}

.features-table .cta-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59,130,246,.35);
}

.features-table .cta-primary.pulsing {
  animation: prestormingPulse 2s ease-in-out infinite;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .table-container {
    margin: 0 16px;
  }
  
  .features-table thead th,
  .features-table tbody td,
  .features-table tfoot td {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .features-table thead th {
    font-size: 15px;
  }
  
  .features-table .price-row td.plan-price {
    font-size: 18px;
  }
  
  .features-table .cta-primary {
    padding: 12px 24px;
    font-size: 15px;
  }
}

/* Legacy table styles - kept for backwards compatibility */
.compare { background:#ffffff; color:#374151; padding:28px 0; text-align:center; }
.compare .wrap { max-width:980px; margin:0 auto; }
.compare .h2 { margin:0 0 12px; color:#1e293b; }

/* FAQ section (white theme to match page) */
.catalog-upsc .faq { background:#ffffff; color:#374151; padding:28px 0; }
.catalog-upsc .faq .h2 { color:#1e293b; }
.catalog-upsc .faq details { background:#0f172a; border:1px solid rgba(148,163,184,.2); border-radius:10px; padding:10px 12px; margin:8px 0; }
.catalog-upsc .faq summary { cursor:pointer; color:#e2e8f0; }
.catalog-upsc .faq details[open] { background:#101826; }
.catalog-upsc .faq p { color:#cbd5e1; }

/* Footer override for this page only (footer follows main) */
.catalog-upsc ~ .footer { background:#0f172a !important; color:#e2e8f0; border-top:1px solid rgba(148,163,184,.2); }
.catalog-upsc ~ .footer a { color:#e2e8f0; }
.catalog-upsc ~ .footer .brand-name, .catalog-upsc ~ .footer h4, .catalog-upsc ~ .footer .h4 { color:#ffffff; }
.catalog-upsc ~ .footer .footer-links a:hover { color:#a5f3fc; }

/* FINAL BORDER OVERRIDE - Table outline only */
.compare-table {
  border: 2px solid #e5e7eb !important;
}

/* Remove generic table component overrides */
.compare .compare-table th,
.compare .compare-table td,
table.compare-table th,
table.compare-table td {
  border: none !important;
  background: #ffffff !important;
}

/* Clean end of file */

/* Mobile styles for comparison table and features table */
@media (max-width: 768px) {
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px;
  }
  
  .features-table {
    min-width: 500px;
    font-size: 14px;
  }
  
  .features-table th,
  .features-table td {
    padding: 12px 8px;
  }
  
  .feature-label {
    font-size: 13px;
  }
  
  .plan-value {
    font-size: 13px;
  }
  
  .plan-price {
    font-size: 16px;
  }
  
  .cta-primary {
    font-size: 14px;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .features-table {
    font-size: 12px;
    min-width: 400px;
  }
  
  .features-table th,
  .features-table td {
    padding: 10px 6px;
  }
  
  .feature-label {
    font-size: 12px;
  }
  
  .plan-value {
    font-size: 12px;
  }
}

/* Mobile FAQ section */
@media (max-width: 768px) {
  .faq {
    padding: 32px 0;
  }
  
  .faq .h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  .faq-grid {
    display: block;
  }
  
  .faq-grid details {
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0;
    background: #ffffff;
  }
  
  .faq-grid summary {
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }
  
  .faq-grid details p {
    padding: 0 16px 16px 16px;
    margin: 0;
    font-size: 13px;
    color: #64748b;
  }
}

/* Mobile course card improvements */
@media (max-width: 768px) {
  .catalog-grid.single-course {
    margin: 0 -10px;
  }
  
  .course-card {
    margin: 0 10px;
    padding: 20px;
  }
  
  .course-card .title {
    font-size: 20px;
  }
  
  .course-card .desc ol {
    font-size: 14px;
  }
  
  .course-card .desc ol li {
    margin-bottom: 8px;
  }
  
  .actions.dual-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .actions .btn {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 15px;
  }
  
  .price-row {
    margin: 20px 0;
  }
  
  .price {
    font-size: 28px;
  }
  
  .mrp {
    font-size: 18px;
  }
  
  .note {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .course-card {
    padding: 16px;
  }
  
  .course-card .title {
    font-size: 18px;
  }
  
  .course-card .desc ol {
    font-size: 13px;
  }
  
  .actions .btn {
    font-size: 14px;
    padding: 12px;
  }
}

/* Mobile fixed try button */
@media (max-width: 768px) {
  .fixed-try {
    left: auto !important; /* Reset desktop centering */
    right: 20px !important;
    bottom: 20px !important;
    transform: none !important; /* Remove translateX(-50%) */
    padding: 12px 20px !important;
    font-size: 14px !important;
    border-radius: 25px !important;
    width: auto !important; /* Allow natural width based on content */
    animation: wigglePulseMobile 2.2s ease-in-out infinite !important; /* Use mobile-specific animation */
    position: fixed !important;
    z-index: 1000 !important;
    display: block !important;
  }
  
  .fixed-try.is-hidden {
    transform: translateY(30px) !important; /* Only Y translation for mobile */
    animation: none !important; /* Stop animation when hidden */
    left: auto !important;
    right: 20px !important;
  }
  
  /* Mobile-specific wiggle animation without translateX */
  @keyframes wigglePulseMobile {
    0% { transform: translateY(0) rotate(0); }
    15% { transform: translateY(-1px) rotate(-1.5deg); }
    30% { transform: translateY(1px) rotate(1.5deg); }
    45% { transform: translateY(0) rotate(0); }
    60% { transform: translateY(-1px) rotate(1deg); }
    75% { transform: translateY(0) rotate(0); }
    100% { transform: translateY(0) rotate(0); }
  }
}

@media (max-width: 480px) {
  .fixed-try {
    bottom: 16px !important;
    right: 16px !important;
    left: 16px !important; /* Full width on small screens */
    transform: none !important; /* Ensure no transform */
    width: auto !important;
    text-align: center !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    animation: wigglePulseMobile 2.2s ease-in-out infinite !important; /* Use mobile-specific animation */
    position: fixed !important;
    z-index: 1000 !important;
    display: block !important;
  }
  
  .fixed-try.is-hidden {
    transform: translateY(30px) !important; /* Only Y translation for mobile */
    animation: none !important; /* Stop animation when hidden */
    left: 16px !important;
    right: 16px !important;
  }
}

/* High zoom levels protection (200%+) */
@media (min-resolution: 2dppx), (min-resolution: 192dpi) {
  .fixed-try {
    z-index: 10001 !important;
    max-width: 180px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    /* Prevent overlap with content at high zoom */
    margin-bottom: 20px !important;
  }
}

/* Extra high zoom protection (300%+) */
@media (min-resolution: 3dppx), (min-resolution: 288dpi) {
  .fixed-try {
    font-size: 12px !important;
    padding: 10px 16px !important;
    max-width: 140px !important;
    bottom: 30px !important;
    right: 30px !important;
  }
}

/* Mobile catalog section improvements */
@media (max-width: 768px) {
  .catalog {
    padding: 32px 0;
  }
  
  .catalog .h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  .compare {
    padding: 32px 0;
  }
  
  .compare .h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }
}

/* Video placeholder mobile styles */
@media (max-width: 768px) {
  .shots {
    padding: 32px 0;
  }
  
  .shots .h2 {
    font-size: 24px;
  }
  
  .shots .muted {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  .video-placeholder {
    aspect-ratio: 16/9 !important;
    height: auto !important;
    border-radius: 12px;
  }
  
  .video-container {
    margin: 24px 0;
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
  }
  
  .video-placeholder .play-icon {
    font-size: 32px;
  }
  
  .video-placeholder p {
    font-size: 14px;
    margin: 8px 0 4px;
  }
  
  .video-placeholder small {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .video-container {
    margin: 20px 0;
    padding: 0 5px;
    width: 100%;
    max-width: 100%;
  }
  
  .video-placeholder {
    aspect-ratio: 16/9 !important;
    height: auto !important;
  }
  
  .video-placeholder .play-icon {
    font-size: 28px;
  }
  
  .video-placeholder p {
    font-size: 13px;
  }
  
  .video-placeholder small {
    font-size: 10px;
  }
}

/* Leaderboard Preview Section */
.leaderboard-preview {
  background: #f8fafc;
  color: #1e293b;
  padding: 60px 0;
  position: relative;
  border-top: 1px solid #e2e8f0;
}

.leaderboard-preview .h2 {
  color: #1e293b;
  margin: 0 0 16px;
  text-align: center;
  font-weight: 700;
  font-size: 32px;
}

.leaderboard-preview .muted {
  text-align: center;
  color: #64748b;
  margin: 0 0 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
}

/* Leaderboard Stats */
.leaderboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  border-color: #3b82f6;
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
  font-family: system-ui, -apple-system, sans-serif;
}

.stat-label {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

/* Leaderboard Section */
.leaderboard-section {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  border: 1px solid #e2e8f0;
}

.leaderboard-section h3 {
  color: #1e293b;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 24px;
}

.test-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 20px;
}

.test-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.test-name {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

.test-meta {
  font-size: 14px;
  color: #64748b;
}

.test-stats {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: #64748b;
}

.avg-score,
.avg-accuracy {
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
}

/* Leaderboard Table */
.leaderboard-table {
  width: 100%;
}

.table-header {
  display: grid;
  grid-template-columns: 60px 1fr 120px 80px 90px;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.table-row {
  display: grid;
  grid-template-columns: 60px 1fr 120px 80px 90px;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
  transition: all 0.2s ease;
}

.table-row:hover {
  background: #f8fafc;
  transform: translateX(4px);
}

.rank-col {
  font-weight: 700;
  color: #64748b;
  text-align: center;
}

.rank-1 {
  color: #dc2626;
  font-size: 18px;
}

.rank-2 {
  color: #ea580c;
  font-size: 16px;
}

.rank-3 {
  color: #d97706;
  font-size: 16px;
}

.name-col {
  font-weight: 600;
  color: #1e293b;
}

.state-col {
  color: #64748b;
  font-size: 14px;
}

.score-col {
  font-weight: 700;
  color: #059669;
  text-align: center;
}

.accuracy-col {
  color: #3b82f6;
  font-weight: 600;
  text-align: center;
}

.show-more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 2px solid #f1f5f9;
  margin-top: 12px;
}

.more-text {
  color: #64748b;
  font-style: italic;
}

.view-full-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-full-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-1px);
}

/* State Performance */
.state-performance {
  margin-bottom: 40px;
}

.state-performance h3 {
  color: #1e293b;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 24px;
  text-align: center;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.state-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: all 0.3s ease;
}

.state-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  border-color: #3b82f6;
}

.state-name {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  font-size: 16px;
}

.state-avg {
  font-size: 28px;
  font-weight: 800;
  color: #059669;
  margin-bottom: 4px;
  font-family: system-ui, -apple-system, sans-serif;
}

.state-label {
  color: #64748b;
  font-size: 12px;
  margin-bottom: 8px;
}

.state-students {
  color: #64748b;
  font-size: 13px;
}

/* Recent Activity */
.recent-activity {
  background: white;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 40px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.recent-activity h3 {
  color: #1e293b;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 24px;
  text-align: center;
}

.activity-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.activity-item {
  padding: 16px;
  border-radius: 8px;
  background: #f8fafc;
}

.activity-number {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #3b82f6;
  margin-bottom: 4px;
  font-family: system-ui, -apple-system, sans-serif;
}

.activity-text {
  color: #64748b;
  font-size: 14px;
  line-height: 1.4;
}

/* Leaderboard Footer */
.leaderboard-footer {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.leaderboard-note {
  color: #64748b;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.leaderboard-note strong {
  color: #3b82f6;
}

.leaderboard-cta {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(34,197,94,.25);
}

.leaderboard-cta:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34,197,94,.35);
  color: white;
}

/* Mobile Responsive for Leaderboard */
@media (max-width: 768px) {
  .leaderboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .stat-card {
    padding: 20px 16px;
  }
  
  .stat-value {
    font-size: 28px;
  }
  
  .leaderboard-section {
    padding: 24px 20px;
  }
  
  .test-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .test-stats {
    gap: 16px;
  }
  
  /* Make table rows look like cards on mobile - matching original test-series.css style */
  .leaderboard-table {
    display: grid;
    gap: 12px;
  }
  
  .table-header {
    display: none; /* Hide header on mobile for cleaner card look */
  }
  
  .table-row {
    display: grid;
    grid-template-columns: 50px 1fr auto auto;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(233, 243, 255, 0.6);
    backdrop-filter: blur(4px);
    font-size: 14px;
    font-weight: 500;
    border-bottom: none;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  .table-row:hover {
    background: rgba(233, 243, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  .rank-col {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f9cff, #4960ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
  }
  
  .rank-1 {
    background: linear-gradient(135deg, #4f9cff, #4960ff);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.85);
  }
  
  .rank-2 {
    background: linear-gradient(135deg, #82d4ff, #4b7bff);
  }
  
  .rank-3 {
    background: linear-gradient(135deg, #b9e6ff, #688bff);
  }
  
  .name-col {
    font-weight: 700;
    color: #1b2f6d;
    font-size: 15px;
  }
  
  .state-col {
    display: none; /* Hide state column on mobile */
  }
  
  .score-col {
    font-weight: 700;
    color: #059669;
    font-size: 16px;
    justify-self: end;
  }
  
  .accuracy-col {
    color: #3b82f6;
    font-weight: 600;
    font-size: 13px;
    justify-self: end;
  }
  
  .state-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .activity-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .show-more {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    background: rgba(233, 243, 255, 0.4);
    padding: 16px;
    border-radius: 12px;
    margin-top: 12px;
  }
  
  .view-full-btn {
    background: linear-gradient(135deg, #4f9cff, #4960ff);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .view-full-btn:hover {
    background: linear-gradient(135deg, #4960ff, #3b4ccc);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(79,156,255,0.3);
  }
}

@media (max-width: 480px) {
  .leaderboard-preview {
    padding: 40px 0;
  }
  
  .leaderboard-preview .h2 {
    font-size: 26px;
  }
  
  .leaderboard-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-value {
    font-size: 24px;
  }
  
  .leaderboard-section {
    padding: 20px 16px;
    margin-bottom: 24px;
  }
  
  /* Ultra-mobile: even more compact card layout */
  .table-row {
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    padding: 10px 14px;
  }
  
  .rank-col {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  
  .name-col {
    font-size: 14px;
  }
  
  .score-col {
    font-size: 15px;
  }
  
  .accuracy-col {
    display: none; /* Hide accuracy on very small screens */
  }
  
  .state-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .recent-activity {
    margin-top: 32px;
  }
}
