.timeline-section {
    padding: 50px 0;
    position: relative;
}

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

.timeline-container::before {
    content: '';
    position: absolute;
    width: 4px;
    background: #2b4eff;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::after {
    content: '';
    display: table;
    clear: both;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 25px;
    background: #fff;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.timeline-item:nth-child(odd) .timeline-content {
    float: left;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
}

.timeline-year {
    position: absolute;
    width: 70px;
    height: 70px;
    background: #2b4eff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(43, 78, 255, 0.3);
}

.timeline-description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* Arrow styling */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: #fff;
    transform: rotate(45deg) translateY(-50%);
    box-shadow: 2px -2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 40px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        float: right !important;
        margin-left: 80px;
    }

    .timeline-year {
        left: 40px;
        transform: translate(-50%, -50%);
    }

    .timeline-item:nth-child(odd) .timeline-content::before {
        left: -10px;
        right: auto;
    }
}
