:root {
  --blue-dark: #0b1f3a;
  --blue-main: #0d47a1;
  --blue-light: #2196f3;
  --gold: #ffc107;
  --white: #ffffff;
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
}

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

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.btn {
  display: inline-block;
  padding: 18px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 18px;
  transition: 0.3s;
}
.btn:hover {
  transform: scale(1.05);
}

.btn-primary {
  background: var(--blue-main);
  color: var(--white);
}
.btn-primary.correct {
  background: #16a34a !important;
}

.btn-primary.wrong {
  background: #dc2626 !important;
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--blue-dark);
}
.navbar {
  background: var(--white);
  padding: 18px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);

  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 26px;
  font-weight: 900;
  color: var(--blue-main);
}

.logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 600;
}

.hero {
  min-height: 90vh;
  padding: 90px 0;
  background: linear-gradient(135deg, #0b1f3a, #0d47a1);
  color: var(--white);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 20px;

  animation: fadeUp 1s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h2 {
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.preview-card {
  background: var(--white);
  color: var(--text);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: floatCard 3s ease-in-out infinite;
}

@keyframes floatCard {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.score {
  font-size: 48px;
  font-weight: 900;
  color: var(--blue-main);
}

.progress {
  height: 12px;
  background: #e2e8f0;
  border-radius: 20px;
  margin: 14px 0 24px;
  overflow: hidden;
}

.progress-fill {
  width: 68%;
  height: 100%;
  background: var(--gold);
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card h3 {
  color: var(--blue-main);
  margin-bottom: 10px;
}

.footer {
  background: var(--blue-dark);
  color: var(--white);
  text-align: center;
  padding: 30px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 44px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav nav {
  display: flex;
  gap: 28px;
}

.dashboard-grid,
.stats-grid,
.result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.question-card,
.result-card {
  margin-top: 32px;
}

.small-btn {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-weight: 700;
  cursor: pointer;
}
.pattern-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.badge {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.topic-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.pattern-badge {
  background: #fef3c7;
  color: #92400e;
}

.difficulty-badge {
  background: #dcfce7;
  color: #166534;
}

.progress-wrapper {
  margin: 20px 0 30px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #fbbf24;
  width: 0%;
  transition: 0.3s;
}

#progress-text {
  margin-top: 8px;
  font-weight: 700;
}
.mastery-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 10px;
}

.mastery-fill {
  height: 100%;
  background: #f4b400;
  border-radius: 999px;
  transition: width 0.3s ease;
}
.weak-pattern-item {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}

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

.weak-pattern-item p {
  margin-bottom: 8px;
  line-height: 1.45;
}

.pattern-drill-btn {
  margin-top: 6px;
}
/* =========================
   LESSON CARDS
========================= */

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.lesson-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);

  transition: all 0.25s ease;
}

.lesson-card:hover {
  transform: translateY(-5px);

  box-shadow:
    0 15px 35px rgba(0,0,0,0.12);
}

.lesson-card h3 {
  color: #174ea6;
  margin-bottom: 12px;
}

.lesson-card p {
  color: #475569;
  margin-bottom: 18px;
  min-height: 48px;
}

.lesson-btn {
  background: #174ea6;
  color: white;

  border: none;
  border-radius: 12px;

  padding: 12px 24px;

  cursor: pointer;

  font-weight: 600;

  transition: 0.25s;
}

.lesson-btn:hover {
  background: #0f3d85;
}
.lesson-progress {
  width: 100%;
  height: 10px;

  background: #e5e7eb;

  border-radius: 999px;

  overflow: hidden;

  margin-top: 8px;
}

.lesson-progress-fill {
  height: 100%;

  background: #f4b400;

  border-radius: 999px;

  transition: width 0.3s ease;
}
/* =========================
   Dashboard Title
========================= */
.dashboard-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #1f4ea3;
  margin-bottom: 30px;
}
.mastered-lesson-item {
  margin-top: 10px;
  line-height: 1.4;
}

.mastered-lesson-item strong {
  display: block;
}

.mastered-lesson-item span {
  display: block;
  color: #475569;
  font-size: 14px;
  margin-top: 2px;
}
.question-image-box {
  margin: 20px 0;
  text-align: center;
}

.question-image {
  width: 100%;
  max-width: 760px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}