/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f1f5f9;
  color: #0f172a;
}

/* ================= HEADINGS ================= */
h1, h2, h3 {
  text-align: center;
  color: #2563eb;
}

h1 {
  margin-top: 30px;
  font-size: 2rem;
}

h2 {
  margin: 40px 0 20px;
  font-size: 1.6rem;
}

h3 {
  margin: 40px 0 20px;
  font-size: 1.1rem;
}

/* ================= LAYOUT ================= */
section {
  width: 90%;
  max-width: 900px;
  margin: auto;
}

/* ================= CARD ================= */
.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 6px solid #2563eb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

/* ================= QUESTION ================= */
.question {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* ================= OPTIONS ================= */
.options {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
}

.options li {
  margin: 6px 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f1f5f9;
  transition: all 0.25s ease;
  cursor: pointer;
}

.options li:hover {
  background: #e0f2fe;
  transform: scale(1.02);
}

/* ================= ANSWER BUTTON ================= */
.answer {
  display: inline-block;
  color: #16a34a;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 8px;
  transition: 0.2s;
}

.answer:hover {
  color: #15803d;
}

/* ================= EXPLANATION ================= */
.explanation {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: #f8fafc;
  padding: 0 15px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
  margin-top: 5px;
  transition: all 0.4s ease;
}

/* SHOW STATE */
.explanation.show {
  max-height: 1000px;
  opacity: 1;
  padding: 12px 15px;
}

/* ================= TABLE ================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

table th {
  background: #2563eb;
  color: #fff;
  padding: 10px;
}

table td {
  padding: 10px;
  border: 1px solid #ddd;
}

/* ================= CARD TYPES ================= */
.card-short,
.card-long {
  cursor: pointer;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 600px) {
  .card {
    padding: 15px;
  }

  .question {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.1rem;
  }
}