/* ===== TIMELINE SECTION ===== */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--picto-primary);
    top: 0;
    bottom: 0;
    left: 40px;
    /* Aligned to the left */
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px 10px 80px;
    /* Padding for the line on the left */
    position: relative;
    background-color: inherit;
    width: 100%;
    /* Take full width container */
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 30px;
    /* Position dot over the left line */
    background-color: var(--white);
    border: 4px solid var(--picto-primary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.timeline-content {
    padding: 24px 30px;
    background-color: var(--white);
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(var(--picto-primary-rgb), 0.1);
    border-radius: 20px;
    font-size: 1rem;
    color: var(--picto-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-company {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.timeline-role {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.timeline-desc {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.timeline-desc ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.timeline-desc li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

.timeline-desc li:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .timeline-container::after {
        left: 20px;
        /* Adjust left line for mobile */
    }

    .timeline-item {
        width: 100%;
        padding-left: 55px;
        padding-right: 15px;
    }

    .timeline-item::after {
        left: 10px;
        /* Adjust dot for mobile */
    }
}