.time {
  display: block;
}

/* 
********
TIMELINE
********
*/

.timeline {
  padding: 5rem 0;
  position: relative;
}

/*.timeline::after {*/
/*  content: '';*/
/*  position: absolute;*/
/*  bottom: 0;*/
/*  left: 0;*/
/*  width: 100%;*/
/*  height: 100%;*/
/*  background: linear-gradient(to bottom, #06060600, #FFF);*/
/*  pointer-events: none;*/
/*  max-height: 650px;*/
/*}*/

.timeline ul {
  position: relative;
}

.timeline ul::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #06060600, #FFFFFFA3);
  pointer-events: none;
  max-height: 650px;
}

.timeline ul li {
  background: #7070706e;
  width: 1.2px;
  position: relative;
  margin: 0 auto;
  padding-bottom: 5rem;
  transition: all 0.5s ease-in-out;
}

.timeline ul li:nth-last-child(-n + 1) {
  background: white;
}

.timeline ul li:nth-last-child(-n + 2) {
    z-index: 5;
}

.timeline ul li::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: #84BD00;
    background-image: url('../svg/icon-milestone.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.timeline ul li div {
  position: relative;
  width: 50rem;
  padding: 3rem;
  /*min-height: 330px;*/
}

.timeline ul li div::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline ul li:nth-child(even) div {
  left: 3.5rem;
}

.timeline ul li:nth-child(even) div::before {
  left: -1.5rem;
  border-width: 0rem 1.6rem 2rem 0;
  border-color: transparent #FFF transparent transparent;
}

.timeline ul li:nth-child(odd) div {
  left: -53rem;
}

.timeline ul li:nth-child(odd) div::before {
  right: -1.5rem;
  border-width: 0rem 0 2rem 1.6rem;
  border-color: transparent transparent transparent #FFF;
}


.milestone-item-wrapper {
  position: relative;
  display: flex;
}

.milestone-item-wrapper img {
  position: absolute;
  top: -110px;
  right: 0;
  display: block;
  border-radius: 1rem;
  transition: all 0.5s ease-in-out;
}

.milestone-item {
    display: none;
    transition: all 0.5s ease-in-out;
    animation: fadeIn 3s;
    -webkit-animation: fadeIn 3s;
    -moz-animation: fadeIn 3s;
    -o-animation: fadeIn 3s;
    -ms-animation: fadeIn 3s;
}

.milestone-item-box {
    animation: fadeIn 3s;
    -webkit-animation: fadeIn 3s;
    -moz-animation: fadeIn 3s;
    -o-animation: fadeIn 3s;
    -ms-animation: fadeIn 3s;
}


  @keyframes fadeIn {
    0% {
      opacity: 0;
    }

    100% {
      opacity: 1;
    }
  }


/* 
*******
EFFECTS
*******
*/

.timeline ul li::after {
  transition: background 0.5s ease-in-out all;
}

/*.timeline ul li.in-view::after {*/
/*  background: #8ABB2A;*/
/*}*/

.timeline ul li div {
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.timeline ul li:nth-child(even) div {
  transform: translate3d(200px, 0, 0);
}

.timeline ul li:nth-child(odd) div {
  transform: translate3d(-200px, 0, 0);
}

.timeline ul li.in-view div {
  transform: none;
  visibility: visible;
  opacity: 1;
  transition: all 0.5s ease-in-out;
}

/* 
*************
MEDIA QUERIES
*************
*/
@media screen and (max-width: 767px) {
  .timeline ul li div {
    width: calc(100vw - 125px);
  }

}


@media screen and (max-width: 1024px) {
  .timeline ul li {
    margin-left: 20px;
  }
  
  .timeline .in-view .text-base {
      font-size: 1.3rem !important;
    }

    .timeline ul li div {
      width: calc(80vw - 35px);
    }

  .timeline ul li:nth-child(odd) div {
    left: 35px;
  }

  .timeline ul li:nth-child(odd) div::before {
    left: -15px;
    border-width: 8px 16px 8px 0;
    border-color: transparent transparent transparent #FFF;
  }
  
  .milestone-item-wrapper {
      position: relative;
      display: flex;
      flex-direction: column !important;
      gap: 1rem !important;
    }
  
  .milestone-item-wrapper img {
      position: relative !important;
      top: unset !important;
      right: unset !important;
      border-radius: 1rem !important;
      order: -2 !important;
    }
}