:root {
  --ks-bg: #f3efe7;
  --ks-surface: rgba(255, 255, 255, 0.82);
  --ks-ink: #132238;
  --ks-muted: #5d6b7e;
  --ks-line: rgba(19, 34, 56, 0.1);
  --ks-primary: #0d5c63;
  --ks-secondary: #f2a65a;
  --ks-accent: #6f8f72;
  --ks-danger: #b95d4b;
  --ks-shadow: 0 22px 45px rgba(15, 41, 62, 0.12);
  --ks-radius: 24px;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ks-ink);
  background:
    radial-gradient(circle at top left, rgba(242, 166, 90, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(13, 92, 99, 0.18), transparent 22%),
    linear-gradient(180deg, #f8f5ef 0%, #eef3f1 100%);
  font-family: Aptos, "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(19, 34, 56, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
  color: white;
}

.brand-mark {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-tagline {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.84) !important;
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
  color: white !important;
}

.page-section {
  padding: 2.5rem 0;
}

.hero-card,
.surface-card,
.metric-card,
.candidate-card,
.opportunity-card,
.program-card {
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius);
  background: var(--ks-surface);
  box-shadow: var(--ks-shadow);
}

.hero-card {
  padding: 2rem;
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(111, 143, 114, 0.16);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(13, 92, 99, 0.1);
  color: var(--ks-primary);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-title,
.section-title {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 0.98;
  margin: 1rem 0 1rem;
}

.hero-copy,
.section-copy,
.muted-copy,
.footer-copy {
  color: var(--ks-muted);
}

.metric-card {
  padding: 1.4rem;
  height: 100%;
}

.metric-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ks-muted);
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 0.45rem;
}

.stat-chip,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.stat-chip {
  background: rgba(242, 166, 90, 0.14);
  color: #8a4f10;
}

.pill {
  background: rgba(13, 92, 99, 0.1);
  color: var(--ks-primary);
}

.surface-card,
.candidate-card,
.opportunity-card,
.program-card {
  padding: 1.5rem;
}

.funnel-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(19, 34, 56, 0.08);
  overflow: hidden;
}

.funnel-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ks-primary), var(--ks-secondary));
}

.avatar-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ks-primary), var(--ks-accent));
  color: white;
  font-weight: 800;
}

.table-shell {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--ks-line);
}

.table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ks-muted);
  background: rgba(19, 34, 56, 0.03);
}

.table > :not(caption) > * > * {
  padding: 1rem;
  border-color: var(--ks-line);
}

.modal-dialog.modal-75w {
  max-width: 75vw;
}

.stage-registered { color: #7c6a16; }
.stage-assessed { color: #96542e; }
.stage-intraining { color: #0d5c63; }
.stage-certified { color: #376c3d; }
.stage-readyforplacement { color: #1d4ed8; }

.btn-ks-primary {
  background: var(--ks-primary);
  color: white;
  border: none;
}

.btn-ks-primary:hover {
  background: #09484e;
  color: white;
}

.btn-ks-outline {
  border: 1px solid var(--ks-line);
  background: white;
  color: var(--ks-ink);
}

.form-control,
.form-select {
  border-radius: 16px;
  padding: 0.85rem 1rem;
  border-color: rgba(19, 34, 56, 0.12);
}

.form-control:focus,
.form-select:focus,
.btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 92, 99, 0.14);
  border-color: rgba(13, 92, 99, 0.4);
}

.site-footer {
  border-top: 1px solid var(--ks-line);
  background: rgba(255, 255, 255, 0.66);
}

.footer-title {
  font-weight: 800;
}

@media (max-width: 767.98px) {
  .page-section {
    padding: 1.6rem 0;
  }

  .hero-card,
  .surface-card,
  .metric-card,
  .candidate-card,
  .opportunity-card,
  .program-card {
    border-radius: 20px;
  }

  .modal-dialog.modal-75w {
    max-width: 95vw;
    margin: 1rem auto;
  }
}
