.ps-timeline-sec {
    position: relative;
    background: #fff;
}
.ps-timeline-sec .container {
    position: relative;
}
@media screen and (max-width: 767px) {
    .ps-timeline-sec .container ol:before {
        background: #348e80;
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 100%;
        position: absolute;
        top: 130px !important;
        left: 36px !important;
   }
    .ps-timeline-sec .container ol:after {
        background: #348e80;
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 100%;
        position: absolute;
        top: inherit !important;
        left: 36px;
   }
    .ps-timeline-sec .container ol.ps-timeline {
        margin: 130px 0 !important;
        border-left: 2px solid #348e80;
        padding-left: 0 !important;
        padding-top: 120px !important;
        border-top: 0 !important;
        margin-left: 25px !important;
   }
    .ps-timeline-sec .container ol.ps-timeline li {
        height: 220px;
        float: none !important;
        width: inherit !important;
   }
    .ps-timeline-sec .container ol.ps-timeline li:nth-child(2) .img-handler-bot img {
        width: 70px;
   }
    .ps-timeline-sec .container ol.ps-timeline li:last-child {
        margin: 0;
        bottom: 0 !important;
        height: 120px;
   }
    .ps-timeline-sec .container ol.ps-timeline li:last-child .img-handler-bot {
        bottom: 40px !important;
        width: 40% !important;
        margin-left: 25px !important;
        margin-top: 0 !important;
        background-color: palevioletred;
   }
    .ps-timeline-sec .container ol.ps-timeline li:last-child .img-handler-bot img {
        width: 100%;
   }
    .ps-timeline-sec .container ol.ps-timeline li:last-child .ps-top {
        margin-bottom: 0 !important;
        top: 20px;
        width: 50% !important;
   }
    .ps-timeline-sec .container ol.ps-timeline li span {
        left: 0 !important;
   }
    .ps-timeline-sec .container ol.ps-timeline li span.ps-sp-top:before {
        content: none !important;
   }
    .ps-timeline-sec .container ol.ps-timeline li span.ps-sp-top:after {
        content: none !important;
   }
    .ps-timeline-sec .container ol.ps-timeline li span.ps-sp-bot:before {
        content: none !important;
   }
    .ps-timeline-sec .container ol.ps-timeline li span.ps-sp-bot:after {
        content: none !important;
   }
    .ps-timeline-sec .container ol.ps-timeline li .img-handler-top {
        position: absolute !important;
        bottom: 170px !important;
        width: 30% !important;
        float: left !important;
        margin-left: 35px !important;
        margin-bottom: 0 !important;
   }
    .ps-timeline-sec .container ol.ps-timeline li .img-handler-top img {
        margin: 0 auto !important;
        width: 80% !important;
   }
    .ps-timeline-sec .container ol.ps-timeline li .img-handler-bot {
        position: absolute !important;
        bottom: 115px !important;
        width: 30% !important;
        float: left !important;
        margin-left: 35px !important;
        margin-bottom: 0 !important;
   }
    .ps-timeline-sec .container ol.ps-timeline li p {
        text-align: left !important;
        width: 100% !important;
        margin: 0 auto !important;
        margin-top: 0px !important;
   }
    .ps-timeline-sec .container ol.ps-timeline li .ps-top {
        width: 60% !important;
        float: right !important;
        right: 0;
        top: -40px;
   }
    .ps-timeline-sec .container ol.ps-timeline li .ps-bot {/* Mobile */
        width: 60% !important;
        float: right !important;
        right: 0;
        top: -40px;
   }
   .ps-timeline-sec .container ol.ps-timeline li .ps-top-txt {
        width: 60% !important;
        float: right !important;
        right: 0;
        top: -10px;
}
.ps-timeline-sec .container ol.ps-timeline li .ps-bot-txt {
    position: absolute;
    width: 60% !important;
    float: right !important;
    right: 0;
    top: -10px;
    background-color: aqua; 
}
}
/*Dot at beginning */
/* .ps-timeline-sec .container ol:before {
    background: #348e80;
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 100%;
    position: absolute;
    left: 8px;
    top: 49.5%;
} */

 /*Dot at end */
 /* .ps-timeline-sec .container ol:after { 
   
    background: #348e80;
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 100%;
    position: absolute;
    right: -5px;
    top: 49.5%;
} */
.ps-timeline-sec .container ol.ps-timeline {
    margin: 390px 0;
    padding: 0;
    border-top: 2px solid #348e80;
    list-style: none;
}
.ps-timeline-sec .container ol.ps-timeline li {
    float: left;
    width: 11%;
    padding-top: 30px;
    position: relative;
}
.ps-timeline-sec .container ol.ps-timeline li span {
    width: 50px;
    height: 50px;
    margin-left: -25px;
    background: #fff;
    border: 4px solid #348e80;
    border-radius: 50%;
    box-shadow: 0 0 0 0px #fff;
    text-align: center;
    line-height: 50px -10;
    color: #df8625;
    font-size: 2em;
    font-style: normal;
    position: absolute;
    top: -26px;
    left: 50%;
}
.ps-timeline-sec .container ol.ps-timeline li span.ps-sp-top:before {
    content: '';
    color: #348e80;
    width: 2px;
    height: 50px;
    background: #348e80;
    position: absolute;
    top: -50px;
    left: 50%;
}
.ps-timeline-sec .container ol.ps-timeline li span.ps-sp-top:after {
    content: '';
    color: #348e80;
    width: 8px;
    height: 8px;
    background: #348e80;
    position: absolute;
    bottom: 90px;
    left: 44%;
    border-radius: 100%;
}
.ps-timeline-sec .container ol.ps-timeline li span.ps-sp-bot:before {
    content: '';
    color: #348e80;
    width: 2px;
    height: 50px;
    background: #348e80;
    position: absolute;
    bottom: -50px;
    left: 50%;
}
.ps-timeline-sec .container ol.ps-timeline li span.ps-sp-bot:after {
    content: '';
    color: #348e80;
    width: 8px;
    height: 8px;
    background: #348e80;
    position: absolute;
    top: 90px;
    left: 44%;
    border-radius: 100%;
}
.ps-timeline-sec .container ol.ps-timeline li .img-handler-top {
    position: absolute;
    bottom: 0;
    margin-bottom: 115px;
    width: 100%;
}
.ps-timeline-sec .container ol.ps-timeline li .img-handler-top img {
    display: table;
    margin: 0 auto;
}
.ps-timeline-sec .container ol.ps-timeline li .img-handler-bot {
    position: absolute;
    margin-top: 60px;
    width: 100%;
}
.ps-timeline-sec .container ol.ps-timeline li .img-handler-bot img {
    display: table;
    margin: 0 auto;
}
.ps-timeline-sec .container ol.ps-timeline li p {
    text-align: center;
    width: 80%;
    margin: 0 auto;
}
.ps-timeline-sec .container ol.ps-timeline li .ps-top {
    position: absolute;
    bottom: 0;
    margin-bottom: 60px;
}
.ps-timeline-sec .container ol.ps-timeline li .ps-bot {/* Wide */
    position: absolute;
    margin-top: 0px;
}
.section-bg {
    background-color: #f8fbfe;
  }


/* Modified PS top */
.ps-timeline-sec .container ol.ps-timeline li:last-child .ps-top-txt {
    /* margin-bottom: 0 !important;
    top: 20px;
    width: 100% !important; */
    
}
.ps-timeline-sec .container ol.ps-timeline li .ps-top-txt {
    position: absolute;
    bottom: 0;
    margin-bottom: 210px;
    align-content: center;
    float: right;
}

.ps-timeline-sec .container ol.ps-timeline li .ps-bot-txt {
    position: absolute;
    bottom: 0;
    top: 200px;
    align-content: center;
    float: right; 
}


/* .ps-timeline-sec .container ol.ps-timeline li .ps-top-txt {
    width: 60% !important;
    float: right !important;
    right: 0;
    top: -40px;
} */






.demo{ background: #444; }
.main-timeline{ position: relative; }
.main-timeline:before,
.main-timeline:after{
    content: "";
    display: block;
    width: 100%;
    clear: both;
}
.main-timeline:before{
    content: "";
    width: 100%;
    height: 5px;
    background: #fff;
    margin: auto 0;
    position: absolute;
    top: 50%;
    left: 0;
}
.main-timeline .timeline{
    width: 22%;
    float: left;
    margin-left: 3%;
    position: relative;
}
.main-timeline .timeline:before{
    content: attr(data-heading);
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    transform: rotate(-90deg);
    position: absolute;
    top: 30px;
    left: -2px;
    z-index: 2;
}
.main-timeline .timeline:after{
    content: "";
    width: 5px;
    height: 60px;
    border-left: 9px dotted #fff;
    position: absolute;
    top: 54%;
    left: 71px;
}
.main-timeline .timeline-content{
    padding: 15px 0 40px 50px;
    margin-bottom: 80px;
    border-radius: 15px;
    border: 5px solid #fff;
    text-align: left;
    background: #f67420;
    z-index: 1;
    position: relative;
}
.main-timeline .timeline:nth-child(even) .timeline-content{ background: #43a6ba; }
.main-timeline .timeline-content:before{
    content: "";
    width: 40px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #d66215;
    border-radius: 10px 0 0 10px;
}
.main-timeline .timeline:nth-child(even) .timeline-content:before{ background: #1784ab; }
.main-timeline .timeline-content:after{
    content: "";
    width: 40px;
    height: 40px;
    background: #f67420;
    border-bottom: 5px solid #fff;
    border-right: 5px solid #fff;
    position: absolute;
    bottom: -23px;
    left: 50px;
    transform: rotate(45deg);
    z-index: -1;
}
.main-timeline .timeline:nth-child(even) .timeline-content:after{ background: #43a6ba; }
.main-timeline .description{
    font-size: 14px;
    color: #fff;
}
.main-timeline .read-more{
    display: inline-block;
    padding-right: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-transform: capitalize;
    position: relative;
}
.main-timeline .read-more:before{
    content: "\f0da";
    font-family: "Font Awesome 5 Free"; font-weight: 900;
    font-size: 24px;
    position: absolute;
    top: -6px;
    right: 0;
}
.main-timeline .year{
    display: inline-block;
    width: 85px;
    height: 85px;
    line-height: 85px;
    background: #f67420;
    border-radius: 5px;
    border: 5px solid #fff;
    text-align: center;
    margin-left: 34px;
    transform: rotate(45deg);
    position: relative;
}
.main-timeline .timeline:nth-child(even) .year{ background: #43a6ba; }
.main-timeline .year span{
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    transform: rotate(-45deg);
}
.main-timeline .timeline.bottom{ margin: -7.7% 0 0 7%; }
.main-timeline .timeline.bottom:nth-child(5n+1),
.main-timeline .timeline.bottom:last-child{ margin-left: 3%; }
.main-timeline .timeline.bottom:before{
    top: auto;
    bottom: 110px;
}
.main-timeline .timeline.bottom:after{
    top: auto;
    left: auto;
    bottom: 54%;
    right: 71px;
    border-color: #fff;
}
.main-timeline .timeline.bottom .timeline-content{
    margin: 80px 0 0 0;
    padding: 15px 0 40px 50px;
}
.main-timeline .timeline.bottom .timeline-content:after{
    border: none;
    border-top: 5px solid #fff;
    border-left: 5px solid #fff;
    bottom: auto;
    top: -23px;
    left: auto;
    right: 50px;
}
.main-timeline .timeline.bottom .year{
    top: 4px;
    margin-left: 132px;
}
@media only screen and (max-width: 1199px){
    .main-timeline:before{
        width: 5px;
        height: 100%;
        top: 0;
        left: 5%;
    }
    .main-timeline .timeline,
    .main-timeline .timeline.bottom,
    .main-timeline .timeline.bottom:nth-child(5n+1),
    .main-timeline .timeline.bottom:last-child{
        width: 85%;
        float: none;
        margin: 0 0 20px 15%;
    }
    .main-timeline .timeline:after,
    .main-timeline .timeline.bottom:after{
        width: 60px;
        height: 5px;
        top: 50px;
        left: -58px;
        border-top: 9px dotted #fff;
    }
    .main-timeline .timeline-content,
    .main-timeline .timeline.bottom .timeline-content{ margin: 0; }
    .main-timeline .year,
    .main-timeline .timeline.bottom .year{
        width: 65px;
        height: 65px;
        line-height: 60px;
        margin: 0;
        position: absolute;
        top: 20px;
        left: -15.5%;
        z-index: 1;
    }
    .main-timeline .timeline .timeline-content:after{ display: none; }
    .main-timeline .timeline.bottom:before{
        bottom: auto;
        top: 30px;
        left: -2px;
    }
}
@media only screen and (max-width: 990px){
    .main-timeline .year,
    .main-timeline .timeline.bottom .year{
        left: -16.8%;
    }
}
@media only screen and (max-width: 767px){
    .main-timeline .timeline:after,
    .main-timeline .timeline.bottom:after{ display: none; }
    .main-timeline .year,
    .main-timeline .timeline.bottom .year{
        width: 30px;
        height: 30px;
        border: 3px solid #fff;
        left: -13.5%;
    }
    .main-timeline .year span{ display: none; }
}
@media only screen and (max-width: 480px){
    .main-timeline .year,
    .main-timeline .timeline.bottom .year{ left: -15.5%; }
}
