/* Timeline Page*/
.timeline
{
    position: relative;
}

.timeline:before
{
    position: absolute;
    z-index: -1;
    /* Timeline center line */
    top: 35px;
    right: 50%;

    width: 3px;
    height: 100%;

    content: ' ';

    background-color: #eee;
}

.timeline > li
{
    position: relative;

    float: right;
    clear: right;

    width: 50%;
    /* timeline all list*/
    margin-bottom: 35px;
}

.timeline > li .timeline-panel
{
    position: relative;
    /* Time line panel */

    width: calc(100% - 43px);
}

.timeline > li .timeline-panel::before
{
    /* Triangle arrow for timeline panel*/
    position: absolute;
    top: 26px;
    left: -15px;

    display: inline-block;

    content: ' ';

    border-top: 15px solid transparent;
    border-right: 15px solid #ccc;
    border-bottom: 15px solid transparent;
    border-left: 0 solid #ccc;
}

.timeline > li .timeline-panel::after
{
    /* Triangle arrow for timeline panel*/
    position: absolute;
    top: 27px;
    left: -14px;

    display: inline-block;

    content: ' ';

    border-top: 14px solid transparent;
    border-right: 14px solid #fff;
    border-bottom: 14px solid transparent;
    border-left: 0 solid #fff;
}

.timeline > li .timeline-badge
{
    position: absolute;
    z-index: 8;
    top: 27px;
    left: -19px;
    /* Center icons icons container */

    width: 35px;
    height: 35px;

    text-align: center;

    border-radius: 50%;
}

.timeline > li .timeline-badge a i
{
    /*Icons inside Badges */
    font-size: 1.4rem;
    line-height: 35px;
}

.timeline > li.timeline-inverted
{
    /* Right side timline list*/
    float: left;
    clear: left;

    margin-top: 60px;
    margin-bottom: 50px;
}

.timeline > li.timeline-inverted .timeline-panel
{
    float: left;
}

.timeline > li.timeline-inverted .timeline-panel::before
{
    right: -15px;
    left: auto;

    border-right-width: 0;
    border-left-width: 15px;
}

.timeline > li.timeline-inverted .timeline-panel::after
{
    right: -14px;
    left: auto;

    border-right-width: 0;
    border-left-width: 14px;
}

.timeline > li.timeline-inverted .timeline-badge
{
    right: -15px;
}

.timeline > li .card .card-header
{
    /* Card header inside card */
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display:         flex;

    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
            align-items: center;
}

.timeline > li .card .card-text .flow-text
{
    font-size: 1.4rem;
}

.timeline > li .card .horizontal-avatar li
{
    /* Specific list inside card*/
    display: inline-block;

    margin-left: .9rem;
}

@media (max-width: 767px)
{
    /* media query for small screen  */
    .timeline::before
    {
        /* Center line*/
        right: 44px;
    }
    .timeline > li
    {
        position: relative;

        float: right;
        clear: right;

        width: 100%;
        /* All list inside timeline*/
        margin-bottom: 20px;
    }
    .timeline > li .timeline-panel
    {
        float: left;

        width: calc(100% - 90px);
    }
    .timeline > li .timeline-panel::before
    {
        right: -15px;
        left: auto;

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

        border-right-width: 0;
        border-left-width: 14px;
    }
    .timeline > li .timeline-badge
    {
        top: 22px;
        right: 28px;

        margin-right: 0;
    }
    .timeline > li.timeline-inverted
    {
        float: right;
        clear: right;

        margin-top: 30px;
        margin-bottom: 30px;
    }
    .timeline > li.timeline-inverted .timeline-badge
    {
        right: 28px;
    }
}
