*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

:root {
  --bg: #f6f8fc;
  --bg-soft: #eef3f9;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --text: #0f172a;
  --text-soft: #475569;
  --border: #d9e3ef;
  --border-strong: #c7d5e4;
  --blue: #0055a4;
  --red: #ef4135;
  --green: #16a34a;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.05);
  --radius: 18px;
}

:root[data-theme="dark"] {
  --bg: #08111f;
  --bg-soft: #111c30;
  --panel: #16233b;
  --panel-soft: #1b2944;
  --text: rgba(255, 255, 255, 0.95);
  --text-soft: rgba(255, 255, 255, 0.74);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.22);
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(0, 85, 164, 0.10), transparent 60%),
    radial-gradient(900px 700px at 85% 25%, rgba(239, 65, 53, 0.07), transparent 55%),
    var(--bg);
  transition: background 0.25s ease, color 0.25s ease;
}

a {
  color: var(--blue);
  text-decoration: none;
}

button {
  font: inherit;
}

.hidden {
  display: none !important;
}

.site-shell {
  width: min(1280px, 94vw);
  margin: 20px auto 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand .dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) 0 33%, #ffffff 33% 66%, var(--red) 66% 100%);
  box-shadow: 0 0 0 4px rgba(0, 85, 164, 0.08);
  flex: 0 0 auto;
}

.brand .title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.brand .subtitle {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 2px;
}

.navbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.navlink,
.theme-toggle {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.navlink.active {
  border-color: rgba(0, 85, 164, 0.28);
  background: linear-gradient(180deg, rgba(0, 85, 164, 0.10), rgba(0, 85, 164, 0.04));
  color: var(--blue);
}

.theme-toggle {
  cursor: pointer;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.main-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.inner {
  padding: 22px;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--text);
}

h3 {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-head h1,
.section-head h2 {
  margin-bottom: 8px;
}

.section-head p,
.hero-text,
.track-card p,
.step-card p,
.partner-box p,
.testimonial-card p,
.pagehead p,
.intro-list,
.exam-intro-card p,
.info-label,
.stat .l,
.qindex,
.exam-meta-text,
.review-line.neutral {
  color: var(--text-soft);
}

.section-head.center {
  text-align: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
}

.eyebrow,
.track-badge,
.intro-badge,
.chip,
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 85, 164, 0.20);
  background: rgba(0, 85, 164, 0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.hero-title {
  font-size: 38px;
  line-height: 1.1;
  margin: 14px 0;
}

.hero-text {
  font-size: 17px;
  max-width: 760px;
}

.hero-actions,
.btnrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 20px;
}

.hero-card,
.exam-intro-card,
.question-card,
.exam-result,
.featured-article {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel-soft), var(--panel));
}

.hero-card-label {
  color: var(--text-soft);
  font-size: 13px;
  margin-bottom: 8px;
}

.hero-card-big {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--text);
}

.hero-card-small {
  color: var(--text-soft);
}

.tracks-grid,
.steps-grid,
.testimonials-grid,
.blog-grid,
.result-stats {
  display: grid;
  gap: 16px;
}

.tracks-grid {
  grid-template-columns: repeat(3, 1fr);
}

.steps-grid {
  grid-template-columns: repeat(3, 1fr);
}

.testimonials-grid {
  grid-template-columns: repeat(3, 1fr);
}

.blog-grid {
  grid-template-columns: repeat(2, 1fr);
}

.result-stats {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}

.track-card,
.step-card,
.testimonial-card,
.partner-box,
.blog-card,
.info-box,
.stat,
.review-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
}

.track-card h3,
.step-card h3,
.testimonial-card h4,
.blog-card h2 {
  margin: 14px 0 8px;
  color: var(--text);
}

.track-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--blue);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: rgba(0, 85, 164, 0.10);
  border: 1px solid rgba(0, 85, 164, 0.20);
  color: var(--blue);
}

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.btn.primary {
  border-color: rgba(0, 85, 164, 0.30);
  background: linear-gradient(180deg, rgba(0, 85, 164, 0.12), rgba(0, 85, 164, 0.05));
  color: var(--blue);
}

.btn.ghost {
  background: var(--panel);
}

.btn.danger {
  border-color: rgba(239, 65, 53, 0.25);
  background: linear-gradient(180deg, rgba(239, 65, 53, 0.10), rgba(239, 65, 53, 0.04));
  color: #c62828;
}

.stats-band {
  border-radius: 18px;
  padding: 34px 20px;
  color: #0f172a;
  box-shadow: var(--shadow);
  background: linear-gradient(
    90deg,
    rgba(0, 85, 164, 0.95) 0%,
    rgba(0, 85, 164, 0.92) 28%,
    rgba(255, 255, 255, 0.98) 50%,
    rgba(239, 65, 53, 0.92) 72%,
    rgba(239, 65, 53, 0.95) 100%
  );
}

.stats-band-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stats-band-number {
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
  color: #0f172a;
}

.stats-band-label {
  font-size: 15px;
  color: #0f172a;
  font-weight: 700;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.partner-box {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.partner-box-empty {
  border: 2px dashed var(--border-strong);
}

.partner-icon {
  font-size: 42px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(0, 85, 164, 0.14);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 14px;
}

.blog-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.featured-article h2 {
  margin: 14px 0 12px;
}

.featured-article p {
  color: var(--text-soft);
  margin: 0 0 12px;
  font-size: 16px;
}

.blog-card.long p {
  font-size: 15.5px;
  line-height: 1.65;
}

.blog-article-content {
  max-width: 920px;
}

.blog-article-content h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.2;
}

.blog-article-content p,
.blog-article-content li {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.8;
}

.blog-article-content ul,
.blog-article-content ol {
  padding-left: 24px;
  margin: 0 0 14px;
}

.sidebar .seg-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  background: var(--bg-soft);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.seg {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 10px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
}

.seg[aria-selected="true"] {
  border-color: rgba(0, 85, 164, 0.30);
  background: linear-gradient(180deg, rgba(0, 85, 164, 0.10), rgba(0, 85, 164, 0.04));
  color: var(--blue);
}

.info-label {
  font-size: 12px;
  margin-bottom: 4px;
}

.info-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.small-value {
  font-size: 16px;
  line-height: 1.35;
}

.btnrow.vertical {
  flex-direction: column;
}

.progress-block {
  margin-top: 24px;
}

.stats {
  display: grid;
  gap: 10px;
}

.stat.big {
  padding: 18px;
}

.stat .n {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.pagehead {
  margin-bottom: 20px;
}

.pagehead h1 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.2;
}

.exam-intro-card h2,
.result-top h2 {
  margin: 0 0 10px;
}

.intro-list {
  margin: 0;
  padding-left: 18px;
}

.intro-list li {
  margin-bottom: 6px;
}

.exam-topbar,
.question-head,
.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.exam-meta-left,
.exam-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.timer {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  color: var(--text);
}

.exam-progress-line {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 18px;
}

.exam-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(0, 85, 164, 0.92), rgba(255, 255, 255, 0.95), rgba(239, 65, 53, 0.92));
}

.qtext {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.25;
  color: var(--text);
}

.qcm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  cursor: pointer;
  position: relative;
}

.choice input {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.choice .opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
}

.choice > div {
  color: var(--text);
  text-align: left;
}

.choice.selected {
  border-color: rgba(0, 85, 164, 0.35);
  background: rgba(0, 85, 164, 0.08);
}

.choice.selected .opt {
  border-color: rgba(0, 85, 164, 0.35);
  background: rgba(0, 85, 164, 0.12);
  color: var(--blue);
}

.exam-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.result-message {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  font-weight: 700;
  color: var(--text);
}

.review-block {
  margin-top: 22px;
}

.review-question {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.review-line {
  font-size: 14px;
  margin-bottom: 4px;
}

.review-line.good {
  color: var(--green);
}

.review-line.bad {
  color: #dc2626;
}

.share-panel {
  overflow: hidden;
}

.share-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.share-text {
  max-width: 680px;
}

.share-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 85, 164, 0.20);
  background: rgba(0, 85, 164, 0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.share-text h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

.share-text p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.share-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.share-btn:hover {
  transform: translateY(-1px);
}

.share-whatsapp {
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.05));
  color: #15803d;
}

.share-facebook {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.05));
  color: #1d4ed8;
}

.share-copy {
  border-color: rgba(0, 85, 164, 0.26);
  background: linear-gradient(180deg, rgba(0, 85, 164, 0.12), rgba(0, 85, 164, 0.05));
  color: var(--blue);
}

.site-footer {
  margin-top: 24px;
  padding: 40px 28px 26px;
  background: #172132;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 48px;
  margin-bottom: 28px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 14px;
  font-size: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.footer-col a:hover {
  color: white;
}

.footer-info {
  margin-top: 6px;
  padding: 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  text-align: center;
  color: rgba(255, 255, 255, 0.76);
}

.footer-info p {
  margin: 8px auto;
  max-width: 980px;
  line-height: 1.75;
}

.footer-warning {
  text-align: center;
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.88);
}

.footer-warning p {
  margin: 0;
}

.footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-legal a:hover {
  color: white;
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 1100px) {
  .tracks-grid,
  .steps-grid,
  .partners-grid,
  .testimonials-grid,
  .stats-band-grid,
  .blog-grid,
  .result-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .main-layout,
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar,
  .question-head,
  .result-top,
  .exam-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .tracks-grid,
  .steps-grid,
  .partners-grid,
  .testimonials-grid,
  .stats-band-grid,
  .blog-grid,
  .result-stats {
    grid-template-columns: 1fr;
  }

  .hero-title,
  .qtext {
    font-size: 30px;
  }

  .stats-band-number {
    font-size: 38px;
  }

  .exam-nav {
    flex-direction: column;
  }

  .share-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-actions {
    width: 100%;
  }

  .share-btn {
    width: 100%;
    text-align: center;
  }

  .site-footer {
    padding: 30px 18px 22px;
  }
}