.learning-process-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 15%, rgba(255, 196, 92, 0.13), transparent 24%),
    radial-gradient(circle at 95% 75%, rgba(85, 70, 232, 0.09), transparent 26%),
    #fffaf5;
}

.learning-process-heading {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.learning-process-heading .section-intro {
  margin-top: 0.85rem;
}

.learning-journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 3.2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: learning-step;
}

.learning-journey::before {
  content: "";
  position: absolute;
  top: 53px;
  right: 9%;
  left: 9%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(85, 70, 232, 0.18),
    rgba(85, 70, 232, 0.7),
    rgba(255, 122, 97, 0.55)
  );
}

.learning-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 280px;
  padding: 1.15rem 1.05rem 1.35rem;
  border: 1px solid rgba(85, 70, 232, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(47, 38, 69, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.learning-step:hover {
  box-shadow: 0 23px 48px rgba(47, 38, 69, 0.14);
  transform: translateY(-7px);
}

.learning-step:nth-child(2),
.learning-step:nth-child(4) {
  margin-top: 1.3rem;
}

.learning-step-number {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  color: rgba(85, 70, 232, 0.55);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.learning-step-icon {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin: 0 auto 1.35rem;
  border: 6px solid #fff;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--cobalt), #7566f5);
  box-shadow:
    0 0 0 4px rgba(85, 70, 232, 0.1),
    0 14px 28px rgba(85, 70, 232, 0.23);
  font-size: 1.6rem;
  transform: rotate(-4deg);
}

.learning-step:nth-child(even) .learning-step-icon {
  background: linear-gradient(135deg, #ff805f, #ffad67);
  box-shadow:
    0 0 0 4px rgba(255, 122, 97, 0.11),
    0 14px 28px rgba(255, 122, 97, 0.21);
  transform: rotate(4deg);
}

.learning-step h3 {
  margin-bottom: 0.6rem;
  font-size: 1.06rem;
  letter-spacing: -0.025em;
}

.learning-step p {
  margin: 0;
  color: #68626f;
  font-size: 0.8rem;
  line-height: 1.6;
}

.learning-process-note {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  margin: 1.7rem auto 0;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(85, 70, 232, 0.1);
  border-radius: 999px;
  color: #625e69;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

.learning-process-note i {
  color: var(--cobalt);
  font-size: 1rem;
}

@media (max-width: 991.98px) {
  .learning-journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .learning-journey::before {
    display: none;
  }

  .learning-step,
  .learning-step:nth-child(2),
  .learning-step:nth-child(4) {
    min-height: 250px;
    margin-top: 0;
  }

  .learning-step:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 0.5rem);
    justify-self: center;
  }
}

@media (max-width: 575.98px) {
  .learning-journey {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 2rem;
  }

  .learning-step,
  .learning-step:nth-child(2),
  .learning-step:nth-child(4),
  .learning-step:last-child {
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-columns: 68px minmax(0, 1fr);
    column-gap: 1rem;
    justify-self: stretch;
    padding: 1rem;
    text-align: left;
  }

  .learning-step-icon {
    width: 62px;
    height: 62px;
    grid-row: 1 / 3;
    margin: 0;
    border-width: 4px;
    border-radius: 19px;
    font-size: 1.25rem;
  }

  .learning-step h3 {
    align-self: end;
    margin: 0 2.2rem 0.25rem 0;
  }

  .learning-step p {
    grid-column: 2;
  }

  .learning-step-number {
    top: 0.85rem;
    right: 0.85rem;
  }

  .learning-process-note {
    border-radius: 18px;
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .learning-step {
    transition: none;
  }
}
