:root {
  --ink: #172033;
  --muted: #667085;
  --paper: #f8fafc;
  --panel: #ffffff;
  --line: #e6eaf0;
  --green: #0f7b68;
  --green-dark: #0a5f52;
  --gold: #f3ad2e;
  --coral: #ec6a4c;
  --blue: #2f5fd0;
  --mint: #dcfce7;
  --sky: #dbeafe;
  --shadow: 0 18px 48px rgba(23, 32, 51, 0.1);
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 5vw;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.site-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: #f0f7ff;
  color: var(--green-dark);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
}

.hero {
  align-items: center;
  background:
    linear-gradient(115deg, rgba(15, 123, 104, 0.08), rgba(47, 95, 208, 0.06) 48%, rgba(243, 173, 46, 0.08)),
    #ffffff;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(28px, 5vw, 68px);
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  min-height: calc(92vh - 82px);
  padding: clamp(48px, 7vw, 92px) 5vw;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  border: 2px solid rgba(47, 95, 208, 0.12);
  content: "";
  position: absolute;
  transform: rotate(-8deg);
}

.hero::before {
  height: 120px;
  left: -40px;
  top: 100px;
  width: 92px;
}

.hero::after {
  border-color: rgba(15, 123, 104, 0.16);
  bottom: 52px;
  height: 130px;
  right: -46px;
  width: 130px;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  line-height: 1.03;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.4rem);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.06rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero-lede,
.page-title p,
.rich-text {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 700px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-badges span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(19, 32, 27, 0.08);
  display: inline-flex;
  font-weight: 800;
  gap: 7px;
  padding: 8px 12px;
}

.hero-actions,
.admin-actions,
.toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  box-shadow: 0 10px 24px rgba(19, 32, 27, 0.14);
  transform: translateY(-2px);
}

.btn svg,
.icon-btn svg,
.site-nav svg {
  height: 18px;
  width: 18px;
}

.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.ghost {
  background: #fff;
  color: var(--ink);
}

.danger {
  background: #fff3f1;
  border-color: #f0c8c0;
  color: #9f3324;
}

.full {
  width: 100%;
}

.hero-panel {
  align-self: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: 18px;
  position: relative;
  z-index: 1;
}

.hero-card-top {
  align-items: center;
  background: linear-gradient(135deg, #172033, #243b6b);
  border-radius: 6px;
  color: #fff;
  display: flex;
  gap: 14px;
  padding: 16px;
}

.hero-card-top svg {
  color: var(--gold);
  height: 34px;
  width: 34px;
}

.hero-card-top p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1px;
}

.stat-row,
.progress-card {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.progress-card {
  background: #f8fafc;
}

.progress-card p {
  color: var(--muted);
  margin-bottom: 2px;
}

.mini-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.mini-grid span {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
  padding: 14px;
}

.marquee-band {
  background: #172033;
  color: #fff;
  overflow: hidden;
  padding: 12px 0;
}

.marquee-band div {
  animation: slideTopics 24s linear infinite;
  display: flex;
  gap: 14px;
  width: max-content;
}

.marquee-band span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  font-weight: 800;
  padding: 8px 16px;
}

@keyframes slideTopics {
  from { transform: translateX(5vw); }
  to { transform: translateX(-50%); }
}

.section,
.page-title {
  padding: clamp(44px, 7vw, 82px) 5vw;
}

.page-title {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.compact {
  padding-top: 20px;
}

.band {
  background: #f1f7f6;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
}

.steps,
.course-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.steps article,
.course-card,
.admin-course {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

.steps article,
.course-card,
.tool-card,
.campus-stack div {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.steps article:hover,
.course-card:hover,
.tool-card:hover,
.campus-stack div:hover {
  border-color: rgba(47, 95, 208, 0.25);
  box-shadow: 0 18px 36px rgba(19, 32, 27, 0.12);
  transform: translateY(-4px);
}

.steps svg {
  color: var(--green);
  height: 30px;
  margin-bottom: 18px;
  width: 30px;
}

.split {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: 0.8fr 1fr;
}

.text-link {
  align-items: center;
  color: var(--green-dark);
  display: inline-flex;
  font-weight: 800;
  gap: 6px;
  text-decoration: none;
}

.feature-lab {
  background: #fff;
}

.tool-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.tool-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 12px;
  min-height: 270px;
  padding: 20px;
}

.tool-card > svg {
  height: 34px;
  width: 34px;
}

.accent-green,
.accent-gold,
.accent-coral {
  background: #ffffff;
}

.meter {
  background: #e7ece7;
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.meter span {
  animation: meterPulse 2.6s ease-in-out infinite alternate;
  background: linear-gradient(90deg, var(--green), var(--blue));
  display: block;
  height: 100%;
  width: 72%;
}

@keyframes meterPulse {
  from { width: 38%; }
  to { width: 92%; }
}

.check-row {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 0.95rem;
  gap: 10px;
}

.check-row input {
  accent-color: var(--green);
  min-height: auto;
  width: auto;
}

.course-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.course-card h3 {
  font-size: 1.28rem;
}

.course-meta {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tag {
  background: #eef6ff;
  border-radius: 6px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
}

.price {
  color: var(--green-dark);
  font-weight: 800;
}

.review-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
}

.review-list li {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px;
}

.review-list p {
  margin-bottom: 0;
}

.course-card .actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.unlock-box {
  background: #eef6ff;
  border: 1px solid #cce2f7;
  border-radius: 6px;
  color: #184a73;
  display: none;
  font-weight: 700;
  padding: 12px;
}

.course-card.unlocked .unlock-box {
  display: block;
}

.search-box {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex: 1 1 280px;
  gap: 8px;
  max-width: 520px;
  padding: 0 12px;
}

.search-box input {
  border: 0;
  min-height: 46px;
  outline: 0;
  width: 100%;
}

dialog {
  border: 0;
  border-radius: 6px;
  box-shadow: var(--shadow);
  max-width: 430px;
  width: calc(100% - 30px);
}

dialog::backdrop {
  background: rgba(19, 32, 27, 0.48);
}

.dialog-body {
  display: grid;
  gap: 14px;
  padding: 10px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 6px;
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.icon-btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.close {
  float: right;
}

.fine-print {
  color: var(--muted);
  font-size: 0.85rem;
}

.campus-section {
  align-items: center;
  display: grid;
  gap: 30px;
  grid-template-columns: 0.9fr 1.1fr;
}

.campus-copy p:last-child {
  color: var(--muted);
  font-size: 1.06rem;
}

.campus-stack {
  display: grid;
  gap: 14px;
}

.campus-stack div {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 3px 14px;
  grid-template-columns: auto 1fr;
  padding: 16px;
}

.campus-stack svg {
  color: var(--green);
  grid-row: span 2;
  height: 30px;
  width: 30px;
}

.campus-stack span {
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  max-width: 850px;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  color: var(--muted);
  margin: 10px 0 0;
}

.whatsapp-float {
  align-items: center;
  background: #25d366;
  border-radius: 6px;
  bottom: 22px;
  box-shadow: 0 16px 34px rgba(19, 32, 27, 0.24);
  color: #082f1a;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  padding: 12px 16px;
  position: fixed;
  right: 22px;
  text-decoration: none;
  z-index: 40;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-form,
.settings-form {
  display: grid;
  gap: 18px;
}

.admin-course,
.settings-panel {
  display: grid;
  gap: 14px;
}

.settings-panel {
  background: #f4faf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.admin-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-editor {
  border-left: 3px solid var(--gold);
  display: grid;
  gap: 10px;
  padding-left: 12px;
}

.toast {
  background: var(--green-dark);
  border-radius: 8px;
  bottom: 24px;
  color: #fff;
  font-weight: 800;
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transform: translateY(10px);
  transition: 180ms ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 24px 5vw;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 880px) {
  .nav-toggle {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
  }

  .site-nav {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    padding: 10px;
    position: absolute;
    right: 5vw;
    top: 66px;
    width: min(250px, 90vw);
  }

  .site-nav.open {
    display: grid;
  }

  .hero,
  .split,
  .steps,
  .course-grid,
  .tool-grid,
  .campus-section,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section,
  .page-title,
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions .btn,
  .admin-actions .btn,
  .toolbar .btn {
    width: 100%;
  }

  .whatsapp-float span {
    display: none;
  }
}
