.timeline {
    position: relative;
    max-width: 700px;
    margin: 40px auto;
    padding-left: 20px;
    border-left: 3px solid #e0e0e0;
}
.timeline-event {
    margin-bottom: 30px;
    position: relative;
    width: 100%;
    padding-left: 30px; /* Adjust padding to accommodate the dot */
}
.timeline-date {
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 5px;
}
.timeline-desc {
    margin-left: 10px;
    color: #e0e0e0;
}

.about-timeline-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 40px;
}

.about-section, .timeline-section {
    flex: 1 1 0;
    min-width: 280px;
    max-width: 500px;
}

@media (max-width: 900px) {
    .about-timeline-container {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
}

.timeline-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-vertical {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 30px 0;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: #D87807;
    z-index: 0;
}

.timeline-event {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    margin: 0;
    position: relative;
}

.timeline-event.left {
    justify-content: flex-end;
}

.timeline-event.right {
    justify-content: flex-start;
}

.timeline-dot {
    position: absolute;
    left: calc(50% - 15px); /* 15px is to adjust for dot width + border, and line width */
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: #C76E03;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.timeline-content {
    background: #222;
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    min-width: 120px;
    position: relative;
    max-width: 220px;
    text-align: right;
    font-size: 0.95em;
    margin-bottom: 2px;
}

.timeline-event.left .timeline-content {
    position: absolute;
    right: 50%;
    margin-right: 30px;
    text-align: right;
}

.timeline-event.right .timeline-content {
    position: absolute;
    left: 50%;
    margin-left: 0px;
    text-align: left;
}

.timeline-date {
    font-weight: bold;
    color: #D87807;
    margin-right: 8px;
}

.timeline-desc {
    color: #e0e0e0;
}

@media (max-width: 700px) {
    .timeline-vertical {
        max-width: 100%;
        padding: 10px 0;
    }
    .timeline-content {
        min-width: 80px;
        max-width: 100%;
        font-size: 0.95em;
        padding: 6px 8px;
    }
    .timeline-dot {
        width: 14px;
        height: 14px;
    }
}