.timeline {
    display: flex;
    flex-direction: column;
    margin: 20px auto;
    position: relative;
  }
.timeline:before {
    content: "";
    width: 2px;
    height: calc(100% - 150px);
    background: #666;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 50px;
}
  .timeline__event {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    margin: 20px 0;
    border-radius: 6px;
    align-self: center;
    width: 57vw;
  }
  .timeline__event:nth-child(2n+1) {
    flex-direction: row-reverse;
  }
  .timeline__event:nth-child(2n+1) .timeline__event__date {
    border-radius: 0 6px 6px 0;
  }
  .timeline__event:nth-child(2n+1) .timeline__event__content {
    border-radius: 6px 0 0 6px;
  }
  .timeline__event:nth-child(2n+1) .timeline__event__icon:before {
    content: "";
    width: 2px;
    height: calc(100% + 66px);
    background: #c97777;
    position: absolute;
    top: 0%;
    left: 50%;
    right: auto;
    z-index: 0;
    transform: translateX(-50%);
    -webkit-animation: fillTop 2s forwards 4s ease-in-out;
            animation: fillTop 2s forwards 4s ease-in-out;
  }
  .timeline__event:nth-child(2n+1) .timeline__event__icon:after {
    content: "";
    width: 100%;
    height: 2px;
    background: #c97777;
    position: absolute;
    right: 0;
    z-index: 0;
    top: 50%;
    left: auto;
    transform: translateY(-50%);
    -webkit-animation: fillLeft 2s forwards 4s ease-in-out;
            animation: fillLeft 2s forwards 4s ease-in-out;
  }
  .timeline__event__title {
	font-size: 1rem;
	line-height: 1.4;
	/* text-transform: uppercase; */
	font-weight: 600;
	color: #464646;
	letter-spacing: 0;
}
.timeline__event__title h2 {
	font-size: 21px;
	margin: 8px 0 10px;
}
.timeline__event__title ul{
    margin: 0;
  list-style: none;
  padding: 0;
}
  .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: calc(46vw - 84px);
    min-height: 115px;
    border-radius: 0 6px 6px 0;
    z-index: 1;
  }
  .timeline__event__date {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    background: #bb3b3b;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0 20px;
    border-radius: 6px 0 0 6px;
    z-index: 1;
  }
  .timeline__event__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9251ac;
    padding: 20px;
    align-self: center;
    margin: 0 20px;
    background: #c97777;
    border-radius: 100%;
    width: 40px;
    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);
    padding: 40px;
    height: 40px;
    position: relative;
  }
  .timeline__event__icon i {
    font-size: 32px;
  }
  .timeline__event__icon:before {
    content: "";
    width: 2px;
    height:calc(100% + 264%);
    background: #c97777;
    position: absolute;
    top: 0%;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    -webkit-animation: fillTop 2s forwards 4s ease-in-out;
            animation: fillTop 2s forwards 4s ease-in-out;
  }
  .timeline__event__icon:after {
    content: "";
    width: 100%;
    height: 2px;
    background: #c97777;
    position: absolute;
    left: 0%;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
    -webkit-animation: fillLeftOdd 2s forwards 4s ease-in-out;
            animation: fillLeftOdd 2s forwards 4s ease-in-out;
  }
  .timeline__event__description {
    flex-basis: 100%;
  }
  .timeline__event--type2:after {
    background: #555ac0;
  }
  .timeline__event--type2 .timeline__event__date {
	color: #fff;
	background: #3f3bab;
}
  .timeline__event--type2:nth-child(2n+1) .timeline__event__icon:before, .timeline__event--type2:nth-child(2n+1) .timeline__event__icon:after {
    background: #8b89c1;
  }
  .timeline__event--type2 .timeline__event__icon {
    background: #8b89c1;
    color: #555ac0;
  }
  .timeline__event--type2 .timeline__event__icon:before, .timeline__event--type2 .timeline__event__icon:after {
    background: #8b89c1;
  }

  .timeline__event--type3:after {
    background: #2a2934;
  }
  .timeline__event--type3 .timeline__event__date {
    color: #fff;
    background-color: #2a2934;
  }
  .timeline__event--type3:nth-child(2n+1) .timeline__event__icon:before, .timeline__event--type3:nth-child(2n+1) .timeline__event__icon:after {
    background: #707571;
  }
  .timeline__event--type3 .timeline__event__icon {
    background: #707571;
    color: #2a2934;
  }
  .timeline__event--type3 .timeline__event__icon:before, .timeline__event--type3 .timeline__event__icon:after {
    background: #707571;
  }

  .timeline__event:last-child .timeline__event__icon:before {
    content: none;
  }
  
  @media (max-width: 786px) {
    .timeline__event {
      flex-direction: column;
      align-self: center;
    }
    .timeline__event__content {
      width: 100%;
    }
    .timeline__event__icon {
      border-radius: 6px 6px 0 0;
      width: 100%;
      margin: 0;
      box-shadow: none;
    }
    .timeline__event__icon:before, .timeline__event__icon:after {
      display: none;
    }
    .timeline__event__date {
      border-radius: 0;
      padding: 20px;
    }
    .timeline__event:nth-child(2n+1) {
      flex-direction: column;
      align-self: center;
    }
    .timeline__event:nth-child(2n+1) .timeline__event__date {
      border-radius: 0;
      padding: 20px;
    }
    .timeline__event:nth-child(2n+1) .timeline__event__icon {
      border-radius: 6px 6px 0 0;
      margin: 0;
    }
  }
  @media (max-width: 767px) {
  .timeline__event {

    width: 98%;
    margin: 0 auto;
}
.timeline__event__icon{
    display: none;
}
.timeline__event .timeline__event__date {
    border-radius: 10px 10px 0 0 !important;
}
.timeline__event .timeline__event__content {
    border-radius: 0 0 6px 6px !important;
    margin-bottom: 40px !important;
}
      
      .timeline__event__title li {
    margin-bottom: 17px;
    font-size: 15px;
}
     .timeline__event__title h2 {
    font-size: 18px;
} 

  }

  @-webkit-keyframes fillLeft {
    100% {
      right: 100%;
    }
  }
  @keyframes fillLeft {
    100% {
      right: 100%;
    }
  }
  @-webkit-keyframes fillTop {
    100% {
      top: 100%;
    }
  }
  @keyframes fillTop {
    100% {
      top: 100%;
    }
  }
  @-webkit-keyframes fillLeftOdd {
    100% {
      left: 100%;
    }
  }
  @keyframes fillLeftOdd {
    100% {
      left: 100%;
    }
  }