.timeline {
  position: relative;
}

.timeline-item {
  position: relative;
}

.timeline-marker-wrapper {
  position: relative;
  width: 24px;
  flex: 0 0 24px;
  display: flex;
  justify-content: center;
}

.timeline-marker-wrapper::after {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 0;
  left: 50%;
  width: 3px;
  background-color: var(--color-primary);
  transform: translateX(-50%);
}

.timeline-marker {
  position: relative;
  z-index: 2;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 50%;
  background-color: var(--color-primary);
  flex-shrink: 0;
}

.timeline-item:not(:last-child) .timeline-marker-wrapper::after {
  bottom: -20px;
}

.timeline-item:last-child .timeline-marker-wrapper::after {
  display: none;
}

.timeline-date {
  line-height: 1.2;
}

.timeline-text > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .timeline-item > .col-3 {
    width: 80px;
    flex: 0 0 80px;
    padding-right: 15px !important;
  }

  .timeline-item > .col {
    padding-left: 15px !important;
    padding-bottom: 35px !important;
  }

  .timeline-marker-wrapper {
    width: 18px;
    flex-basis: 18px;
  }

  .timeline-marker {
    width: 12px;
    height: 12px;
  }

  .timeline-marker-wrapper::after {
    width: 2px;
    top: 16px;
  }
}
