/* ================================================================
   AriRDC — Master Stylesheet
   Typography: Source Serif 4 (display) + IBM Plex Sans (body)
   Palette:    cream / paper / ink / brand-red
   ================================================================ */

/* ---------- 1. Variables & Reset ---------- */
*, *::before, *::after { 
  box-sizing: border-box; 
}

:root {
  /* Colors */
  --paper:  #ffffff;
  --cream:  #F6F7F9;
  --cream-2:#ECEEF2;
  --ink:    #12141C;
  --ink-2:  #1B1E29;
  --ink-3:  #262A38;
  --red:      #C8102E;
  --red-2:    #A60D26;
  --red-soft: #FBE9EC;
  --wine:     #4A0A16;
  --on-red:   #ffffff;
  
  --text:  #12141C;
  --mute:  #596070;
  --faint: #8A90A0;
  
  --line:   #E4E6EC;
  --line-2: #D5D9E1;

  /* Typography */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-serif:   "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  
  /* Geometry & Shadows */
  --rad:    18px;
  --rad-sm: 12px;
  --maxw:   1200px;
  --bg-light: #F6F7F9;
  --sh:    0 2px 4px rgba(18,20,28,.04), 0 14px 34px rgba(18,20,28,.07);
  --sh-lg: 0 26px 64px rgba(18,20,28,.17);
  --ease: cubic-bezier(.22,.61,.36,1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper:  #0E1016;
  --cream:  #161922;
  --cream-2:#1C202B;
  --ink:    #F1F2F6;
  --ink-2:  #E4E6EC;
  --ink-3:  #D5D9E1;
  --red:      #FF5468;
  --red-2:    #FF8A99;
  --red-soft: #2A0A12;
  --wine:     #2A0A12;
  --on-red:   #12141C;
  --text:  #F1F2F6;
  --mute:  #9AA1B2;
  --faint: #6C7488;
  --line:   #2A2F3C;
  --line-2: #3A4054;
  --bg-light: #161922;
  --sh:    0 2px 4px rgba(0,0,0,.4),   0 14px 34px rgba(0,0,0,.35);
  --sh-lg: 0 26px 64px rgba(0,0,0,.5);
  color-scheme: dark;
}

:root[data-theme="dark"] .btn-ink {
  background: var(--ink-2);
  color: #12141C;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 16px/1.62 var(--font-body); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 600;
  line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--text);
}
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; max-width: 68ch; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---------- 2. Layout Utilities ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sec { padding: clamp(48px, 5.6vw, 88px) 0; }
.sec.tight { padding: clamp(32px, 3.6vw, 52px) 0; }
.sec.alt { background: var(--cream); }
.sec.dark { background: var(--ink); color: var(--cream); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: start; }
.grid { display: grid; gap: 18px; }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .two, .grid.g3, .grid.g4 { grid-template-columns: 1fr; }
  .grid.g2 { grid-template-columns: 1fr; }
}

/* ---------- 3. Typography & Helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 600; color: var(--red);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .8; }
.lead { font-size: clamp(1.03rem, 1.5vw, 1.2rem); color: var(--mute); max-width: 64ch; }
.mute { color: var(--mute); }
.small { font-size: .86rem; }
.mono { font-family: var(--font-mono); }

.head-split {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: clamp(20px, 4vw, 60px); flex-wrap: wrap;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.head-split h2 { margin: 0; }
.head-split .note { max-width: 58ch; margin: 0; color: var(--mute); }
.head-center { max-width: 760px; margin: 0 auto clamp(28px, 3.4vw, 44px); text-align: center; }
.head-center .eyebrow { justify-content: center; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 500; font-size: .95rem;
  padding: 12px 22px; border-radius: 2px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .18s, color .18s, border-color .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--on-red); box-shadow: 0 10px 22px rgba(200,16,46,.28); }
.btn-red:hover { background: var(--red-2); }
.btn-ink { background: var(--ink-2); color: #fff; }
.btn-ink:hover { background: var(--ink-3); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-w { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-w:hover { border-color: var(--red); color: var(--red); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- 5. Chips & Pills ---------- */
.chip, .tag {
  display: inline-block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--mute); margin: 0 6px 6px 0; background: var(--paper);
}
.pill {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 600; color: var(--red);
  background: var(--red-soft);
  border: 1px solid color-mix(in srgb, var(--red) 25%, transparent);
  border-radius: 99px; padding: .42em .95em; margin-bottom: 14px;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* ---------- 6. Topbar & Header ---------- */
.top { background: var(--ink); color: #c4c8d3; font-size: .8rem; position: relative; z-index: 60; }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 42px; flex-wrap: wrap; }
.top .tl { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.top a:hover { color: var(--red); }
.top .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); display: inline-block; margin-right: 7px; }
.top .search { margin-left: auto; position: relative; }
.top .search input {
  font-family: var(--font-body); font-size: .8rem;
  padding: .5em 1.05em !important; border-radius: 99px !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  background: rgba(255,255,255,.06) !important; color: #fff !important;
  width: 220px;
}
.top .search input::placeholder { color: #8A90A0; }
.top .search input:focus { outline: none; border-color: var(--red) !important; background: rgba(255,255,255,.14) !important; }

#qr {
  display: none; position: absolute; right: 0; top: 145%;
  width: min(340px, calc(100vw - 32px)); background: var(--paper); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--rad-sm);
  box-shadow: var(--sh-lg); z-index: 80; overflow: hidden;
}
#qr a { display: block; padding: 11px 16px; color: var(--text); font-size: .86rem; }
#qr a:hover { background: var(--cream); }
#qr small { color: var(--faint); font-size: .72rem; }
#qr.on { display: block; }

@media (max-width: 768px) {
  .top .wrap { min-height: 38px; gap: 10px; padding: 4px 16px; }
  .top .tl a:nth-child(n+3) { display: none; }
  .top .search input { width: 140px; }
}

.hd {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hd .wrap { display: flex; align-items: center; gap: 10px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
}
.brand .txt b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.05; }
.brand .txt span { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }

nav.nv { display: flex; align-items: center; margin-left: auto; gap: 2px; }
.nv .dd { position: relative; }
.nv .dt {
  display: block; padding: .5em .62em; font-size: .87rem; font-weight: 500;
  color: var(--mute); background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  font-family: var(--font-body); white-space: nowrap;
}
.nv .dd:hover .dt, .nv .dd.on .dt, .nv a.dt:hover, .nv a.dt.on { color: var(--text); border-color: var(--red); }
.nv .dm {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 300px; max-height: 78vh; overflow: auto;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--rad-sm); box-shadow: var(--sh-lg);
  padding: 10px; z-index: 70;
}
.nv .dd:hover .dm, .nv .dd:focus-within .dm { display: block; }
.nv .dm a { display: block; padding: 9px 14px; font-size: .86rem; border-radius: 7px; color: var(--text); }
.nv .dm a b { display: block; font-weight: 600; }
.nv .dm a span { display: block; font-size: .74rem; color: var(--mute); margin-top: 2px; }
.nv .dm a:hover { background: var(--cream); color: var(--red); }

.hd .act { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center; cursor: pointer;
  color: var(--mute); transition: .16s;
}
.icon-btn:hover { color: var(--red); border-color: var(--red); }
.burger { display: none; }
.btn-login, .btn-apply { padding: .55em 1.05em; font-size: .9rem; }
.btn-apply { padding: .6em 1.2em; }

@media (max-width: 1380px) { .brand .txt span { display: none; } }
@media (max-width: 1280px) { .btn-login { display: none !important; } }
@media (max-width: 1180px) {
  nav.nv {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 10px 20px 20px; max-height: 80vh; overflow: auto; margin: 0;
  }
  nav.nv.open { display: flex; }
  .nv .dd { width: 100%; }
  .nv .dt { width: 100%; border-bottom: 1px solid var(--line); padding: .85em 0; }
  .nv .dm { position: static; display: block; border: none; box-shadow: none; padding: 0 0 6px 12px; max-height: none; border-radius: 0; }
  .burger { display: grid; }
  .btn-apply { display: none !important; }
}

/* ---------- 7. Hero & Homepage Components ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 4vw, 64px); align-items: center; padding: clamp(56px, 6vw, 100px) 0 clamp(40px, 4vw, 60px); }
.hero h1 { color: var(--text); }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--red), var(--red-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: 26px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

.cons-wrap { background: transparent; border: none; border-radius: 0; padding: 0; }
.cons { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding: 4px; }
.cons b { aspect-ratio: 1; border-radius: 50%; background: var(--line); transition: .25s; cursor: pointer; position: relative; display: block; }
.cons b:hover { background: var(--line-2); }
.cons b.hot { background: var(--red); transform: scale(1.55); box-shadow: 0 0 0 6px rgba(200,16,46,.15); animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 12px rgba(200,16,46,0); } }
.cons-label { margin-top: 16px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; min-height: 1.6em; color: var(--text); }
@media (max-width: 640px) {
  .cons { grid-template-columns: repeat(8, 1fr); gap: 6px; }
  .cons b.hot { transform: scale(1.3); }
}

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 40px; }
.kpis div { padding: 26px 20px 4px 0; }
.kpis b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1; color: var(--text); }
.kpis b i { color: var(--red); font-style: normal; }
.kpis span { font-size: .82rem; color: var(--mute); }
@media (max-width: 760px) {
  .kpis { grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .kpis div:nth-child(odd) { border-right: 1px solid var(--line); }
  .kpis div:nth-child(1), .kpis div:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---------- 8. Cards & Lists ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad); padding: 26px; box-shadow: var(--sh); transition: .22s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--red); }
.card h3 { font-size: 1.1rem; margin: 0 0 .4em; }
.card p { color: var(--mute); font-size: .93rem; margin: 0; }

.pw { background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad); padding: 26px; box-shadow: var(--sh); transition: .3s; display: flex; flex-direction: column; gap: 8px; }
.pw:hover { transform: translateY(-5px); border-color: var(--red); box-shadow: var(--sh-lg); }
.pw b { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.pw h3 { margin: 0; font-size: 1.12rem; }
.pw p { margin: 0; color: var(--mute); font-size: .92rem; }
.pw a { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--red); }

.fr { background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad); padding: 24px; box-shadow: var(--sh); display: flex; flex-direction: column; }
.fr .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--red-soft); display: grid; place-items: center; color: var(--red); margin-bottom: 16px; }
.fr .ic svg { width: 20px; height: 20px; }
.fr .lbl { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: .5em; }
.fr h3 { font-size: 1.06rem; margin: 0 0 .4em; }
.fr p { color: var(--mute); font-size: .9rem; margin: 0 0 18px; }
.fr .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--red); font-weight: 600; display: flex; align-items: center; gap: .5em; }

.igrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1000px) { .igrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .igrid { grid-template-columns: 1fr; } }
.icard { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px 20px; text-align: center; box-shadow: var(--sh); }
.icard b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1; color: var(--red); margin-bottom: .35em; }
.icard h4 { font-family: var(--font-body); font-weight: 700; font-size: .95rem; margin: 0 0 .5em; }
.icard span { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* ---------- 9. Apply Landing Page ---------- */
.apply-hero { padding: clamp(60px, 8vw, 120px) 0; background: var(--cream); border-bottom: 1px solid var(--line); text-align: center; }
.apply-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 20px; }
.apply-hero p { max-width: 600px; margin: 0 auto; font-size: 1.15rem; color: var(--mute); }

.program-carousel-wrap { position: relative; }
.program-carousel { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: thin; }
.program-carousel::-webkit-scrollbar { height: 6px; }
.program-carousel::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; }
.program-card { flex: 0 0 320px; scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad); padding: 32px; box-shadow: var(--sh); display: flex; flex-direction: column; transition: .3s var(--ease); }
.program-card:hover { transform: translateY(-5px); border-color: var(--red); box-shadow: var(--sh-lg); }
.program-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.program-card p { color: var(--mute); font-size: .95rem; margin-bottom: 24px; flex-grow: 1; }
.program-card .btn { width: 100%; justify-content: center; }

.eligibility-list { display: grid; gap: 16px; margin-top: 24px; }
.el-item { display: flex; gap: 20px; align-items: flex-start; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad-sm); box-shadow: var(--sh); transition: .2s; }
.el-item:hover { border-color: var(--red); }
.el-num { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; color: var(--red); background: var(--red-soft); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; flex-shrink: 0; }
.el-content h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.el-content p { margin: 0; font-size: .95rem; color: var(--mute); line-height: 1.5; }

/* ---------- 10. Auth Split Layout (Register/Login) ---------- */
.auth-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: calc(100vh - 118px);
  background: var(--paper);
  align-items: stretch;
}
@media (max-width: 1024px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-visual-side { padding: 48px 24px; min-height: auto; }
}

.auth-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 24px;
  background: var(--paper);
}
.auth-form-card {
  width: 100%;
  max-width: 480px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--sh-lg);
}
.auth-form-card h2 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); margin-bottom: 8px; }
.auth-form-card .subtitle { color: var(--mute); margin-bottom: 28px; font-size: 1rem; }

.auth-visual-side {
  background: linear-gradient(145deg, #180509 0%, #350811 40%, #12141C 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 90px);
  color: #fff;
}
.auth-visual-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(200,16,46,.45), transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(255,84,104,.3), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0, transparent 36px, rgba(255,255,255,.03) 36px, rgba(255,255,255,.03) 37px),
    repeating-linear-gradient(90deg, transparent 0, transparent 36px, rgba(255,255,255,.03) 36px, rgba(255,255,255,.03) 37px);
  pointer-events: none;
}
.auth-visual-side .content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.auth-visual-side h3 {
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  margin-bottom: 16px;
  line-height: 1.15;
}
.auth-visual-side p {
  color: #c4c8d3;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.auth-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 520px) {
  .auth-stat-grid { grid-template-columns: 1fr; }
}
.auth-stat-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--rad-sm);
  padding: 16px 20px;
  transition: .2s;
}
.auth-stat-card:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
}
.auth-stat-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #ff8a99;
  line-height: 1;
  margin-bottom: 4px;
}
.auth-stat-card span {
  font-size: .82rem;
  color: #e4e6ec;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .92rem;
  color: #e4e6ec;
}
.auth-feature-item svg {
  width: 20px;
  height: 20px;
  color: #ff8a99;
  flex-shrink: 0;
}

.region-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.region-card { border: 1px solid var(--line-2); border-radius: var(--rad-sm); padding: 24px; text-align: center; cursor: pointer; transition: .2s; background: var(--paper); }
.region-card:hover { border-color: var(--red); background: var(--red-soft); }
.region-card h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.region-card p { font-size: .85rem; color: var(--mute); margin: 0; }

/* ---------- 11. Wizard Split Layout (Application) ---------- */
.wiz-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: start;
  padding: clamp(32px, 4vw, 64px) 0;
}
@media (max-width: 1024px) {
  .wiz-split { grid-template-columns: 1fr; }
  .wiz-sidebar { display: block; position: static; margin-top: 32px; }
}

.wiz-main {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--sh);
}
.wiz-sidebar {
  position: sticky;
  top: 100px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 28px;
  box-shadow: var(--sh);
}
.wiz-sidebar h3 { font-size: 1.15rem; margin-bottom: 10px; }
.wiz-sidebar p { font-size: .88rem; color: var(--mute); margin-bottom: 16px; }
.wiz-sidebar .checklist { list-style: none; padding: 0; margin: 0; }
.wiz-sidebar .checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: .88rem;
  color: var(--text);
  line-height: 1.45;
}
.wiz-sidebar .checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-weight: bold;
}

/* Horizontal Stepper Centering */
.wiz-steps-wrap {
  position: relative;
  margin-bottom: 36px;
  padding-top: 12px;
}
.wiz-steps-line {
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--line-2);
  z-index: 1;
}
.wiz-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.wiz-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  cursor: pointer;
}
.wiz-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line-2);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--mute);
  transition: all .25s var(--ease);
}
.wiz-step-node.on .wiz-dot {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
  box-shadow: 0 0 0 5px var(--red-soft);
}
.wiz-step-node.done .wiz-dot {
  background: var(--ink-2);
  color: #fff;
  border-color: var(--ink-2);
}
.wiz-step-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--faint);
  text-align: center;
  font-weight: 600;
}
.wiz-step-node.on .wiz-step-label { color: var(--red); font-weight: 700; }
.wiz-step-node.done .wiz-step-label { color: var(--text); }

@media (max-width: 768px) {
  .wiz-step-label { display: none; }
  .wiz-steps-line { top: 27px; }
}

/* Horizontal Pipeline Process Grid */
.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.pipe-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  padding: 22px 18px;
  box-shadow: var(--sh);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: .22s var(--ease);
}
.pipe-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: var(--sh-lg);
}
.pipe-step, .pipe-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: 10px;
}
.pipe-stage-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red);
  margin-bottom: 6px;
}
.pipe-card h4, .pipe-title {
  font-size: 1.04rem;
  margin: 0 0 6px;
  color: var(--text);
  font-weight: 700;
}
.pipe-card p, .pipe-desc {
  font-size: .86rem;
  color: var(--mute);
  margin: 0;
  line-height: 1.5;
}

.wiz .step { display: none; }
.wiz .step.on { display: block; animation: fade .3s var(--ease); }
.wiz .step h3 { font-size: 1.35rem; margin-bottom: .3em; }
.wiz .step .hint { color: var(--mute); font-size: .92rem; margin-bottom: 24px; }
.wiz .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
@media (max-width: 640px) { .wiz .grid2 { grid-template-columns: 1fr; } }
.wiz .fieldset { display: block; }
.wiz .fieldset .full, .wiz .full { grid-column: 1 / -1; }

.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.wiz-nav .btn { min-width: 140px; justify-content: center; }
.wiz-nav .btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }

.wiz-summary { border: 1px solid var(--line); border-radius: var(--rad-sm); overflow: hidden; margin: 22px 0; }
.wiz-summary > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.wiz-summary > div:last-child { border-bottom: none; }
.wiz-summary span:first-child { color: var(--mute); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; flex-shrink: 0; padding-top: 3px; }
.wiz-summary span:last-child { font-weight: 500; text-align: right; word-break: break-word; }

.wiz .declare { display: flex; gap: .6em; align-items: flex-start; color: var(--mute); font-size: .92rem; margin: 16px 0 4px; cursor: pointer; }
.wiz .declare input { width: auto; margin-top: .35em; flex-shrink: 0; padding: 0; }

.wiz .status { margin-top: 16px; padding: 13px 18px; border-radius: var(--rad-sm); font-size: .9rem; display: none; }
.wiz .status.ok, .wiz .status.err { display: block; background: var(--red-soft); border: 1px solid var(--red); color: var(--red); }

.wiz-success { text-align: center; padding: 40px 20px; }
.wiz-success h2 { color: var(--red); margin-bottom: .3em; }
.wiz-success .ref { display: inline-block; font-family: var(--font-mono); background: var(--red-soft); color: var(--red); padding: .55em 1.2em; border-radius: 8px; margin: 16px 0 24px; font-weight: 600; letter-spacing: .06em; }
.wiz-success p { color: var(--mute); margin: 0 auto 24px; max-width: 480px; }

/* ---------- 12. Forms (Clean Underline Style) ---------- */
.form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.form select,
.form textarea,
.cform input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.cform select,
.cform textarea,
.wiz input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.wiz select,
.wiz textarea,
.main-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.main-form select,
.main-form textarea {
  width: 100%;
  padding: .8em 0;
  border: none;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body); font-size: .95rem;
  transition: border-color .18s;
  box-shadow: none;
}
.form input:focus, .form select:focus, .form textarea:focus,
.cform input:focus, .cform select:focus, .cform textarea:focus,
.wiz input:focus, .wiz select:focus, .wiz textarea:focus,
.main-form input:focus, .main-form select:focus, .main-form textarea:focus {
  outline: none; border-bottom-color: var(--red);
}
input[type="checkbox"], input[type="radio"] {
  width: 16px; height: 16px;
  accent-color: var(--red);
  cursor: pointer;
}
textarea { min-height: 80px; resize: vertical; }
label.f {
  display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--mute); font-weight: 600; margin-bottom: .35em;
}
label.f .req { color: var(--red); }

/* ---------- 13. Footer & Animations ---------- */
.ft { background: var(--ink); color: #b6b4ab; padding: clamp(40px, 5vw, 72px) 0 26px; font-size: .88rem; }
.ft .fg { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 1000px) { .ft .fg { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ft .fg { grid-template-columns: 1fr; } }
.ft h4 { color: #fff; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1em; }
.ft a { display: block; padding: 4px 0; color: #b6b4ab; transition: color .15s; }
.ft a:hover { color: var(--red); }
.ft .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ft .brand .mark { width: 44px; height: 44px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.ft .brand .txt b { color: #fff; font-family: var(--font-display); font-size: 1.1rem; display: block; line-height: 1.05; }
.ft .brand .txt span { color: #8f8d85; font-size: .65rem; display: block; margin-top: 2px; }
.ft .bot { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: #8f8d85; }
.ft .bot a { display: inline; padding: 0; }

@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ==========================================================
   INNER PAGE STYLES (About, Admissions, etc.)
   ========================================================== */

/* Page Header */
.page-header {
  padding: 80px 20px 60px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg-light);
}
.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
}
.page-header p {
  color: var(--mute);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Sections & Spacing */
.section-pad { padding: 80px 0; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 40px; }
.mt-4 { margin-top: 40px; }

/* Profile Cards (Leadership) */
.profile-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: 0.2s;
}
.profile-card:hover {
  border-color: var(--red);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.profile-initials {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--red);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}

/* Timeline */
.timeline {
  border-left: 2px solid var(--line);
  margin-left: 20px;
  padding-left: 30px;
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--paper);
}
.timeline-year {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 5px;
}

/* ==========================================================
   HOMEPAGE & GLOBAL MISSING COMPONENTS
   ========================================================== */

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  white-space: nowrap;
  position: relative;
}
.marquee .track {
  display: inline-flex;
  gap: 36px;
  animation: marquee 32s linear infinite;
}
.marquee .track span {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.marquee .track span::after {
  content: "•";
  color: var(--red);
  font-size: 1rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Trusted Frameworks ---------- */
.trustrow {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
@media (max-width: 900px) {
  .trustrow { grid-template-columns: 1fr; }
}
.chips3 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips3 span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  padding: 7px 14px;
  border-radius: 99px;
  transition: .2s;
}
.chips3 span:hover {
  border-color: var(--red);
  background: rgba(200,16,46,.15);
  color: #ff8a99;
}

/* ---------- Core Verticals Tabs ---------- */
.vhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.vhead h2 { margin: 0; }
.vtabs {
  display: flex;
  gap: 6px;
  background: var(--cream);
  padding: 4px;
  border-radius: 99px;
  border: 1px solid var(--line);
}
.vtabs button {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 500;
  color: var(--mute);
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: 99px;
  cursor: pointer;
  transition: .2s var(--ease);
}
.vtabs button.on {
  background: var(--paper);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.vpanel { display: none; }
.vpanel.on { display: block; animation: fade .3s var(--ease); }

.vcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 24px;
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.vcard:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: var(--sh-lg);
}
.vcard .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--red-soft);
  display: grid;
  place-items: center;
  color: var(--red);
  margin-bottom: 16px;
}
.vcard .ic svg { width: 22px; height: 22px; }
.vcard h3 { font-size: 1.12rem; margin: 0 0 .4em; }
.vcard p { color: var(--mute); font-size: .92rem; margin: 0 0 16px; flex-grow: 1; }
.vcard .foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  font-weight: 600;
  color: var(--red);
}
.vcard .foot a { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.vcard .foot a:hover { text-decoration: underline; }

/* ---------- Roadmap Grid ---------- */
.hz {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), 1fr);
  gap: 20px;
  position: relative;
}
@media (max-width: 860px) {
  .hz { grid-template-columns: 1fr; }
}
.hz > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 28px;
  box-shadow: var(--sh);
  position: relative;
  transition: .22s var(--ease);
}
.hz > div:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: var(--sh-lg);
}
.hz small {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.hz h4 {
  font-size: 1.15rem;
  margin: 0 0 .5em;
}
.hz p {
  color: var(--mute);
  font-size: .92rem;
  margin: 0;
  line-height: 1.6;
}

/* ---------- Programme Finder ---------- */
.fd {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
@media (max-width: 860px) {
  .fd { grid-template-columns: 1fr; }
}
.fdb {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fdb button {
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 500;
  padding: 16px 20px;
  border-radius: var(--rad-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  cursor: pointer;
  transition: .2s var(--ease);
  box-shadow: var(--sh);
}
.fdb button:hover {
  border-color: var(--red);
  transform: translateX(4px);
}
.fdb button.on {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(200,16,46,.12);
}
.fdr {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--sh-lg);
  position: relative;
}
.fdr .tg {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 8px;
}
.fdr h3 { font-size: 1.3rem; margin: 0 0 .5em; }
.fdr p { color: var(--mute); font-size: .95rem; margin: 0 0 .6em; line-height: 1.6; }

/* ---------- UN SDGs Grid ---------- */
.sdgs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.sdgs > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  padding: 18px;
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  transition: .2s;
}
.sdgs > div:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.sdgs b {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}
.sdgs span {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  margin-bottom: 4px;
}
.sdgs small {
  color: var(--mute);
  font-size: .82rem;
  line-height: 1.4;
}

/* ---------- Consultation Split Layout ---------- */
.consult-split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 4.5vw, 56px);
  align-items: start;
}
@media (max-width: 960px) {
  .consult-split { grid-template-columns: 1fr; }
}
.consult-left {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--sh-lg);
}
.consult-left h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 8px; }

.cform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  margin-top: 24px;
}
@media (max-width: 600px) {
  .cform { grid-template-columns: 1fr; }
}
.cform .full { grid-column: 1 / -1; }
.cbot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
}
.cbot .note { font-size: .82rem; color: var(--mute); margin: 0; max-width: 38ch; }

.consult-right {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  box-shadow: var(--sh);
}
.consult-img {
  min-height: 160px;
  background: linear-gradient(145deg, var(--wine), var(--ink-2));
  position: relative;
  padding: 24px;
  display: flex;
  align-items: flex-end;
}
.consult-img::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(200,16,46,.4), transparent 60%);
}
.consult-img .eyebrow { position: relative; z-index: 2; margin: 0; }
.consult-aside-body { padding: clamp(20px, 3vw, 32px); }
.consult-aside-body h3 { font-size: 1.25rem; margin: 0 0 14px; }
.aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aside-list li {
  position: relative;
  padding-left: 22px;
  font-size: .9rem;
  color: var(--mute);
  line-height: 1.5;
}
.aside-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: bold;
}

/* ---------- Newsletter CTA in Footer ---------- */
.cta {
  border-radius: var(--rad);
  padding: clamp(32px, 4.5vw, 56px);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--sh-lg);
}
.cta h2 { color: #fff; margin: 0 0 .3em; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.cta p { color: #f2e3e6; margin: 0; max-width: 50ch; font-size: 1.05rem; }
.nlwrap { flex-shrink: 0; width: 100%; max-width: 440px; }
.subbox {
  display: flex;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 99px;
  padding: 5px 6px 5px 20px;
  backdrop-filter: blur(10px);
  transition: border-color .2s;
}
.subbox:focus-within {
  border-color: #fff;
  background: rgba(255,255,255,.18);
}
.subbox input[type="email"] {
  flex: 1;
  border: none !important;
  background: transparent !important;
  color: #fff !important;
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 8px 10px 8px 0 !important;
  box-shadow: none !important;
}
.subbox input[type="email"]::placeholder { color: rgba(255,255,255,.7); }
.subbox input[type="email"]:focus { outline: none; }
.subbox .btn { border-radius: 99px; padding: 10px 22px; flex-shrink: 0; }

/* ---------- Inline 2-Column Form Row ---------- */
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .row2 { grid-template-columns: 1fr; }
}

/* ==========================================================
   CONNECTED HORIZONTAL PIPELINE (CARD STYLE WITH CONNECTOR)
   Phase 1 ----- Phase 2 ----- Phase 3
   ========================================================== */
.h-pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 32px;
  position: relative;
  overflow-x: auto;
  padding: 12px 4px 24px 4px;
  scrollbar-width: thin;
}
.h-pipeline::-webkit-scrollbar {
  height: 6px;
}
.h-pipeline::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 10px;
}
.h-pipeline-item {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 220px;
  position: relative;
}
.h-pipeline-card {
  flex: 1;
  background: var(--paper, #fff);
  border: 1.5px solid var(--line, #e2e4e9);
  border-radius: var(--rad, 10px);
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.22s var(--ease), box-shadow 0.22s, border-color 0.22s;
  z-index: 2;
}
.h-pipeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.12);
}
.h-pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.h-pipeline-step {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  display: grid;
  place-items: center;
}
.h-pipeline-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}
.h-pipeline-card h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}
.h-pipeline-card p {
  font-size: 0.88rem;
  color: var(--mute);
  line-height: 1.55;
  margin: 0;
}
.h-pipeline-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.h-pipeline-connector::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--red) 0, var(--red) 7px, transparent 7px, transparent 12px);
}
.h-pipeline-connector::after {
  content: "▸";
  color: var(--red);
  font-size: 15px;
  font-weight: bold;
  background: var(--bg);
  padding: 0 3px;
  position: relative;
  z-index: 2;
}
.h-pipeline-item:last-child .h-pipeline-connector {
  display: none;
}
@media (max-width: 900px) {
  .h-pipeline {
    flex-direction: column;
    gap: 16px;
  }
  .h-pipeline-item {
    flex-direction: column;
    min-width: 100%;
  }
  .h-pipeline-connector {
    width: 100%;
    height: 32px;
  }
  .h-pipeline-connector::before {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(180deg, var(--red) 0, var(--red) 6px, transparent 6px, transparent 10px);
  }
  .h-pipeline-connector::after {
    content: "▾";
  }
}