.timeline-slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    padding: 40px 20px;
    margin: 0 auto;
}

.timeline-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
}

.timeline-slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 20px;
    transition: all 0.5s ease;
    transform: scale(0.8);
    opacity: 0.4;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .timeline-slide {
        flex: 0 0 50%;
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .timeline-slide {
        flex: 0 0 33.333%;
        min-width: 33.333%;
    }
}

.timeline-slide.active {
    transform: scale(1);
    opacity: 1;
}

.timeline-slide.pre-active,
.timeline-slide.post-active {
    opacity: 0.7;
    transform: scale(0.85);
}

.timeline-slide .content {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    text-align: center;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.timeline-slide .content h2 {
    font-size: 24px;
    margin: 15px 0;
    color: #333;
}

.timeline-slide .content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.timeline-slide .year {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.timeline-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.timeline-line {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 60px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.prev-btn {
    left: -16px;
}

.next-btn {
    right: -16px;
}

.prev-btn:hover,
.next-btn:hover {
    background: #f8f8f8;
    color: #333;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.prev-btn:active,
.next-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.line-progress {
    position: absolute;
    top: 50%;
    left: 20px;
    width: calc(100% - 40px);
    height: 3px;
    background: #ddd;
    transform: translateY(-50%);
    transition: background 0.6s ease;
}

.year-markers {
    position: absolute;
    top: 0;
    left: 20px;
    width: calc(100% - 40px);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.year-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.year-marker .marker {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.year-marker span {
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.year-marker.active .marker {
    transform: scale(1.2);
}

.timeline-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2196F3;
    transform: scale(1.2);
}

.image-container {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .timeline-slider-container {
        padding: 20px 10px;
    }
    
    .year-marker span {
        font-size: 12px;
    }
    
    .year-marker .marker {
        width: 10px;
        height: 10px;
    }
    
    .timeline-slide .content {
        padding: 20px;
    }
    
    .timeline-slide .content h2 {
        font-size: 20px;
    }
    
    .timeline-slide .content p {
        font-size: 14px;
    }
    
    .timeline-slide .year {
        font-size: 24px;
    }
}
