@import "https://fonts.googleapis.com/css?family=Lato:400,700";

.ps-timeline-sec {
    position: relative;
    background: var(--our-black-color);
    padding: 5px 0 25px 0;
    height: 100%;
}

.ps-timeline-sec .container {
    position: relative;
    font-family: "Lato", sans-serif;
}

.ps-timeline-sec .container .ps-timeline {
    margin: 200px 0;
    padding: 0;
    border-top: 2px solid #1098FC;
    list-style: none;
}

.ps-timeline-sec .container .ps-timeline:before {
    background: #1098FC;
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 100%;
    position: absolute;
    left: 0;
    transform: translateY(-6px);
}

.ps-timeline:after {
    background: #1098FC;
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 100%;
    position: absolute;
    right: 0;
    transform: translateY(-6px);
}

/* .container {
    margin: 80px;
} */

.ps-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.ps-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #ccc;
    z-index: 1;
}

.ps-timeline div {
    position: relative;
    z-index: 2;
    text-align: center;
}

.ps-top {
    transform: translateY(-82px);
    /* -6rem */
}

.ps-top:nth-child(odd) {
    min-height: 100px;
}

.ps-bot {
    top: 100%;
    transform: translateY(94px);
}

.ps-top p,
h4 {
    text-align: left;
}

.ps-h2 {
    margin: 0 0 0 0;
}

.ps-h4 {
    margin: 0 0 4px 0 !important;
}

.ps-top h4,
.ps-bot h4 {
    font-size: 16px;
    color: var(--our-white-color);
    text-decoration: underline;

}

.ps-top h5,
.ps-bot h5,
b {
    color: #1098FC;
    text-align: center;
}

.ps-timeline span {
    width: 50px;
    height: 50px;
    margin-left: -45px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 0px #fff;
    text-align: center;
    line-height: 40px;
    color: #df8625;
    font-size: 2em;
    font-style: normal;
    position: absolute;
    top: -26px;
    left: 50%;
}

.ps-timeline span img {
    width: 50px;
    height: 50px;
}

.ps-timeline span.ps-sp-top {
    border-top: 0px solid #715adb;
}

.ps-timeline span.ps-sp-bot {
    border-bottom: 0px solid #715adb;
}

.ps-timeline-item .ps-sp-bot:before {
    content: "";
    color: #715adb;
    width: 2px;
    height: 50px;
    background: #1098FC;
    position: absolute;
    bottom: -50px;
    left: 50%;
    z-index: -1;
}

.ps-timeline-item .ps-sp-bot:after {
    content: "";
    color: #1098FC;
    width: 8px;
    height: 8px;
    background: #1098FC;
    position: absolute;
    top: 93px;
    left: 44%;
    border-radius: 100%;
}

.ps-timeline span.ps-sp-top:before {
    content: "";
    color: #1098FC;
    width: 2px;
    height: 50px;
    background: #1098FC;
    position: absolute;
    top: -50px;
    left: 50%;
}

.ps-timeline span.ps-sp-top:after {
    content: "";
    color: #1098FC;
    width: 8px;
    height: 8px;
    background: #1098FC;
    position: absolute;
    bottom: 93px;
    left: 44%;
    border-radius: 100%;
}

.ps-bot h5,
b {
    color: #1098FC;
    text-align: center;
}

.ps-timeline .ps-top,
.ps-timeline .ps-bot {
    position: absolute;
    width: 260px;
    text-align: center;
}

.ps-timeline .ps-bot p,
.ps-timeline .ps-top p {
    text-align: left;
}

.ps-timeline:nth-child(odd) .ps-top {
    position: absolute;
    bottom: 100%;
    margin-bottom: -40px;
}

.ps-timeline:nth-child(even) .ps-bot {
    position: absolute;
    top: 100%;
}

/*MEDIA QUERIES*/

@media (max-width: 768px) {
    .ps-timeline-sec .container .ps-timeline {
        border-top: none;
        margin-left: 2rem;
        margin: 150px 0;
    }

    .ps-timeline {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: min-content;
        grid-gap: 10px;
        margin-left: 2rem;
    }

    .ps-timeline:after {
        display: none;
    }

    .ps-top {
        transform: translateY(-60px);
    }

    .ps-timeline-item {
        display: grid;
        grid-template-columns: 1fr 3fr;
        grid-template-rows: 1fr 3fr;
        grid-template-areas:
            "icon quarter"
            "icon description";
        transform: translateX(50px);
    }

    .ps-timeline-sec .container .ps-timeline:before {
        content: none;
    }

    .ps-timeline .ps-timeline-item span:before {
        content: "";
        color: #1098FC;
        width: 2px;
        height: 122px;
        background: #1098FC;
        position: absolute;
        top: 48px;
        left: 50%;
        border-radius: unset;
    }

    .ps-timeline .ps-timeline-item:not(:last-child) span:after {
        content: none;
    }

    .ps-timeline .ps-timeline-item:first-child span:after {
        display: block;
        background: #1098FC;
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 100%;
        position: absolute;
        top: -68px;
        left: 42%;
    }

    .ps-timeline .ps-timeline-item:last-child span.ps-sp-bot:after {
        background: #1098FC;
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 100%;
        position: absolute;
        top: 166px;
        left: 42%;
    }

    .ps-timeline-item .ps-sp-bot:before {
        content: "";
        color: #1098FC;
        width: 2px;
        height: 128px;
        background: #1098FC;
        position: absolute;
        left: 48%;
        top: 46px
    }

    .ps-timeline-item .ps-top h5,
    .ps-timeline-item .ps-bot h5 {
        text-align: right;
    }

    .ps-timeline span.ps-sp-top:before {
        content: "";
        color: #1098FC;
        width: 2px;
        height: 270px;
        background: #1098FC;
        position: absolute;
        left: 50%;
        z-index: -1;
        top: -60px;
    }

    .ps-sp-top {
        grid-area: icon;
    }

    .ps-sp-top:after {
        background: #4CAF50;
        bottom: -160px !important;
    }

    .ps-sp-bot {
        grid-area: icon;
    }

    .ps-sp-bot:after {
        grid-area: icon;
    }

    .ps-bot {
        grid-area: quarter;
        transform: translateY(-40px);
    }

    .ps-top {
        grid-area: description;
    }

    .ps-timeline-item:nth-child(even) .ps-bot {
        grid-area: description;
        transform: translateY(-60px);
    }

    .ps-timeline-item:nth-child(even) .ps-top {
        grid-area: quarter;
    }

    .ps-timeline:nth-child(odd) .ps-top,
    .ps-bot {
        position: static;
    }

    .ps-timeline .ps-top,
    .ps-timeline .ps-bot {
        position: static;
        margin-right: 10px;
    }

    .ps-timeline .ps-bot p,
    .ps-timeline .ps-top p {
        position: static;
    }
}