/*-----
Post Timeline Styles
-----*/

.sa-el-post-timeline {
    margin-bottom: 0;
    min-height: 100%;
    overflow: hidden;
    position: relative;
}

.sa-el-timeline-column {
    width: 50%;
    margin-left: 0;
    float: left;
    margin-top: 0 !important;
}

.sa-el-timeline-post {
    position: relative;
}

.sa-el-timeline-post:after {
    background-color: rgba(83, 85, 86, 0.2);
    content: "";
    width: 2px;
    height: 245px;
    position: absolute;
    right: 0;
    top: 70px;
}

.sa-el-timeline-post:nth-child(2n):after {
    display: none;
}

.sa-el-timeline-bullet {
    background-color: #9fa9af;
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 0 1px rgba(0, 0, 0, 0.1);
    content: "";
    height: 20px;
    position: absolute;
    right: -9px;
    top: 60px;
    width: 20px;
    z-index: 3;
    cursor: pointer;
}

.sa-el-timeline-post:nth-child(2n) .sa-el-timeline-bullet {
    background-color: #9fa9af;
    border: 5px solid #fff;
    border-radius: 50%;
    bottom: 36px;
    height: 20px;
    left: -11px;
    position: absolute;
    top: 300px;
    width: 20px;
    z-index: 3;
}

.sa-el-timeline-post-inner {
    background: linear-gradient(45deg, #3f3f46 0%, #05abe0 100%) repeat scroll 0 0 transparent;
    border: 8px solid #e5eaed;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.15);
    float: right;
    margin: 30px 40px 30px auto;
    position: relative;
    height: 320px;
    width: calc(100% - 40px);
}

.sa-el-timeline-post:nth-child(even) .sa-el-timeline-post-inner {
    float: left;
    margin-left: 40px;
}

.sa-el-timeline-post-inner:after {
    border-color: transparent transparent transparent #e5eaed;
    border-style: solid;
    border-width: 15px;
    content: "";
    height: 0;
    position: absolute;
    right: -36px;
    top: 17px;
    width: 0;
}

.sa-el-timeline-post:nth-child(2n) .sa-el-timeline-post-inner:after {
    border-color: transparent #e5eaed transparent transparent;
    border-style: solid;
    border-width: 15px;
    content: "";
    height: 0;
    left: -36px;
    position: absolute;
    top: 257px;
    width: 0;
}

.sa-el-timeline-post:nth-child(2n) .sa-el-timeline-post-inner::after {
    border-left-color: transparent !important;
}

.sa-el-timeline-post p {
    margin: 1.6rem 0 0 0;
    font-size: 0.9em;
    line-height: 1.6em;
}

.sa-el-timeline-post-image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: block;
    height: 100%;
    overflow: hidden;
    position: relative;
    opacity: .6;
    transition: all .3s;
}

.sa-el-timeline-post-title {
    bottom: 40px;
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sa-el-timeline-post-title .sa-el-author-avatar .avatar {
    border-radius: 50%;
}

.sa-el-timeline-post-title .sa-el-author-avatar {
    padding: 0 20px 0 20px;
}

.sa-el-timeline-post-title h3 {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 24px;
    padding: 0 25px;
    text-align: left;
    text-transform: uppercase;
}

.sa-el-timeline-post-excerpt {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: all .3s;
}

.sa-el-timeline-post-excerpt p {
    color: #fff;
    font-size: 14px;
    padding: 25px;
}

.sa-el-timeline-post-inner:hover .sa-el-timeline-post-excerpt {
    opacity: 1;
    top: 10px;
}

.sa-el-timeline-post-inner:hover .sa-el-timeline-post-image {
    opacity: .3;
}

.sa-el-timeline-post time {
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 10px;
    border-radius: 20px;
    position: absolute;
    right: -97px;
    width: 100px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    top: 50px;
    z-index: 99;
    transition: all .5s;
}

.sa-el-timeline-post:nth-child(2n) time {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    color: #fff;
    font-size: 10px;
    height: 30px;
    left: -99px;
    line-height: 30px;
    position: absolute;
    text-align: center;
    top: 290px;
    width: 100px;
    z-index: 99;
}

.sa-el-timeline-post time:before {
    border-bottom: 5px solid rgba(0, 0, 0, 0.7);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    content: "";
    height: 0;
    left: 45px;
    position: absolute;
    top: -5px;
    width: 0;
}

.sa-el-timeline-post:hover time {
    opacity: 1;
}

.sa-el-timeline-post::after {
    height: 100%;
}

.sa-el-post-timeline .sa-el-timeline-post:nth-last-child(2)::after {
    height: 245px;
}

.sa-el-post-timeline .sa-el-timeline-post:last-child::after {
    display: none;
}

.sa-el-load-more-button-wrap {
    display: flex;
}


/*--- Responsive Style for Post Timeline ---*/

@media only screen and (max-width: 1366px) {
    .sa-el-timeline-post-title h2 {
        font-size: 0.8em;
    }
    .sa-el-timeline-post-excerpt p {
        font-size: 13px;
    }
}

@media only screen and (max-width: 1169px) {
    .sa-el-timeline-post-inner {
        height: 320px;
    }
}

@media only screen and (max-width: 992px) {
    .sa-el-post-timeline {
        margin-left: 0;
    }
    .sa-el-timeline-bullet,
    .sa-el-timeline-post:after,
    .sa-el-timeline-post:before,
    .sa-el-timeline-post-inner:after {
        display: none;
    }
    .sa-el-timeline-post {
        display: inline-block;
        width: 50% !important;
        margin: 15px auto;
    }
    .sa-el-timeline-post-inner {
        height: 320px;
        padding-bottom: 30px;
    }
    .sa-el-timeline-post-title {
        bottom: 50px;
    }
    .sa-el-timeline-post-title h2 {
        font-size: 0.8em;
        line-height: 1.2em;
    }
    .sa-el-timeline-post .sa-el-timeline-post-inner {
        margin: 0 10px auto 0;
        width: 90%;
    }
    .sa-el-timeline-post:nth-child(2n) .sa-el-timeline-post-inner {
        margin: 0 auto 0 10px;
        width: 90%;
    }
    .sa-el-timeline-post-excerpt {
        opacity: 0 !important;
    }
    .sa-el-timeline-post-image {
        opacity: .3;
    }
    .sa-el-timeline-post time,
    .sa-el-timeline-post:nth-child(2n) time {
        background-color: #fff;
        border-radius: 0;
        color: #444;
        font-size: 12px;
        text-transform: uppercase;
        left: 0;
        opacity: 1;
        padding-top: 3px;
        top: 275px;
        width: 100%;
    }
    time:before {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .sa-el-timeline-post {
        display: block;
        float: none !important;
        margin: 20px auto;
        width: 100% !important;
    }
    .sa-el-timeline-post .sa-el-timeline-post-inner,
    .sa-el-timeline-post:nth-child(2n) .sa-el-timeline-post-inner {
        display: block;
        float: none;
        margin: 0 auto;
    }
}

@media only screen and (max-width: 479px) {
    .sa-el-timeline-post .sa-el-timeline-post-inner,
    .sa-el-timeline-post:nth-child(2n) .sa-el-timeline-post-inner {
        height: 250px;
        margin: 0 auto;
        width: 95%;
    }
    .sa-el-timeline-post time,
    .sa-el-timeline-post:nth-child(2n) time {
        top: 205px;
    }
}