.learning-path-section {
  position: relative;
  overflow: hidden;
  /* padding-block: clamp(34px, 4.8vw, 72px); */
  isolation: isolate;
}

.learning-path-section::before {
  position: absolute;
  inset: 18% auto auto 28px;
  z-index: -1;
  width: clamp(64px, 7vw, 96px);
  aspect-ratio: 1;
  content: "";
  opacity: 0.24;
  background-image: radial-gradient(circle, rgba(var(--rgb-primary), 0.32) 1.6px, transparent 2.2px);
  background-size: 14px 14px;
  pointer-events: none;
}

.learning-path-container {
  position: relative;
  display: grid;
  gap: clamp(24px, 3vw, 42px);
}

.learning-path-heading {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
}

.learning-path-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary-dark);
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  font-weight: 600;
  line-height: var(--line-height-tight);
}

.learning-path-kicker::before,
.learning-path-kicker::after {
  width: clamp(24px, 2.7vw, 38px);
  height: 2px;
  content: "";
  border-radius: var(--radius-pill);
}

.learning-path-kicker::before {
  background: rgba(var(--rgb-accent), 0.72);
}

.learning-path-kicker::after {
  background: rgba(var(--rgb-primary), 0.62);
}

.learning-path-heading h2 {
  max-width: 620px;
  margin: 0;
  color: var(--color-primary-dark);
  font-size: clamp(1.45rem, 2.15vw, 2.16rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.learning-path-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  min-height: clamp(214px, 19vw, 272px);
  gap: clamp(18px, 2.4vw, 34px);
  direction: rtl;
}

.learning-path-step:not(:last-of-type)::after {
  position: absolute;
  top: clamp(50px, 5.8vw, 74px);
  left: calc(-1 * clamp(48px, 5.25vw, 72px));
  z-index: 0;
  width: clamp(70px, 7.4vw, 106px);
  aspect-ratio: 106 / 49;
  content: "";
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='106' height='49' fill='none' viewBox='0 0 106 49'%3E%3Cpath stroke='url(%23a)' stroke-linecap='round' stroke-width='3' d='M1.5 4C70-8.5 22.5 50 101 37'/%3E%3Cpath fill='url(%23b)' d='M106 37.5 94.5 26v23L106 37.5Z'/%3E%3Cdefs%3E%3ClinearGradient id='a' x1='97.5' x2='2' y1='39' y2='2' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23ED7063'/%3E%3Cstop offset='1' stop-color='%23ED7063' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='100.248' x2='100.248' y1='56.143' y2='6.146' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23E94367'/%3E%3Cstop offset='1' stop-color='%23F2B15C'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 10px 18px rgba(var(--rgb-accent), 0.12));
  pointer-events: none;
  transform: translateY(10px) scaleX(-1);
  transform-origin: center;
  transition: opacity 0.5s ease, transform 0.58s cubic-bezier(0.18, 0.82, 0.22, 1);
}

.learning-path-section.is-in-view .learning-path-step:not(:last-of-type)::after {
  opacity: 0.78;
  transform: translateY(0) scaleX(-1);
}

.learning-path-section.is-in-view .learning-path-step:nth-of-type(2)::after {
  transition-delay: 0.12s;
}

.learning-path-section.is-in-view .learning-path-step:nth-of-type(3)::after {
  transition-delay: 0.22s;
}

.learning-path-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: clamp(220px, 20vw, 282px);
  padding-block-start: clamp(8px, 1.4vw, 18px);
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
}

.learning-path-section.is-in-view .learning-path-step {
  animation: learningStepIn 0.62s cubic-bezier(0.18, 0.82, 0.22, 1) forwards;
}

.learning-path-section.is-in-view .learning-path-step:nth-of-type(1) {
  animation-delay: 0.12s;
}

.learning-path-section.is-in-view .learning-path-step:nth-of-type(2) {
  animation-delay: 0.24s;
}

.learning-path-section.is-in-view .learning-path-step:nth-of-type(3) {
  animation-delay: 0.36s;
}

.learning-path-section.is-in-view .learning-path-step:nth-of-type(4) {
  animation-delay: 0.48s;
}

.learning-path-number {
  position: absolute;
  top: clamp(-20px, -1.35vw, -8px);
  inset-inline-start: 50%;
  z-index: -1;
  min-width: clamp(72px, 7vw, 112px);
  color: transparent;
  font-size: clamp(3.35rem, 6.15vw, 5.7rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(var(--rgb-accent), 0.35), rgba(var(--rgb-accent), 0.1) 58%, rgba(var(--rgb-primary), 0.08));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(var(--rgb-accent), 0.18);
  text-shadow: 0 12px 28px rgba(var(--rgb-accent), 0.1);
  opacity: 0.95;
  transform: translateX(50%) rotate(-3deg);
  user-select: none;
}

.learning-path-step:nth-of-type(2n) .learning-path-number {
  background: linear-gradient(180deg, rgba(var(--rgb-primary), 0.28), rgba(var(--rgb-primary), 0.08) 60%, rgba(var(--rgb-accent), 0.08));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke-color: rgba(var(--rgb-primary), 0.16);
  text-shadow: 0 12px 28px rgba(var(--rgb-primary), 0.1);
  transform: translateX(50%) rotate(3deg);
}

.learning-path-illustration {
  display: block;
  width: clamp(120px, 10.8vw, 164px);
  height: clamp(120px, 10.8vw, 164px);
  object-fit: contain;
  transform: translateY(-8px);
  filter: drop-shadow(0 14px 22px rgba(var(--rgb-primary), 0.13));
  pointer-events: none;
  user-select: none;
}

.learning-path-step h3 {
  margin: 0 0 8px;
  color: var(--color-primary-dark);
  font-size: clamp(1.05rem, 1.45vw, 1.46rem);
  font-weight: 600;
  line-height: 1.25;
}

.learning-path-step p {
  max-width: 235px;
  margin: 0;
  color: var(--color-consultation);
  font-size: clamp(0.84rem, 0.95vw, 0.98rem);
  font-weight: 600;
  line-height: 1.75;
}

@keyframes learningStepIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .learning-path-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
    gap: clamp(20px, 4vw, 34px) clamp(14px, 3vw, 24px);
  }

  .learning-path-step {
    min-height: 232px;
  }

  .learning-path-step:not(:last-of-type)::after {
    top: clamp(58px, 9vw, 82px);
    left: calc(-1 * clamp(46px, 7vw, 64px));
    width: clamp(64px, 11vw, 88px);
  }

  .learning-path-step:nth-of-type(2)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .learning-path-section {
    padding-block: 30px 42px;
  }

  .learning-path-heading {
    justify-items: start;
    text-align: right;
  }

  .learning-path-kicker {
    justify-self: start;
  }

  .learning-path-heading h2 {
    max-width: 360px;
    font-size: clamp(1.35rem, 6.2vw, 1.82rem);
  }

  .learning-path-steps {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-inline-start: 0;
  }

  .learning-path-step {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    min-height: 118px;
    padding: 12px 0;
    column-gap: 14px;
    text-align: right;
  }

  .learning-path-number {
    top: -2px;
    inset-inline-start: auto;
    inset-inline-end: 62px;
    min-width: 72px;
    font-size: clamp(2.45rem, 14vw, 3.9rem);
    opacity: 0.76;
    transform: rotate(-3deg);
  }

  .learning-path-step:nth-of-type(2n) .learning-path-number {
    transform: rotate(3deg);
  }
  .learning-path-illustration {
    grid-row: 1 / span 2;
    width: clamp(88px, 23vw, 108px);
    height: clamp(88px, 23vw, 108px);
    margin: 0;
    transform: translateY(-4px);
  }

  .learning-path-step h3 {
    align-self: end;
    margin: 0 0 3px;
    font-size: 1.08rem;
  }

  .learning-path-step p {
    max-width: 270px;
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .learning-path-step:nth-of-type(2)::after {
    display: block;
  }

  .learning-path-step:not(:last-of-type)::after {
    top: auto;
    right: 54px;
    bottom: -18px;
    left: auto;
    width: clamp(52px, 15vw, 66px);
    opacity: 0;
    transform: rotate(-84deg) translateY(8px) scaleX(-1);
  }

  .learning-path-section.is-in-view .learning-path-step:not(:last-of-type)::after {
    opacity: 0.48;
    transform: rotate(-84deg) translateY(0) scaleX(-1);
  }
}

@media (max-width: 420px) {
  

  .learning-path-step {
    column-gap: 12px;
  }

  .learning-path-number {
    inset-inline-end: 52px;
    min-width: 64px;
    font-size: clamp(2.35rem, 13vw, 3.45rem);
  }

  .learning-path-step:not(:last-of-type)::after {
    right: 46px;
    width: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .learning-path-step {
    animation: none !important;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .learning-path-step:not(:last-of-type)::after {
    opacity: 0.55;
    transform: none;
    transition: none;
  }

  }

/* page-flow-atmosphere: start */
.learning-path-section {
  background:
    linear-gradient(180deg,
      rgba(248, 251, 255, 0.34) 0%,
      rgba(243, 248, 253, 0.42) 54%,
      rgba(240, 247, 253, 0.4) 100%);
}

.learning-path-container {
  position: relative;
  z-index: 1;
}
/* page-flow-atmosphere: end */
