/* Process Timeline (Split-Screen) */
:root {
  --ts-primary: #00325F;
  --ts-accent: #FDB103;
  --ts-bg: #0f1216;
  --ts-card: #ffffff;
  --ts-card-inner: #f3f5f7;
  --ts-muted: #6b7280;
  --header-h: 70px;
  --row-gap: 38px;
  --ghost-blur: 2.5px;
  --ghost-opacity: 0.35;
  --transition-duration: .6s;
  --dot-size: 14px;
  --dot-gap: 12px;
  --dot-active-scale: 1.25;
  --font-heading: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --elev-1: 0 12px 30px rgba(0,0,0,0.16);
  --elev-2: 0 20px 50px rgba(0,0,0,0.22);
}

.process-timeline-fullscreen {
  position: relative;
  width: 100%;
  background: var(--ts-bg);
  overflow: visible;
  /* Fill one screen minus header + extra space for three-slot layout */
  height: calc(100vh - var(--header-h) + 150px);
}

/* Background video */
.process-bg-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.process-bg-video video { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.05) brightness(0.8); }
.process-bg-video .bg-dim { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }

.process-pin { position: relative; top: 0; height: 100%; z-index: 5; display: flex; align-items: stretch; }

.process-timeline-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  height: 100%;
}

/* Left visual panel */
.process-visual {
  position: relative;
  top: 0;
  align-self: start;
  border-radius: 16px;
  overflow: hidden;
  min-height: 520px;
  height: 100%;
  background: #111;
}

.process-visual .visual-bg {
  position: absolute;
  inset: 0;
  /* Use an existing banner image */
  background: url('../images/Home Page Banner-3.jpg') center/cover no-repeat;
  filter: brightness(0.6) saturate(0.9);
  transform: scale(1.03);
}

.process-visual .visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.5), rgba(0,0,0,0.1));
}

.process-visual .visual-content {
  position: relative;
  z-index: 2;
  padding: 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.process-visual h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 8px 0;
  font-weight: 800;
}

.process-visual p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  opacity: 0.9;
}

/* Plain variant (no image) */
.process-visual.plain { background: transparent; box-shadow: none; }
.process-visual.plain .visual-content { color: #ffffff; justify-content: center; padding: 36px; text-shadow: 0 2px 8px rgba(0,0,0,0.45); }
.process-visual.plain h2 { color: #ffffff; }
.process-visual.plain p { color: rgba(255,255,255,0.9); opacity: 1; }
.process-visual.plain .visual-bg,
.process-visual.plain .visual-overlay { display: none; }

/* Right steps column */
.process-steps-column {
  position: relative;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  flex: 1 1 auto;
  padding: 12px 0;
}

.process-steps-column::after {
  content: '';
  position: absolute;
  inset: 0 0 0 12px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.30);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 1;
  pointer-events: none;
}

/* Vertical track */
.process-steps-column::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 4px;
  /* rail removed per request */
  display: none;
}

/* In-rail progress bar (fills the vertical track) */
.process-rail-progress { display: none; }

/* Three-slot stack: prev (top, ghost), active (middle), next (bottom, ghost) */
.process-steps-list { position: relative; height: 100%; display: grid; grid-template-rows: 1fr 1fr 1fr; align-items: center; width: 100%; z-index: 4; row-gap: var(--row-gap); }
.slot { display: flex; align-items: center; justify-content: flex-start; padding-left: 72px; }
.slot .step-card { transition: transform var(--transition-duration) cubic-bezier(.22,.61,.36,1), opacity var(--transition-duration) cubic-bezier(.22,.61,.36,1), filter var(--transition-duration) ease; }
.slot.top { align-self: end; }
.slot.middle { align-self: center; }
.slot.bottom { align-self: start; }

/* IMPORTANT: within slot layout, items are not absolutely positioned */
.slot .step-item { position: relative; top: auto; left: auto; right: auto; margin: 0; transform: none; opacity: 1; pointer-events: auto; z-index: 5; padding-left: 24px; }

/* Blur/dim non-active */
.ghost .step-card { filter: blur(var(--ghost-blur)); opacity: var(--ghost-opacity); pointer-events: none; transform: scale(0.96); }
.ghost .step-badge { opacity: 0.45; filter: saturate(0.7); }

/* Entry animations for middle card */
.enter-up .step-card { animation: enterUp var(--transition-duration) cubic-bezier(.22,.61,.36,1); }
.enter-down .step-card { animation: enterDown var(--transition-duration) cubic-bezier(.22,.61,.36,1); }
@keyframes enterUp { from { transform: translateY(24px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@keyframes enterDown { from { transform: translateY(-24px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }

/* small nodes behind cards */
.step-item::before { display: none; }

/* Number badge on the card edge */
.step-badge {
  position: absolute;
  /* remove numbered badge from UI */
  display: none;
}

/* The card */
.step-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.92));
  border-radius: 14px;
  box-shadow: var(--elev-1);
  overflow: hidden;
  max-width: 720px;
  width: clamp(520px, 60%, 720px);
  z-index: 7;
}

.step-card .card-inner {
  background: var(--ts-card-inner);
  margin: 14px;
  border-radius: 12px;
  padding: 26px 26px 26px 30px;
}

.step-card h3 {
  margin: 0 0 8px 0;
  color: #0b2a4a;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.step-card p {
  margin: 0;
  color: #4b5563;
  font-family: var(--font-body);
  line-height: 1.7;
}

/* Active hover/focus */
.step-item:hover .step-card { transform: translateY(-2px); transition: transform .25s ease, box-shadow .25s ease; box-shadow: var(--elev-2); }

/* Mobile */
@media (max-width: 992px) {
  .process-timeline-wrapper { grid-template-columns: 1fr; }
  .process-visual { position: relative; top: 0; min-height: 260px; height: 40%; }
  .process-steps-column::before { left: 22px; }
  .step-item { padding-left: 16px; }
  .step-badge { display: none; }
  .process-steps-column { padding: 8px 0; }
  .process-steps-list { min-height: 40vh; }
  .step-card { width: clamp(300px, 86%, 640px); }
  .step-card h3 { font-size: 22px; }
  .process-visual h2 { font-size: 34px; }
}

/* Spacer element to create scroll progress area */
.process-scroll-spacer { height: 300vh; }

/* Reduced motion: remove subtle scale on transitions */
@media (prefers-reduced-motion: reduce) {
  .step-item { transition: opacity .2s ease; transform: translateY(-50%) !important; }
}

/* Focus states for accessibility */
.step-card:focus-within { outline: 3px solid rgba(0, 50, 95, 0.35); outline-offset: 2px; }

/* Fixed top progress bar for whole-page scroll (optional visual feedback) */
.process-progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 4px; background: transparent; z-index: 1000; pointer-events: none; }
.process-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #6a11cb, #2575fc); transition: width .3s ease; }

/* Right-side navigation dots */
/* Hide navigation dots as requested */
.process-nav-dots { display: none !important; }
.process-nav-dots .dot { display: none !important; }
