.timeline_timeline h1,
.timeline_timeline h2,
.timeline_timeline h3,
.timeline_timeline h4,
.timeline_timeline h5,
.timeline_timeline h6,
.timeline_timeline p {
    margin-block-end: 0;
    /* reset */
}

.timeline_timeline legend {
    margin-block-end: 0;
    /* reset */
}

.timeline_timeline .header input[type='range'] {
    flex-grow: 1;
}

.timeline_timeline .items-container {
    position: relative;
}

.timeline_timeline .items-container:before {
    content: '';
    width: 2px;
    position: absolute;
    left: 50%;
    background: var(--template-text-primary);
    top: 0;
    height: 100%;
    transform: translateX(-50%);
    z-index: 0;
}

@media (max-width: 991px) {
    .timeline_timeline .items-container:before {
        left: 27px;
    }
}

.timeline_timeline .row,
.timeline_timeline.row {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
}

.timeline_timeline .mobile-event-dot-row {
    display: flex;
    justify-content: center;
    margin-block-start: 4.25rem;
    display: none;
}

@media (min-width: 992px) {
    .timeline_timeline .mobile-event-dot-row {
        display: none;
    }
}

.timeline_timeline .mobile-event-dot {
    z-index: 1;
}

@media (max-width: 991px) {
    .timeline_timeline .items-container>.event-row {
        background: var(--template-color-primary);
        padding-block: 1rem;
    }
}


.timeline_timeline .mobile-event-dot,
.timeline_timeline .event-row:before,
.timeline_timeline .event-row:before {
    --event-dot-size: 1.25rem;
    width: var(--event-dot-size);
    height: var(--event-dot-size);
    background: var(--template-color-detail);
    border-radius: 50%;
}

@media (min-width: 992px) {

    .timeline_timeline .event-row:before,
    .timeline_timeline .event-row:before {
        /* position: absolute;
        content: '';
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%); */
    }
}

.timeline_timeline .form-label {
    text-transform: uppercase;
}

.timeline_timeline *+.year-row .timeline_timeline .year-row {
    margin-block-start: 2rem;
}


.timeline_timeline .year-row {
    padding-block: 2.5rem;
    padding-block: 0;
}

@media (max-width: 991px) {
    .timeline_timeline .year-row {
        flex-direction: row;
        margin-top:80px;
    }
}

.timeline_timeline .year-row .year {
    padding-left: 0;
    /* Bootstrap override */
    padding-right: 0;
    /* Bootstrap override */
}

.timeline_timeline .category-selection legend {
    margin-block-end: 0.75rem;
}

@media (min-width: 992px) {
    .timeline_timeline .category-selection legend {
        margin-block-end: 1rem;
    }
}

.timeline_timeline .category-selection .controls-container {
    display: flex;
    width: 100%;
    justify-content: center;
}

.timeline_timeline .category-selection .controls-container .col {
    padding-inline: 0.25rem;
}

@media (min-width: 992px) {
    .timeline_timeline .category-selection .controls-container .col {
        padding-inline: 0.5rem;
    }
}

.timeline_timeline .category-selection .controls-container .chip label {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.timeline_timeline .category-selection .controls-container .chip,
.timeline_timeline .category-selection .controls-container .chip label {
    width: 100%;
    overflow: hidden;
}

.timeline_timeline .chip {
    display: inline-block;
    text-transform: uppercase;
}

.timeline_timeline .chip input[type="checkbox"],
.timeline_timeline .chip input[type="radio"] {
    display: none;
}

.timeline_timeline .chip input[type="checkbox"]+label,
.timeline_timeline .chip input[type="radio"]+label {
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid;
    padding: 0 1rem;
    min-height: 55px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    /* Bootstrap reset */

    -moz-user-select: -moz-none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;

    font-family: var(--template-btn-primary-font-family);
    font-size: clamp(var(--template-btn-primary-font-size-min), var(--template-btn-primary-font-size), var(--template-btn-primary-font-size-max));
    font-style: var(--template-btn-primary-font-style);
    font-weight: var(--template-btn-primary-font-weight);
    letter-spacing: 0.16em;

    background-color: var(--template-btn-secondary-background-color);
    color: var(--template-btn-secondary-text-color);
    border-color: var(--template-btn-secondary-border-color);
}

@media (min-width: 992px) {

    .timeline_timeline .chip input[type="checkbox"]+label,
    .timeline_timeline .chip input[type="radio"]+label {
        padding: 0 1.5rem;
        min-height: 66px;
    }
}

.timeline_timeline .chip:hover input[type="checkbox"]+label,
.timeline_timeline .chip:hover input[type="radio"]+label {
    /* background-color: var(--template-btn-secondary-hover-background-color);
    color: var(--template-btn-secondary-hover-text-color);
    border-color: var(--template-btn-secondary-hover-border-color); */
    background-color: rgba(128, 128, 128, 0.096);
}


.timeline_timeline .chip input[type="checkbox"]:checked+label,
.timeline_timeline .chip input[type="radio"]:checked+label,
.timeline_timeline .chip:hover input[type="checkbox"]:checked+label,
.timeline_timeline .chip:hover input[type="radio"]:checked+label {
    background-color: var(--template-btn-primary-background-color);
    color: var(--template-btn-primary-text-color);
    border-color: var(--template-btn-primary-border-color);
}


.timeline_timeline .chip:hover:active input[type="checkbox"]+label,
.timeline_timeline .chip:hover:active input[type="radio"]+label {
    /* background-color: var(--template-btn-primary-hover-background-color);
    color: var(--template-btn-primary-hover-text-color);
    border-color: var(--template-btn-primary-hover-border-color); */
}

.timeline_timeline .year-sticky {
    position: sticky;
    top: 47vh;
}


@media (max-width: 991px) {
    .timeline_timeline .year-sticky.year {
        font-size: clamp(24px, calc(1.5rem + ((1vw - 3.9px) * 0.7843)), 36px);
        border-bottom: 2px solid;
        border-image: linear-gradient(to right, #00aae1, #73d70f);
        border-image-slice: 1;
    }
}

@media (min-width: 992px) {
    .timeline_timeline .year-sticky.year {
        margin-right: 60px;
    }
}


.timeline_progress-bar {
    position: fixed;
    left: calc(50% - 2px);
    /* top: 0px; */
    right: auto;
    bottom: calc(50vh);
    z-index: 2;
    width: 4px;
    height: 51vh;
    background-color: #fff;
    background: linear-gradient(to bottom, #1BA4D0 58px, #32AABB, #55B09E, #A6C253, #CCCB2F, #ECD213, #FED602, #FBD603, #DBD21F, #A6C84F, #6BBD85, #31B2B8, #07ACDC, #00A9E0, #00A9E0, #00ABD7, #05ADC6, #0FB1B6, #16B2AE);
    border-radius: 1px;
    transform: translate(0, -15px);
}

@media (max-width: 991px) {
    .timeline_progress-bar {
        left: 25px;
        transform: translate(0, 5px);
    }
}

.timeline_timeline .row.header {
    background-color: #fff;
    z-index: 3;
    position: relative;
}

.timeline_timeline .year-row .year,
.timeline_timeline .year-row .text-image {
    opacity: 0.25;
    transition: opacity 300ms ease;
}

.timeline_timeline .year-row.active .year,
.timeline_timeline .year-row.active .text-image {
    opacity: 1;
}

@media (max-width: 991px) {
    .timeline_timeline .year-row .article-dot {
        display: none;
    }
}

.timeline_timeline .article-dot-mobile {
    position: sticky;
    top: (50% + 22px);
    top: 50vh;
    z-index: 2;
    height: 100%;
    margin-top: -32px;
    margin-bottom: 58px;
    margin-top: -30px;
}

@media (min-width: 576px) {
    .timeline_timeline .article-dot-mobile {
        margin-top: -32px;
    }
}

@media (min-width: 992px) {
    .timeline_timeline .article-dot-mobile {
        display: none;
    }
}

@media(min-width: 992px) {
    .timeline_timeline .article-dot {
        margin-top: 13px;
    }
}

.timeline_timeline .year-row .article-dot>div {
    background-color: white;
}

.timeline_timeline .year-row.active .article-dot>div {
    border-color: #73D70F;
}

.timeline_timeline .col:nth-child(1)>.chip>label {
    border-color: #696969 !important;
    /* background-color: #696969 !important; */
    border-width: 2px !important;
}

.timeline_timeline .col:nth-child(2)>.chip>label {
    border-color: #00aae1 !important;
    /* background-color: #00aae1 !important; */
    border-width: 2px !important;
}

.timeline_timeline .col:nth-child(3)>.chip>label {
    border-color: #51eacc !important;
    /* background-color: #51eacc !important; */
    border-width: 2px !important;
}

.timeline_timeline .col:nth-child(4)>.chip>label {
    border-color: #ffd700 !important;
    /* background-color: #ffd700 !important; */
    border-width: 2px !important;
}

.timeline_timeline .col:nth-child(5)>.chip>label {
    border-color: #73d70f !important;
    /* background-color: #73d70f !important; */
    border-width: 2px !important;
}

.timeline_timeline .col:nth-child(6)>.chip>label {
    border-color: #92b0e1 !important;
    /* background-color: #92b0e1 !important; */
    border-width: 2px !important;
}

.timeline_timeline .col:nth-child(1)>.chip input[type="checkbox"]:checked+label,
.timeline_timeline .col:nth-child(1)>.chip input[type="radio"]:checked+label {
    background-color: #69696970 !important;
}

.timeline_timeline .col:nth-child(2)>.chip input[type="checkbox"]:checked+label,
.timeline_timeline .col:nth-child(2)>.chip input[type="radio"]:checked+label {
    background-color: #00aae170 !important;
}

.timeline_timeline .col:nth-child(3)>.chip input[type="checkbox"]:checked+label,
.timeline_timeline .col:nth-child(3)>.chip input[type="radio"]:checked+label {
    background-color: #51eacc70 !important;
}

.timeline_timeline .col:nth-child(4)>.chip input[type="checkbox"]:checked+label,
.timeline_timeline .col:nth-child(4)>.chip input[type="radio"]:checked+label {
    background-color: #ffd70070 !important;
}

.timeline_timeline .col:nth-child(5)>.chip input[type="checkbox"]:checked+label,
.timeline_timeline .col:nth-child(5)>.chip input[type="radio"]:checked+label {
    background-color: #73d70f70 !important;
}

.timeline_timeline .col:nth-child(6)>.chip input[type="checkbox"]:checked+label,
.timeline_timeline .col:nth-child(6)>.chip input[type="radio"]:checked+label {
    background-color: #92b0e170 !important;
}


/*CRTEDU Button Definition*/
.timeline_timeline a.article-link:hover>div>i.move-right {
    transform: scale(1.5, 1) translate(4px, 1px);
}

.timeline_timeline a.article-link>div>i.move-right {
    transition: transform 0.3s ease;
    transform: scale(1.5, 1) translate(0, 1px);
    margin-left: 12px;
}

.timeline_timeline .btn-prim {
    padding: 22px 24px;
    border: 1px solid transparent;
    color: white;
}

.timeline_timeline .btn-prim:hover {
    border: 1px solid transparent !important;
    color: white !important;
}

.timeline_timeline .btn-prim {
    border: 1px solid transparent !important;
    color: white !important;
    transition: all 1s !important;
}

.timeline_timeline .gradient {
    position: relative;
    background-image: linear-gradient(to right, #00aae2 0%, #73d70f 100%) !important;
    z-index: 1;
}

.timeline_timeline .gradient::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(to right, #00aae2 20%, #73d70f 120%) !important;
    z-index: -1;
    transition: opacity 0.5s linear;
    opacity: 0;
    border-radius: 6px;
}

.timeline_timeline .gradient:hover::before {
    opacity: 1;
    border-radius: 6px;
}

@media (min-width: 992px) {

    .timeline_timeline .text-right {
        margin-top: 136px;
        margin-bottom: 40px;
    }
}