.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% - 120px);
    background-color: #ddd;
    z-index: 0;
}

.timeline-line-fill {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background-color: #007bff;
    transition: height 0.3s ease;
    z-index: 0;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1;
}

.timeline-item.right {
    margin-left: 50%;
}

.timeline-item.left {
    margin-right: 50%;
    text-align: right;
}

.timeline-item.left .timeline-content-wrapper.image-left {
    flex-direction: row-reverse;
}

.timeline-item.left .timeline-content-wrapper.image-right {
    flex-direction: row;
}

.timeline-date {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
    padding: 0;
    line-height: 1.2;
}

.timeline-item.right .timeline-date {
    left: -40px;
}

.timeline-item.left .timeline-date {
    right: -40px;
}

.timeline-content-wrapper {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.timeline-image-wrapper {
    width: 40%;
    flex-shrink: 0;
}

.timeline-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.timeline-content-main {
    flex: 1;
    min-width: 0;
}

.timeline-item.right .timeline-content-wrapper {
    flex-direction: row;
}

.timeline-item.left .timeline-content-wrapper {
    flex-direction: row-reverse;
}

.timeline-item.right .timeline-content-wrapper.image-left {
    flex-direction: row-reverse;
}

.timeline-item.right .timeline-content-wrapper.image-right {
    flex-direction: row;
}

.timeline-title {
    margin: 0 0 15px;
    font-size: 1.5em;
}

.timeline-content {
    margin-bottom: 20px;
}

.timeline-button {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.timeline-button:hover {
    transform: translateY(-2px);
}

.timeline-after-text {
    text-align: left;
    margin-top: 10px;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Responsive styles */
@media (max-width: 768px) {
    .timeline-line,
    .timeline-line-fill {
        left: 40px;
    }

    .timeline-item,
    .timeline-item.right,
    .timeline-item.left {
        width: 100%;
        padding-left: 100px !important;
        padding-right: 20px !important;
        margin: 0 !important;
        text-align: left;
    }

    .timeline-date {
        left: 0 !important;
        right: auto !important;
        transform: translateY(-50%);
    }

    .timeline-image-wrapper {
        width: 100%;
    }
    
    .timeline-item.right .timeline-content-wrapper,
    .timeline-item.left .timeline-content-wrapper {
        flex-direction: column;
    }
} 