/* Connected learning pathway */
.pathway-content {
  background: linear-gradient(135deg, #ffffff 0%, #f5f9fc 100%);
}

.pathway-content h3 {
  margin-bottom: 0;
}

.pathway-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
}

.pathway-flow::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 31px;
  left: 12.5%;
  right: 12.5%;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--gold));
}

.flow-step {
  position: relative;
  z-index: 1;
  min-height: 170px;
  padding: 82px 16px 18px;
  background: transparent;
  text-align: center;
}

.flow-step strong {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  transform: translateX(-50%);
  border: 7px solid #fff;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 10px 26px rgba(10, 42, 102, .19);
  color: #fff;
  font-size: 1rem;
}

.flow-step:nth-child(2) strong { background: var(--cyan); }
.flow-step:nth-child(3) strong { background: var(--green); }
.flow-step:nth-child(4) strong {
  background: var(--gold);
  color: var(--navy);
}

.flow-step span {
  display: block;
  max-width: 175px;
  margin: auto;
  color: var(--navy);
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.4;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 25px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-top: 4px solid var(--green);
  border-right: 4px solid var(--green);
  background: transparent;
  transform: rotate(45deg);
}

/* Didactics advisory process */
.how {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #eaf8fa 0%, #f4f9fb 100%);
}

.how::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -180px;
  width: 390px;
  height: 390px;
  border: 70px solid rgba(26, 159, 192, .09);
  border-radius: 50%;
}

.how .section-inner {
  position: relative;
  z-index: 1;
}

.how .steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 72px;
}

.how .steps::before {
  content: "";
  position: absolute;
  top: -35px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--gold));
}

.how .step {
  position: relative;
  min-height: 270px;
  padding: 58px 28px 30px;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 45px rgba(10, 42, 102, .09);
}

.how .step-num {
  position: absolute;
  top: -62px;
  left: 50%;
  z-index: 2;
  display: grid;
  min-width: 58px;
  height: 58px;
  place-items: center;
  padding: 0 14px;
  transform: translateX(-50%);
  border: 6px solid #eff9fa;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: .8rem;
  white-space: nowrap;
}

.how .step:nth-child(2) .step-num { background: var(--cyan); }
.how .step:nth-child(3) .step-num { background: var(--green); }
.how .step:nth-child(4) .step-num {
  background: var(--gold);
  color: var(--navy);
}

.how .step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -23px;
  z-index: 3;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--green);
  border-right: 3px solid var(--green);
  transform: rotate(45deg);
}

.how .step h3 {
  margin: 0 0 16px;
  font-size: 1.45rem;
}

.how .step p {
  margin: 0;
  color: #516579;
}

@media (max-width: 1050px) {
  .how .steps { grid-template-columns: repeat(2, 1fr); gap: 78px 24px; }
  .how .steps::before { display: none; }
  .how .step:not(:last-child)::after { display: none; }
}

@media (max-width: 720px) {
  .pathway-flow {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  .pathway-flow::before {
    top: 30px;
    bottom: 30px;
    left: 31px;
    right: auto;
    width: 4px;
    height: auto;
    background: linear-gradient(180deg, var(--cyan), var(--green), var(--gold));
  }

  .flow-step {
    min-height: 92px;
    padding: 20px 18px 20px 88px;
    text-align: left;
  }

  .flow-step strong {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }

  .flow-step span {
    max-width: none;
    margin: 0;
  }

  .flow-step:not(:last-child)::after { display: none; }

  .how .steps {
    grid-template-columns: 1fr;
    gap: 66px;
    margin-top: 76px;
  }

  .how .step { min-height: auto; padding: 48px 24px 26px; }
}
