.events-timeline {
    position: relative;
    background-color: #fff;
    min-height: 100vh;
    padding: 0px 0;
    margin-top: 0px; /* Add space for header */
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    margin-top: 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: #3366CC;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 30px;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-content {
    position: relative;
    background: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    padding: 20px;
    z-index: 2;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(51, 102, 204, 0.15);
}

.timeline-content:hover .event-image img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.event-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}



.event-info {
    padding: 20px 0 0;
}

.event-info h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.event-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

.event-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Timeline dots */
.timeline-item::before {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: white;
    border: 4px solid #3366CC;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-item.right::before {
    left: -12px;
}

.timeline-item.left::before {
    right: -13px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item::before {
        left: 19px;
    }
}
