.timeline-container {
  position: relative;
  margin: 120px auto 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--color2);
  z-index: 1;
}

.timeline-item {
  position: relative;
  text-align: center;
  width: 150px;
  margin: 20px;
  z-index: 2;
}

.timeline-point {
  width: 24px;
  height: 24px;
  background-color: var(--color2);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.timeline-description {
  position: absolute;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
  transform-origin: bottom center;
  color: var(--color2);
  width: 120px;
  font-size: 14px;
  word-wrap: break-word;
}

.timeline-year {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 15px;
  color: var(--color2);
  font-weight: bold;
}


@media (max-width: 700px) {
  .timeline-container {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 40px;
  }

  .timeline-line {
    top: 0;
    left: 38px;
    right: auto;
    height: 100%;
    width: 4px;
  }

  .timeline-item {
    width: auto;
    margin: 40px 0;
    text-align: left;
  }

  .timeline-point {
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
  }

  .timeline-description {
    position: relative;
    bottom: 10px;
    left: auto;
    transform: none;
    margin-left: 40px;
    margin-bottom: 4px;
    width: auto;
    rotate: none;
  }

  .timeline-year {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-left: 40px;
  }
}
