.timeline {
  display: flex;
  flex-direction: column;
  /* margin: 15px auto; */
  position: relative;
}
.timeline__event {
  margin-bottom: 15px;
  position: relative;
  display: flex;
  margin: 15px 0;
  border-radius: 6px;
  align-self: center;
  width: 70vw;
}
.timeline__event:nth-child(2n) {
  flex-direction: row-reverse;
}
.timeline__event:nth-child(2n) .timeline__event__num {
  border-radius: 0 6px 6px 0;
}
.timeline__event:nth-child(2n) .timeline__event__content {
  border-radius: 6px 0 0 6px;
}
/* .timeline__event:nth-child(2n) .timeline__event__icon:before {
  content: "";
  width: 2px;
  height: 100%;
  min-height: 10rem;
  background: #87bbfe;
  position: absolute;
  top: 0%;
  left: auto;
  right: 50%;
  z-index: -1;
  transform: translateX(-50%);
  -webkit-animation: fillTop 2s forwards 6s ease-in-out;
          animation: fillTop 2s forwards 6s ease-in-out;
} */
.timeline__event:nth-child(2n) .timeline__event__icon:after {
  content: "";
  width: 100%;
  height: 2px;
  background: #87bbfe;
  position: absolute;
  z-index: -1;
  top: 50%;
  left: auto;
  right: 0%;
  transform: translateY(-50%);
  -webkit-animation: fillLeft 2s forwards 6s ease-in-out;
          animation: fillLeft 2s forwards 6s ease-in-out;
}
.timeline__event__title {
  font-size: 1.2rem;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 600;
  color: rgb(22, 60, 136);
  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: calc(65vw - 84px);
  border-radius: 0 6px 6px 0;
}
.timeline__event__num {
  color: #87bbfe;
  font-size: 1.5rem;
  font-weight: 600;
  background: rgb(22, 60, 136);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 20px;
  border-radius: 6px 0 0 6px;
}
.timeline__event__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0 20px;
  border-radius: 100%;
  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: 18px;
  height: 40px;
  position: relative;
}
.timeline__event__icon img {
  width: 50px;
  height: 50px;
}
/* .timeline__event__icon:before {
  content: "";
  width: 2px;
  height: 100%;
  background: #87bbfe;
  position: absolute;
  top: 0%;
  z-index: -1;
  left: 50%;
  transform: translateX(-50%);
} */
.timeline__event__icon:after {
  content: "";
  width: 100%;
  height: 2px;
  background: #87bbfe;
  position: absolute;
  left: 0%;
  z-index: -1;
  top: 50%;
  transform: translateY(-50%);
  -webkit-animation: fillRightEven 1s forwards 8s ease-in-out;
          animation: fillRightEven 1s forwards 8s ease-in-out;
}
.timeline__event__description {
  flex-basis: 60%;
}
.timeline__event__description .icon-cust {
  color: #163C88; 
}
.timeline__event--type2:after {
  background: rgb(22, 60, 136);
}
.timeline__event--type2 .timeline__event__num {
  color: #FFF;
  background: rgb(22, 60, 136);
}
.timeline__event--type2:nth-child(2n) .timeline__event__icon:before, .timeline__event--type2:nth-child(2n) .timeline__event__icon:after {
  background: rgb(22, 60, 136);
}
.timeline__event--type2 .timeline__event__icon {
  width: 10%;
  height: 100px;
  background: #FFF;
  color: rgb(22, 60, 136);
}
.timeline__event--type2 .timeline__event__icon:before, .timeline__event--type2 .timeline__event__icon:after {
  background: rgb(22, 60, 136);
}
.timeline__event--type2 .timeline__event__title {
  color: #000;
  font-weight: 700;
}
.timeline__event--type3:after {
  background: #24b47e;
}
.timeline__event--type3 .timeline__event__num {
  color: #aff1b6;
  background-color: #24b47e;
}
.timeline__event--type3:nth-child(2n) .timeline__event__icon:before, .timeline__event--type3:nth-child(2n) .timeline__event__icon:after {
  background: #aff1b6;
}
.timeline__event--type3 .timeline__event__icon {
  background: #aff1b6;
  color: #24b47e;
}
.timeline__event--type3 .timeline__event__icon:before, .timeline__event--type3 .timeline__event__icon:after {
  background: #aff1b6;
}
.timeline__event--type3 .timeline__event__title {
  color: #24b47e;
}
.timeline__event:last-child .timeline__event__icon:before {
  content: none;
}

@media (max-width: 786px) {
  .timeline__event {
    flex-direction: column;
    align-self: center;
    width: 80vw !important;
  }
  .moble-timeline__num{
    display: block !important;
    margin-left: 15px !important;
  }
  .timeline__event__content {
    width: 100%;
  }
  .timeline__event__icon {
    border-radius: 6px 6px 0 0;
    width: 100% !important;
    display: flex;
    justify-content: start;
    align-items: center;
    margin: 0;
    box-shadow: none;
    border-bottom: 2px solid rgb(22, 60, 136);
  }
  .timeline__event__icon:before, .timeline__event__icon:after {
    display: none;
  }

  .timeline__event__num {
    border-radius: 0;
    padding: 20px;
    display:none !important;
  }
  .timeline__event:nth-child(2n) {
    flex-direction: column;
    align-self: center;
  }
  .timeline__event:nth-child(2n) .timeline__event__num {
    border-radius: 0;
    padding: 20px;
  }
  .timeline__event:nth-child(2n) .timeline__event__icon {
    border-radius: 6px 6px 0 0;
    margin: 0;
  }
}
@-webkit-keyframes fillLeft {
  100% {
    right: 100%;
  }
}
@keyframes fillLeft {
  100% {
    right: 100%;
  }
}
@-webkit-keyframes fillTop {
  100% {
    top: 100%;
  }
}
@keyframes fillTop {
  100% {
    top: 100%;
  }
}
@-webkit-keyframes fillRightEven {
  100% {
    left: 100%;
  }
}
@keyframes fillRightEven {
  100% {
    left: 100%;
  }
}
