/* Modified version of the responsive timeline Foundation Building Block
   Original source: https://get.foundation/building-blocks/blocks/responsive-timeline.html
*/

.timeline .timeline-item::after,
.timeline .timeline-item::before {
  clear: both;
  content: "";
  display: block;
  width: 100%;
}

.timeline {
  margin: 30px auto;
  padding: 0 10px;
  position: relative;
  -webkit-transition: all 0.25s ease-in;
  -o-transition: all 0.25s ease-in;
  transition: all 0.25s ease-in;
  width: 100%;
}

.timeline::before {
  background: var(--color-accent);
  content: "";
  height: 90%;
  left: 50%;
  position: absolute;
  top: 0;
  width: 3px;
}

.timeline::after {
  clear: both;
  content: "";
  display: table;
  width: 100%;
}

.timeline a {
  color: #189ca1;
  font-weight: bold;
}

.timeline .timeline-item {
  margin-bottom: 50px;
  position: relative;
}

.timeline .timeline-item .timeline-icon {
  background: #189ca1;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  text-align: center;
  left: 50%;
  margin-left: -23px;
  overflow: hidden;
  position: absolute;
  top: 0;
  padding: 7px;
  font-weight: bold;
  font-size: 22px;
  color: var(--color-light);
}

.timeline .timeline-item .timeline-content {
  padding: 0 20px 20px 20px;
  text-align: right;
  -webkit-transition: all 0.25s ease-in;
  -o-transition: all 0.25s ease-in;
  transition: all 0.25s ease-in;
  width: 45%;
  background: transparent;
}

.timeline .timeline-item .timeline-content p {
  color: var(--color-dark);
}

.timeline .timeline-item .timeline-content p {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 0;
}

.timeline .timeline-item .timeline-content .timeline-content-date {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 0;
}

.timeline .timeline-item .timeline-content .timeline-content-month {
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 400;
}

.timeline .timeline-item .timeline-content.right {
  float: right;
  text-align: left;
}

@media screen and (max-width: 39.9375em) {
  .timeline {
    margin: 30px;
    padding: 0;
    width: 90%;
  }

  .timeline::before {
    left: 0;
  }

  .timeline .timeline-item .timeline-content {
    float: right;
    text-align: left;
    width: 90%;
  }

  .timeline .timeline-item .timeline-content::before,
  .timeline .timeline-item .timeline-content.right::before {
    border-left: 0;
    border-right: 7px solid #189ca1;
    left: 10%;
    margin-left: -6px;
  }

  .timeline .timeline-item .timeline-icon {
    left: 0;
  }
}
