.education-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 660px;
  margin: 2.5em auto;
  padding: 0;
  list-style: none;
  text-align: center;
}

.education-path li {
  position: relative;
  margin: 0;
  padding-top: 26px;
}

.education-path li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #555;
  transform: translateX(-50%);
}

.education-path li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: calc(100% + 24px);
  height: 1px;
  background: #d8d8d8;
}

.education-path span,
.education-path strong {
  display: block;
}

.education-age,
.education-place {
  color: #666;
  font-size: 0.875rem;
}

.education-age {
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.education-path strong {
  font-weight: 600;
}

@media (max-width: 600px) {
  .education-path {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 260px;
    text-align: left;
  }

  .education-path li {
    padding: 0 0 0 25px;
  }

  .education-path li::before {
    top: 7px;
    left: 0;
    transform: none;
  }

  .education-path li:not(:last-child)::after {
    top: 11px;
    left: 4px;
    bottom: -27px;
    width: 1px;
    height: auto;
  }
}
