.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: var(--light-color);
    border: 4px solid var(--secondary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-content {
    padding: 20px;
    background-color: rgba(19, 15, 64, 0.8);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    border-left: 3px solid var(--secondary-color);
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) .timeline-content {
    border-left: none;
    border-right: 3px solid var(--secondary-color);
}

.timeline-date {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

.timeline-content p {
    margin-bottom: 15px;
}

/* Responsividade para Mobile */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        margin-bottom: 40px; /* Aumenta o espaçamento entre itens */
    }

    .timeline-item::after {
        left: 18px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        border-left: 3px solid var(--secondary-color);
        border-right: none;
    }

    .timeline-content {
        padding: 15px;
    }

    /* Ajuste para garantir que o conteúdo não fique muito apertado */
    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .timeline-date {
        font-size: 0.9rem;
    }
}

/* Ajustes para telas muito pequenas */
@media screen and (max-width: 480px) {
    .timeline-item {
        padding-left: 60px;
        padding-right: 15px;
        margin-bottom: 35px;
    }

    .timeline-item::after {
        width: 20px;
        height: 20px;
        left: 15px;
    }

    .timeline-content {
        padding: 12px;
    }
}