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

#timeline {
  width: 100%;
  margin: 30px auto;
  position: relative;
  padding: 0 10px; }
  #timeline:before {
    content: "";
    width: 3px;
    height: 76%;
    background: var(--primary);
    left: 50%;
    top: 5px;
    position: absolute; }
  #timeline:after {
    content: "";
    clear: both;
    display: table;
    width: 100%; }
  #timeline .tl-progress {
    height: 0%;
    width: 5px;
    background-color: var(--primary);
    position: absolute;
    left: 50%;
    transform: translateX(-1px); }
  #timeline .timeline-item {
    margin-bottom: 50px;
    position: relative; }
    #timeline .timeline-item .timeline-icon {
      display: flex;
      justify-items: center;
      background: var(--primary);
      width: 50px;
      height: 50px;
      position: absolute;
      top: 0;
      left: 50%;
      overflow: hidden;
      margin-left: -23px;
      -webkit-border-radius: 50%;
      -moz-border-radius: 50%;
      -ms-border-radius: 50%;
      border-radius: 50%; }
      #timeline .timeline-item .timeline-icon i {
        color: white;
        margin: auto; }
        #timeline .timeline-item .timeline-icon i:before {
          font-size: 25px;
          margin: auto; }
      #timeline .timeline-item .timeline-icon svg {
        position: relative;
        top: 14px;
        left: 14px; }
    #timeline .timeline-item .timeline-content {
      width: 45%;
      background: #fff;
      padding: 20px;
      -webkit-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
      -moz-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
      -ms-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
      box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
      -webkit-border-radius: 5px;
      -moz-border-radius: 5px;
      -ms-border-radius: 5px;
      border-radius: 5px; }
      #timeline .timeline-item .timeline-content h2 {
        padding: 15px;
        background: var(--primary);
        color: #fff;
        margin: -20px -20px 0 -20px;
        font-weight: 300;
        text-align: center;
        -webkit-border-radius: 3px 3px 0 0;
        -moz-border-radius: 3px 3px 0 0;
        -ms-border-radius: 3px 3px 0 0;
        border-radius: 3px 3px 0 0; }
      #timeline .timeline-item .timeline-content:before {
        content: '';
        position: absolute;
        left: 100%;
        top: 20px;
        width: 0;
        height: 0;
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        border-left: 7px solid var(--primary); }
      #timeline .timeline-item .timeline-content.right {
        float: right; }
        #timeline .timeline-item .timeline-content.right:before {
          content: '';
          right: 100%;
          left: inherit;
          border-left: 0;
          border-right: 7px solid var(--primary); }

@media screen and (max-width: 768px) {
  #timeline {
    margin: 30px;
    padding: 0px;
    width: 90%; }
    #timeline:before {
      left: -4px; }
    #timeline .tl-progress {
      left: -4px; }
    #timeline .timeline-item .timeline-content {
      width: 90%;
      float: right; }
      #timeline .timeline-item .timeline-content:before, #timeline .timeline-item .timeline-content.right:before {
        left: 0;
        transform: translateY(-5px);
        margin-left: -6px;
        border-left: 0;
        border-right: 7px solid var(--primary); }
    #timeline .timeline-item .timeline-icon {
      left: 0;
      width: 40px;
      height: 40px; }
      #timeline .timeline-item .timeline-icon i:before {
        font-size: 16px; } }
