/******************* Timeline Demo - 5 *****************/

.main-timeline5 {
    overflow: hidden;
    position: relative;
}

@media only screen and (max-width:767px) {
    .timeline {
        padding-top: 12px;
    }
}

.main-timeline5 .timeline {
    position: relative;
    margin-top: -79px
}

.main-timeline5 .timeline:first-child {
    margin-top: 0px;
}

.main-timeline5 .timeline-icon,
.main-timeline5 .year {
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0
}

.main-timeline5 .timeline:after,
.main-timeline5 .timeline:before {
    content: "";
    display: block;
    width: 100%;
    clear: both
}

.main-timeline5 .timeline:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

.main-timeline5 .timeline-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 20px solid transparent;
    border-top-color: #00aa53;
    /* border-top-style: double; */
    border-right-color: #00aa53;
    /* border-right-style: double; */
    z-index: 1;
    transform: rotate( 45deg);
}

.main-timeline5 .year {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, .4);
    font-size: 30px;
    font-weight: 700;
    color: #00aa53;
    text-align: center;
    transform: rotate(-45deg);
}

.main-timeline5 .timeline-content {
    width: 40%;
    float: right;
    background: #00aa53;
    padding: 29px 10px;
    margin: 40px 0;
    z-index: 1;
    position: relative;
    border-radius: 20px;
    text-align: center;
}

@media only screen and (max-width:990px) {
    .main-timeline5 .timeline-content {
        padding: 32px 10px;
    }
}

.main-timeline5 .timeline-content:before {
    content: "";
    width: 50%;
    height: 6px;
    background: #00aa53;
    position: absolute;
    top: 50%;
    left: -15%;
    z-index: -1;
    transform: translateY(-50%);
}

@media only screen and (max-width:990px) {
    .main-timeline5 .timeline-content:before {
        left: -10%;
    }
}

.main-timeline5 .title {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 0px;
}

@media only screen and (max-width:990px) {
    .main-timeline5 .title {
        font-size: 14px;
    }
}

@media only screen and (max-width:767px) {
    .main-timeline5 .title {
        font-size: 12px;
    }
}

.main-timeline5 .description {
    font-size: 16px;
    color: #fff;
    line-height: 24px;
    margin: 0
}

.main-timeline5 .timeline:nth-child(2n) .timeline-icon {
    transform: rotate(-135deg);
    border-top-color: rgb(150 208 52);
    border-right-color: rgb(150 208 52);
}

.main-timeline5 .timeline:nth-child(2n) .year {
    transform: rotate(135deg);
    color: rgb(150 208 52);
}

.main-timeline5 .timeline:nth-child(2n) .timeline-content {
    float: left;
}

.main-timeline5 .timeline:nth-child(2n) .timeline-content:before {
    left: auto;
    right: -15%;
}

@media only screen and (max-width:990px) {
    .main-timeline5 .timeline:nth-child(2n) .timeline-content:before {
        right: -10%;
    }
}

.main-timeline5 .timeline:nth-child(2n) .timeline-content,
.main-timeline5 .timeline:nth-child(2n) .timeline-content:before {
    background: rgb(150 208 52);
}

.main-timeline5 .timeline:nth-child(3n) .timeline-icon {
    border-top-color: #81d062;
    border-right-color: #81d062;
}

.main-timeline5 .timeline:nth-child(3n) .year {
    color: #81d062;
}

.main-timeline5 .timeline:nth-child(3n) .timeline-content,
.main-timeline5 .timeline:nth-child(3n) .timeline-content:before {
    background: #81d062;
}

.main-timeline5 .timeline:nth-child(4n) .timeline-icon {
    border-top-color: #00aa53;
    border-right-color: #00aa53
}

.main-timeline5 .timeline:nth-child(4n) .year {
    color: #00aa53
}

.main-timeline5 .timeline:nth-child(4n) .timeline-content,
.main-timeline5 .timeline:nth-child(4n) .timeline-content:before {
    background: #00aa53
}

.main-timeline5 .timeline:nth-child(5n) .timeline-icon {
    border-top-color: rgb(150 208 52);
    border-right-color: rgb(150 208 52)
}

.main-timeline5 .timeline:nth-child(5n) .year {
    color: rgb(150 208 52)
}

.main-timeline5 .timeline:nth-child(5n) .timeline-content,
.main-timeline5 .timeline:nth-child(5n) .timeline-content:before {
    background: rgb(150 208 52)
}

.main-timeline5 .timeline:nth-child(6n) .timeline-icon {
    border-top-color: #81d062;
    border-right-color: #81d062;
}

.main-timeline5 .timeline:nth-child(6n) .year {
    color: #81d062;
}

.main-timeline5 .timeline:nth-child(6n) .timeline-content,
.main-timeline5 .timeline:nth-child(6n) .timeline-content:before {
    background: #81d062;
}

.main-timeline5 .timeline:nth-child(7n) .timeline-icon {
    border-top-color: #00aa53;
    border-right-color: #00aa53
}

.main-timeline5 .timeline:nth-child(7n) .year {
    color: #00aa53
}

.main-timeline5 .timeline:nth-child(7n) .timeline-content,
.main-timeline5 .timeline:nth-child(7n) .timeline-content:before {
    background: #00aa53
}

.main-timeline5 .timeline:nth-child(8n) .timeline-icon {
    border-top-color: rgb(150 208 52);
    border-right-color: rgb(150 208 52)
}

.main-timeline5 .timeline:nth-child(8n) .year {
    color: rgb(150 208 52)
}

.main-timeline5 .timeline:nth-child(8n) .timeline-content,
.main-timeline5 .timeline:nth-child(8n) .timeline-content:before {
    background: rgb(150 208 52)
}

@media only screen and (max-width:767px) {
    .main-timeline5 .timeline {
        margin-top: 0;
        overflow: hidden
    }
    .main-timeline5 .timeline:before,
    .main-timeline5 .timeline:nth-child(2n):before {
        box-shadow: none
    }
    .main-timeline5 .timeline-icon,
    .main-timeline5 .timeline:nth-child(2n) .timeline-icon {
        margin-top: -30px;
        margin-bottom: 20px;
        position: relative;
        transform: rotate(135deg)
    }
    .main-timeline5 .timeline:nth-child(2n) .year,
    .main-timeline5 .year {
        transform: rotate(-135deg)
    }
    .main-timeline5 .timeline-content,
    .main-timeline5 .timeline:nth-child(2n) .timeline-content {
        width: 100%;
        float: none;
        border-radius: 20px;
        text-align: center;
        padding: 25px 20px;
        margin: 0 auto
    }
    .main-timeline5 .timeline-content:before,
    .main-timeline5 .timeline:nth-child(2n) .timeline-content:before {
        width: 15px;
        height: 25px;
        position: absolute;
        top: -22px;
        left: 50%;
        z-index: -1;
        transform: translate(-50%, 0)
    }
}