* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f8fb;
  color: #172033;
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e7ebf2;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
}

.logo-mark {
  background: #1d4ed8;
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav {
  display: flex;
  gap: 24px;
  color: #4b5563;
  font-weight: 600;
}

.nav a:hover {
  color: #1d4ed8;
}

.hero {
  padding: 82px 0 70px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 35%),
    linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
  font-weight: 700;
  font-size: 14px;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -2px;
}

.hero-text {
  max-width: 720px;
  margin: 22px 0 28px;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.7;
}

.search-box {
  display: flex;
  max-width: 760px;
  background: #ffffff;
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 18px;
  font-size: 16px;
  color: #111827;
}

.search-box button {
  border: 0;
  background: #2563eb;
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.search-box button:hover {
  background: #1d4ed8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 800;
}

.btn-primary {
  background: #ffffff;
  color: #1d4ed8;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.stats-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 26px;
  backdrop-filter: blur(10px);
}

.stat {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.stat:last-child {
  border-bottom: 0;
}

.stat strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: #dbeafe;
  font-weight: 700;
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: #ffffff;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -1px;
}

.section-heading p {
  margin: 0;
  color: #64748b;
  font-size: 17px;
}

.vendor-grid,
.exam-grid,
.features-grid {
  display: grid;
  gap: 18px;
}

.vendor-grid {
  grid-template-columns: repeat(4, 1fr);
}

.exam-grid {
  grid-template-columns: repeat(3, 1fr);
}

.features-grid {
  grid-template-columns: repeat(3, 1fr);
}

.vendor-card,
.exam-card,
.feature-card,
.empty-state {
  background: #ffffff;
  border: 1px solid #e5eaf2;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.section-soft .exam-card,
.section-soft .empty-state {
  background: #f8fafc;
}

.vendor-card h3,
.exam-card h3,
.feature-card h3 {
  margin: 0 0 10px;
}

.vendor-card p,
.exam-card p,
.feature-card p {
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

.exam-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #64748b;
  font-size: 14px;
}

.exam-meta strong {
  color: #1d4ed8;
}

.exam-link {
  display: inline-block;
  margin-top: 18px;
  color: #1d4ed8;
  font-weight: 800;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 900;
}

.site-footer {
  padding: 28px 0;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.back-link {
  color: #475569;
  font-weight: 700;
}

.back-link:hover,
.breadcrumbs a:hover {
  color: #1d4ed8;
}

.quiz-main {
  min-height: calc(100vh - 190px);
  padding: 34px 0 72px;
}

.quiz-container {
  max-width: 1120px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  color: #64748b;
  font-size: 14px;
}

.quiz-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.quiz-heading h1 {
  margin: 7px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -1.4px;
}

.quiz-heading p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.quiz-vendor,
.sidebar-label {
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quiz-score {
  min-width: 170px;
  padding: 16px 20px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #ffffff;
  text-align: right;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.quiz-score strong,
.quiz-score span {
  display: block;
}

.quiz-score strong {
  color: #1d4ed8;
  font-size: 24px;
}

.quiz-score span {
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: start;
}

.question-card,
.sidebar-card {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.question-card {
  padding: 28px;
}

.question-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.question-number {
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 800;
}

.question-rating {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 13px;
}

.rating-btn {
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  filter: grayscale(1);
}

.rating-btn:hover,
.rating-btn.is-selected {
  border-color: #93c5fd;
  background: #eff6ff;
  filter: none;
}

.quiz-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}

.quiz-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transition: width 180ms ease;
}

.question-card h2 {
  margin: 28px 0 24px;
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.35;
  letter-spacing: -0.45px;
}

.answer-list {
  display: grid;
  gap: 12px;
}

.answer-option {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 15px 17px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #ffffff;
  color: #243047;
  font: inherit;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.answer-option:not(:disabled):hover {
  border-color: #60a5fa;
  background: #f5f9ff;
  transform: translateY(-1px);
}

.answer-option:disabled {
  color: #243047;
  cursor: default;
  opacity: 1;
}

.answer-marker {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #edf2f7;
  color: #475569;
  font-weight: 900;
}

.answer-option.is-correct {
  border-color: #4ade80;
  background: #f0fdf4;
}

.answer-option.is-correct .answer-marker {
  background: #22c55e;
  color: #ffffff;
}

.answer-option.is-incorrect {
  border-color: #f87171;
  background: #fef2f2;
}

.answer-option.is-incorrect .answer-marker {
  background: #ef4444;
  color: #ffffff;
  font-size: 24px;
}

.answer-option.is-muted {
  opacity: 0.58;
}

.explanation {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
}

.explanation[hidden] {
  display: none;
}

.explanation-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 900;
}

.explanation strong {
  color: #1e3a8a;
}

.explanation p {
  margin: 6px 0 0;
  color: #334155;
  line-height: 1.65;
  white-space: pre-line;
}

.question-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
}

.quiz-nav-btn {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  background: #ffffff;
  color: #334155;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.quiz-nav-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

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

.quiz-primary-btn:hover {
  background: #1d4ed8;
}

.quiz-sidebar {
  display: grid;
  gap: 18px;
}

.sidebar-card {
  padding: 21px;
}

.sidebar-card strong {
  display: block;
  margin-top: 9px;
  font-size: 27px;
}

.sidebar-card p {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.ad-slot,
.ad-break {
  display: grid;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #eef2f7;
  color: #94a3b8;
  text-align: center;
}

.ad-slot span,
.ad-break span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-slot-sidebar {
  min-height: 250px;
}

.ad-break {
  min-height: 130px;
  margin-top: 22px;
  padding: 24px;
}

.ad-break[hidden] {
  display: none;
}

.ad-break p {
  margin: 8px 0 0;
  font-size: 13px;
}

.quiz-empty {
  text-align: center;
}

.quiz-empty h2 {
  margin-top: 0;
}

.quiz-empty p {
  margin-bottom: 22px;
  color: #64748b;
}

body.captcha-open {
  overflow: hidden;
}

.captcha-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
}

.captcha-overlay[hidden] {
  display: none;
}

.captcha-dialog {
  width: min(100%, 480px);
  padding: 30px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
}

.captcha-dialog h2 {
  margin: 8px 0 10px;
  font-size: 27px;
}

.captcha-dialog > p {
  margin: 0 0 20px;
  color: #64748b;
  line-height: 1.55;
}

.captcha-dialog img {
  display: block;
  max-width: 100%;
  margin-bottom: 20px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
}

.captcha-dialog label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.captcha-controls {
  display: flex;
  gap: 10px;
}

.captcha-controls input {
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  color: #172033;
  font: 700 18px/1 monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.captcha-controls input:focus {
  border-color: #2563eb;
  outline: 3px solid #dbeafe;
}

.captcha-refresh {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font-weight: 700;
  cursor: pointer;
}

.captcha-error {
  margin: 13px 0 0;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 700;
}

.captcha-error[hidden] {
  display: none;
}

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

  .vendor-grid,
  .exam-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    display: none;
  }

  .quiz-layout {
    grid-template-columns: 1fr;
  }

  .quiz-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .ad-slot-sidebar {
    min-height: 150px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 54px 0;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box input {
    min-height: 52px;
  }

  .vendor-grid,
  .exam-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .quiz-main {
    padding-top: 22px;
  }

  .breadcrumbs {
    overflow: hidden;
    white-space: nowrap;
  }

  .quiz-heading {
    display: block;
  }

  .quiz-score {
    width: 100%;
    margin-top: 18px;
    text-align: left;
  }

  .question-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .question-topbar {
    align-items: flex-start;
  }

  .question-rating > span {
    display: none;
  }

  .answer-option {
    grid-template-columns: 38px 1fr;
    padding: 13px;
  }

  .answer-marker {
    width: 36px;
    height: 36px;
  }

  .question-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .quiz-nav-btn {
    padding: 0 10px;
  }

  .quiz-sidebar {
    grid-template-columns: 1fr;
  }

  .captcha-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .captcha-controls input {
    min-height: 48px;
  }
}
