* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

body {
  background: #f4f6fb;
  color: #1f2937;
}

.header {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.header h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.header p {
  font-size: 16px;
  opacity: 0.9;
}

.container {
  max-width: 700px;
  margin: 20px auto;
  padding: 0 16px 40px;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

.main-btn {
  background: white;
  border: 1px solid #dbeafe;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  color: #1e3a8a;
  cursor: pointer;
  transition: 0.2s;
}

.main-btn:hover {
  background: #eff6ff;
}

.lessons h2 {
  margin-bottom: 15px;
  color: #1e3a8a;
}

.lesson {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e7eb;
  transition: 0.2s;
}

.lesson:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
}

.lesson-number {
  width: 40px;
  height: 40px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.lesson h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.lesson p {
  font-size: 14px;
  color: #6b7280;
}

.whatsapp {
  display: block;
  text-align: center;
  background: #25d366;
  color: white;
  padding: 15px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 25px;
}

@media (max-width: 480px) {
  .buttons {
    grid-template-columns: 1fr;
  }

  .header h1 {
    font-size: 22px;
  }
}
.lesson-header {
  background: #1e3a8a;
  color: white;
  padding: 20px;
}

.back {
  color: white;
  text-decoration: none;
  font-size: 15px;
  display: inline-block;
  margin-bottom: 10px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
}

.card h2 {
  color: #1e3a8a;
  margin-bottom: 10px;
}

.card p,
.card ol {
  line-height: 1.8;
  font-size: 16px;
}

.card ol {
  padding-right: 20px;
  margin-top: 10px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 15px 0;
}

.tab {
  padding: 8px 14px;
  border: 1px solid #dbeafe;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  color: #1e3a8a;
}

.tab.active {
  background: #2563eb;
  color: white;
}

.code {
  display: none;
  background: #0f172a;
  color: #e2e8f0;
  padding: 15px;
  border-radius: 10px;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  font-family: monospace;
  font-size: 14px;
}

.code.active {
  display: block;
}

.result {
  margin-top: 10px;
  font-weight: bold;
  color: #16a34a;
}

.show-answer {
  background: #2563eb;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.answer {
  margin-top: 15px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 15px;
  border-radius: 10px;
}

.hidden {
  display: none;
}

.quiz {
  display: block;
  width: 100%;
  text-align: right;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}

.quiz:hover {
  border-color: #2563eb;
}

#quizResult {
  margin-top: 10px;
  font-weight: bold;
}

.next {
  display: block;
  text-align: center;
  background: #1e3a8a;
  color: white;
  padding: 15px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
}