/* ==========================================================================
   CEVT DESIGN SYSTEM
   A registry-and-seal visual language: deep institutional navy, a signal
   amber for action, mono numerals for anything that reads like an official
   code (reference numbers, stats, badges), and a recurring "corner-tick"
   card motif borrowed from the certificate itself — because this is an
   accreditation body, and everything it touches should feel registered.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0B1F3B;
  --ink-2: #14315C;
  --ink-soft: #1D3E6E;
  --amber: #D9600A;
  --amber-dark: #A8480A;
  --amber-light: #FDEBDC;
  --paper: #F7F5F0;
  --surface: #FFFFFF;
  --ink-muted: #57667C;
  --ink-faint: #8B96A8;
  --line: #E4E1D8;
  --line-2: #E6EAF0;
  --verified: #1E7A54;
  --verified-bg: #E6F4EE;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 3px rgba(11,31,59,.07);
  --shadow-md: 0 10px 28px rgba(11,31,59,.10);
  --shadow-lg: 0 24px 60px rgba(11,31,59,.16);

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 24px; scroll-margin-top: 88px; }
.section--tight { padding: 72px 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dark);
}

.eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--amber);
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  color: var(--ink);
  margin: 14px 0 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 24px;
  border-radius: 7px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s ease;
  white-space: nowrap;
}

.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--ink); border-color: rgba(11,31,59,.22); }
.btn-outline:hover { border-color: var(--ink); background: rgba(11,31,59,.03); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 15px; }

/* ---------- Icons (inline SVG, stroke-based) ---------- */
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Seal mark (logo signature) ---------- */
.seal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seal svg { display: block; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink); letter-spacing: -0.01em; line-height: 1; }
.brand-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); display: block; margin-top: 3px; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
header {
  background: rgba(247,245,240,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 14px;
  border-radius: 6px;
  transition: all .15s ease;
}

.nav-links a:hover { color: var(--ink); background: rgba(11,31,59,.05); }
.nav-links a.active { color: var(--ink); }

.nav-links .btn-portal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid rgba(11,31,59,.2);
  color: var(--ink);
  margin-left: 6px;
  padding: 8px 14px;
}
.nav-links .btn-portal:hover { border-color: var(--ink); background: rgba(11,31,59,.04); }

.nav-links .btn-apply {
  background: var(--amber);
  color: #fff;
  margin-left: 6px;
  padding: 9px 18px;
}
.nav-links .btn-apply:hover { background: var(--amber-dark); }

.nav-toggle { display: none; }

/* ==========================================================================
   HOME · HERO
   ========================================================================== */
.hero {
  background: linear-gradient(155deg, var(--ink) 0%, var(--ink-2) 62%, var(--ink-soft) 100%);
  color: #fff;
  padding: 88px 24px 0;
  overflow: hidden;
  position: relative;
}

.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 72px;
}

.hero-copy .eyebrow { color: #FFB27A; }
.hero-copy .eyebrow::before { background: #FFB27A; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 18px 0 20px;
}

.hero p.lead {
  font-size: 17px;
  color: #C6D2E4;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Registry card — the recurring signature motif */
.registry-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
}

.registry-card::before,
.registry-card::after,
.registry-card .tick-tl,
.registry-card .tick-br {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--amber);
  border-style: solid;
  border-width: 0;
}
.registry-card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 6px; }
.registry-card::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }

.registry-card .rc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px dashed rgba(255,255,255,.22);
}

.registry-card .rc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #A9B7CC;
}

.registry-card .rc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #7FE0B4;
}

.registry-card .rc-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #7FE0B4;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,100% { opacity: .5; box-shadow: 0 0 0 0 rgba(127,224,180,.5); }
  50% { opacity: 1; box-shadow: 0 0 0 5px rgba(127,224,180,0); }
}

.rc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }

.rc-stat h3 {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
}

.rc-stat p {
  font-size: 12px;
  color: #A9B7CC;
  margin-top: 4px;
}

.rc-stat.full { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.22); }
.rc-stat.full h3 { font-size: 22px; }

/* ==========================================================================
   FEATURE / ABOUT CARDS
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-col {
  background: var(--surface);
  padding: 32px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  transition: border-color .2s ease, transform .2s ease;
}

.feature-col:hover { border-color: rgba(217,96,10,.35); transform: translateY(-3px); }

.feature-col .icon-wrap {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--amber-light);
  border-radius: 9px;
  color: var(--amber-dark);
  margin-bottom: 18px;
}

.feature-col h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.feature-col p { font-size: 14px; color: var(--ink-muted); }

/* ==========================================================================
   ECOSYSTEM / PROCESS
   ========================================================================== */
.ecosystem-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.process-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 64px; position: relative; }

.process-step { position: relative; padding-top: 18px; }

.process-step::before {
  content: attr(data-step);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber-dark);
  background: var(--amber-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.process-step { display: flex; flex-direction: column; }

.process-step .step-line {
  position: absolute;
  top: 33px; left: 30px; right: -20px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}

.process-track .process-step:last-child .step-line { display: none; }

.process-step h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--ink-muted); }

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

.adv-card {
  background: var(--paper);
  padding: 26px;
  border-radius: var(--radius);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid var(--line);
}

.adv-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.adv-content h3 { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.adv-content p { font-size: 13.5px; color: var(--ink-muted); line-height: 1.55; }

/* ==========================================================================
   METRICS BAND
   ========================================================================== */
.metrics-band {
  background: var(--ink);
  color: #fff;
  padding: 0;
}

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

.metric-card {
  text-align: center;
  padding: 48px 20px;
  border-left: 1px solid rgba(255,255,255,.1);
}
.metric-card:first-child { border-left: none; }

.metric-card h3 { font-family: var(--font-mono); font-size: 40px; font-weight: 500; letter-spacing: -0.02em; }
.metric-card p { font-size: 12.5px; color: #A9B7CC; text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee-section { background: var(--surface); padding: 56px 0; overflow: hidden; border-bottom: 1px solid var(--line); }

.marquee-heading { text-align: center; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); margin-bottom: 30px; }

.marquee-container { overflow: hidden; }
.marquee-track { display: inline-flex; animation: scrollLogos 34s linear infinite; }
.marquee-container:hover .marquee-track { animation-play-state: paused; }

.logo-block {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 232px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 16px;
  margin: 0 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color .2s ease;
}

.logo-block:hover { border-color: var(--amber); }

.logo-block .avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}

.logo-block .title { font-size: 12.5px; font-weight: 700; color: var(--ink); display: block; }
.logo-block .loc { font-size: 11px; color: var(--ink-muted); display: block; }

@keyframes scrollLogos { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-50%,0,0); } }

/* ==========================================================================
   VERIFY BAR
   ========================================================================== */
.verification-bar { background: var(--amber-light); border-top: 1px solid #F3D3B4; border-bottom: 1px solid #F3D3B4; padding: 34px 24px; scroll-margin-top: 90px; }

.verif-container { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.verif-text { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--ink); }
.verif-text .icon { color: var(--amber-dark); }

.verif-form { display: flex; width: 100%; max-width: 440px; }

.verif-form input {
  padding: 13px 16px; flex: 1;
  border: 1px solid #E7C298; border-right: none;
  border-radius: 7px 0 0 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  background: #fff;
}

.verif-form button {
  padding: 13px 22px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 0 7px 7px 0;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .2s ease;
}
.verif-form button:hover { background: var(--ink-2); }

/* ==========================================================================
   PORTALS
   ========================================================================== */
.portals-section { background: var(--paper); padding: 96px 24px; border-bottom: 1px solid var(--line); scroll-margin-top: 88px; }

.portals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-bottom: 30px; }

.portal-card {
  background: var(--surface);
  padding: 38px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.portal-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-muted);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.portal-card.student-theme .tag { color: var(--amber-dark); background: var(--amber-light); border-color: #F3D3B4; }

.portal-card h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.portal-card > p { font-size: 13.5px; color: var(--ink-muted); margin-bottom: 26px; }

.form-group { margin-bottom: 16px; text-align: left; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  background: var(--paper);
  transition: border-color .2s ease, background .2s ease;
  color: var(--ink);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--amber);
  background: #fff;
}

.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-size: 12.5px; }
.remember-me { color: var(--ink-muted); display: flex; align-items: center; gap: 6px; }
.forgot-pass a { color: var(--amber-dark); text-decoration: none; font-weight: 600; }

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.student-theme .btn-submit { background: var(--amber); }
.btn-submit:hover { background: var(--ink-2); }
.student-theme .btn-submit:hover { background: var(--amber-dark); }

.gateway-footer-strip {
  border-top: 1px dashed var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.system-status-msg { font-size: 13px; color: var(--ink-muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; background: var(--verified); border-radius: 50%; display: inline-block; }

.link-view-sample-cert {
  color: var(--ink);
  background: none;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   SUB HERO (courses / apply)
   ========================================================================== */
.sub-hero {
  background: linear-gradient(155deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}

.sub-hero .eyebrow { justify-content: center; color: #FFB27A; }
.sub-hero .eyebrow::before { background: #FFB27A; }
.sub-hero h1 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; margin: 14px 0 10px; }
.sub-hero p { font-size: 15.5px; color: #C6D2E4; max-width: 640px; margin: 0 auto; }

/* ==========================================================================
   COURSES PAGE
   ========================================================================== */
.directory-container {
  max-width: 1180px;
  margin: 56px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

.category-sidebar {
  position: sticky;
  top: 96px;
  height: fit-content;
  background: var(--surface);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
}

.category-sidebar h3 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-muted);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.category-sidebar ul { list-style: none; }
.category-sidebar li { margin-bottom: 3px; }

.category-sidebar a {
  text-decoration: none;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all .15s ease;
}

.category-sidebar a:hover { background: var(--amber-light); color: var(--amber-dark); }

.category-section { margin-bottom: 52px; scroll-margin-top: 100px; }

.category-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-title .icon-wrap {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--amber-light);
  color: var(--amber-dark);
  border-radius: 8px;
  flex-shrink: 0;
}

.courses-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.course-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.course-card:hover { border-color: rgba(217,96,10,.35); box-shadow: var(--shadow-sm); }

.course-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 15px; }
.course-name { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; }

.course-badge {
  font-family: var(--font-mono);
  background: var(--paper);
  color: var(--ink-muted);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.course-desc { font-size: 13.5px; color: var(--ink-muted); line-height: 1.6; }

/* ==========================================================================
   APPLY PAGE
   ========================================================================== */
.apply-wrap { max-width: 880px; margin: -56px auto 90px; padding: 0 24px; position: relative; z-index: 2; }

.form-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
}

.progress-strip { display: flex; background: var(--paper); border-bottom: 1px solid var(--line); }
.progress-strip .p-step {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
}
.progress-strip .p-step.on { color: var(--amber-dark); border-bottom-color: var(--amber); font-weight: 600; }

.main-form { padding: 44px; }

.form-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
  margin: 8px 0 22px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-title .num {
  font-family: var(--font-mono);
  font-size: 11px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-row-single { margin-bottom: 20px; }

.apply-wrap label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.apply-wrap label span { color: var(--amber-dark); }

.apply-wrap input[type="text"],
.apply-wrap input[type="email"],
.apply-wrap input[type="tel"],
.apply-wrap input[type="number"],
.apply-wrap select,
.apply-wrap textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: var(--paper);
  transition: all .2s ease;
  color: var(--ink);
}

.apply-wrap input:focus, .apply-wrap select:focus, .apply-wrap textarea:focus {
  border-color: var(--amber);
  background: #fff;
}

.apply-wrap textarea { resize: vertical; height: 90px; }

.upload-zone {
  border: 1.5px dashed var(--line-2);
  background: var(--paper);
  padding: 22px;
  text-align: center;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  transition: all .2s ease;
}

.upload-zone:hover { border-color: var(--amber); background: var(--amber-light); }
.upload-zone .icon { color: var(--ink-muted); margin: 0 auto 8px; }
.upload-zone p { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.upload-zone span { font-size: 12px; color: var(--ink-muted); }

.hidden-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.file-list-preview { margin-top: 10px; font-size: 12.5px; color: var(--amber-dark); font-weight: 700; }

.form-footer {
  background: var(--paper);
  padding: 24px 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { background: var(--ink); color: #fff; padding-top: 72px; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }

.footer-col h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #7E8CA3; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #C6D2E4; text-decoration: none; font-size: 13.5px; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }

.footer-about p { color: #C6D2E4; font-size: 13.5px; line-height: 1.7; margin: 16px 0 18px; max-width: 320px; }
.footer-about .site-url { color: var(--amber); font-weight: 700; font-size: 13.5px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  text-align: center;
  font-size: 12.5px;
  color: #7E8CA3;
}

/* ==========================================================================
   CERTIFICATE MODAL
   ========================================================================== */
.cert-modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(11,31,59,.72);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 30px;
  backdrop-filter: blur(3px);
}

.modal-view-wrapper { background: #fff; border-radius: 14px; max-width: 880px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }

.modal-action-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  background: var(--ink);
  color: #fff;
  position: sticky; top: 0; z-index: 5;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.btn-dismiss-modal { background: rgba(255,255,255,.1); border: none; color: #fff; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 12px; font-family: var(--font-body); font-weight: 600; }
.btn-dismiss-modal:hover { background: rgba(255,255,255,.2); }

.certificate-canvas { padding: 30px; }

.outer-border { border: 2px solid var(--ink); padding: 6px; border-radius: 4px; }
.inner-border { border: 1px solid var(--amber); padding: 34px; position: relative; }

.corner-accent { position: absolute; width: 22px; height: 22px; border-color: var(--amber); border-style: solid; border-width: 0; }
.corner-accent.top-left { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.corner-accent.top-right { top: 8px; right: 8px; border-top-width: 2px; border-right-width: 2px; }
.corner-accent.bottom-left { bottom: 8px; left: 8px; border-bottom-width: 2px; border-left-width: 2px; }
.corner-accent.bottom-right { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }

.cert-header { text-align: center; margin-bottom: 22px; }
.cert-header .seal { margin: 0 auto 14px; }
.cert-main-authority { font-family: var(--font-display); font-size: 22px; color: var(--ink); font-weight: 700; }
.cert-sub-authority { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

.cert-divider { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.cert-divider .line { flex: 1; height: 1px; background: var(--line); }
.cert-divider .star { font-family: var(--font-mono); font-size: 11px; color: var(--amber-dark); letter-spacing: .08em; }

.cert-body { text-align: center; padding: 10px 20px; }
.statement-title-gold { font-family: var(--font-display); font-size: 24px; color: var(--amber-dark); font-weight: 700; margin-bottom: 14px; }
.statement-text { font-size: 13.5px; color: var(--ink-muted); line-height: 1.7; max-width: 560px; margin: 0 auto; }

.name-container, .course-container { margin: 22px auto; max-width: 460px; }
.name-label-placeholder, .course-label-placeholder { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 6px; }
.name-placeholder-line, .course-placeholder-line { border-bottom: 1px dashed var(--line-2); height: 28px; }

.affiliation-highlight { color: var(--ink); font-weight: 700; }

.cert-footer-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-top: 34px; padding-top: 22px; border-top: 1px dashed var(--line-2); }

.footer-meta-block { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); line-height: 1.9; }
.footer-meta-block span { color: var(--ink); font-weight: 500; }

.seal-wrapper { display: flex; justify-content: center; }
.authority-seal {
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed rgba(255,255,255,.35);
}
.seal-inner-ring { text-align: center; color: #fff; }
.seal-text-top, .seal-text-bottom { font-family: var(--font-mono); font-size: 6px; text-transform: uppercase; letter-spacing: .05em; color: #A9B7CC; }
.seal-center-logo { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin: 2px 0; }

.signature-block { text-align: right; }
.sig-line { border-bottom: 1px solid var(--ink); width: 130px; margin-left: auto; margin-bottom: 8px; }
.sig-title { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.sig-subtitle { font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); margin-top: 2px; }

.gov-logos-panel { display: flex; justify-content: center; gap: 30px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.gov-logo-box { text-align: center; }
.gov-logo-img { height: 34px; width: auto; margin: 0 auto 6px; opacity: .85; }
.gov-vector-label { font-family: var(--font-mono); font-size: 9px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .04em; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 48px; }
  .hero p.lead { max-width: none; }
  .features-grid, .advantages-grid, .portals-grid, .metrics-grid, .form-row { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .directory-container { grid-template-columns: 1fr; }
  .category-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
  .metric-card:first-child { border-top: none; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1.5px solid var(--line);
    border-radius: 7px;
    background: none;
    cursor: pointer;
  }
  header.nav-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    gap: 4px;
  }
  header.nav-open .nav-links a { padding: 12px 10px; }
  header.nav-open .nav-links .btn-portal,
  header.nav-open .nav-links .btn-apply { margin-left: 0; margin-top: 8px; text-align: center; justify-content: center; }
  .section { padding: 64px 20px; }
  .cert-footer-row { grid-template-columns: 1fr; text-align: center; }
  .signature-block { text-align: center; }
  .sig-line { margin: 0 auto 8px; }
  .form-footer { flex-direction: column-reverse; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .verif-container { flex-direction: column; align-items: flex-start; }
}
