.custom-timeline {
  position: relative;
}
.timeline-arrow {
  position: absolute;
  top: 39px;
  left: 0;
  right: 11px;
  height: 5px;
  background: black;
}
.timeline-arrow::after {
  content: "";
  position: absolute;
  right: -11px;
  top: -5px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 22px solid black;
}
.timeline-items {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}
.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 0;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  background: black;
  border-radius: 50%;
  margin-bottom: 8px;
  margin-top: 8px;
  z-index: 3;
}
.timeline-time {
  color: #ae1f24;
  font-size: 18px;
  font-weight: 500;
}
.timeline-title {
  color: black;
  font-size: 18px;
  font-weight: 500;
}

@media (max-width: 767px) {
  .timeline-items {
    flex-direction: column-reverse;
    gap: 32px;
    margin-bottom: 4rem;
  }
  .timeline-arrow {
    height: 100%;
    width: 4px;
    left: calc(30% + 20px);
    right: auto;
    top: 8px;
    bottom: 0;
  }
  .timeline-arrow::after {
    left: -5px;
    right: auto;
    top: -15px;
    bottom: auto;
    border-left: none;
    border-top: none;
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    border-bottom: 18px solid #282424;
  }
  .timeline-item {
    flex-direction: row;
    align-items: center;
    width: 100%;
    min-width: 0;
    text-align: left;
  }
  .timeline-time {
    flex: 0 0 auto;
    width: 30%;
    text-align: right;
  }
  .timeline-dot {
    flex: 0 0 auto;
    margin-left: 16px;
    margin-right: 16px;
  }
  .timeline-title {
    flex: 1 1 auto;
  }
}
