.timeline-container {
    position: relative;
    height: calc(100dvh - 100px);
    display: flex;
    margin: 50px auto;
    max-width: 1400px;
    overflow: hidden;
}

.timeline-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    width: 160px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0 20px 20px;
    x: 10;
}

.timeline-line {
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--themeGreen), transparent);
}

.timeline-year-marker {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-year-marker .year-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    border: 2px solid white;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.timeline-year-marker.active .year-dot {
    width: 18px;
    height: 18px;
    background-color: var(--themeGreen);
    box-shadow: 0 0 0 4px rgba(var(--themeGreenRGB), 0.2);
    margin: 0 7px;
}

.timeline-year-marker .year-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--themeTextGrey);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.timeline-year-marker.active .year-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--themeGreen);
    opacity: 1;
}

.timeline-year-marker:hover .year-dot {
    background-color: var(--themeGreen);
    transform: scale(1.2);
}

.timeline-year-marker:hover .year-label {
    color: var(--themeGreen);
    opacity: 1;
}

.timeline-content-wrapper {
    flex: 1;
    margin-left: 120px;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    position: relative;
}

.timeline-content-wrapper::-webkit-scrollbar {
    display: none;
}

.timeline-section {
    min-height: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 40px;
    box-sizing: border-box;
}

.timeline-section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.timeline-text {
    padding: 30px;
}

.timeline-text .timeline-year {
    font-size: 48px;
    font-weight: 700;
    color: var(--themeGreen);
    margin-bottom: 20px;
}

.timeline-text .timeline-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--themeTextDark);
}

.timeline-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 1024px) {
    .timeline-sidebar {
        width: 80px;
        padding: 15px;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-content-wrapper {
        margin-left: 80px;
    }

    .timeline-section-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline-text .timeline-year {
        font-size: 36px;
    }

    .timeline-text .timeline-description {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    .timeline-container {
        height: calc(100dvh - 80px);
        margin: 40px 20px;
    }

    .timeline-sidebar {
        width: 60px;
        padding: 10px;
    }

    .timeline-line {
        left: 15px;
    }

    .timeline-year-marker .year-label {
        display: none;
    }

    .timeline-year-marker.active .year-label {
        display: block;
        position: absolute;
        left: 30px;
        background: white;
        padding: 5px 10px;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .timeline-content-wrapper {
        margin-left: 60px;
    }

    .timeline-section {
        padding: 20px;
    }

    .timeline-text {
        padding: 20px;
    }

    .timeline-text .timeline-year {
        font-size: 28px;
    }

    .timeline-text .timeline-description {
        font-size: 15px;
    }
}
