#EDP-timeline {
    position: relative;
    padding: 2rem 1rem;
}

.edp-heading {
    margin: 2rem auto;
    width: 70%;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 0.15rem solid #939ca07a;
    box-shadow: 0 0 1rem #ffffff25;
    transform: translateX(12.5rem);
    opacity: 0;
    transition: all 0.5s ease;
}

.edp-heading h2 {
    font-family: 'Story Script', 'Segoe UI', Arial, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    text-shadow: 0 0 0.625rem #00000055;
    letter-spacing: 0.2rem;
}

.edp-heading h2 span {
    font-family: 'Asimovian', 'Segoe UI', Arial, sans-serif;
    font-weight: 400;
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    margin-right: 0.1rem;
    display: inline-block;
}

.edp-heading p {
    font-family: 'Chiron GoRound TC', 'Segoe UI', Arial, sans-serif;
    font-size: 1.3rem;
    line-height: 1.25;
    color: #cbc7c7;
}

#EDP-timeline ol {
    width: 100%;
    margin: 4rem auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

#EDP-timeline ol li {
    padding: 1rem;
    margin: 1.5rem auto;
    width: 70%;
    color: var(--white);
    list-style: none;
    border: #00000055 0.2rem solid;
    position: relative;
    box-shadow: 0 0 0.625rem #8995d255;
    min-height: 6rem;
    font-size: 1.2rem;
    font-family: 'Chiron GoRound TC', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6rem;
    transition: all 0.3s ease;
}

/* enlarge hitbox for easier hovering */
#EDP-timeline ol li::before {
    content: "";
    position: absolute;
    top: -3rem;
    bottom: -3rem;
    left: 0;
    right: 0;
    background-color: transparent;
}

#EDP-timeline ol li:hover {
    box-shadow: 0 0 0.9375rem #ffffff55;
    transform: scale(1.02) !important;
}

#EDP-timeline ol li span {
    font-size: 1.1rem;
    color: #d0cdcd;
    display: block;
    margin-top: 0.4rem;
    font-weight: 300;
    line-height: 1.4rem;
}

#EDP-timeline ol li i {
    position: absolute;
    top: 0;
    bottom: 0;
    font-size: 1.4rem;
    color: var(--light-cyan);
    font-style: normal;
    width: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Knewave', 'Segoe UI', Arial, sans-serif;
}

#EDP-timeline ol li.right i {
    left: 0;
    border-right: 0.15rem solid #939ca0b0;
    background: linear-gradient(135deg, #2d40b8 0%, rgb(66, 80, 169) 100%);
    text-align: center;
}

#EDP-timeline ol li.left i {
    right: 0;
    border-left: 0.15rem solid #939ca0b0;
    background: linear-gradient(-135deg, #2d40b8 0%, rgb(66, 80, 169) 100%);
    text-align: center;
}

.right {
    border-radius: 0 0.625rem 0.625rem 0;
    background: linear-gradient(135deg, var(--gunmetal) 0%, var(--charcoal) 100%);
    transform: translateX(-12.5rem);
    opacity: 0;
    margin-left: 1.25rem;
    padding-left: 12.5rem !important;
}

.left {
    border-radius: 0.625rem 0 0 0.625rem;
    background: linear-gradient(135deg, var(--gunmetal) 0%, var(--charcoal) 100%);
    transform: translateX(12.5rem);
    opacity: 0;
    margin-right: 1.25rem;
    padding-right: 12.5rem !important;
}

.timeline-middle {
    position: absolute;
    left: 50%;
    top: 14rem;
    transform: translateX(-50%);
    width: 0.25rem;
    height: 110rem;
    border-radius: 0.25rem;
    background: linear-gradient(135deg, #4a8b65 0%, #d8d3d3 100%);
    box-shadow: 0 0 0.25rem #ffffff55;
}

/* MEDIA QUERIES */

@media screen and (max-width: 992px) {
    #EDP-timeline ol li.right,
    #EDP-timeline ol li.left {
        width: 90%;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        margin: 1rem auto;
        transform: translateX(0);
    }

    .timeline-middle {
        height: auto;
        top: 2rem;
    }
}

@media screen and (max-width: 768px) {
    #EDP-timeline ol li {
        padding: 1rem;
        font-size: 1rem;
        min-height: auto;
    }

    #EDP-timeline ol li i {
        position: relative;
        width: 100%;
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .right,
    .left {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        border-radius: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    #EDP-timeline ol li {
        font-size: 0.9rem;
    }

    .edp-heading h2 {
        font-size: 2rem;
    }

    .edp-heading h2 span {
        font-size: 2rem;
    }

    .edp-heading p {
        font-size: 1rem;
    }
}
