/* Compact article hero shared by all individual blog pages */
body > header + section {
  isolation: isolate;
  min-height: 0 !important;
  padding-top: 5.75rem !important;
  background:
    radial-gradient(circle at 86% 10%, rgba(22, 157, 253, 0.2), transparent 22rem),
    linear-gradient(125deg, #070b12, #0b0f17 62%, #101a28) !important;
}

body > header + section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, black, transparent 85%);
  pointer-events: none;
}

body > header + section > .absolute {
  opacity: 0.32 !important;
}

body > header + section > div.relative {
  padding-top: 1.25rem !important;
  padding-bottom: 1.5rem !important;
}

body > header + section > div.relative > div {
  max-width: 900px !important;
}

body > header + section h1 {
  max-width: 850px;
  margin-top: 0.5rem !important;
  font-size: clamp(2rem, 4.5vw, 3.6rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.045em !important;
}

body > header + section h1 + p {
  max-width: 760px;
  margin-top: 0.45rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
}

body > header + section div.inline-flex {
  padding: 0.38rem 0.65rem !important;
  border-color: rgba(22, 157, 253, 0.28) !important;
  background: rgba(22, 157, 253, 0.09) !important;
  color: rgba(255, 255, 255, 0.66) !important;
  font-size: 0.65rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

body > header + section h1 + p + div {
  margin-top: 0.7rem !important;
  gap: 0.55rem !important;
}

body > header + section h1 + p + div a {
  min-height: 2.45rem;
  padding: 0.55rem 0.9rem !important;
  font-size: 0.78rem;
}

body > header + section .flex.flex-wrap {
  margin-top: 0.7rem !important;
  gap: 0.4rem !important;
}

body > header + section .flex.flex-wrap > span {
  padding: 0.3rem 0.55rem !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: rgba(255, 255, 255, 0.52) !important;
  font-size: 0.62rem !important;
}

body > main > section {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

@keyframes answerReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mcq {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 5%, rgba(22, 157, 253, 0.17), transparent 23rem),
    linear-gradient(145deg, #070b12, #0b0f17 65%, #101925) !important;
  color: white;
}

#mcq::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 0.7px, transparent 0.7px);
  background-size: 20px 20px;
  pointer-events: none;
}

#mcq > div {
  position: relative;
  z-index: 1;
}

#mcq h2 {
  color: white;
  letter-spacing: -0.035em;
}

#mcq .text-secondary {
  color: rgba(255, 255, 255, 0.56);
}

#mcq article {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: white;
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(10px);
  transition:
    border-color 250ms ease,
    background-color 250ms ease,
    transform 250ms ease;
}

#mcq article:hover {
  border-color: rgba(22, 157, 253, 0.38) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  transform: translateY(-2px);
}

#mcq article p.text-slate-900,
#mcq article .text-slate-900 {
  color: rgba(255, 255, 255, 0.92) !important;
}

#mcq article .grid > div {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.68);
  transition:
    border-color 200ms ease,
    background-color 200ms ease,
    color 200ms ease;
}

#mcq article .grid > div:hover {
  border-color: rgba(22, 157, 253, 0.48) !important;
  background: rgba(22, 157, 253, 0.1);
  color: white;
}

#mcq .qaToggle {
  border: 1px solid rgba(22, 157, 253, 0.38);
  background: rgba(22, 157, 253, 0.13) !important;
  color: #7bcbff !important;
  white-space: nowrap;
}

#mcq .qaToggle:hover {
  border-color: rgba(22, 157, 253, 0.7);
  background: rgba(22, 157, 253, 0.22) !important;
  color: white !important;
}

#mcq .qaAnswer {
  border-color: rgba(52, 211, 153, 0.28) !important;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(22, 157, 253, 0.07)) !important;
  color: rgba(255, 255, 255, 0.72);
  animation: answerReveal 260ms ease-out both;
}

#mcq .qaAnswer > p:first-child {
  color: #6ee7b7 !important;
  font-weight: 800;
}

#mcq .qaAnswer .text-secondary,
#mcq .qaAnswer li {
  color: rgba(255, 255, 255, 0.65) !important;
}

#mcq #expandAllBtn,
#mcq #expandAllBtnM {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: white;
  box-shadow: none !important;
}

#mcq #expandAllBtn:hover,
#mcq #expandAllBtnM:hover {
  border-color: rgba(22, 157, 253, 0.5) !important;
  background: rgba(22, 157, 253, 0.12) !important;
}

/* Light exam-sheet treatment */
#mcq {
  background:
    radial-gradient(circle at 94% 4%, rgba(22, 157, 253, 0.12), transparent 22rem),
    linear-gradient(180deg, #f8fbfe, #edf4f8) !important;
  color: #0f172a;
}

#mcq::before {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(22, 157, 253, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 157, 253, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

#mcq h2 {
  color: #0f172a;
}

#mcq .text-secondary {
  color: #64748b;
}

#mcq article {
  border-color: rgba(148, 163, 184, 0.24) !important;
  border-left: 4px solid #169dfd !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0f172a;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07) !important;
}

#mcq article:hover {
  border-color: rgba(22, 157, 253, 0.42) !important;
  border-left-color: #169dfd !important;
  background: white !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.11) !important;
}

#mcq article p.text-slate-900,
#mcq article .text-slate-900 {
  color: #0f172a !important;
}

#mcq article .grid > div {
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: #f8fafc;
  color: #475569;
  transition:
    border-color 200ms ease,
    color 200ms ease,
    background-color 200ms ease;
}

#mcq article .grid > div:hover {
  border-color: rgba(22, 157, 253, 0.55) !important;
  background: rgba(22, 157, 253, 0.075);
  color: #075e9d;
}

#mcq .qaToggle {
  border-color: #169dfd;
  background: #169dfd !important;
  color: white !important;
  box-shadow: 0 8px 20px rgba(22, 157, 253, 0.18);
}

#mcq .qaToggle:hover {
  border-color: #087fd4;
  background: #087fd4 !important;
}

#mcq .qaAnswer {
  border-color: rgba(16, 185, 129, 0.25) !important;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa) !important;
  color: #334155;
  box-shadow: inset 3px 0 #10b981;
}

#mcq .qaAnswer > p:first-child {
  color: #047857 !important;
}

#mcq .qaAnswer .text-secondary,
#mcq .qaAnswer li {
  color: #475569 !important;
}

#mcq #expandAllBtn,
#mcq #expandAllBtnM {
  border-color: rgba(148, 163, 184, 0.3) !important;
  background: white !important;
  color: #0f172a;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07) !important;
}

#mcq #expandAllBtn:hover,
#mcq #expandAllBtnM:hover {
  border-color: rgba(22, 157, 253, 0.5) !important;
  background: rgba(22, 157, 253, 0.07) !important;
  color: #075e9d;
}

@media (max-width: 639px) {
  body > header + section {
    padding-top: 5rem !important;
  }

  body > header + section > div.relative {
    padding-top: 1rem !important;
    padding-bottom: 1.25rem !important;
  }

  body > header + section h1 + p + div {
    flex-direction: row !important;
    flex-wrap: wrap;
  }

  body > header + section h1 + p + div a {
    width: auto;
    flex: 1 1 auto;
  }

  body > main > section {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }

  #mcq article {
    padding: 1rem !important;
  }

  #mcq article > div:first-child {
    flex-direction: column;
  }

  #mcq .qaToggle {
    width: 100%;
  }
}
