/** timeline box structure **/

.timeline {
    list-style: none;
    padding: 20px 0 20px;
    position: relative;
}
.timeline:before {
    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 2px;
    background-color: #eee;
    left: 50%;
    margin-left: -1.5px;
    margin-top: -10px;
}
.tldate {
    display: block;
    width: 200px;
    background: #050505;
    border: none;
    color: white;
    margin: 0 auto;
    padding: 5px 0;
    text-align: center;
}
.timeline li {
    margin-bottom: 25px;
    position: relative;
}
.timeline li:before, .timeline li:after {
    content: " ";
    display: table;
}
.timeline li:after {
    clear: both;
}
.timeline li:before, .timeline li:after {
    content: " ";
    display: table;
}

/** timeline panels **/

.timeline li .timeline-panel {
    width: 46%;
    float: left;
    background: white;
    border: 1px solid #050505;
    padding: 20px;
    position: relative;
}

/** panel arrows **/

.timeline li .timeline-panel:before {
    position: absolute;
    top: 26px;
    right: -15px;
    display: inline-block;
    border-top: 15px solid transparent;
    border-left: 15px solid #050505;
    border-right: 0 solid #050505;
    border-bottom: 15px solid transparent;
    content: " ";
}
.timeline li .timeline-panel:after {
    position: absolute;
    top: 27px;
    right: -14px;
    display: inline-block;
    border-top: 14px solid transparent;
    border-left: 14px solid #fff;
    border-right: 0 solid #fff;
    border-bottom: 14px solid transparent;
    content: " ";
}
.timeline li .timeline-panel.noarrow:before, .timeline li .timeline-panel.noarrow:after {
    top: 0;
    right: 0;
    display: none;
    border: 0;
}
.timeline li.timeline-inverted .timeline-panel {
    float: right;
}
.timeline li.timeline-inverted .timeline-panel:before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
}
.timeline li.timeline-inverted .timeline-panel:after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -14px;
    right: auto;
}

/** timeline circle icons **/

.timeline li .tl-circ {
    position: absolute;
    top: 26px;
    left: 50%;
    text-align: center;
    background: #050505;
    color: #fff;
    width: 30px;
    height: 30px;
    line-height: 30px;
    margin-left: -16px;
    border: none;
    border-top-right-radius: 50%;
    border-top-left-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
    z-index: 10;
}

/** timeline content **/

.tl-heading h4 {
    margin: 0;
    color: #050505;
}
.tl-body p, .tl-body ul {
    margin-bottom: 0;
}
.tl-body > p + p {
    margin-top: 5px;
}

/** media queries **/

@media (max-width: 991px) {
    .timeline li .timeline-panel {
        width: 44%;
    }
}
@media (max-width: 700px) {
    .page-header h1 {
        font-size: 1.8em;
    }
    ul.timeline:before {
        left: 40px;
    }
    .tldate {
        width: 140px;
    }
    ul.timeline li .timeline-panel {
        width: calc(100% - 90px);
        width: -moz-calc(100% - 90px);
        width: -webkit-calc(100% - 90px);
    }
    ul.timeline li .tl-circ {
        top: 22px;
        left: 22px;
        margin-left: 0;
    }
    ul.timeline > li > .tldate {
        margin: 0;
    }
    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;
    }
}
