/* Timeline Section */
.timeline {
    position: relative;
    max-width: 100%;
    margin: 80px auto 0;
    padding: 20px 0;
}

/* The vertical line */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

/* Left side */
.timeline-item.left {
    left: 0;
    text-align: right;
}

/* Right side */
.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* The circles on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-color);
    border: 3px solid var(--accent-color);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--bg-color); /* Spacing from line */
}

/* Fix circle position for right side */
.timeline-item.right::after {
    left: -8px;
}

/* Content box */
.timeline-content {
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: #333;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: #000;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.timeline-content p {
    color: #555;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.timeline-number {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item.left, .timeline-item.right {
        left: 0;
        text-align: left;
    }
    
    .timeline-item.left::after, .timeline-item.right::after {
        left: 23px;
    }
}