#timeline *, #timeline *:before, #timeline *:after {
  box-sizing: border-box;
}

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

#timeline {
  max-width: 1100px;
  width: 100%;
  margin: 30px auto;
  position: relative;
  padding: 0 10px;
  transition: all 0.4s ease;
}

#timeline:before {
  content: "";
  width: 3px;
  height: 100%;
  background: #9abd97;
  left: 50%;
  top: 0;
  position: absolute;
}

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

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

#timeline .timeline-item .timeline-icon {
  background: #9abd97;
  color: #FFF;
  text-align: center;
  font-size: 24px;
  line-height: 50px;
  width: 50px;
  height: 50px;
  position: absolute;
  top: 0;
  left: 50%;
  overflow: hidden;
  margin-left: -23px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05), 0 4px 10px rgba(0,0,0,0.05);
}

.timeline-icon div {
  background: url("../../assets/img/white-icon.svg") center no-repeat;
  background-size: 42px;
  width: 3rem;
  height: 3rem;
}

#timeline .timeline-item .timeline-icon i {
  line-height: 50px;
}

#timeline .timeline-item .timeline-content {
  width: 45%;
  background: #eee5ff;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05), 0 4px 10px rgba(0,0,0,0.05);
  border-radius: 0 1.5rem 0 1.5rem;
  transition: all 0.3s ease;
}

#timeline .timeline-item .timeline-content h4 {
  padding: 15px;
  background: #ae7fb6;
  color: #fff;
  margin: -20px -20px 10px -20px;
  font-weight: 300;
  border-radius: 0 1.5rem 0 0;
}

#timeline .timeline-item .timeline-content:before {
  content: '';
  position: absolute;
  left: 45%;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 7px solid #ae7fb6;
}

#timeline .timeline-item:nth-child(even) .timeline-content {
  float: right;
  border-radius: 1.5rem 0 1.5rem 0;
}

#timeline .timeline-item:nth-child(even) .timeline-content:before {
  content: '';
  right: 45%;
  left: inherit;
  border-left: 0;
  border-right: 7px solid #ae7fb6;
}

#timeline .timeline-item:nth-child(even) .timeline-content h4 {
  border-radius: 1.5rem 0 0 0;
}

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

@media screen and (max-width: 768px) {
  #timeline:before {
    left: 0;
  }
}

@media screen and (max-width: 768px) {
  #timeline .timeline-item .timeline-content {
    width: 90%;
    float: right;
  }
}

@media screen and (max-width: 768px) {
  #timeline .timeline-item .timeline-content:before, #timeline .timeline-item:nth-child(even) .timeline-content:before {
    left: 10%;
    margin-left: -6px;
    border-left: 0;
    border-right: 7px solid #ae7fb6;
  }
}

@media screen and (max-width: 768px) {
  #timeline .timeline-item .timeline-icon {
    left: 0;
  }
}

@media screen and (min-width: 1300px) {
  .service-box {
    max-width: 475px;
  }
}

