/******************* Timeline Demo - 2 *****************/

.main-timeline2 {

    padding-top: 50px;

    overflow: hidden;

    position: relative

}



.main-timeline2:before {

    content: "";

    width: 7px;

    height: 100%;

    background: #d3a71a;

    margin: 0 auto;

    position: absolute;

    top: 0px;

    left: 0;

    right: 0

}



.main-timeline2 .timeline {

    width: 50%;

    float: left;

    padding: 20px 60px;

    border-top: 7px solid #d3a71a;

    border-right: 7px solid #d3a71a;

    border-radius: 0 30px 0 0;

    position: relative;

    right: -3.5px

}



.main-timeline2 .icon {

    display: block;

    width: 50px;

    height: 50px;

    line-height: 50px;

    border-radius: 50%;

    background: #02b3e4;

    border: 1px solid #fff;

    text-align: center;

    font-size: 25px;

    color: #fff;

    box-shadow: 0 0 0 2px #02b3e4;

    position: absolute;

    top: -30px;

    left: 0

}



.main-timeline2 .timeline-content {

    display: block;

    padding: 30px;

    border-radius: 20px;

    background: #02b3e4;

    color: #fff;

    position: relative;

}



.main-timeline2 .timeline-content:hover {

    text-decoration: none;

    color: #fff

}



.main-timeline2 .timeline-content:after,

.main-timeline2 .timeline-content:before {

    content: "";

    display: block;

    width: 10px;

    height: 50px;

    border-radius: 10px;

    background: #02b3e4;

    border: 1px solid #fff;

    position: absolute;

    top: -35px;

    left: 50px

}



.main-timeline2 .timeline-content:after {

    left: auto;

    right: 50px

}



.main-timeline2 .title {

    font-size: 1em;

    text-transform: capitalize;

    color: #000;

    margin-bottom: 1em;

    font-weight: 600;

    background: #fff;

    border-radius: 5px;

    display: inline-block;

    padding: 6px 20px;

}



.main-timeline2 .description {

    font-size: 0.9em;

    color: #fff;

}



.main-timeline2 .timeline:nth-child(2n) {

    border-right: none;

    border-left: 7px solid #d3a71a;

    border-radius: 30px 0 0;

    right: auto;

    left: -3.5px

}



.main-timeline2 .timeline:nth-child(2n) .icon {

    left: auto;

    right: 0;

    box-shadow: 0 0 0 2px #a951ed

}



.main-timeline2 .timeline:nth-child(2) {

    margin-top: 130px

}



.main-timeline2 .timeline:nth-child(odd) {

    margin: -130px 0 30px

}



.main-timeline2 .timeline:nth-child(even) {

    margin-bottom: 80px

}



.main-timeline2 .timeline:first-child,

.main-timeline2 .timeline:last-child:nth-child(even) {

    margin: 0 0 30px

}



.main-timeline2 .timeline:nth-child(2n) .icon,

.main-timeline2 .timeline:nth-child(2n) .timeline-content,

.main-timeline2 .timeline:nth-child(2n) .timeline-content:after,

.main-timeline2 .timeline:nth-child(2n) .timeline-content:before {

    background: #a951ed

}



.main-timeline2 .timeline:nth-child(3n) .icon,

.main-timeline2 .timeline:nth-child(3n) .timeline-content,

.main-timeline2 .timeline:nth-child(3n) .timeline-content:after,

.main-timeline2 .timeline:nth-child(3n) .timeline-content:before {

    background: #02ccba

}



.main-timeline2 .timeline:nth-child(3n) .icon {

    box-shadow: 0 0 0 2px #02ccba

}



.main-timeline2 .timeline:nth-child(4n) .icon,

.main-timeline2 .timeline:nth-child(4n) .timeline-content,

.main-timeline2 .timeline:nth-child(4n) .timeline-content:after,

.main-timeline2 .timeline:nth-child(4n) .timeline-content:before {

    background: #ecb101

}



.main-timeline2 .timeline:nth-child(4n) .icon {

    box-shadow: 0 0 0 2px #ecb101

}



@media only screen and (max-width:991px) {

    .main-timeline2 .title {

        font-size: 0.85em;

        padding: 6px 15px;

    }

}



@media only screen and (max-width:767px) {

    .main-timeline2:before {

        left: 0;

        right: auto

    }



    .main-timeline2 .timeline,

    .main-timeline2 .timeline:nth-child(even),

    .main-timeline2 .timeline:nth-child(odd) {

        width: 100%;

        float: none;

        padding: 20px 30px;

        margin: 0 0 30px;

        border-right: none;

        border-left: 7px solid #d3a71a;

        border-radius: 30px 0 0;

        right: auto;

        left: 0

    }



    .main-timeline2 .icon {

        left: auto;

        right: 0

    }

}



@media only screen and (max-width:736px) {

    .main-timeline2 {

        overflow: visible;

        padding-top: 0;

    }



    .main-timeline2 .timeline:first-child,

    .main-timeline2 .timeline:last-child:nth-child(even) {

        margin: 0 0 0px;

    }



    .main-timeline2:before {

        top: 27px;

    }

}



@media only screen and (max-width:375px) {



    .main-timeline2 .timeline,

    .main-timeline2 .timeline:nth-child(even),

    .main-timeline2 .timeline:nth-child(odd) {

        padding: 30px 25px;

    }

}



@media only screen and (max-width:320px) {



    .main-timeline2 .timeline-content {

        padding: 23px 17px;

    }

}