.timeline {
  list-style: none;
  padding: 20px 0 20px;
  position: relative;
}
.timeline:before {
  top: 0;
  bottom: 0;
  position: absolute;
  content: " ";
  width: 2px;
  background-color: #cbcbcb;
  left: 50%;
  margin-left: -1.5px;
}
.timeline > li {
  margin-bottom: 20px;
  position: relative;
  width: 50%;
  float: left;
  clear: left;
}
.timeline > li:before,
.timeline > li:after {
  content: " ";
  display: table;
}
.timeline > li:after {
  clear: both;
}
.timeline > li:before,
.timeline > li:after {
  content: " ";
  display: table;
}
.timeline > li:after {
  clear: both;
}
.timeline > li > .timeline-panel {
  width: 95%;
  float: left;
  border: 1px solid #d4d4d4;
  position: relative;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.timeline > li > .timeline-panel:before {
  position: absolute;
  top: 23px;
  right: -11px;
  display: inline-block;
  border-top: 10px solid transparent;
  border-left: 10px solid #ccc;
  border-right: 0 solid #ccc;
  border-bottom: 10px solid transparent;
  content: " ";
}
.timeline > li > .timeline-panel:after {
  position: absolute;
  top: 18px;
  right: -8px;
  display: inline-block;
  border-top: 10px solid transparent;
  border-left: 10px solid #773683;
  border-right: 0 solid #773683;
  border-bottom: 10px solid transparent;
  content: " ";
}
.timeline > li > .timeline-badge {
  color: #fff;
  width: 19px;
  height: 19px;
  line-height: 50px;
  font-size: 1.4em;
  text-align: center;
  position: absolute;
  top: 20px;
  right: -10px;
  background-color: #ffffff;
  z-index: 100;
  border-radius: 100%;
}
.timeline > li > .timeline-badge::before {
    content: "";
    display: block;
    background-color: #187096;
    top: 4px;
    left: 4px;
    bottom: 4px;
    right: 4px;
    border-radius: 50px;
    position: absolute;
}

.timeline > li:nth-child(2n+2) > .timeline-panel {
  float: right;
}

.timeline > li:nth-child(2n+2) > .timeline-panel:before {
  border-left-width: 0;
  border-right-width: 10px;
  left: -10px;
  right: auto;
}
.timeline > li:nth-child(2n+2) > .timeline-panel:after {
  border-left-width: 0;
  border-right-width: 10px;
  left: -8px;
  right: auto;
}
.timeline-title {
  margin-top: 0;
  color: inherit;
}
.timeline-body > p,
.timeline-body > ul {
    padding:20px;
    margin-bottom: 0;
}

.timeline-body {
    /* background-color: #fff; */
}

.timeline-body .date {
    background-color: #773683;
    color: #fff;
    padding: 11px 10px;
    font-size: 145%;
    margin: 0 0 3px 0;
    text-align: center;
    font-weight: 400;
    border-radius: 50px;
}

.timeline-body .stitle {
    padding: 0 15px;
    color: #a96500;
    font-size: 95%;
}

.timeline-body .title {
    padding: 5px 15px;
    font-weight: bold;
    font-size: 110%;
    color: #000;
    letter-spacing: 1px;
}

.timeline-body .info {
    padding: 0 15px 15px 15px;
    letter-spacing: 1px;
    line-height: 160%;
}

.timeline-body .pic {
    padding: 10px 10px;
}

.timeline-body .pic img {
    max-width: 100%;
    padding: 7px;
    border: 1px #cacbcc solid;
}
.timeline-body > p + p {
  margin-top: 5px;
}
.timeline-footer{
    padding:20px;
    background-color:#f4f4f4;
}
.timeline-footer > a{
    cursor: pointer;
    text-decoration: none;
}
.timeline > li:nth-child(2n+2){
  float: right; 
  clear: right;
  margin-top: 30px;
  margin-bottom: 30px;
}
.timeline > li:nth-child(2){
  margin-top: 60px;
}
.timeline > li:nth-child(2n+2) > .timeline-badge{
  left: -9px;
}

@media (max-width: 767px) {
    ul.timeline:before {
        left: 40px;
    }

    ul.timeline > li {
      margin-bottom: 20px;
      position: relative;
      width:100%;
      float: left;
      clear: left;
    }
    ul.timeline > li > .timeline-panel {
        width: -webkit-calc(100% - 70px);
        width: -webkit-calc(100% - 70px);
        width: -webkit-calc(100% - 70px);
    }

    ul.timeline > li > .timeline-badge {
        left: 28px;
        margin-left: 0;
        top: 20px;
    }

    ul.timeline > li > .timeline-panel {
        float: right;
    }

        ul.timeline > li > .timeline-panel:before {
            border-left-width: 0;
            border-right-width: 15px;
            left: -15px;
            right: auto;
        }

        ul.timeline > li > .timeline-panel:after {
            border-left-width: 0;
            border-right-width: 14px;
            left: -14px;
            right: auto;
        }
    
.timeline > li:nth-child(2n+2){
  float: left; 
  clear: left;
  margin-top: 30px;
  margin-bottom: 30px;
}

.timeline > li:nth-child(2n+2) > .timeline-badge{
  left: 28px;
}
}