/* Peoplemx process timeline v1 */
.process.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  padding: 14px 0 0;
  counter-reset: process-step;
  isolation: isolate;
}

.process.process-timeline::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 51px;
  left: 9%;
  right: 9%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0057c8, #1688d8 55%, #18a85c);
  box-shadow: 0 4px 14px rgba(0, 87, 200, .16);
}

.process.process-timeline .step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0 14px 20px;
  border: 1px solid #d8e8f6;
  border-top: 0;
  border-radius: 17px;
  background: linear-gradient(180deg, transparent 0 39px, #fff 39px 100%);
  box-shadow: 0 12px 30px rgba(7, 44, 84, .075);
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease, box-shadow .25s ease;
}

.process.process-timeline.is-visible .step {
  opacity: 1;
  transform: translateY(0);
}

.process.process-timeline.is-visible .step:nth-child(2) { transition-delay: .08s; }
.process.process-timeline.is-visible .step:nth-child(3) { transition-delay: .16s; }
.process.process-timeline.is-visible .step:nth-child(4) { transition-delay: .24s; }
.process.process-timeline.is-visible .step:nth-child(5) { transition-delay: .32s; }

.process.process-timeline .step:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(7, 44, 84, .13);
}

.process.process-timeline .step::before {
  counter-increment: process-step;
  content: counter(process-step);
  position: absolute;
  z-index: 3;
  top: 0;
  left: calc(50% + 18px);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #061f3f;
  color: #fff;
  box-shadow: 0 4px 12px rgba(6, 31, 63, .22);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.process-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  margin-bottom: 15px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8f5ff, #fff);
  color: #0057c8;
  box-shadow: 0 8px 24px rgba(0, 87, 200, .18);
}

.process.process-timeline .step:last-child .process-icon {
  background: linear-gradient(145deg, #e9faef, #fff);
  color: #138d4c;
}

.process-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process.process-timeline .step h3 {
  margin: 0 0 8px;
  color: #061b3a;
  font-size: 17px;
  line-height: 1.25;
}

.process.process-timeline .step p {
  margin: 0;
  color: #41536b;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .process.process-timeline {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 680px;
    margin-inline: auto;
    padding: 0;
  }

  .process.process-timeline::before {
    top: 35px;
    bottom: 35px;
    left: 35px;
    right: auto;
    width: 4px;
    height: auto;
    background: linear-gradient(180deg, #0057c8, #1688d8 55%, #18a85c);
  }

  .process.process-timeline .step {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-items: center;
    min-height: 112px;
    padding: 18px 18px 18px 0;
    border: 1px solid #d8e8f6;
    border-radius: 16px;
    background: #fff;
    text-align: left;
    transform: translateX(14px);
  }

  .process.process-timeline.is-visible .step {
    transform: translateX(0);
  }

  .process.process-timeline .step:hover {
    transform: translateX(0);
  }

  .process.process-timeline .step::before {
    top: 13px;
    left: 48px;
  }

  .process-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 70px;
    height: 70px;
    margin: 0;
    border-width: 4px;
    box-shadow: 0 7px 20px rgba(0, 87, 200, .15);
  }

  .process.process-timeline .step h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin-bottom: 4px;
  }

  .process.process-timeline .step p {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }
}

@media (max-width: 520px) {
  .process.process-timeline .step {
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 13px;
    min-height: 104px;
    padding: 15px 13px 15px 0;
  }

  .process.process-timeline::before {
    left: 30px;
  }

  .process-icon {
    width: 60px;
    height: 60px;
  }

  .process-icon svg {
    width: 28px;
    height: 28px;
  }

  .process.process-timeline .step::before {
    top: 10px;
    left: 39px;
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .process.process-timeline .step h3 {
    font-size: 16px;
  }

  .process.process-timeline .step p {
    font-size: 13.5px;
    line-height: 1.48;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process.process-timeline .step,
  .process.process-timeline.is-visible .step {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
