@media only screen and (min-width: 1170px) {
  .xp-is-hidden {
    visibility: hidden;
  }
}

.xp-timeline {
  overflow: hidden;
  margin: 2em auto;
}

.xp-timeline-container {
  position: relative;
  width: 90%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 2em 0;
}

.xp-timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  height: 100%;
  width: 4px;
  background: #CFD8DC;
  border-radius: 15px;
}

@media only screen and (min-width: 1170px) {
  .xp-timeline {
    margin-top: 3em;
    margin-bottom: 3em;
  }
  .xp-timeline-container::before {
    left: 50%;
    margin-left: -2px;
  }
}

.xp-timeline-block {
  position: relative;
  margin: 2em 0;
}

.xp-timeline-block:after {
  content: "";
  display: table;
  clear: both;
}

.xp-timeline-block:first-child {
  margin-top: 0;
}

.xp-timeline-block:last-child {
  margin-bottom: 0;
}

@media only screen and (min-width: 1170px) {
  .xp-timeline-block {
    margin: 4em 0;
  }
}

.xp-timeline-img {
  position: absolute;
  top: 0;
  left: 2px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #dbe5fd;
  border: 2px solid #4c7cf3;
}

.xp-timeline-img.xp-timeline-img-primary {
    background-color: #dbe5fd;
    border: 2px solid #4c7cf3;
}
.xp-timeline-img.xp-timeline-img-success {
    background-color: #a5ecc4;
    border: 2px solid #2bcd72;
}
.xp-timeline-img.xp-timeline-img-danger {
    background-color: #ffe4e6;
    border: 2px solid #ff4b5b;
}
.xp-timeline-img.xp-timeline-img-warning {
    background-color: #fef7e6;
    border: 2px solid #fac751;
}
.xp-timeline-img.xp-timeline-img-info {
    background-color: #c7ecee;
    border: 2px solid #52c4ca;
}
.xp-timeline-img.xp-timeline-img-secondary {
    background-color: #e9eaed;
    border: 2px solid #949CA9;
}
@media only screen and (min-width: 1170px) {
  .xp-timeline-img {
    width: 35px;
    height: 35px;
    left: 50%;    
    margin-left: -18px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .xp-timeline-img.xp-timeline-img--bounce-in {
    visibility: visible;
    -webkit-animation: xp-bounce-1 0.6s;
            animation: xp-bounce-1 0.6s;
  }
}

@-webkit-keyframes xp-bounce-1 {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
  }
  60% {
    opacity: 1;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes xp-bounce-1 {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
  }
  60% {
    opacity: 1;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

.xp-timeline-content {
  position: relative;
  margin-left: 60px;
  background: white;
  border-radius: 15px;
  padding: 1em;
  box-shadow: 0 0 30px 0 rgba(200, 200, 200, 0.2);
}

.xp-timeline-content:after {
  content: "";
  display: table;
  clear: both;
}

.xp-timeline-content::before {
  content: '';
  position: absolute;
  top: 7px;
  right: 100%;
  height: 0;
  width: 0;
  border: 10px solid transparent;
  border-right: 10px solid white;
}

.xp-timeline-content h4 {
  color: #555555;
  font-size: 16px;
}

.xp-timeline-content p {
  font-size: 14px;
  margin: 1em 0;
  line-height: 1.6;
}

.xp-timeline-readmore,
.xp-timeline-date {
  display: inline-block;
}

.xp-timeline-readmore {
  float: right;
  padding: .8em 1em;
  background: #acb7c0;
  color: white;
  border-radius: 0.25em;
}

.xp-timeline-date {
  float: left;
  padding: 0;
  font-size: 16px;
}

@media only screen and (min-width: 1170px) {
  .xp-timeline-content {
    margin-left: 0;
    padding: 1.6em;
    width: 45%;
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
  }
  .xp-timeline-content::before {
    top: 15px;
    left: 100%;
    border-color: transparent;
    border-left-color: white;
  }
  .xp-timeline-readmore {
    float: left;
  }
  .xp-timeline-date {
    position: absolute;
    width: 100%;
    left: 122%;
    top: 3px;
    font-size: 18px;
  }
  .xp-timeline-block:nth-child(even) .xp-timeline-content {
    float: right;
  }
  .xp-timeline-block:nth-child(even) .xp-timeline-content::before {
    top: 15px;
    left: auto;
    right: 100%;
    border-color: transparent;
    border-right-color: white;
  }
  .xp-timeline-block:nth-child(even) .xp-timeline-readmore {
    float: right;
  }
  .xp-timeline-block:nth-child(even) .xp-timeline-date {
    left: auto;
    right: 122%;
    text-align: right;
  }
  .xp-timeline-content.xp-timeline-content--bounce-in {
    visibility: visible;
    -webkit-animation: xp-bounce-2 0.6s;
            animation: xp-bounce-2 0.6s;
  }
}

@media only screen and (min-width: 1170px) {
  .xp-timeline-block:nth-child(even) .xp-timeline-content.xp-timeline-content--bounce-in {
    -webkit-animation: xp-bounce-2-inverse 0.6s;
            animation: xp-bounce-2-inverse 0.6s;
  }
}

@-webkit-keyframes xp-bounce-2 {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
            transform: translateX(-100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(20px);
            transform: translateX(20px);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@keyframes xp-bounce-2 {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
            transform: translateX(-100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(20px);
            transform: translateX(20px);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@-webkit-keyframes xp-bounce-2-inverse {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
            transform: translateX(100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(-20px);
            transform: translateX(-20px);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@keyframes xp-bounce-2-inverse {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
            transform: translateX(100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(-20px);
            transform: translateX(-20px);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}