.timeline {
    position: relative;
}

/* .timeline:before {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 720px;
    z-index: 10;
    background: linear-gradient(rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 52.22%, #fff 100%);
} */

.timeline__container {
    max-width: 900px;
    margin: 0 auto;
}

.timeline__heading {
    text-align: center;
}

.timeline__navigation {
    display: flex;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.timeline__navigation__button {
    font-size: 18px;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    color: #fff;
    background-color: #A89F9F;
    border-radius: 50px;
    padding: 10px 28px;
    border: 0;
    margin-right: 18px;
    margin-bottom: 10px;
    transition: background 0.3s ease-in-out;
    font-weight: 600;
}

.timeline__navigation__button.is-active {
    background-color: #E4212E;
}

.timeline__graph {
    margin-top: 20px;
}

@media (min-width: 768px) {
    .timeline__graph {
        margin-top: 66px;
    }
}

.timeline__graph__description {
    position: relative;
    z-index: 1;
    top: 0;
}

@media (min-width: 768px) {
    .timeline__graph__description {
        position: relative;
        z-index: 1;
        top: -10px;
        display: block !important;
    }
}

@media (max-width: 767px) {
    .timeline__graph__description {
        padding-block: 24px;
        padding-inline: 12px;
        display: none;
    }
}

.timeline__graph__description h5 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 0;
    color: #343434;
}

.timeline__graph__description p {
    line-height: 24px;
    font-size: 16px;
}

.timeline__graph__content {
    display: flex;
    flex-wrap: wrap;
}

.timeline__graph__year,
.timeline__graph__description {
    width: 100%;
}

@media (min-width: 768px) {
    .timeline__graph__year,
    .timeline__graph__description {
        width: calc(50% - 42px);
    }   
}

.timeline__graph__year {
    align-self: center;
    text-align: center;
    color: #fff;
    position: relative;
    left: 0;
}

@media (min-width: 768px) {
    .timeline__graph__year {
        text-align: center;
    }
}

.timeline__graph__year:before {
    content: "";
    display: block;
    position: absolute;
    background-color: #ACACAC;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: background 0.3s ease-in-out;
}

@media (min-width: 768px) {
    .timeline__graph__item.is-active .timeline__graph__year:before {
        background-color: #ED1D24;
    }
}

@media (max-width: 767px) {
    .timeline__graph__item .timeline__graph__year.is-active:before {
        background-color: #ED1D24;
    }
}

.timeline__graph__year:after {
    content: "";
    display: none;
    position: absolute;
    bottom: 1px;
    right: -63px;
    height: calc(100% - 1px);
    width: 50%;
    box-shadow: 5px 20px 26px 0 rgba(0,0,0,.1);
    transform: skewX(-25deg);
    background-color: transparent;
}

.timeline__graph__item.is-active + .timeline__graph__item {
    position: relative;
}

.timeline__graph__item.is-active + .timeline__graph__item:before {
    content: '';
    background: transparent linear-gradient(180deg, #FFFFFF00 0%, #FFFFFFD9 52%, #FFFFFF 100%) 0% 0% no-repeat padding-box;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

@media (min-width: 768px) {
    .timeline__graph__year:after {
        display: block;
    }
}

.timeline__graph__item:not(:last-child) {
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .timeline__graph__item:not(:last-child) {
        margin-bottom: 30px;
    }
}

.timeline__graph__item:nth-child(even) .timeline__graph__year:after {
    left: -63px;
    right: auto;
    box-shadow: -5px 20px 26px 0 rgba(0,0,0,.1);
    transform: skewX(25deg);
}

.timeline__graph__year .icon-plus {
    display: block;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 14px;
    right: 12px;
    z-index: 1;
}

.timeline__graph__year .icon-plus:before,
.timeline__graph__year .icon-plus:after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: #fff;
    transition: transform 0.3s ease-in-out;
}

.timeline__graph__year .icon-plus:before {
    width: 22px;
    height: 4px;
}

.timeline__graph__year .icon-plus:after {
    height: 22px;
    width: 4px;
}

.timeline__graph__year.is-active .icon-plus:before {
    transform: translateY(-50%) rotate(180deg);
}

.timeline__graph__year.is-active .icon-plus:after {
    transform: translateY(-50%) rotate(90deg);
}

.timeline__graph__year h2 {
    color: #fff;
    padding: 0;
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    padding: 12px 10px;
    position: relative;
    z-index: 2;
}

@media (max-width: 767px) {
    .timeline__graph__year h2 {
        font-size: 24px;
    }
}

@media (min-width: 768px) {
    .timeline__graph__item:nth-child(even) .timeline__graph__description {
        padding-right: 36px;
    }
    
    .timeline__graph__item:nth-child(odd) .timeline__graph__description {
        padding-left: 36px;
    }
}

@media (min-width: 768px) {
    .timeline__graph__item:nth-child(even) .timeline__graph__content {
        display: flex;
        flex-direction: row-reverse;
    }
}


.timeline__graph__line {
    width: 84px;
    display: flex;
    position: relative;
}

.timeline__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ACACAC;
    border: 6px solid #fff;
    right: -24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: background 0.25s ease-in-out;
}

.timeline__arrow i {
    position: relative;
    left: 2px;
}

.timeline__graph__item.is-active .timeline__arrow  {
    background-color: #ED1D24;
}

.timeline__graph__line > span {
    width: 50%;
    background-color: #ACACAC;
    display: block;
    transition: background 0.3s ease-in-out;
}

.timeline__graph__item.is-active .timeline__graph__line > span {
    background-color: #ED1D24;
}

.timeline__graph__line > span:first-child {
    mix-blend-mode: multiply;
    transform: skewY(30deg)
}

.timeline__graph__line > span:last-of-type {
    transform: skewY(-30deg);
}

.timeline__graph__line > span:first-child:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: .75;
    background-color: #9c9c9c;
    transition: background 0.3s ease-in-out;
}

.timeline__graph__item.is-active .timeline__graph__line > span:first-child:before,
.timeline__graph__item.is-active .timeline__graph__line > span:last-of-type:before {
    background-color: #C3292E;
}

/* Modifier */

.timeline__graph__item:nth-child(even) .timeline__graph__line {
    flex-direction: row-reverse;
}

.timeline__graph__item:nth-child(even) .timeline__graph__line > span:first-child {
    transform: skewY(-30deg);
}

.timeline__graph__item:nth-child(even) .timeline__graph__line > span:last-of-type {
    transform: skewY(30deg);
}

.timeline__graph__item:nth-child(even) .timeline__arrow  {
    right: auto;
    left: -24px;
}

.timeline__graph__item:nth-child(even) .timeline__arrow i {
    transform: scale(-1, 1);
    left: -1px;
}