body {
    background: #121b22;
}

/* Mobile layout: timeline line on the left, content on the right */
@media (max-width: 1079px) {
    .years-wrapper {
        position: relative;
        overflow-x: hidden;
        overflow-y: auto;
        padding-left: 32px;
        /* give space for the left line */
    }

    /* NOTE: hide wrapper pseudo and move the vertical line to the inner `.years`
       element so it spans the full scrollable content height */
    .years-wrapper::before {
        display: none;
    }

    .years {
        position: relative;
        /* relative so ::before spans the full content */
    }

    .years {
        display: block;
        width: 100%;
    }

    /* Prevent horizontal scrolling on mobile: allow content to wrap and
       remove min-width constraints that force horizontal overflow. */
    .years {
        min-width: 0 !important;
        width: auto !important;
    }

    .years-wrapper {
        overflow-x: hidden !important;
    }

    .year {
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    /* Make textual blocks wrap instead of forcing width */
    .year .yearLabel,
    .year .event-display,
    .year .yearTitle,
    .year .yearLabel>span {
        word-break: break-word;
        overflow-wrap: anywhere;
        max-width: 100%;
    }

    /* Ensure images don't force horizontal overflow */
    .year img {
        max-width: 40% !important;
        width: auto !important;
        height: auto !important;
        display: block;
    }

    /* fallback styling for the injected JS line element; inline sizing set by JS */
    .timeline-vertical-line {
        position: absolute;
        width: 2px;
        background: #f9f9f9;
        z-index: 1;
        /* behind ticks (ticks use z-index > 1) */
        pointer-events: none;
    }

    .year {
        position: relative;
        display: block;
        width: 100%;
        padding: 12px 12px 12px 12px;
        box-sizing: border-box;
        margin-bottom: 12px;
        background: transparent;
        max-width: none;
    }

    .year.before {
        margin-left: 0 !important;
    }

    .year.before .tick {
        left: -26px !important;
    }

    /* small circular marker on the left line for each year */
    .year .tick {
        position: absolute;
        left: 24px;
        /* center over the inner .years line */
        top: 20px;
        width: 14px !important;
        height: 14px !important;
        background: #f9f9f9;
        z-index: 3 !important;
        /* above the line */
        box-shadow: 0 0 0 4px rgba(69, 87, 133, 0.12);
        transform: translateY(-50%);
    }

    /* Ensure the year label and description flow to the right */
    .year .yearLabel,
    .year .event-display,
    .year .yearTitle {
        margin: 0;
        padding: 0;
        position: relative;
        z-index: 3;
    }

    /* Make the year label layout a two-column row so the image sits on the right */
    .year .yearLabel {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    /* Override floats and size images for mobile */
    .year img {
        float: none !important;
        display: block;
        max-width: 30%;
        height: auto !important;
        margin-left: 12px;
        object-fit: contain;
    }

    .year .event-display {
        margin-top: 8px;
    }

    /* hide long decorative pseudo-elements that don't fit mobile layout */
    .after::after,
    .before::before,
    .yearLabel::after {
        display: none;
    }

    /* MOBILE OVERRIDES: force single-column behaviour and keep images attached to their content */
    /* Remove left/right paddings added for desktop alternating layout */
    .year .yearLabel,
    .year .event-display>div,
    .year .event-display,
    .year .yearTitle {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Neutralize utility classes like pl-[60px] / pr-[60px] by matching substring */
    .year [class*="pl-"] {
        padding-left: 0 !important;
    }

    .year [class*="pr-"] {
        padding-right: 0 !important;
    }

    /* Ensure row-reverse / flex-row modifiers don't keep desktop alternating layout */
    .year.row-reverse,
    .year.flex-row {
        display: block !important;
        flex-direction: column !important;
    }

    /* Keep images attached to the content area and sized reasonably */
    .year img {
        max-width: 110px;
        width: auto;
        height: auto !important;
        margin-left: 12px;
        margin-top: 0;
        float: none !important;
        align-self: flex-end;
    }

    /* Give the textual content full width (minus image) so long descriptions wrap nicely */
    .year .yearLabel>span,
    .year .yearLabel>.tick+span {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* Ensure the tick vertically centers for variable height content */
    .year .tick {
        top: 50%;
        transform: translate(-50%, -50%);
        left: -26px;
        /* align with the inner .years line */
    }

    .h-sub-timeline {
        padding: 60px 10px 12px 10px !important;
    }
}

.timeline {
    border-width: 1px;
    border-color: transparent;
}

.border.timeline {
    border-width: 1px;
    border-color: #e5e7eb;
}

.timeline-line-h {
    height: 1px !important;
}

.timeline-line {
    width: calc(100% - 20px);
    left: 10px;
}

.top-track {
    display: flex;
    justify-content: space-between;
    overflow-x: auto;
    gap: 51.8px;
    width: 100%;
}

.top-track .active {
    background-color: #2673ff;
}

.year.active .active {
    background-color: #2673ff;
}

.active-track {
    border: 2px solid white;
}

.track {
    border: 2px solid transparent;
}

.yearTitle ul {
    padding-left: 20px;
    list-style-type: disc;
    list-style-position: outside;
    overflow: visible;
}

.yearTitle ul li {
    display: list-item;
    margin-bottom: 10px;
    margin-left: 20px;
}

.yearTitle ul li::marker {
    color: #f9f9f9;
}

.yearTitle {
    overflow: visible;

    :last-child {
        margin-bottom: 30px;
    }
}

.event-display {
    overflow: visible;
}

/* .year.before {
    margin-left: 460px;
}

.after::after {
    content: "";
    position: absolute;
    right: 0;
    width: 2px;
    background: #F9F9F9;
    height: 100%;
    top: 42px;
    transform: translateX(1.5px);
}

.before::before {
    content: "";
    position: absolute;
    left: 0;
    width: 2px;
    background: #F9F9F9;
    height: 100%;
    top: 42px;
    transform: translateX(-0.5px);
} */

.year.before {
    margin-left: 460px;
}

/* .year {
    box-sizing: border-box;
} */

/* .after::after {
    content: "";
    position: absolute;
    right: -1px;
    width: 2px;
    background: #ffffff;
    height: 100%;
    top: 42px;
        z-index: 1;

}

.before::before {
    content: "";
    position: absolute;
    left: -1px;
    width: 2px;
    background: #ffffff;
    height: 103%;
    bottom: 42px;
        z-index: 2;

} */

@media (max-resolution: 95dpi) {
    .after::after {
        right: -2px;
        width: 3px;
    }
}

.year-timeline-line {
    /* width: 100%;
    left: 10px; */
}

.timle-line-top {
    top: auto !important;
    margin-top: 20px;
}

.event-display {
    text-align: left;
}

/* .event-display h2 {
    margin-top: 10px;
} */
.timeline {
    scrollbar-width: none;
}

.years-wrapper {
    display: flex;
    overflow-x: auto;
    /* scrollbar-width: none; */
    /* -ms-overflow-style: none; */
}

/* .years-wrapper::-webkit-scrollbar {
    display: none;
} */

.year {
    text-align: center;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;

    /* position: relative; */
}

/* Custom scrollbar for year wrapper(s) - prettier than the browser default */
.year-wrapper,
.years-wrapper {
    /* allow scrolling when content overflows */
    overflow: auto;
    position: relative;
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 122, 153, 0.6) rgba(255, 255, 255, 0.02);
}

/* WebKit browsers */
.year-wrapper::-webkit-scrollbar,
.years-wrapper::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.year-wrapper::-webkit-scrollbar-track,
.years-wrapper::-webkit-scrollbar-track {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.01));
    border-radius: 10px;
}

.year-wrapper::-webkit-scrollbar-thumb,
.years-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
            rgba(38, 115, 255, 0.95),
            rgba(38, 115, 255, 0.75));
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 0, 0, 0.15);
    /* creates padding look */
}

.year-wrapper::-webkit-scrollbar-thumb:hover,
.years-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
            rgba(38, 115, 255, 1),
            rgba(38, 115, 255, 0.85));
}

/* For very small screens make the scrollbar a little bigger to be touch-friendly */
@media (max-width: 600px) {

    .year-wrapper::-webkit-scrollbar,
    .years-wrapper::-webkit-scrollbar {
        height: 14px;
        width: 14px;
    }
}

.year:last-child:after {
    content: none;
}

.years {
    display: flex;
    justify-content: flex-start;
    padding: 0;
    min-width: max-content;
    flex-direction: column;
    width: 100%;
    /* height: calc(100vh - 50px); */
}

.year .tick {
    min-width: 20px;
    height: 20px;
    background-color: #f9f9f9;
    margin-top: 0;
    bottom: -7px;
    z-index: 1;
    position: absolute;
}

.year.after .tick {
    right: -10px;
}

.year.before .tick {
    left: -10px;
}

.year.active .tickActive {
    width: 12px;
    height: 12px;
    background-color: #2673ff;
    margin: 0 auto;
}

.navigation {
    width: calc(100% - 24px);
    bottom: 22.5px;
}

.navigation button {
    border: 2px solid #b8b8b7;
    color: #b8b8b7;
    font-size: 15px;
    margin: 0 5px;
    cursor: pointer;
    height: 25px;
    width: 25px;
    text-align: center;
}

.navigation button img {
    width: 5.4px;
    height: 10.9px;
    margin-left: 9.11px;
}

.event-display-top {
    top: 210px !important;
}

.event-display-bottom {
    top: 58px !important;
}

.event-display-top-156 {
    top: 156px !important;
}

.col {
    flex-direction: column;
}

.col-reverse {
    flex-direction: column-reverse;
}

.left-y-60 {
    left: -65px !important;
}

.left-y-45 {
    left: -50px !important;
}

.left-y-100 {
    left: -105px !important;
}

.left-y-55 {
    left: -60px !important;
    top: -10px !important;
}

.left-y-43 {
    left: -48px !important;
}

.left-y-40 {
    left: -45px !important;
}

.left-y-165 {
    left: -165px !important;
}

.left-y-65 {
    left: -70px !important;
}

.left-y-88 {
    left: -93px !important;
}

.left-y-178 {
    left: -262px !important;
}

.left-y-82 {
    left: -87px !important;
}

.left-y-84 {
    left: -75px !important;
}

.left-y-64 {
    left: -69px !important;
}

.left-y-77 {
    left: -82px !important;
}

.left-y-161 {
    left: -165px !important;
}

.left-y-58 {
    left: -63px !important;
}

.left-y-67 {
    left: -72px !important;
}

.left-y-66 {
    left: -71px !important;
}

.bottom-auto {
    bottom: auto;
}

.bottom-20 {
    bottom: 20px;
}

.left-y-150 {
    left: -155px;
}

.left-y-61 {
    left: -66px;
}

.left-y-269 {
    left: -274px;
}

.normal {
    line-height: normal;
}

.line-h-23 {
    line-height: 23px;
}

.yearLabel::after {
    content: "";
    position: absolute;
    background: #455785;
    height: 2px;
    width: 100%;
    left: 0;
    bottom: 2px;
}

.yw-230 {
    min-width: 230px;
}

.yw-342 {
    min-width: 342px;
}

.yw-228 {
    min-width: 228px;
}

.yw-114 {
    min-width: 114px;
}

.yw-456 {
    min-width: 456px;
}

.yw-370 {
    min-width: 370px;
}

.yw-100 {
    min-width: 100px;
}

.yw-164 {
    min-width: 164px;
}

.yw-80 {
    min-width: 80px;
}

.yw-87 {
    min-width: 87px;
}

.yw-73 {
    min-width: 73px;
}

.yw-90 {
    min-width: 90px;
}

.topLabel-69 {
    top: 69px;
}

.topLabel-57 {
    top: 57px;
}

.topLabel-74 {
    top: 74px;
}

.topLabel-47 {
    top: 47px !important;
}

.topLabel-71 {
    top: 71px !important;
}

.topLabel-107 {
    top: 107px !important;
}

.bg-transparent {
    background-color: transparent !important;
}

.afterCss {
    width: 100% !important;
    display: flex;
    gap: 5px;
}

.year.active .before.beforeCss::before {
    height: 100%;
}

.sub-tick {
    width: 20px;
    height: 20px;
    background-color: #f9f9f9;
    left: 20px;
}

.lines {
    width: 1px !important;
    height: 8px;
    margin: 0 10px;
    top: 6.5px;
}

.timeline-height {
    height: calc(1148px - 320px);
    min-height: 680px;
    padding-bottom: 150px;
}

.bottom-full {
    bottom: 100%;
}

.content {
    height: max-content;
    width: max-content;
}

.l-22 {
    left: -11px;
}

.l-33 {
    left: -15px;
}

.h-content {
    height: max-content;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.bottom-6 {
    bottom: 6px;
}

.left-y-140 {
    left: -145px;
}

.gap-3 {
    gap: 0.75rem;
}

.h-sub-timeline {
    /* height: calc(100vh - 340px); */
    height: 100%;
    padding: 60px 30px 12px 30px;
    /* padding: 60px 30px; */

    .years-wrapper {
        max-width: 930px;
        margin: 0 auto;
    }
}

.years-inner {
    transition: transform 0.3s ease-out;
}

@media (max-width: 924px) {
    .timeline-height {
        height: calc(1148px - 220px);
    }
}

@media (width: 1024px) and (height: 600px) {
    .timeline-height {
        height: calc(1148px - 220px);
    }

    .years {
        padding: 155px 0 0;
    }

    .timle-line-top {
        top: 156px !important;
    }

    .event-display-top {
        top: 175px !important;
    }

    .event-display-top-156 {
        top: 56px !important;
    }

    .event-display-bottom {
        top: 16px !important;
    }
}

.event-display::after {
    content: "";
    position: absolute;
    left: -1px;
    width: 2px;
    background: #ffffff;
    height: auto;
    top: -20px;
    z-index: 1;
    right: auto;
    bottom: -20px;

    @media (max-width: 1079px) {
        display: none;
    }
}

.row-reverse .event-display::after {
    right: -1px;
    top: 42px;
    z-index: 2;
    left: auto;
    bottom: -20px;
}

.row-reverse:not(:first-child) .event-display::after {
    top: -20px;
}

.row-reverse:last-child .event-display::after {
    top: -20px;
}

.year:last-child .event-display::after {
    content: none;
}

.year:last-child .event-display .yearLabel::before {
    content: "";
    position: absolute;
    left: -1px;
    width: 2px;
    background: #ffffff;
    height: auto;
    top: 0px;
    z-index: 1;
    right: auto;
    bottom: 0px;
}

.year.row-reverse:last-child .event-display .yearLabel::before {
    right: -1px;
    top: 0;
    z-index: 2;
    left: auto;
    bottom: 0;
}