.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}
.timeline__event {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  margin: 20px 0;
  border-radius: 15px;
  align-self: center;
  width: 100%;
}

.timeline__event:nth-child(2n) {
  flex-direction: row-reverse;
  padding-left: 50px;
}

.timeline__event:nth-child(2n) .timeline__event__date {
  border-radius: 0 15px 15px 0;
}

.timeline__event:nth-child(2n) .timeline__event__content {
  border-radius: 15px 0 0 15px;
}

.timeline__event__title {
  font-size: 18px;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 1.5px;
}
.timeline__event__content {
  padding: 20px;
  box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3), 0 -12px 36px -8px rgba(0, 0, 0, 0.025);
  background: #fff;
  width: 100%;
  border-radius: 0 15px 15px 0;
}
.timeline__event__date {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 20px;
  border-radius: 15px 0 0 15px;
}

.timeline__event:nth-child(2n)::before,
.timeline__event:nth-child(2n+1)::before
 {
	content: "";
	width: 3px;
	height: 100%;
	background: var(--seventh);
	position: absolute;
	top: 50%;
	z-index: -1;
}

.timeline__event:nth-child(2n)::before {
  right: 150px;
}

.timeline__event:nth-child(2n+1)::before {
  left: 150px;
}



.timeline__event:last-child::before {content: none;}

.timeline__event__description {
  flex-basis: 100%;
}

@media (max-width: 768px) {
  .timeline__event {
    flex-direction: column;
    align-self: center;
  }
  .timeline__event__content {
    border-radius: 0 0 15px 15px;
    width: 100%;
  }
  .timeline__event__date {
    border-radius:15px 15px 0 0;
    padding: 20px;
  }
  .timeline__event:nth-child(2n) {
    flex-direction: column;
    align-self: center;
    padding-left: 0px;
  }
  .timeline__event:nth-child(2n) .timeline__event__date {
    border-radius:15px 15px 0 0;
    padding: 20px;
  }
  .timeline__event:nth-child(2n+1)::before {
	left: 50%;
}
.timeline__event:nth-child(2n)::before {
	right: 50%;
}

}
