.timeline {
  background-color: var(--background-grey);
  padding-block: 5em;
}
.timeline .text {
  text-transform: capitalize;
}
.timeline h2 {
  text-align: center;
  padding-bottom: 3em;
  padding-bottom: clamp(1.5em, 9vw, 3em);
}
.timeline .timeline-panel {
  position: relative;
}
.timeline .timeline-panel:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background-color: #000;
  z-index: 0;
}
.timeline .timeline-sections {
  display: flex;
  width: 53.2%;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 10em;
  padding-bottom: clamp(5em, 8vw, 10em);
  position: relative;
}
.timeline .timeline-sections:nth-child(even) {
  flex-direction: row-reverse;
  margin-left: auto;
  margin-right: 0;
}
.timeline .timeline-sections:nth-child(even) .description-text {
  margin-right: 0;
  margin-left: auto;
  padding-block: 3.5em;
  padding-block: clamp(1.3em, 3vw, 3.5em);
  padding-left: clamp(1em, 3vw, 4em);
  padding-right: clamp(1.5em, 3vw, 3em);
  -webkit-clip-path: polygon(7% 0, 100% 0%, 100% 100%, 6% 100%, 0% 50%);
          clip-path: polygon(7% 0, 100% 0%, 100% 100%, 6% 100%, 0% 50%);
  background-color: #fff;
}
.timeline .timeline-sections:nth-child(even) .years {
  display: flex;
  align-self: center;
  justify-self: center;
}
.timeline .timeline-sections:nth-child(odd) .description-text {
  margin-right: auto;
  margin-left: 0;
  padding-block: 3.5em;
  padding-block: clamp(1.3em, 3vw, 3.5em);
  padding-left: clamp(1em, 3vw, 2em);
  padding-right: clamp(1.5em, 3vw, 4em);
  -webkit-clip-path: polygon(0% 0%, 92% 0, 100% 50%, 91% 100%, 0% 100%);
          clip-path: polygon(0% 0%, 92% 0, 100% 50%, 91% 100%, 0% 100%);
  background-color: #fff;
}
.timeline .timeline-sections:nth-child(odd) .reveal-left-container {
  position: relative;
  width: 75%;
}
.timeline .timeline-sections .description-text {
  width: -moz-fit-content;
  width: fit-content;
  padding: 2em;
  padding: clamp(1.5em, 7vw, 2em);
  background-color: #fff;
}
.timeline .timeline-sections .description-text p {
  max-width: 50ch;
}
.timeline .timeline-sections .years {
  text-align: center;
  padding: 0.7em;
  padding: clamp(0.5em, 3vw, 0.7em);
  background-color: var(--background-grey);
  border-radius: 50%;
  z-index: 2;
}

@media (max-width: 1500px) {
  .timeline .reveal-left.active {
    transform: translateX(90%);
  }
  .timeline .timeline-panel:after {
    content: "";
    top: 0;
    bottom: 0;
    left: 5.5%;
  }
  .timeline .timeline-sections {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .timeline .timeline-sections .description-text {
    display: flex;
    align-items: flex-end;
  }
  .timeline .timeline-sections .reveal-left-container {
    width: 100%;
  }
  .timeline .timeline-sections:last-child {
    padding-bottom: 0;
  }
  .timeline .timeline-sections:nth-child(even) .description-text {
    margin-left: auto;
    margin-right: 0;
    text-align: center;
  }
  .timeline .timeline-sections:nth-child(odd) {
    flex-direction: row-reverse;
  }
  .timeline .timeline-sections:nth-child(odd) .description-text {
    margin-left: auto;
    margin-right: 0;
    text-align: center;
    -webkit-clip-path: polygon(7% 0, 100% 0%, 100% 100%, 6% 100%, 0% 50%);
            clip-path: polygon(7% 0, 100% 0%, 100% 100%, 6% 100%, 0% 50%);
  }
}
@media (max-width: 768px) {
  .timeline .reveal-left.active {
    transform: translateX(70%);
  }
}
@media (max-width: 600px) {
  .timeline .timeline-panel:after {
    left: 9%;
  }
}