/* TIMELINE
  –––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline {
  white-space: nowrap;
  overflow-x: scroll;
}

.timeline ol {
  font-size: 0;
  width: 100vw;
  padding: 250px 0;
  transition: all 1s;
}

.timeline ol li {
  position: relative;
  display: inline-block;
  list-style-type: none;
  width: 300px;
  height: 2px;
  background: #000;
}

.timeline ol li:last-child {
  width: 280px;
}

.timeline ol li:not(:first-child) {
  margin-left: 14px;
}

.timeline ol li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 1px);
  bottom: 0;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #f45b69;
}

.timeline ol li div {
  position: absolute;
  left: calc(100% + 7px);
  width: 280px;
  padding: 15px;
  font-size: 1rem;
  white-space: normal;
  color: black;
  background: white;
}

.timeline ol li div::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
}

/**********/
.timeline ol li.topTimelineItem div {
  top: -16px;
  transform: translateY(-100%);
  border-left: 1px solid #000;
  padding-top: 0;
}

.timeline ol li.topTimelineItem div::before {
  top: 100%;
  border-width: 8px 8px 0 0;
  border-color: white transparent transparent transparent;
}

.timeline ol li.bottomTimelineItem div {
  top: calc(100% + 16px);
  border-left: 1px solid #000;
  padding-bottom: 0;
}

.timeline ol li.bottomTimelineItem div::before {
  top: -8px;
  border-width: 8px 0 0 8px;
  border-color: transparent transparent transparent white;
}
/**********/

.timeline h3 {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

/* Responsive TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (max-width: 767px) {
  .timeline ol,
  .timeline ol li {
    width: auto;
  }

  .timeline ol {
    padding: 0;

    transform: none !important;
  }

  .timeline ol li {
    display: block;

    height: auto;

    background: transparent;
  }

  .timeline ol li:first-child {
    margin-top: 25px;
  }

  .timeline ol li:not(:first-child) {
    margin-left: auto;
  }

  .timeline ol li div {
    position: static;

    width: 94%;

    height: auto !important;

    margin: 0 auto 25px;
  }

  .timeline ol li:nth-child(odd) div {
    transform: none;
  }

  .timeline ol li:nth-child(odd) div::before,
  .timeline ol li:nth-child(even) div::before {
    left: 50%;

    top: 100%;

    transform: translateX(-50%);

    border: none;

    border-left: 1px solid white;

    height: 25px;
  }

  .timeline ol li:last-child,
  .timeline ol li:nth-last-child(2) div::before,
  .timeline ol li:not(:last-child)::after,
  .timeline .arrows {
    display: none;
  }

  .timeline ol li:not(:last-child) > div::after {
    left: -12px !important;
    top: -24px !important;
    transform: none !important;
    width: 23px;
    height: 23px;


    content: "";
    position: absolute;
    border-radius: 50%;
    background: #f45b69;
  }

  .timeline ol li.topTimelineItem div {
    padding: 0 15px 40px 15px;
    transform: none;
    position: relative;
    left: 0 !important;
    margin-left: 12px;
    top: 0 !important;
  }
  
  .timeline ol li.bottomTimelineItem div {
    padding: 0 15px 40px 15px;
    position: relative;
    left: 0 !important;
    margin-left: 12px;
    top: 0 !important;
  }
}
