/* ============================================================
   HowItWorksCSS.css
   Center-spine layout for the "How it Works" process section.
   Steps alternate left and right off a central vertical line.
   ============================================================ */

/* ── SPINE GRID ── */
.hiw-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: 0;
  align-items: start;
}

/* Vertical spine line running the full height of the section */
.hiw-spine {
  grid-column: 2;
  grid-row: 1 / span 8;
  width: 2px;
  background: var(--blue);
  opacity: 0.25;
  border-radius: 1px;
  justify-self: center;
  align-self: stretch;
}

/* ── CARD SLOTS ── */
.hiw-slot {
  padding: 0 32px 48px;
  display: flex;
  flex-direction: column;
}

.hiw-slot.left  { grid-column: 1; align-items: flex-end;   padding-right: 40px; }
.hiw-slot.right { grid-column: 3; align-items: flex-start; padding-left: 40px; }

/* Right cards sit lower so they fall between left cards */
.hiw-slot.right { padding-top: 96px; }

/* ── STEP CARD ── */
.hiw-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 24px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

/* Horizontal tick line connecting card edge to spine */
.hiw-slot.left .hiw-card::after {
  content: '';
  position: absolute;
  right: -40px;
  top: 32px;
  width: 40px;
  height: 2px;
  background: var(--blue);
  opacity: 0.35;
}

.hiw-slot.right .hiw-card::after {
  content: '';
  position: absolute;
  left: -40px;
  top: 32px;
  width: 40px;
  height: 2px;
  background: var(--blue);
  opacity: 0.35;
}

/* ── STEP NUMBER BADGE — 32×32 (8×4) ── */
.hiw-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hiw-card strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.hiw-card span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  /* Collapse to single left-spine column */
  .hiw-wrap  { grid-template-columns: 2px 1fr; }
  .hiw-spine { grid-column: 1; grid-row: 1 / span 8; }

  .hiw-slot.left,
  .hiw-slot.right {
    grid-column: 2;
    align-items: flex-start;
    padding: 0 0 32px 32px;
  }
  .hiw-slot.right { padding-top: 0; }

  .hiw-slot.left .hiw-card::after,
  .hiw-slot.right .hiw-card::after {
    left: -32px;
    right: auto;
    width: 32px;
  }

  .hiw-card { max-width: 100%; }
}