/**
 * Timeline Wrapper
 */

.timeline {
  position: relative;
  max-width: fit-content;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  display: block;
  width: 1px;
  position: absolute;
  top: 150px;
  bottom: 150px;
  left: 1px;
  border-left: 1px dashed var(--color-neutral--3);
}
@media all and (min-width: 1300px) {
  .timeline {
    position: relative;
    max-width: initial;
    margin: 0 auto;
  }
  .timeline::before {
    left: 50%;
    bottom: 250px;
    transform: translateX(-50%);
  }
}

/**
 * Timeline Item
 */

.timeline-item {
  padding: 1rem 0 2.5rem 2rem;
  position: relative;
  max-width: 360px;
}
.timeline-item::before {
  content: "";
  display: block;
  background-color: var(--color-neutral--3);
  border-radius: 100%;
  width: 7px;
  height: 7px;
  position: absolute;
  top: 50%;
  left: -2.5px;
}
.timeline-item:first-child:before {
  top: 150px;
}
.timeline-item:last-child:before {
  top: initial;
  bottom: 150px;
}
.timeline-item__text .title-xl {
  font-weight: 400;
  font-size: var(--stylized-title-xxl);
}
.timeline-item__text {
  margin: 1rem 0;
}
.timeline-item__text p {
  margin: 0;
}
@media all and (min-width: 750px) {
  .timeline-item {
    padding: 1rem 0 2.5rem 0;
    max-width: 700px;
    width: 100%;
    text-align: right;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
  }
  .timeline-item__text,
  .timeline-item__image {
    width: 47%;
  }
  .timeline-item__text {
    margin: 0;
  }
}
@media all and (min-width: 1100px) {
  .timeline-item {
    flex-direction: row;
  }
  .timeline-item:nth-child(2n+1) {
    flex-direction: row-reverse;
    text-align: left;
  }
}
@media all and (min-width: 1300px) {
  .timeline-item {
    width: 50%;
    margin: 0 0 0 auto;
  }
  .timeline-item:nth-child(2n+1) {
    margin: 0 auto 0 0;
  }
  .timeline-item::before {
    top: 50%;
    left: -4.5px;
  }
  .timeline-item:nth-child(2n+1)::before {
    right: -2.5px;
    left: initial;
  }
  .timeline-item:first-child:before {
    top: 150px;
  }
  .timeline-item:last-child:before {
    bottom: 250px;
  }
  .timeline-item__text {
    margin: 0 0 0 1rem;
  }
  .timeline-item:nth-child(2n+1) .timeline-item__text{
    margin: 0 1rem 0 0;
  }
}
