/* Yalama Healthcare College — placeholder site styles */

:root {
  --navy-900: #122a66;
  --navy-800: #16307a;
  --navy-700: #1b3d91;
  --navy-600: #2450b5;
  --navy-100: #e3eafd;
  --navy-50: #f2f6fe;
  --gold-500: #f2b90d;
  --gold-600: #d9a406;
  --green-600: #2eab4f;
  --green-700: #22843d;
  --green-100: #e2f5e8;
  --ink: #17203a;
  --ink-soft: #4a5578;
  --line: #d9e0f0;
  --bg: #ffffff;
  --radius: 10px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

/* Demo watermark — overlays everything (incl. screenshots), never blocks clicks */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='300'%3E%3Ctext x='210' y='150' text-anchor='middle' transform='rotate(-30 210 150)' font-family='Helvetica,Arial,sans-serif' font-size='24' font-weight='700' fill='%231b3d91' fill-opacity='0.09'%3Edemo by podiihq.com%3C/text%3E%3C/svg%3E") repeat;
}

img, svg { max-width: 100%; }

a { color: var(--navy-700); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--navy-900);
  color: #ccdaf7;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 16px;
}
.announce strong { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo { width: 48px; height: 48px; flex: none; }
.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--navy-700);
}
.brand-name small {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 0.66rem;
  color: var(--green-600);
  letter-spacing: 0.14em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink);
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 550;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 8px;
}
.site-nav a:hover { background: var(--navy-50); color: var(--navy-700); }
.site-nav a[aria-current="page"] { color: var(--navy-700); background: var(--navy-100); }
.site-nav .cta {
  background: var(--gold-500);
  color: #2a2104;
  font-weight: 700;
  margin-left: 8px;
}
.site-nav .cta:hover { background: var(--gold-600); color: #fff; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    gap: 2px;
  }
  .site-nav.open { display: flex; }
  .site-nav .cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 70%, var(--navy-600) 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.hero .wrap { display: flex; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 auto; }
.hero-logo {
  flex: 0 0 260px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
}
@media (max-width: 820px) { .hero-logo { display: none; } }
.hero .kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 640px;
}
.hero p.lead {
  font-size: 1.08rem;
  color: #d5e1fa;
  max-width: 560px;
  margin: 0 0 28px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 9px;
  font-size: 0.95rem;
  border: 2px solid transparent;
  font-family: inherit;
}
.btn-primary { background: var(--gold-500); color: #2a2104; }
.btn-primary:hover { background: var(--gold-600); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline { border-color: var(--navy-700); color: var(--navy-700); background: transparent; }
.btn-outline:hover { background: var(--navy-100); }
.btn-green { background: var(--green-600); color: #fff; }
.btn-green:hover { background: var(--green-700); }
.btn[disabled], .btn.disabled { opacity: 0.45; pointer-events: none; }

/* ---------- Sections ---------- */
section.block { padding: 56px 0; }
section.block.alt { background: var(--navy-50); }

.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 8px;
  color: var(--navy-900);
}
.section-head p { color: var(--ink-soft); margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--navy-900); }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-700);
  background: var(--navy-100);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
}
.badge.gold { background: #fdf3d5; color: #8a6a06; }
.badge.green { background: var(--green-100); color: var(--green-700); }

/* ---------- Programme cards ---------- */
.prog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.prog-meta span strong { color: var(--ink); font-weight: 650; }

/* ---------- Filter buttons ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.filters button:hover { border-color: var(--navy-600); color: var(--navy-700); }
.filters button.active {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; }
table.intake {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.92rem;
  min-width: 480px;
}
table.intake th, table.intake td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
table.intake th {
  background: var(--navy-900);
  color: #fff;
  font-weight: 650;
  font-size: 0.85rem;
}
table.intake tr:last-child td { border-bottom: none; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-700);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.step h3 { margin: 2px 0 4px; font-size: 1rem; color: var(--navy-900); }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Accreditation strip ---------- */
.accred { display: flex; flex-wrap: wrap; gap: 12px; }
.accred .pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.accred .pill strong { display: block; color: var(--navy-900); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.95rem;
}
.contact-list li strong { display: block; color: var(--navy-900); margin-bottom: 2px; }

form.enquiry { display: grid; gap: 14px; }
form.enquiry label, .field { font-weight: 600; font-size: 0.9rem; display: grid; gap: 6px; color: var(--ink); }
form.enquiry input, form.enquiry select, form.enquiry textarea,
.field input, .field select, .field textarea {
  font: inherit;
  font-weight: 400;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  width: 100%;
}
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus,
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--navy-600);
  border-color: var(--navy-600);
}
form.enquiry button { justify-self: start; cursor: pointer; border: none; }

.note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--navy-50);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}
.note.warn { background: #fdf6e3; border-color: #ecd9a0; color: #6b5410; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-900); color: #fff; padding: 48px 0; }
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-band h2 { margin: 0 0 6px; font-size: 1.4rem; }
.cta-band p { margin: 0; color: #c3d3f5; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0b1c45;
  color: #94a7d6;
  padding: 44px 0 28px;
  font-size: 0.88rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.92rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #94a7d6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 44px 0;
}
.page-head h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.page-head p { margin: 0; color: #d5e1fa; max-width: 620px; }

/* ---------- Misc ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 28px; position: relative; color: var(--ink-soft); font-size: 0.95rem; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-600);
  font-weight: 800;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: #fff;
  color: var(--navy-900);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ================= Application wizard ================= */
.wizard { max-width: 760px; margin: 0 auto; }
.wizard-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  counter-reset: wstep;
}
.wizard-progress span {
  counter-increment: wstep;
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--ink-soft);
  padding-top: 34px;
  position: relative;
}
.wizard-progress span::before {
  content: counter(wstep);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--navy-700);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.wizard-progress span.done::before { background: var(--green-600); color: #fff; content: "✓"; }
.wizard-progress span.current::before { background: var(--navy-700); color: #fff; }
.wizard-progress span.current { color: var(--navy-900); }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.panel h2 { margin: 0 0 6px; font-size: 1.25rem; color: var(--navy-900); }
.panel .sub { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 22px; }
.panel .fields { display: grid; gap: 16px; }
.panel .fields.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .panel .fields.cols-2 { grid-template-columns: 1fr; } }
.panel-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}
.panel-actions .btn { cursor: pointer; }

.prog-choice { display: grid; gap: 12px; }
.prog-choice label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
}
.prog-choice label:has(input:checked) { border-color: var(--navy-700); background: var(--navy-50); }
.prog-choice input { margin-top: 4px; accent-color: var(--navy-700); }
.prog-choice .t { font-weight: 650; color: var(--navy-900); font-size: 0.97rem; }
.prog-choice .d { font-size: 0.82rem; color: var(--ink-soft); }

.upload-box {
  display: block;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  background: var(--navy-50);
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.upload-box:hover { border-color: var(--navy-600); }
.upload-box strong { color: var(--navy-700); }
.upload-box img.preview {
  display: block;
  max-height: 160px;
  margin: 12px auto 0;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.ocr-status { font-size: 0.88rem; margin-top: 10px; }
.progressbar {
  height: 8px;
  background: var(--navy-100);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.progressbar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--navy-600);
  transition: width 0.2s;
}

.verify-card {
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--navy-50);
  font-size: 0.9rem;
}
.verify-card.pending { background: #fdf6e3; }
.verify-card.fail { background: #fdeeec; }
.verify-card h4 { margin: 0 0 6px; font-size: 0.95rem; color: var(--navy-900); }
.verify-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.verify-card dt { color: var(--ink-soft); font-size: 0.82rem; }
.verify-card dd { margin: 0; font-weight: 600; }

.status-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
}
.status-chip.submitted { background: var(--navy-100); color: var(--navy-700); }
.status-chip.review { background: #fdf3d5; color: #8a6a06; }
.status-chip.shortlisted { background: #e8e3fb; color: #5b3fb5; }
.status-chip.offer { background: var(--green-100); color: var(--green-700); }
.status-chip.rejected { background: #fde3e0; color: #b03024; }
.status-chip.verified { background: var(--green-100); color: var(--green-700); }

.doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  margin: 4px 6px 0 0;
}

/* M-Pesa panel */
.mpesa-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #f4fbf6;
  border-color: #bfe5cb;
}
.mpesa-box h4 { margin: 0 0 4px; color: var(--green-700); }
.mpesa-wait { text-align: center; padding: 18px 0; }
.spinner {
  width: 34px;
  height: 34px;
  border: 4px solid var(--green-100);
  border-top-color: var(--green-600);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.receipt {
  border: 1px dashed var(--green-600);
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.9rem;
}
.receipt strong { color: var(--green-700); }

/* Status timeline (tracking) */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 22px 34px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--green-600); }
.timeline li.current { color: var(--navy-900); font-weight: 650; }
.timeline li.current::before { background: var(--navy-700); outline: 4px solid var(--navy-100); }
.timeline .ts { display: block; font-size: 0.75rem; color: var(--ink-soft); font-weight: 400; }

/* ================= Admin ================= */
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 820px) { .stat-tiles { grid-template-columns: repeat(2, 1fr); } }
.stat-tiles .tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat-tiles .n { font-size: 1.7rem; font-weight: 750; color: var(--navy-900); line-height: 1.1; }
.stat-tiles .l { font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; }

table.admin {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  min-width: 760px;
}
table.admin th, table.admin td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.admin th { background: var(--navy-900); color: #fff; font-size: 0.8rem; }
table.admin tbody tr:hover { background: var(--navy-50); }
table.admin .btn { padding: 6px 14px; font-size: 0.8rem; }

.detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
@media (max-width: 820px) { .detail-grid { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 0.92rem; margin: 0; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 600; }
