/* CUSTOM TIMELINE */

.timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline::before {
    content: '';
    background: rgb(255 255 255 / 20%);
    width: 5px;
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: .15s all linear;
}

li.timeline-item {
    width: 100%;
    margin-bottom: 70px;
}

li.timeline_item:nth-child(even) .timeline-content {
    float: right;
}

li.timeline_item:nth-child(even) .timeline-content .timeline-date {
    right: auto;
    left: 0;
}

li.timeline_item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    border-style: solid;
    width: 0;
    height: 0;
    top: 12px;
    left: -15px;
    border-width: 10px 15px 10px 0;
    border-color: transparent var(--e-global-color-primary) transparent transparent;
}

li.timeline_item:nth-child(even)::after {
    content: '';
    display: block;
    clear: both;
}


.timeline-content {
    position: relative;
    width: 45%;
    border-radius: 12px;
    background: var(--e-global-color-4fa50dac);
    box-shadow: 0 3px 6px 0px rgba(0, 0, 0, .16);
}
.timeline-content-container {
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}
.timeline-content-wrapper {
    padding: 24px 51px 24px 24px;
}
.timeline-content-container ul {
    font-size: 16px;
    margin: 0;
    list-style: none;
    text-indent: 0;
}

.timeline-content::after {
    content: '';
    position: absolute;
    border-style: solid;
    width: 0;
    height: 0;
    top: 12px;
    right: -15px;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent var(--e-global-color-primary);
}

.timeline-img {
    width: 30px;
    height: 30px;
    background: var(--e-global-color-primary);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    margin-top: 8px;
    margin-left: -15px;
}


.timeline-content a {
    background: none;
    color: var(--e-global-color-primary);
    padding: 0;
    text-transform: unset;
    font-size: var(--e-global-typography-6df598f-font-size);
    margin-bottom: 0;
    margin-top: 0;
    display: inline-block;
    border-radius: 0;
    box-shadow: 0 0;
}

.timeline-content a:hover,
.timeline-content a:active,
.timeline-content a:focus {
    background: none;
    color: var(--e-global-color-primary);
    text-decoration: none;
}


.timeline-card {
    padding: 0 !important;
}

.timeline-card p {
    padding: 0 20px;
}

.timeline-card a {
    margin-left: 20px;
}

li.timeline-item .timeline-img-header {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .4)), url('https://picsum.photos/1000/800/?random') center center no-repeat;
    background-size: cover;
}

.timeline-img-header {

    height: 200px;
    position: relative;
    margin-bottom: 20px;
}

.timeline-img-header h2 {
    color: var(--e-global-color-primary-r), var(--e-global-color-primary-g), var(--e-global-color-primary-b),.5;
    position: absolute;
    bottom: 5px;
    left: 20px;
}

.timeline-date-container {
    position: relative;
    width: 100%;
    height: 42px;
    background: rgb(255, 255, 255);
    background: linear-gradient(270deg, 
    rgb(255, 255, 255) 50%,
    rgb(255, 255, 255) 100%
    );
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    transition: .15s all linear;
}
li.timeline_item:nth-child(even) .timeline-date-container {
    background: rgb(255, 255, 255);
    background: linear-gradient(90deg, 
    rgb(255, 255, 255) 50%,
    rgb(255, 255, 255) 100%
    );
    transition: .15s all linear;
}
.timeline-date {
    background: var(--e-global-color-primary);
    display: inline-block;
    color: var(--e-global-color-4fa50dac);
    padding: 10px;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 34px;
    font-weight: 700;
    text-shadow: 0px 0px 1px rgb(0 0 0 / 40%);
}

@media screen and (max-width: 768px) {


    .timeline::before {
        left: 50px;
    }

    .timeline .timeline-img {
        left: 50px;
    }

    .timeline .timeline-content {
        max-width: 100%;
        width: auto;
        margin-left: 70px;
    }


    .timeline .timeline-item:nth-child(even) .timeline-content {
        float: none;

    }

    .timeline .timeline-item:nth-child(odd) .timeline-content::after {
        content: '';
        position: absolute;
        border-style: solid;
        width: 0;
        height: 0;
        top: 30px;
        left: -15px;
        border-width: 10px 15px 10px 0;
        border-color: transparent #f5f5f5 transparent transparent;
    }
}