.iti-timeline {
    width: 100vw;
    margin: 0px;
    padding: 0px !important;
    margin-bottom: 11.5rem;
    margin-top: 80px;
    z-index: 5;
    background: #141446;
    position: relative;
    min-height: 1035px;
    padding-bottom: 6.875rem !important;
    /* padding-top: 6.875rem !important; */

    .timeline-categories {
        position: absolute;
        color: white;
        z-index: 8;
        padding: 0px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        max-width: 1440px;
        display: flex;
        justify-content: flex-end;
        padding-right: 8.875rem;
        top: 3.6875rem;
        right: 8.875rem;
        
        a:link, a:visited {
            color: white;
        }

        .timeline-categories-container {
            display: flex;
            flex-direction: row;
            align-items: end;
            justify-content: end;
            gap: 1.5rem;

            .timeline-category-item {
                margin: 0px;

                a {
                    &.active:after {
                        background: #ffad5b;
                    }

                    &:after {
                        background: 0 0;
                        content: "";
                        display: block;
                        height: 1px;
                        margin-top: 3px;
                        position: relative;
                        transition: background .3s ease-in-out;
                        width: 100%;
                        cursor: pointer;
                        font-size: 12px;
                        letter-spacing: 1.5px;
                        line-height: 13px;
                    }
                }
            }
        }
    }

    /* Hide all slides except the first one (on load) */
    & > .timeline-container {
        &.inactive-category {
            visibility: hidden;
            opacity: 0;
            transition: visibility 0.7s linear, opacity 0.7s linear;
        }

        &.active-category {
            visibility: hidden;

            &.active-slide {
                visibility: visible;
                opacity: 1;
            }
        }

        & ~ .timeline-container {
            &.inactive-category,
            &.active-category {
                visibility: hidden;
                opacity: 0;
                transition: visibility 0.7s linear, opacity 0.7s linear;
            }

            &.active-slide {
                visibility: visible;
                opacity: 1;
            }
        }
    }

    .timeline-container {
        align-items: flex-end;
        background: #141446;
        /* background-position: top left;
        background-size: 80%; */
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        position: absolute;
        min-height: 1035px;
        max-width: 100% !important;
        padding: 0px !important;
        margin: 0px !important;

        .timeline-item {
            bottom: 0;
            left: 0;
            position: absolute !important;
            top: 0;
            width: 100%;
            display: flex;
            flex-direction: column;

            .timeline-bg-image,
            .timeline-bg-gradient {
                bottom: 0;
                left: 0;
                position: absolute !important;
                top: 0;
                width: 80%;
                margin: 0px;
                padding: 0px;
            }

            .timeline-bg-image {
                overflow-y: hidden;
                z-index: 6;
            }

            .timeline-bg-gradient {
                z-index: 7;
            }

            .timeline-date {
                margin-top: 15%;
            }

            .timeline-date,
            .timeline-title,
            .timeline-content,
            .next-slide {
                z-index: 8;

                margin-right: 7.625rem;
                margin-bottom: 0px;
                width: 375px;
                position: relative;
                text-align: left;
                align-self: end;

                & * {
                    color: white;
                }
            }

            .timeline-date {
                h3 {
                    font-size: 30px;
                    letter-spacing: -1px;
                    line-height: 1.33;
                    font-weight: 500;
                    margin: 0;
                }
            }

            .timeline-title {
                h2 {
                    color: #fff;
                    font-size: 60px;
                    line-height: normal;
                    margin-bottom: 2.125rem;
                    letter-spacing: -2px;
                    font-weight: 500;
                    margin: 0;
                }
            }

            .timeline-content {
                p {
                    font-size: 17px;
                    letter-spacing: -.5px;
                    line-height: 27px;
                    font-family: 'Apercu Pro Regular', Helvetica, Arial, Lucida, sans-serif;
                }
            }

            .next-slide {
                border: 1px solid #ffad5b;
                color: #fff;
                padding-left: 28px;
                padding-right: 28px;
                margin-right: 22.625rem;
                width: 131px;
                height: 50px;
                align-items: center;
                border-radius: 30px;
                cursor: pointer;
                display: inline-flex;
                overflow: hidden;
                position: relative;
                touch-action: manipulation;
                transition: background-color .3s ease-in-out;
                -webkit-user-select: none;
                -moz-user-select: none;
                user-select: none;
                background-color: transparent!important;
                margin-top: 40px;
                outline: 0!important;
                -webkit-appearance: button;
                background: 0 0;
                text-transform: none;
                font-family: inherit;
                font-size: 100%;
                line-height: 1.15;
                text-align: center;
                /* padding-block-start: 2px;
                padding-block-end: 3px;
                padding-inline-start: 6px; */
                letter-spacing: normal;
                word-spacing: normal;
                text-indent: 0px;
                text-shadow: none;

                &:active {
                    border: 1px solid #ffad5b;

                    .text {
                        color: #ffad5b;
                    }

                    .right-arrow {
                        transform: translateX(5px);

                        .line {
                            background-color: #ffad5b;
                        }

                        .pointer {
                            border-bottom-color: #ffad5b;
                            border-right-color: #ffad5b;
                        }
                    }
                }

                .text {
                    font-size: 14px;
                    text-transform: uppercase;
                    transform: translateY(1px);
                    transition: color .3s ease-in-out;
                    white-space: nowrap;
                    color: white;
                    cursor: pointer;
                    -webkit-user-select: none;
                }

                .right-arrow {
                    margin-left: 10px;
                    height: 6px;
                    min-width: 30px;
                    position: relative;
                    transition: transform .3s ease-in-out;
                    color: white;

                    .line {
                        background: #fff;
                        height: 1px;
                        position: absolute;
                        right: 0;
                        top: 50%;
                        transform: translateY(-50%);
                        width: 100%;
                    }

                    .pointer {
                        border-bottom: 1px solid #fff;
                        border-right: 1px solid #fff;
                        height: 6px;
                        position: absolute;
                        right: 0;
                        top: 50%;
                        transform: translateY(-50%) rotate(-45deg);
                        width: 6px;
                    }
                }
            }
        }
    }

    .timeline-sidedot-nav {
        position: absolute;
        right: 3.125rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9;

        .timeline-sidedot {
            background: #d5dade;
            cursor: pointer;
            height: 9px;
            margin: 10px 0;
            transition: background .3s ease-in-out;
            width: 9px;

            &.active {
                background: #ffad5b;
            }
        }
    }
}

@media (max-width: 768px) {
    .timeline-sidedot-nav {
        display: none;
    }

    .iti-timeline {
        position: relative;

        .timeline-categories {
            width: 100%;
            padding: 0px;
            margin: 0px;
            height: 20px;
            top: 16rem;
            right: 0px;
            left: 0px;

            .timeline-categories-container {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                gap: 1.5rem;
            }
        }
        
        .timeline-container {
            align-items: flex-end;
            background: #141446;
            display: flex;
            flex-direction: row;
            justify-content: center;
            width: 100%;
            min-height: none;
            max-width: 100% !important;
            padding: 0px !important;
            margin: 0px !important;

            .timeline-item {
                .timeline-bg-image,
                .timeline-bg-gradient {
                    bottom: 0;
                    left: 0;
                    position: absolute !important;
                    top: 0;
                    width: 100%;
                    margin: 0px;
                    padding: 0px;
                }

                .timeline-bg-image {
                    /* overflow-y: hidden; */
                    bottom: auto;
                    font-size: 0;
                    height: 17.8125rem;
                    max-width: 100%;
                    width: 100%;
                    z-index: 6;
                }

                .timeline-bg-gradient {
                    background: linear-gradient(0deg, #141446, rgba(20, 20, 70, 0));
                    height: 17.875rem;
                    width: 100%;
                    z-index: 7;
                }

                .timeline-date,
                .timeline-title,
                .timeline-content {
                    min-width: 375px;
                    text-align: center;
                    margin-right: 0px;
                    width: 100%;
                    padding: 0px 3.5rem;
                }

                .timeline-date {
                    margin-top: 27rem;
                }

                .next-slide {
                    right: 50%;
                    margin-right: calc(-131px / 2);
                }
            }
        }
    }
}

@media (max-width: 500px) {
    .iti-timeline .timeline-container .timeline-item .timeline-date h3 {
        font-size: 17px;
        letter-spacing: -.5px;
        line-height: 1.18;
    }
}
/* 
.iti-timeline .timeline-container:first-child {
    visibility: visible !important;
} */