.bottom-section {
    height: 100vh;
    color: white;
    background-color: #1f1f1f;
}

.timeline-container {
    display: flex;
    position: relative;
    height: 100%;
    margin: 50px;
}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.column-title {
    font-size: 1.5em;
    color: white;
    margin-bottom: 40px;
}

.column-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.timeline {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: white;
    z-index: 1;
}

.event {
    position: absolute;
    width: 80%;
    padding: 10px;
    background-color: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-left: 4px solid #0af;
    height: 100%;
    overflow: hidden;
}

.left .column-content .event {
    right: 10%;
    text-align: right;
}

.right .column-content .event {
    left: 10%;
}

.left .event {
    border-left: none;
    border-right: 4px solid #0af;
}

.event .title {
    font-weight: bold;
    font-size: 1.3em;
}

.event .place {
    font-style: italic;
    font-size: 1.1em;
}

.event .degree {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 5px;
}

.event .dates {
    font-size: 1em;
    margin-top: 5px;
    color: #ccc;
}

.event.cropped {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    position: relative;
    overflow: hidden;
}

.event.cropped::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, #2a2a2a, #1f1f1f);
    pointer-events: none;
    z-index: 2;
}

.event.to-present {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.year-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #aaa;
    font-size: 0.9em;
    margin-top: -0.5em;
    z-index: 2;
    background: #1f1f1f;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #333;
    white-space: nowrap;
}

.year-marker::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: #fff;
}

@media (max-width: 768px) {
    .column-title {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .event {
        font-size: 0.75em;
        padding: 8px;
        width: 90%;
    }

    .event .title {
        font-size: 1.1em;
    }

    .event .place {
        font-size: 0.9em;
    }

    .event .degree {
        font-size: 0.9em;
        font-weight: bold;
        margin-top: 5px;
    }

    .event .dates {
        font-size: 0.9em;
    }

    .left .column-content .event {
        right: 12%;
    }

    .right .column-content .event {
        left: 12%;
    }

    .year-marker {
        display: none;
    }

    .year-markerl.left {
        right: calc(50% + 16px);
    }

    .year-marker.right {
        left: calc(50% + 16px);
    }
}