.Timeline {
    display: flex;
    align-items: center;
    height: 500px;
    width: 100%;
    /* Increased height to prevent squashing */
    padding: 20px;
    overflow-x: auto;
    position: relative;
}

.Timeline::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge, and Firefox */
.Timeline {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.event {
    position: absolute;
    /*background-color: #fff;*/
    border-radius: 8px;
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
    width: 380px;
    text-align: center;
    padding: 15px;
}

.event .timeline-date {

    font-size: 18px;

    border-radius: 120px;
    font-weight: 800;
    width: 125px;
    margin: 0 auto;
    padding-top: 5px;
    padding-bottom: 5px;
    -webkit-transition: all 500ms ease-out;
    transition: all 500ms ease-out;
}

.timeline-date.opaque {
    background-color: #000066;
    color: #fff;
    border: solid medium #000066;
}

.timeline-date.transp {
    background-color: rgb(232, 244, 255);
    color: #000066;
    border: solid medium #000066;
}

.timeline-content {
    color: #000066 !important;
    text-align: left;
    padding-left: 110px;
    padding-top: 10px;
}

.timeline-content h4 {
    font-size: 21px;
    line-height: 27px;
    font-weight: 700;
}

.timeline-content p {
    color: #000066 !important;
    text-align: left;
    font-size: 21px;
    line-height: 27px;
}

.event.top {
    bottom: 270px;
    /* Positioned higher above the timeline */
}

.event.bottom {
    top: 270px;
    /* Positioned further below the timeline */
}

.eventTime {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.DayDigit {
    font-size: 27px;
    font-family: "Arial Black", Gadget, sans-serif;
    color: #4C4A4A;
}

.Day {
    font-size: 11px;
    font-weight: bold;
    margin-top: 5px;
    font-family: Arial, Helvetica, sans-serif;
    color: #4C4A4A;
}

.MonthYear {
    font-weight: 600;
    line-height: 10px;
    color: #9E9E9E;
    font-size: 9px;
    margin-top: 5px;
}

.eventTitle {
    font-family: "Arial Black", Gadget, sans-serif;
    color: #a71930;
    font-size: 11px;
    text-transform: uppercase;
    margin-top: 10px;
}

.time {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8px;
    color: #9E9E9E;
    margin-top: 5px;
}

.now {
    background-color: #004165;
    color: white;
    border-radius: 7px;
    margin: 5px;
    padding: 4px;
    font-size: 10px;
    font-family: Arial, Helvetica, sans-serif;
    border: 2px solid white;
    font-weight: bold;
    box-shadow: 0 0 0 2px #004165;
}

.line {
    position: absolute;
    width: 250px;
    height: 2px;
    /* Height of the line */
    background: repeating-linear-gradient(to right,
            #004165 0%,
            #004165 50%,
            transparent 50%,
            transparent 100%);
    background-size: 10px 2px;
    /* Adjust the size for dot spacing */
    top: 50%;
    left: 0;
    right: 0;
    z-index: -1;
    transform: translateY(-50%);
    transition: background 1s ease-in-out;
}

.last-line {
    width: 150px;
}

.first-line {
    width: 100px;
}

.line.solid {
    background-color: #004165;
}

.line.dotted {
    background: repeating-linear-gradient(90deg, black, black 5px, transparent 5px, transparent 10px);
}





.dot {
    position: absolute;
    width: 21px;
    height: 21px;
    background-color: rgb(232, 244, 255);

    border: 2.5px dotted #004165;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transition: all 400ms ease-out;
    transition: all 400ms ease-out;
}

.Timeline .activedot {
    background-color: #ffffff;
    border: 4px solid #004165;
}


/* Scrollable Content */
.scroll-content {
    display: flex;
    gap: 10px;
    width: max-content;
    /* Ensures horizontal scrolling */
    overflow-x: auto;
    /* Enable horizontal scrolling */
    padding-bottom: 20px;
    /* Space for the custom scrollbar */
    scrollbar-width: none;
    /* Hide scrollbar in Firefox */
}

.scroll-content::-webkit-scrollbar {
    display: none;
    /* Hide default scrollbar in Chrome/Safari */
}

/* Scroll Items */
.scroll-item {
    width: 150px;
    height: 100px;
    background: #130f49;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Custom Scrollbar */
.custom-scrollbar {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    width: 30%;
    margin: 0 auto;
    height: 10px;
    background: rgba(176, 168, 197, 0.3);
    /* Light purple track */
    border-radius: 10px;
    overflow: hidden;
}

/* Scroll Thumb */
.scroll-thumb {
    height: 100%;
    width: 50px;
    /* Adjustable */
    background: #130f49;
    /* Dark blue */
    border-radius: 10px;
    position: absolute;
    left: 0;
    cursor: grab;
}

/* Scroll Container */
.timeline-section {
    position: relative;
    width: 100%;
    /* Adjust height as needed */
    overflow: hidden;
    /* Hide default scrollbars */

}

.timeline-section {
    width: 100%;
}