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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #f6f8fb;
  color: #1f2937;
  line-height: 1.6;
}

/* ===============================
   HEADER
================================ */
.site-header {
  background: #4f46e5;
  color: #ffffff;
  padding: 18px 20px;
}

.header-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  width: 38px;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
}

.brand-tagline {
  font-size: 13px;
  opacity: 0.9;
}

/* ===============================
   NAVIGATION
================================ */
nav {
  background: #ffffff;
  padding: 10px 0;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

nav a {
  margin: 0 14px;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
}

nav a:hover {
  color: #4f46e5;
}

nav a.active {
  color: #4f46e5;
  font-weight: 600;
}

/* ===============================
   PAGE CONTAINER
================================ */
.page-content {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

/* ===============================
   MOCK GRID
================================ */
.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mock-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.mock-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.mock-title {
  font-size: 17px;
  font-weight: 600;
  color: #4f46e5;
  margin-bottom: 6px;
}

.mock-topic {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

.mock-link {
  font-size: 14px;
  font-weight: 500;
  color: #4f46e5;
}

/* ===============================
   TIMER
================================ */
.mock-timer {
  position: sticky;
  top: 0;
  background: #ffffff;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
  z-index: 10;
}

/* ===============================
   QUIZ LAYOUT
================================ */
.quiz-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
}

.question-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.question-card h3 {
  margin-bottom: 16px;
}

/* OPTIONS */
.option {
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  cursor: pointer;
  background: #f9fafb;
  transition: 0.2s ease;
}

.option:hover {
  border-color: #4f46e5;
}

.option.correct {
  background: #dcfce7;
  border-color: #22c55e;
}

.option.wrong {
  background: #fee2e2;
  border-color: #ef4444;
}

/* SIDE QUESTION NAV */
.side-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.q-num {
  height: 36px;
  width: 36px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  cursor: pointer;
  font-size: 13px;
}

.q-current {
  background: #e0e7ff;
  border-color: #4f46e5;
}

.q-answered {
  background: #dcfce7;
  border-color: #22c55e;
}

/* ===============================
   NAV BUTTONS
================================ */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.nav-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
}

.nav-btn.primary {
  background: #4f46e5;
  color: #ffffff;
  border: none;
}

/* ===============================
   RESULT PAGE
================================ */
.result-summary {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.answer-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.correct-text {
  color: #16a34a;
  font-weight: 600;
}

.wrong-text {
  color: #dc2626;
  font-weight: 600;
}

/* ===============================
   FOOTER
================================ */
footer {
  margin-top: 50px;
  text-align: center;
  padding: 16px;
  background: #e5e7eb;
  font-size: 14px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
  .mock-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quiz-layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    grid-template-columns: repeat(6, 1fr);
    margin-top: 14px;
  }
}

@media (max-width: 640px) {
  .mock-grid {
    grid-template-columns: 1fr;
  }
}
.option.selected {
  border: 2px solid #4f46e5;
  background: #eef2ff;
}
.quit-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.quit-btn:hover {
  background: #dc2626;
}
.question-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
}
.option.selected {
  border: 2px solid #4f46e5;
  background: #eef2ff;
}
.side-nav {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 16px;
}

.q-num {
  border-radius: 8px;
  font-weight: 500;
}
.chart-box {
  width: 260px;
  margin: 0 auto;
}

#resultChart {
  width: 220px !important;
  height: 220px !important;
}
/* =========================
   MOCK TEST SECTION
========================= */

body {
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

/* Title */
.page-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1e293b;
}

/* Grid */
.mock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

/* Card */
.mock-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #eef2ff;
  position: relative;
}

/* Hover Effect */
.mock-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
}

/* Card Title */
.mock-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #4f46e5;
  margin-bottom: 8px;
}

/* Subtitle */
.mock-card p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 14px;
}

/* Start Button */
.mock-card a {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s ease;
}

.mock-card a:hover {
  opacity: 0.9;
}

/* NEW Badge */
.badge-new {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f43f5e;
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
  font-weight: 600;
}
.badge-new {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.4);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.mock-card {
  position: relative;
  overflow: hidden;
}

.badge.new {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #ff5f6d, #ff416c);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  letter-spacing: 0.5px;
}
.mock-card {
  position: relative;
  padding-top: 38px;   /* pushes content below badge */
}
.badge.new {
  position: absolute;
  top: 12px;
  left: 14px;
  background: linear-gradient(135deg, #ff5f6d, #ff416c);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  letter-spacing: 0.5px;
}
.mock-card:hover {
  border: 1px solid #6366f1;
}
nav a.active {
  font-weight: 700;
  color: #6366f1;
}
.mock-card:hover {
  transform: translateY(-4px);
  border: 1px solid #6366F1;
}
.testimonial-note {
  font-size: 12px;
  color: #7b739e;
  margin-top: 12px;
  opacity: 0.8;
}
.testimonial-note {
  font-size: 12px;
  color: #7b739e;
  margin-top: 12px;
  opacity: 0.6;
  letter-spacing: 0.02em;
}
.qtesti-stars span {
  color: #facc15; /* softer gold */
  font-size: 14px;
}
.qtesti-card::before {
  opacity: 0.08;
}
