/* assets/styles.css */

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background-color: #f5f7fb;
  color: #111827;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 1.25rem;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Images */
img {
  max-width: 100%;
  display: block;
}

/* Layout helpers */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== Header & Navigation ========== */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.5rem;
  gap: 1rem;
}

.site-title {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1f2937;
}

.site-title span {
  color: #2563eb;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.nav-links a {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  color: #4b5563;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  background-color: #e5edff;
  color: #1d4ed8;
}

@media (max-width: 640px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* ========== Main Content ========== */

main {
  flex: 1;
}

/* Hero section */
.hero {
  padding: 2.5rem 0 2rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #dbeafe;
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background-color: #10b981;
}

.hero-title {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  color: #111827;
}

.hero-lead {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.08s ease;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  text-decoration: none;
}

.btn-secondary {
  background-color: #ffffff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #eff6ff;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

/* Hero checklist */
.hero-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.hero-checkmark {
  margin-top: 0.18rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background-color: #10b981;
}

/* Hero side card */
.hero-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111827;
}

.hero-card-subtitle {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.hero-card-list is {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-card-list li + li {
  margin-top: 0.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background-color: #eff6ff;
  color: #1d4ed8;
}

.hero-tag-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background-color: #1d4ed8;
}

/* ========== Sections ========== */

.section {
  padding: 1.75rem 0;
}

.section-header {
  margin-bottom: 1.25rem;
}

.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.section-intro {
  font-size: 0.96rem;
  color: #4b5563;
}

/* Grid of cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.card-tagline {
  font-size: 0.85rem;
  font-weight: 500;
  color: #1d4ed8;
}

.card-body {
  font-size: 0.9rem;
  color: #4b5563;
}

.card-link {
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

/* Start-here checklist box */
.start-steps {
  background-color: #eef2ff;
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px dashed rgba(79, 70, 229, 0.4);
}

.start-steps ol {
  margin-top: 0.4rem;
  padding-left: 1.1rem;
}

.start-steps li {
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

/* Exam summary card */
.exam-summary {
  background-color: #ffffff;
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.93rem;
  color: #4b5563;
}

.exam-summary strong {
  color: #111827;
}

/* ========== Footer ========== */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.9rem 0;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #6b7280;
  background-color: #ffffff;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== Question lists (all domains) ========== */

/* Static domains (I–III) */
.question-options {
  list-style-type: upper-alpha;  /* Show A, B, C, D markers */
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

/* Dynamic domains (IV–VI) using JS-rendered cards */
.question-card__choices {
  list-style: none;              /* Remove 1., 2., 3., 4. markers */
  padding-left: 0;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.question-card__choice {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.choice-label {
  font-weight: 600;
  min-width: 1.6rem;             /* keeps A. / B. nicely aligned */
}

.choice-text {
  flex: 1;
}
