.interactive-timeline-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    height: 600px;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    border-radius: 10px;
}

.timeline-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.8);
}

.timeline-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0) 100%);
}

.event-details {
    margin-bottom: 1rem;
    max-width: 600px;
}

.event-details-date {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 2rem;
    color: #ffffff;
    opacity: 0.9;
}

.event-details-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.event-details-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.timeline-bar-container {
    padding: 20px 0;
}

.timeline-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
    margin: 0;
}

.timeline-event {
    position: relative;
    cursor: pointer;
    flex-grow: 1;
    text-align: center;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.timeline-event.active::before,
.timeline-event:hover::before {
    background-color: white;
}

.timeline-event .event-date {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.timeline-event .event-title {
    display: none;
}

#prev-event,
#next-event {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

#prev-event {
    left: 20px;
}

#next-event {
    right: 20px;
}

#prev-event:hover,
#next-event:hover {
    background: rgba(0, 0, 0, 0.5);
}

.timeline-controls-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.timeline-controls-bottom button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    margin: 0 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.timeline-controls-bottom button:hover {
    color: #a0a0a0;
}