/* =====================================================================
   MainStayEMS — shared site styles (single source of truth)
   Edit here once; every page that includes head.php picks it up.
   ===================================================================== */

:root {
  --navy-top:   #000d1e;
  --navy-mid:   #07182e;
  --navy-deep:  #0a2150;
  --brand-navy: #0a2a6b;
  --ems-blue:   #1E63D6;
  --ems-blue-2: #2C7BF2;
  --accent:     #2774f5;
  --btn-blue:   #1d68ef;
  --card-bg:    #0c1d40;
  --card-border: rgba(130,165,230,.26);
  --hero-lead:  #c3cedd;
  --light-bg:   #eef2f8;
  --ink:        #0a1f44;
  --ink-soft:   #5b6573;
}

* { box-sizing: border-box; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #fff;
  background: var(--navy-top);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .font-display { font-family: 'Poppins', sans-serif; }

/* ---------- Top bar ---------- */
.ms-nav {
  background: var(--navy-top);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.ms-nav .navbar-brand img { height: 72px; width: auto; display: block; }
.ms-nav .nav-link {
  color: #e7edf6;
  font-weight: 500;
  font-size: .98rem;
  padding: .4rem 1rem;
  transition: color .15s ease;
}
.ms-nav .nav-link:hover, .ms-nav .nav-link:focus { color: var(--ems-blue-2); }
.ms-nav .nav-link.active { color: var(--ems-blue-2); font-weight: 600; }
.ms-nav .navbar-toggler { border-color: rgba(255,255,255,.35); color: #fff; }
.ms-nav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(44,123,242,.4); }

.btn-login {
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 9px;
  font-weight: 600;
  padding: .5rem 1.4rem;
}
.btn-login:hover { color: var(--navy-top); background: #fff; }

.btn-demo {
  color: #fff;
  background: var(--btn-blue);
  border: 1px solid var(--btn-blue);
  border-radius: 9px;
  font-weight: 600;
  padding: .5rem 1.4rem;
}
.btn-demo:hover { color: #fff; background: #1357d6; border-color: #1357d6; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(115% 85% at 80% 12%, rgba(44,123,242,.16) 0%, rgba(44,123,242,0) 45%),
    var(--navy-top);
}
.hero-inner { position: relative; z-index: 2; padding: 56px 0 70px; }

.hero-photo {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 50%;
  background-image:
    linear-gradient(to bottom, rgba(0,13,30,0) 58%, rgba(0,13,30,.55) 82%, rgba(0,13,30,.92) 95%, var(--navy-top) 100%),
    url('../images/hero-ems.jpg');
  background-size: cover;
  background-position: center center;   /* framing: 'left' favors the guy, 'right' favors her, or a % */
  z-index: 0;
}
.hero-photo-fade {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 50%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    var(--navy-top) 0%,
    rgba(0,13,30,.70) 8%,
    rgba(0,13,30,.22) 20%,
    rgba(0,13,30,0) 32%);
}
.hero-photo-mobile { display: none; }

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(91,150,255,.55);
  color: #9cc1ff;
  background: rgba(20,50,110,.25);
  border-radius: 999px;
  padding: .42rem 1.05rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .2px;
  margin-bottom: 26px;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 3.9vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -1px;
  margin: 0 0 22px;
}
.hero-lead {
  color: var(--hero-lead);
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions .btn { border-radius: 11px; font-weight: 600; padding: .8rem 1.5rem; }
.btn-hero-demo { background: var(--btn-blue); color: #fff; border: none; }
.btn-hero-demo:hover { background: #1357d6; color: #fff; }
.btn-hero-ghost {
  background: rgba(255,255,255,.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,.5);
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Feature strip (home) ---------- */
.features {
  background: var(--navy-top);
  padding: 8px 0 64px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 26px 24px 28px;
  height: 100%;
  box-shadow: 0 8px 22px rgba(0,0,0,.30);
}
.feature-card .fi { font-size: 2rem; color: var(--ems-blue-2); margin-bottom: 14px; display: block; }
.feature-card h3 { font-size: 1.12rem; font-weight: 600; margin: 0 0 10px; color: #fff; }
.feature-card p { color: #aebacb; font-size: .95rem; line-height: 1.55; margin: 0; }

/* ---------- Built-for section (light) ---------- */
.built { background: var(--light-bg); color: var(--ink); padding: 72px 0 84px; }
.eyebrow {
  color: var(--ems-blue);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 12px;
}
.built h2 {
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  color: var(--ink);
  margin: 0 0 18px;
}
.built-lead {
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 760px;
  margin: 0 auto 52px;
}
.aud .ai { font-size: 1.7rem; color: var(--ems-blue); margin-bottom: 14px; display: block; }
.aud h3 { font-size: 1.08rem; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.aud p { color: var(--ink-soft); font-size: .95rem; line-height: 1.55; margin: 0; }

/* ---------- Sub-page header band ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(110% 95% at 85% 8%, rgba(44,123,242,.18) 0%, rgba(44,123,242,0) 48%),
    var(--navy-top);
}
.page-head-inner { padding: 50px 0 58px; position: relative; z-index: 2; }
.page-head h1 {
  font-weight: 800;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  letter-spacing: -.5px;
  margin: 0 0 16px;
  max-width: 760px;
}
.page-head .lead-text {
  color: var(--hero-lead);
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 640px;
  margin: 0;
}

/* ---------- Modern-techniques strip ---------- */
.tech-strip { background: var(--navy-top); padding: 6px 0 56px; }
.tech-tile {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px;
  height: 100%;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.tech-tile .ti {
  font-size: 1.45rem; color: var(--ems-blue-2);
  background: rgba(44,123,242,.12);
  width: 46px; height: 46px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.tech-tile h3 { font-size: 1rem; font-weight: 600; color: #fff; margin: 0 0 3px; }
.tech-tile p { font-size: .85rem; color: #9fb0c6; margin: 0; line-height: 1.4; }

/* ---------- Alternating feature sections ---------- */
.feat-wrap { background: linear-gradient(180deg, var(--navy-top) 0%, #03102a 100%); padding: 26px 0 36px; }
.feat-section { padding: 32px 0; }
.feat-visual {
  border-radius: 16px;
  min-height: 270px;
  background: linear-gradient(150deg, #0c2150 0%, #0a1838 60%, #07142e 100%);
  border: 1px solid var(--card-border);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.feat-visual .bi { font-size: 5rem; color: var(--ems-blue-2); opacity: .95; position: relative; z-index: 1; }
.feat-visual::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 20px 20px; opacity: .55;
}
.feat-eyebrow { color: var(--ems-blue-2); font-weight: 700; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.feat-section h2 { font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: #fff; margin: 0 0 14px; }
.feat-section .desc { color: #b6c2d4; font-size: 1.02rem; line-height: 1.6; margin: 0 0 18px; }
.feat-list { list-style: none; padding: 0; margin: 0; }
.feat-list li { color: #cdd7e6; position: relative; padding-left: 30px; margin-bottom: 11px; font-size: .98rem; }
.feat-list li .bi { position: absolute; left: 0; top: 3px; color: var(--ems-blue-2); }

/* ---------- Capabilities grid ---------- */
.caps { background: #03102a; padding: 60px 0 72px; }
.cap-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 20px; height: 100%;
}
.cap-card .ci { font-size: 1.5rem; color: var(--ems-blue-2); margin-bottom: 10px; display: block; }
.cap-card h3 { font-size: 1rem; font-weight: 600; color: #fff; margin: 0 0 6px; }
.cap-card p { font-size: .88rem; color: #9fb0c6; margin: 0; line-height: 1.45; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-top); padding: 44px 16px; text-align: center; }
.cta-band .container { background: linear-gradient(120deg, var(--ems-blue) 0%, #1750c8 100%); border-radius: 18px; padding: 56px 28px; }
.cta-band h2 { color: #fff; font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 12px; }
.cta-band p { color: #dce8ff; font-size: 1.08rem; margin: 0 0 26px; }
.cta-band .btn-white { background: #fff; color: var(--brand-navy); font-weight: 600; border: none; border-radius: 11px; padding: .8rem 1.8rem; }
.cta-band .btn-white:hover { background: #eef2f8; color: var(--brand-navy); }

/* ---------- Footer ---------- */
.ms-footer {
  background: var(--navy-top);
  color: #8ea0bb;
  padding: 30px 0;
  font-size: .9rem;
  border-top: 1px solid rgba(120,150,210,.12);
}
.ms-footer img { height: 34px; width: auto; }
.ms-footer a { color: #b9c7dc; text-decoration: none; }
.ms-footer a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero-photo, .hero-photo-fade { display: none; }
  .hero-photo-mobile {
    display: block;
    width: 100%;
    height: 300px;
    margin-top: 30px;
    border-radius: 14px;
    background: url('../images/hero-ems.jpg') center / cover no-repeat;
  }
  .hero-inner { padding-bottom: 44px; }
  .ms-nav .btn-login, .ms-nav .btn-demo { margin-top: 8px; }
  .feat-visual { min-height: 200px; margin-bottom: 8px; }
}

/* =====================================================================
   Features page — interactive elements
   ===================================================================== */

/* Subtle hover lift on all cards */
.cap-card, .tech-tile, .feature-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cap-card:hover, .tech-tile:hover, .feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(44,123,242,.55);
  box-shadow: 0 16px 32px rgba(0,0,0,.42);
}

/* ---------- Animated stat band ---------- */
.stats-band {
  background: linear-gradient(180deg, #03102a 0%, var(--navy-top) 100%);
  padding: 40px 0;
  border-top: 1px solid rgba(120,150,210,.10);
  border-bottom: 1px solid rgba(120,150,210,.10);
}
.stat .stat-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  line-height: 1;
}
.stat .stat-num .suffix { color: var(--ems-blue-2); }
.stat .stat-label {
  color: #9fb0c6; font-size: .9rem; margin-top: 8px; letter-spacing: .3px;
}

/* ---------- Role toggle ---------- */
.role-toggle { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.role-btn {
  background: var(--card-bg); color: #cdd7e6;
  border: 1px solid var(--card-border); border-radius: 999px;
  padding: .55rem 1.3rem; font-weight: 600; font-size: .95rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .16s ease;
}
.role-btn:hover { color: #fff; border-color: rgba(44,123,242,.6); }
.role-btn.active { background: var(--btn-blue); color: #fff; border-color: var(--btn-blue); }
.role-view { display: none; }
.role-view.active { display: block; animation: fadeUp .35s ease; }
.role-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 32px 34px; box-shadow: 0 14px 40px rgba(0,0,0,.35);
  max-width: 820px; margin: 0 auto;
}
.role-card .role-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.role-card .role-head .bi { font-size: 2rem; color: var(--ems-blue-2); }
.role-card h3 { font-weight: 700; font-size: 1.4rem; color: #fff; margin: 0; }
.role-card ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.role-card li { color: #cdd7e6; position: relative; padding-left: 28px; font-size: .98rem; }
.role-card li .bi { position: absolute; left: 0; top: 3px; color: var(--ems-blue-2); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Live mini-preview ---------- */
.preview-wrap {
  background: #0a1834; border: 1px solid var(--card-border);
  border-radius: 18px; overflow: hidden; box-shadow: 0 22px 60px rgba(0,0,0,.45);
  max-width: 920px; margin: 0 auto;
}
.preview-bar { background: #07142e; padding: 12px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(120,150,210,.14); }
.preview-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #2a3a55; }
.preview-bar .dot:nth-child(1) { background: #ff5f57; } .preview-bar .dot:nth-child(2) { background: #febc2e; } .preview-bar .dot:nth-child(3) { background: #28c840; }
.preview-bar .url { margin-left: 12px; color: #7c8db0; font-size: .82rem; font-family: monospace; }
.preview-tabs { display: flex; gap: 4px; padding: 12px 14px 0; background: #081530; }
.preview-tab {
  background: transparent; border: none; color: #9fb0c6; font-weight: 600; font-size: .9rem;
  padding: 10px 16px; border-radius: 9px 9px 0 0; cursor: pointer; transition: all .15s ease;
}
.preview-tab:hover { color: #fff; }
.preview-tab.active { background: #0a1834; color: #fff; }
.preview-body { padding: 22px; min-height: 300px; }
.preview-panel { display: none; }
.preview-panel.active { display: block; animation: fadeUp .3s ease; }

/* gradebook */
.gb { width: 100%; border-collapse: collapse; font-size: .92rem; }
.gb th { color: #8ea0bb; font-weight: 600; text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(120,150,210,.18); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.gb td { padding: 11px 10px; border-bottom: 1px solid rgba(120,150,210,.08); color: #dbe3f0; }
.gb tr { transition: background .12s ease; }
.gb tbody tr:hover { background: rgba(44,123,242,.10); }
.gb .pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.gb .pass { background: rgba(40,200,100,.16); color: #4fd787; }
.gb .high { color: #4fd787; font-weight: 600; } .gb .mid { color: #febc2e; font-weight: 600; }
.gb tfoot td { font-weight: 700; color: #fff; border-top: 1px solid rgba(120,150,210,.22); }

/* mini calendar */
.mc-head, .mc-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.mc-head div { text-align: center; color: #8ea0bb; font-size: .75rem; font-weight: 600; padding-bottom: 6px; }
.mc-grid .day {
  aspect-ratio: 1/1; border-radius: 8px; background: #0e1d3e; border: 1px solid rgba(120,150,210,.10);
  display: flex; align-items: flex-start; justify-content: flex-end; padding: 5px 7px; font-size: .8rem; color: #aebacb;
  position: relative; transition: transform .12s ease, box-shadow .12s ease;
}
.mc-grid .day.muted { opacity: .35; }
.mc-grid .day.clinical { background: rgba(44,123,242,.22); border-color: rgba(44,123,242,.5); color: #fff; cursor: pointer; }
.mc-grid .day.ride { background: rgba(255,150,40,.18); border-color: rgba(255,150,40,.45); color: #fff; cursor: pointer; }
.mc-grid .day.clinical:hover, .mc-grid .day.ride:hover { transform: scale(1.08); box-shadow: 0 6px 16px rgba(0,0,0,.4); z-index: 2; }
.mc-legend { display: flex; gap: 18px; margin-top: 14px; font-size: .82rem; color: #9fb0c6; }
.mc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mc-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* skills */
.skill-progress { height: 8px; border-radius: 999px; background: #0e1d3e; overflow: hidden; margin-bottom: 6px; }
.skill-progress .bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--ems-blue), var(--ems-blue-2)); border-radius: 999px; transition: width .4s ease; }
.skill-count { color: #9fb0c6; font-size: .85rem; margin-bottom: 16px; }
.skill-list { list-style: none; padding: 0; margin: 0; }
.skill-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px;
  background: #0e1d3e; border: 1px solid rgba(120,150,210,.12); margin-bottom: 9px; cursor: pointer;
  color: #cdd7e6; font-size: .95rem; transition: all .14s ease; user-select: none;
}
.skill-item:hover { border-color: rgba(44,123,242,.5); }
.skill-item .box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #3a5078; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; transition: all .14s ease; }
.skill-item .box .bi { color: #fff; font-size: .9rem; opacity: 0; }
.skill-item.done { color: #fff; background: rgba(44,123,242,.12); border-color: rgba(44,123,242,.45); }
.skill-item.done .box { background: var(--btn-blue); border-color: var(--btn-blue); }
.skill-item.done .box .bi { opacity: 1; }
.skill-item.done .label { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.4); }

@media (max-width: 575.98px) {
  .role-card ul { grid-template-columns: 1fr; }
  .preview-tab { padding: 9px 11px; font-size: .82rem; }
}

/* ---------- Standards / trust strip ---------- */
.std-item { text-align: center; }
.std-item .si { font-size: 2.1rem; color: var(--ems-blue-2); margin-bottom: 10px; display: block; }
.std-term { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: #fff; line-height: 1.1; }
.std-label { color: #9fb0c6; font-size: .92rem; margin-top: 6px; }

/* =====================================================================
   Solutions page
   ===================================================================== */

/* Flip cards (problem -> solution) */
.flip-card { perspective: 1300px; height: 230px; cursor: pointer; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.4,.2,.2,1); transform-style: preserve-3d; }
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 14px; padding: 26px; display: flex; flex-direction: column; justify-content: center;
  border: 1px solid var(--card-border); box-shadow: 0 10px 26px rgba(0,0,0,.32);
}
.flip-front { background: var(--card-bg); }
.flip-front .bi { font-size: 2rem; color: var(--ems-blue-2); margin-bottom: 14px; }
.flip-front h3 { color: #fff; font-size: 1.12rem; font-weight: 600; margin: 0; line-height: 1.35; }
.flip-hint { color: #8093ad; font-size: .8rem; margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; }
.flip-back { background: linear-gradient(150deg, var(--ems-blue) 0%, #1750c8 100%); transform: rotateY(180deg); }
.flip-back .tag { color: #bcd4ff; font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.flip-back p { color: #fff; font-size: .98rem; line-height: 1.55; margin: 0; font-weight: 500; }

/* Comparison matrix */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.compare { min-width: 760px; max-width: 980px; margin: 0 auto; border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; box-shadow: 0 16px 44px rgba(0,0,0,.4); }
.compare-row { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; align-items: center; padding: 15px 20px; border-bottom: 1px solid rgba(120,150,210,.10); }
.compare-row:last-child { border-bottom: none; }
.compare-head { background: #07142e; }
.compare-head .feat { color: #fff; font-weight: 700; }
.compare-head .col-h { text-align: center; font-weight: 700; font-size: .84rem; line-height: 1.25; }
.compare-head .col-them { color: #8ea0bb; }
.compare-head .col-us { color: var(--ems-blue-2); background: rgba(44,123,242,.14); border-radius: 7px; padding: 6px 2px; }
.compare-row .feat { color: #cdd7e6; font-size: .96rem; }
.compare .mark { text-align: center; font-size: 1.25rem; }
.compare .mark.yes { color: #4fd787; }
.compare .mark.partial { color: #febc2e; }
.compare .mark.no { color: #54658a; }
.compare .us-col { background: rgba(44,123,242,.10); }
.compare-row:nth-child(even):not(.compare-head) { background: rgba(255,255,255,.012); }
.compare-legend { display: flex; gap: 22px; justify-content: center; margin-top: 18px; flex-wrap: wrap; color: #9fb0c6; font-size: .85rem; }
.compare-legend i { font-size: 1rem; vertical-align: -1px; }
.compare-legend .yes { color: #4fd787; }
.compare-legend .partial { color: #febc2e; }
.compare-legend .no { color: #54658a; }

@media (max-width: 575.98px) { .flip-card { height: 250px; } }

/* =====================================================================
   Who We Serve — student journey path
   ===================================================================== */
.journey { max-width: 980px; margin: 0 auto; }
.journey-track { display: flex; justify-content: space-between; position: relative; margin-bottom: 36px; }
.journey-track::before { content: ''; position: absolute; top: 27px; left: 6%; right: 6%; height: 3px; background: rgba(120,150,210,.20); z-index: 0; }
.journey-progress { position: absolute; top: 27px; left: 6%; height: 3px; width: 0; background: linear-gradient(90deg, var(--ems-blue), var(--ems-blue-2)); z-index: 1; transition: width .45s ease; box-shadow: 0 0 10px rgba(44,123,242,.6); }
.j-node { position: relative; z-index: 2; background: transparent; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; padding: 0; }
.j-dot { width: 54px; height: 54px; border-radius: 50%; background: var(--card-bg); border: 2px solid var(--card-border); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #9fb0c6; transition: all .25s ease; }
.j-label { font-size: .82rem; color: #9fb0c6; text-align: center; max-width: 120px; line-height: 1.25; transition: color .2s ease; }
.j-node.done .j-dot { border-color: var(--ems-blue-2); color: var(--ems-blue-2); }
.j-node.active .j-dot { background: var(--btn-blue); border-color: var(--btn-blue); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 6px rgba(44,123,242,.18), 0 8px 22px rgba(44,123,242,.45); }
.j-node.active .j-label { color: #fff; font-weight: 600; }
.j-node:hover .j-dot { border-color: rgba(44,123,242,.6); color: #fff; }

.journey-detail { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 30px 34px; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.j-panel { display: none; }
.j-panel.active { display: block; animation: fadeUp .35s ease; }
.j-phase { color: var(--ems-blue-2); font-size: .74rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 6px; }
.j-head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.j-head .bi { font-size: 1.8rem; color: var(--ems-blue-2); }
.j-head h3 { color: #fff; font-weight: 700; font-size: 1.3rem; margin: 0; }
.j-panel .j-desc { color: #b6c2d4; line-height: 1.6; margin: 0 0 18px; }
.j-support { background: rgba(44,123,242,.08); border: 1px solid rgba(44,123,242,.20); border-radius: 12px; padding: 16px 20px; }
.j-support .lbl { color: #9cc1ff; font-size: .76rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; display: block; }
.j-support ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 26px; }
.j-support li { color: #cdd7e6; padding-left: 26px; position: relative; font-size: .95rem; }
.j-support li .bi { position: absolute; left: 0; top: 3px; color: var(--ems-blue-2); }

@media (max-width: 767.98px) {
  .journey-track { flex-direction: column; gap: 2px; }
  .journey-track::before, .journey-progress { display: none; }
  .j-node { flex-direction: row; justify-content: flex-start; gap: 14px; width: 100%; padding: 7px 0; }
  .j-label { text-align: left; max-width: none; }
  .j-support ul { grid-template-columns: 1fr; }
}

/* =====================================================================
   FAQ page — search, category chips, accordion
   ===================================================================== */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-search { position: relative; margin-bottom: 16px; }
.faq-search input { width: 100%; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; color: #fff; padding: 14px 16px 14px 44px; font-size: 1rem; outline: none; transition: border-color .15s ease; }
.faq-search input::placeholder { color: #7c8db0; }
.faq-search input:focus { border-color: rgba(44,123,242,.6); }
.faq-search > .bi { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #7c8db0; }
.faq-chips { display: flex; flex-wrap: nowrap; gap: 12px; justify-content: center; margin-bottom: 30px; }
.faq-chip { background: var(--card-bg); color: #cdd7e6; border: 1px solid var(--card-border); border-radius: 999px; padding: .55rem 1.35rem; font-size: .9rem; font-weight: 600; cursor: pointer; transition: all .15s ease; white-space: nowrap; }
.faq-hint { text-align: center; color: #7c8db0; padding: 40px 0; font-size: 1rem; }
@media (max-width: 991.98px) { .faq-chips { flex-wrap: wrap; } }
.faq-chip:hover { color: #fff; border-color: rgba(44,123,242,.6); }
.faq-chip.active { background: var(--btn-blue); color: #fff; border-color: var(--btn-blue); }
.faq-item { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; transition: border-color .15s ease; }
.faq-item.open { border-color: rgba(44,123,242,.5); }
.faq-q { width: 100%; background: transparent; border: none; color: #fff; font-weight: 600; font-size: 1.02rem; text-align: left; padding: 18px 20px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-q .bi { color: var(--ems-blue-2); font-size: 1.25rem; flex: 0 0 auto; transition: transform .3s ease; }
.faq-item.open .faq-q .bi { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 20px 18px; color: #b6c2d4; line-height: 1.6; font-size: .97rem; }
.faq-empty { text-align: center; color: #7c8db0; padding: 30px 0; display: none; }

/* =====================================================================
   About page
   ===================================================================== */
.about-prose { max-width: 760px; margin: 0 auto; }
.about-prose p { color: #c3cedd; font-size: 1.08rem; line-height: 1.75; margin: 0 0 18px; }
.about-prose p.lead-line { color: #fff; font-size: 1.25rem; font-weight: 600; line-height: 1.6; }

.exp-band { background: linear-gradient(180deg, #03102a 0%, var(--navy-top) 100%); padding: 64px 0; text-align: center; border-top: 1px solid rgba(120,150,210,.10); border-bottom: 1px solid rgba(120,150,210,.10); }
.exp-num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.2rem); color: #fff; line-height: 1; }
.exp-num .plus { color: var(--ems-blue-2); }
.exp-label { color: #9fb0c6; font-size: 1.05rem; letter-spacing: .5px; margin-top: 10px; }
.about-h1 { white-space: nowrap; max-width: none !important; font-size: clamp(1.15rem, 4.6vw, 3.1rem) !important; }

.ekg { display: block; margin: 22px auto 0; max-width: 460px; width: 100%; height: 54px; }
.ekg path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ekg .ekg-base { stroke: rgba(44,123,242,.28); }
.ekg .ekg-pulse { stroke: var(--ems-blue-2); stroke-dasharray: 70 1070; stroke-dashoffset: 1070; animation: ekgsweep 2.6s linear infinite; filter: drop-shadow(0 0 5px rgba(44,123,242,.6)); }
@keyframes ekgsweep { from { stroke-dashoffset: 1070; } to { stroke-dashoffset: -70; } }

.value-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; padding: 26px 24px; height: 100%; box-shadow: 0 8px 22px rgba(0,0,0,.30); }
.value-card .vi { font-size: 1.9rem; color: var(--ems-blue-2); margin-bottom: 14px; display: block; }
.value-card h3 { font-size: 1.1rem; font-weight: 600; color: #fff; margin: 0 0 10px; }
.value-card p { color: #aebacb; font-size: .95rem; line-height: 1.55; margin: 0; }

/* One-line page headers (scale to fit desktop/tablet; wrap on small phones) */
.page-head h1.ph-oneline { white-space: nowrap; max-width: none; font-size: clamp(1rem, 3vw, 2.3rem); }
@media (max-width: 575.98px) { .page-head h1.ph-oneline { white-space: normal; font-size: 1.9rem; } }

/* Hero photo: align its right edge to the page container (matching padding) */
.hero-photo { border-radius: 18px; }
@media (min-width: 992px)  { .hero-photo, .hero-photo-fade { right: calc((100vw - 960px)  / 2 + 0.75rem); } }
@media (min-width: 1200px) { .hero-photo, .hero-photo-fade { right: calc((100vw - 1140px) / 2 + 0.75rem); } }
@media (min-width: 1400px) { .hero-photo, .hero-photo-fade { right: calc((100vw - 1320px) / 2 + 0.75rem); } }

/* =====================================================================
   Contact page — form
   ===================================================================== */
.contact-wrap { max-width: 720px; margin: 0 auto; }
.contact-form .field { margin-bottom: 18px; }
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; color: #cdd7e6; font-size: .9rem; font-weight: 600; margin-bottom: 7px; }
.contact-form label .req { color: var(--ems-blue-2); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 10px;
  color: #fff; padding: 12px 14px; font-size: 1rem; font-family: inherit; outline: none; transition: border-color .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: rgba(44,123,242,.6); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #7c8db0; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-submit { background: var(--btn-blue); color: #fff; border: none; border-radius: 11px; font-weight: 600; padding: .85rem 2rem; font-size: 1rem; cursor: pointer; transition: background .15s ease; }
.contact-submit:hover { background: #1357d6; }
.contact-submit:disabled { opacity: .55; cursor: not-allowed; }
.contact-status { margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: .95rem; display: none; line-height: 1.5; }
.contact-status.ok  { display: block; background: rgba(40,200,100,.12); border: 1px solid rgba(40,200,100,.40); color: #9be8b8; }
.contact-status.err { display: block; background: rgba(255,80,80,.10);  border: 1px solid rgba(255,80,80,.40);  color: #ffb3b3; }
@media (max-width: 575.98px) { .contact-form .row-2 { grid-template-columns: 1fr; } }
