.timeline {
    position: relative;
    padding: 100px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.04);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    min-height: 160px;
    margin-bottom: 10px;
}



.timeline-item.left {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
    padding-left: 60px;
}



/* Place the large number to the right of the line for right items */
.timeline-item.right .timeline-number {
    left: calc(50% + 48px);
    text-align: left;
}

/* Place the large number to the left of the line for left items */
.timeline-item.left .timeline-number {
    left: calc(50% - 48px - 1px);
    text-align: right;
}

/* Position dot on left-side items to the right edge of the left column */
.timeline-item.left .timeline-dot {
    left: unset;
    right: 0;
    transform: translate(50%, -50%);
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 15px;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(17, 24, 39, 1);
    border-radius: 50%;
    z-index: 9;
}

/* Ensure the center line sits behind dots and numbers */
.timeline::before { z-index: 2; }

.timeline-content {
    border-radius: 16px;
    padding: 24px;
    position: relative;
    z-index: 5;
    color: #cbd5e1;
    background: rgba(19, 27, 43, 1);
    border: 1px solid rgba(49, 65, 88, 1);
}



.timeline-icon { display: none !important; }



/* Align subtitle (date) next to the content box depending on side */
.timeline-item.right .timeline-date {
    text-align: left;
    margin-top: 30px;
    margin-bottom: 20px;
}

.timeline-item.left .timeline-date {
    text-align: right;
    margin-top: 30px;
    margin-bottom: 20px;
}

.timeline-item.left .timeline-content {
    text-align: left;
}

.timeline-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: #e6eef6;
    font-weight: 700;
}

.timeline-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 50px;
        min-height: auto;
        margin-bottom: 40px;
        padding-right: 0 !important;
    }

    /* Ensure right-column padding on small screens if needed */
    .timeline-item.right {
        padding-left: 50px;
    }

    /* On mobile, left-column subtitles should be left-aligned */
    .timeline-item.left .timeline-date {
        text-align: left !important;
    }

    /* Reduce content padding on mobile for better fit */
    .timeline-content {
        padding: 16px;
    }

    .timeline-item .timeline-content::before {
        display: none;
    }

    .timeline-item .timeline-icon {
        left: 0 !important;
        right: auto !important;
    }
    .timeline-number { display: none; }
    .timeline-dot { left: 5px; top: 0; transform: none; }
    .timeline-icon { left: 54px !important; }
}