/* ==============================================================================
   ENGINEERHINDI QUIZ & LEARNING LMS PLATFORM - WINNERS INSTITUTE UI CLONE (V5.0)
   1:1 Match with https://live.winnersinstitute.in/test-series/
   Clean Tailwind / shadcn inspired design, "Plus Jakarta Sans" typography,
   Accurate 15px/13px font sizes, card badges, red actions, 5-col palette.
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Mukta:wght@400;500;600;700;800&display=swap');

/* --- 1. THEME SIDEBAR & WRAPPER RESET --- */
.page-id-5185 #right-sidebar,
.page-id-5185 .sidebar,
.page-id-5187 #right-sidebar,
.page-id-5187 .sidebar,
body.page-id-5185 #right-sidebar,
body.page-id-5187 #right-sidebar,
body:has(.eh-quiz-app) #right-sidebar,
body:has(.eh-quiz-app) .sidebar,
body:has(.eh-quiz-app) .widget-area {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
}

.page-id-5185 #primary,
.page-id-5187 #primary,
.page-id-5185 .content-area,
.page-id-5187 .content-area,
body:has(.eh-quiz-app) #primary,
body:has(.eh-quiz-app) .content-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-id-5185 .site-main,
.page-id-5187 .site-main,
body:has(.eh-quiz-app) .site-main,
.page-id-5185 .inside-article,
.page-id-5187 .inside-article,
body:has(.eh-quiz-app) .inside-article {
  padding: 0 !important;
  margin: 0 !important;
  background: #fbfcfe !important;
}

.page-id-5185 .entry-header,
.page-id-5187 .entry-header {
  display: none !important;
}

/* --- 2. WINNERS INSTITUTE DESIGN TOKENS --- */
:root {
  --eh-wi-red: #ff0000;
  --eh-wi-red-hover: #dc2626;
  --eh-wi-red-subtle: #fef2f2;
  --eh-wi-red-tint: rgba(255, 0, 0, 0.04);
  --eh-wi-red-border: rgba(255, 0, 0, 0.2);

  --eh-wi-green: #10b981;
  --eh-wi-green-subtle: #f0fdf4;
  --eh-wi-green-border: #bbf7d0;
  --eh-wi-green-dark: #15803d;

  --eh-wi-amber: #f59e0b;
  --eh-wi-amber-subtle: #fffbeb;
  --eh-wi-amber-border: #fde68a;

  --eh-wi-blue: #2563eb;
  --eh-wi-blue-subtle: #eff6ff;
  --eh-wi-blue-border: #bfdbfe;

  --eh-wi-bg: #fbfcfe;
  --eh-wi-card-bg: #ffffff;
  --eh-wi-border: #e5e7eb;
  --eh-wi-border-light: #f1f5f9;

  --eh-wi-text-dark: #212121;
  --eh-wi-text-main: #111827;
  --eh-wi-text-muted: #6b7280;
  --eh-wi-text-light: #9ca3af;

  --eh-wi-radius-xl: 12px;
  --eh-wi-radius-lg: 10px;
  --eh-wi-radius-md: 8px;
  --eh-wi-radius-sm: 6px;
}

/* Main Container */
.eh-quiz-app {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--eh-wi-text-main);
  background: var(--eh-wi-bg);
  line-height: 1.5;
  box-sizing: border-box;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 60px 20px;
  -webkit-font-smoothing: antialiased;
}

.eh-quiz-app *, .eh-quiz-app *::before, .eh-quiz-app *::after {
  box-sizing: inherit;
}

/* --- 3. TOP BREADCRUMBS (WINNERS STYLE) --- */
.eh-wi-breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--eh-wi-text-muted);
}
.eh-wi-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--eh-wi-radius-sm);
  border: 1px solid var(--eh-wi-border);
  background: #ffffff;
  color: var(--eh-wi-text-main);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.eh-wi-back-btn svg {
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  stroke: currentColor !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}
.eh-quiz-app svg {
  flex-shrink: 0;
}
.eh-wi-back-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}
.eh-wi-crumbs-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.eh-wi-crumbs-text a {
  color: var(--eh-wi-text-muted);
  text-decoration: none;
  font-weight: 500;
}
.eh-wi-crumbs-text a:hover {
  color: var(--eh-wi-red);
}
.eh-wi-crumbs-text span.sep {
  color: var(--eh-wi-text-light);
  font-size: 12px;
}
.eh-wi-crumbs-text span.current {
  color: var(--eh-wi-text-main);
  font-weight: 600;
}

/* --- 4. TEST SERIES HEADER BANNER (WINNERS POSTER CARD) --- */
.eh-wi-header-card {
  background: #ffffff;
  border: 1px solid var(--eh-wi-border);
  border-radius: var(--eh-wi-radius-xl);
  padding: 18px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
@media (max-width: 768px) {
  .eh-wi-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
.eh-wi-header-thumb {
  width: 140px;
  height: 90px;
  border-radius: var(--eh-wi-radius-md);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  text-align: center;
  padding: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.eh-wi-header-thumb::before {
  content: "ENGINEER";
  position: absolute;
  top: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #38bdf8;
}
.eh-wi-header-thumb .thumb-icon {
  font-size: 26px;
  margin-top: 10px;
}
.eh-wi-header-thumb .thumb-tag {
  font-size: 10px;
  font-weight: 700;
  color: #fde047;
  text-transform: uppercase;
}

.eh-wi-header-info {
  flex: 1;
}
.eh-wi-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--eh-wi-text-muted);
  margin-bottom: 6px;
}
.eh-wi-header-meta svg {
  width: 15px;
  height: 15px;
  color: var(--eh-wi-text-muted);
}
.eh-wi-header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--eh-wi-text-main);
  margin: 0 0 6px 0;
  line-height: 1.35;
}
.eh-wi-header-desc {
  font-size: 13.5px;
  color: var(--eh-wi-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* --- 5. TABS BAR (WINNERS STYLE WITH RED UNDERLINE) --- */
.eh-wi-sub-container {
  background: #ffffff;
  border: 1px solid var(--eh-wi-border);
  border-radius: var(--eh-wi-radius-xl);
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.eh-wi-sub-header {
  padding: 16px 20px 0 20px;
  border-bottom: 1px solid var(--eh-wi-border);
}
.eh-wi-sub-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--eh-wi-text-muted);
  margin-bottom: 14px;
}
.eh-wi-sub-crumbs span.crumb-active {
  color: var(--eh-wi-text-main);
  font-weight: 600;
}
.eh-wi-tabs-row {
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.eh-wi-tabs-row::-webkit-scrollbar {
  display: none;
}
.eh-wi-tab-item {
  position: relative;
  padding: 10px 4px 14px 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--eh-wi-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.eh-wi-tab-item:hover {
  color: var(--eh-wi-text-main);
}
.eh-wi-tab-item.active {
  color: var(--eh-wi-red);
}
.eh-wi-tab-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--eh-wi-red);
  border-radius: 2px 2px 0 0;
}

/* Search inside tests view */
.eh-wi-filter-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--eh-wi-border-light);
  background: #fdfdfe;
  flex-wrap: wrap;
  gap: 12px;
}
.eh-wi-search-wrap {
  position: relative;
  max-width: 320px;
  width: 100%;
}
.eh-wi-search-wrap input {
  width: 100%;
  height: 38px;
  border-radius: var(--eh-wi-radius-sm);
  border: 1px solid var(--eh-wi-border);
  padding: 8px 12px 8px 36px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--eh-wi-text-main);
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s;
}
.eh-wi-search-wrap input:focus {
  border-color: var(--eh-wi-red);
}
.eh-wi-search-icon {
  position: absolute;
  left: 11px;
  top: 11px;
  color: var(--eh-wi-text-light);
}

/* --- 6. WINNERS INSTITUTE TEST CARDS GRID --- */
.eh-wi-cards-body {
  padding: 20px;
}
.eh-wi-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1080px) {
  .eh-wi-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .eh-wi-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual Test Article Card */
.eh-wi-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--eh-wi-radius-xl);
  border: 1px solid var(--eh-wi-border);
  background: #ffffff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.eh-wi-card:hover {
  transform: translateY(-2px);
  border-color: #d1d5db;
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.07);
}

/* Card Upper Content */
.eh-wi-card-content {
  padding: 14px 16px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Badges */
.eh-wi-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.eh-wi-badge-attempted {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  padding: 2.5px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid var(--eh-wi-green-border);
  background: var(--eh-wi-green-subtle);
  color: var(--eh-wi-green-dark);
}
.eh-wi-badge-attempted svg {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}
.eh-wi-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  padding: 2.5px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid var(--eh-wi-blue-border);
  background: var(--eh-wi-blue-subtle);
  color: var(--eh-wi-blue);
}

/* Card Title */
.eh-wi-card-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--eh-wi-text-dark);
  line-height: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 44px;
  font-family: inherit;
}

/* Card Meta (100 Qs | 120 Minutes | 100 Marks) */
.eh-wi-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--eh-wi-text-muted);
  margin-top: auto;
}
.eh-wi-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.eh-wi-meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--eh-wi-text-muted);
  flex-shrink: 0;
}

/* Card Footer (Tinted Bar with Action Buttons) */
.eh-wi-card-footer {
  border-top: 1px solid var(--eh-wi-border);
  background: var(--eh-wi-red-tint);
  padding: 12px;
}
.eh-wi-btn-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Standard Buttons (14px, Height 40px) */
.eh-wi-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 8px 14px;
  border-radius: var(--eh-wi-radius-md);
  border: 1px solid var(--eh-wi-red);
  background: #ffffff;
  color: var(--eh-wi-red);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  width: 100%;
}
.eh-wi-btn-outline:hover {
  background: var(--eh-wi-red-subtle);
}

.eh-wi-btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 8px 14px;
  border-radius: var(--eh-wi-radius-md);
  border: none;
  background: var(--eh-wi-red);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  width: 100%;
}
.eh-wi-btn-solid:hover {
  background: var(--eh-wi-red-hover);
}
.eh-wi-btn-solid svg, .eh-wi-btn-outline svg {
  width: 15px;
  height: 15px;
}

/* --- 7. WINNERS INSTITUTE LIVE EXAM PLAYER & REVIEW --- */
.eh-wi-player-wrapper {
  max-width: 1240px;
  margin: 0 auto;
}
.eh-wi-player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--eh-wi-border);
  border-radius: var(--eh-wi-radius-xl);
  padding: 12px 20px;
  margin-bottom: 20px;
}
.eh-wi-player-topbar .player-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--eh-wi-text-dark);
}
.eh-wi-player-topbar .player-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--eh-wi-text-dark);
  background: #f8fafc;
  border: 1px solid var(--eh-wi-border);
  padding: 6px 14px;
  border-radius: 9999px;
}
.eh-wi-player-topbar .player-timer-badge.warning {
  color: var(--eh-wi-red);
  border-color: var(--eh-wi-red-border);
  background: var(--eh-wi-red-subtle);
}

/* 2-Column Exam Player Grid */
.eh-wi-player-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 960px) {
  .eh-wi-player-layout {
    grid-template-columns: 1fr;
  }
  .eh-wi-sidebar-col {
    order: -1;
  }
}

/* Question Area */
.eh-wi-question-card {
  background: #ffffff;
  border: 1px solid var(--eh-wi-border);
  border-radius: var(--eh-wi-radius-xl);
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.eh-wi-q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--eh-wi-border-light);
}
.eh-wi-q-header .q-tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--eh-wi-red);
}
.eh-wi-q-header .q-time {
  font-size: 13px;
  color: var(--eh-wi-text-muted);
}
.eh-wi-question-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--eh-wi-text-dark);
  line-height: 24px;
  margin-bottom: 22px;
}

/* Option Cards (Stacked, Rounded 12px, 10px 12px padding) */
.eh-wi-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.eh-wi-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  border: 0.8px solid var(--eh-wi-border);
  background: var(--eh-wi-bg);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.eh-wi-option-item:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}
.eh-wi-option-item.selected {
  border: 1.5px solid var(--eh-wi-red);
  background: #fff5f5;
}
.eh-wi-opt-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.eh-wi-opt-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13.5px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.eh-wi-option-item.selected .eh-wi-opt-circle {
  background: var(--eh-wi-red);
  color: #ffffff;
}

/* Solution Review States */
.eh-wi-option-item.correct {
  border: 1.5px solid var(--eh-wi-green) !important;
  background: var(--eh-wi-green-subtle) !important;
}
.eh-wi-option-item.correct .eh-wi-opt-circle {
  background: var(--eh-wi-green) !important;
  color: #ffffff !important;
}
.eh-wi-option-item.wrong {
  border: 1.5px solid var(--eh-wi-red) !important;
  background: var(--eh-wi-red-subtle) !important;
}
.eh-wi-option-item.wrong .eh-wi-opt-circle {
  background: var(--eh-wi-red) !important;
  color: #ffffff !important;
}
.eh-wi-correct-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--eh-wi-green-dark);
}

.eh-wi-opt-text {
  font-size: 14.5px;
  color: rgba(33, 33, 33, 0.95);
  font-weight: 400;
}

/* Player Bottom Action Row */
.eh-wi-q-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--eh-wi-border-light);
}
.eh-wi-btn-prev {
  background: #f87171;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
.eh-wi-btn-prev:hover {
  opacity: 0.9;
}
.eh-wi-btn-prev:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.eh-wi-btn-next {
  background: var(--eh-wi-red);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
.eh-wi-btn-next:hover {
  background: var(--eh-wi-red-hover);
}

/* Solution Box Collapsible */
.eh-wi-solution-box {
  margin-top: 20px;
  border: 1px solid var(--eh-wi-border);
  border-radius: var(--eh-wi-radius-md);
  background: #fdfdfe;
  overflow: hidden;
}
.eh-wi-solution-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--eh-wi-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.eh-wi-solution-body {
  padding: 16px;
  font-size: 14px;
  color: var(--eh-wi-text-dark);
  line-height: 1.6;
}

/* --- 8. RIGHT SIDEBAR (ANSWER STATUS & PALETTE) --- */
.eh-wi-sidebar-card {
  background: #ffffff;
  border: 1px solid var(--eh-wi-border);
  border-radius: var(--eh-wi-radius-xl);
  padding: 18px;
  margin-bottom: 16px;
}
.eh-wi-sidebar-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--eh-wi-text-muted);
  margin: 0 0 14px 0;
}
.eh-wi-legend-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--eh-wi-text-dark);
}
.eh-wi-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.eh-wi-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.eh-wi-dot.attempted { background: var(--eh-wi-green); }
.eh-wi-dot.unattempted { background: var(--eh-wi-red); }
.eh-wi-dot.not-visited { border: 1.5px solid #9ca3af; background: transparent; }
.eh-wi-dot.current { background: var(--eh-wi-amber); }

/* 5-Column Question Grid */
.eh-wi-palette-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--eh-wi-text-muted);
  margin-bottom: 14px;
}
.eh-wi-palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.eh-wi-pal-btn {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--eh-wi-border);
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.eh-wi-pal-btn:hover {
  border-color: #9ca3af;
}
.eh-wi-pal-btn.attempted {
  background: var(--eh-wi-green) !important;
  color: #ffffff !important;
  border-color: var(--eh-wi-green) !important;
}
.eh-wi-pal-btn.unattempted {
  background: var(--eh-wi-red) !important;
  color: #ffffff !important;
  border-color: var(--eh-wi-red) !important;
}
.eh-wi-pal-btn.current {
  background: var(--eh-wi-amber) !important;
  color: #ffffff !important;
  border-color: var(--eh-wi-amber) !important;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--eh-wi-amber) !important;
}

/* --- 9. WINNERS RESULTS & SCORECARD SCREEN --- */
.eh-wi-results-container {
  max-width: 1240px;
  margin: 0 auto;
}
.eh-wi-results-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.eh-wi-results-topbar h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--eh-wi-text-dark);
}
.eh-wi-btn-sol-analysis {
  background: var(--eh-wi-red);
  color: #ffffff !important;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}
.eh-wi-btn-sol-analysis:hover {
  background: var(--eh-wi-red-hover);
}

/* 7 Question Stats Cards */
.eh-wi-stats-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
@media (max-width: 1080px) {
  .eh-wi-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 640px) {
  .eh-wi-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.eh-wi-stat-box {
  background: #ffffff;
  border: 1px solid var(--eh-wi-border);
  border-radius: var(--eh-wi-radius-lg);
  padding: 16px 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.eh-wi-stat-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
}
.eh-wi-stat-box.score::before { background: #f59e0b; }
.eh-wi-stat-box.rank::before { background: #8b5cf6; }
.eh-wi-stat-box.percentile::before { background: #3b82f6; }
.eh-wi-stat-box.correct::before { background: #10b981; }
.eh-wi-stat-box.wrong::before { background: #ef4444; }
.eh-wi-stat-box.unattempted::before { background: #9ca3af; }
.eh-wi-stat-box.accuracy::before { background: #06b6d4; }

.eh-wi-stat-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 10px;
}
.eh-wi-stat-box.score .eh-wi-stat-icon-wrap { background: #fef3c7; color: #d97706; }
.eh-wi-stat-box.rank .eh-wi-stat-icon-wrap { background: #ede9fe; color: #7c3aed; }
.eh-wi-stat-box.percentile .eh-wi-stat-icon-wrap { background: #dbeafe; color: #2563eb; }
.eh-wi-stat-box.correct .eh-wi-stat-icon-wrap { background: #d1fae5; color: #059669; }
.eh-wi-stat-box.wrong .eh-wi-stat-icon-wrap { background: #fee2e2; color: #dc2626; }
.eh-wi-stat-box.unattempted .eh-wi-stat-icon-wrap { background: #f3f4f6; color: #4b5563; }
.eh-wi-stat-box.accuracy .eh-wi-stat-icon-wrap { background: #cffafe; color: #0891b2; }

.eh-wi-stat-lbl {
  font-size: 12px;
  color: var(--eh-wi-text-muted);
  margin-bottom: 6px;
}
.eh-wi-stat-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--eh-wi-text-dark);
}
.eh-wi-stat-val span.sub {
  font-size: 12px;
  color: var(--eh-wi-text-light);
  font-weight: 500;
}

/* Rank Predictor Section */
.eh-wi-rank-card {
  background: #ffffff;
  border: 1px solid var(--eh-wi-border);
  border-radius: var(--eh-wi-radius-xl);
  padding: 24px;
  margin-bottom: 30px;
}
.eh-wi-rank-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eh-wi-rank-bar-wrap {
  margin-top: 20px;
  position: relative;
}
.eh-wi-rank-bar {
  height: 8px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
}
