.timeline-container {
    position: relative;
    width: 70%;
    height: 300px;
    margin: 50px 15%;
    float: left;
}
.timeline-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: #333;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-point {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-dot {
    width: 10px;
    height: 10px;
    background: #000000;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.timeline-vertical-line {
    position: absolute;
    width: 1px;
    background: #333;
    left: 50%;
    transform: translateX(-50%);
    height: 50px;
}

.timeline-vertical-line.superior {
    bottom: 10px;
}

.timeline-vertical-line.inferior {
    top: 10px;
}

.timeline-content {
    position: absolute;
    width: auto;
    background: #fff;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.timeline-content h3 {
    font-size: 12px;
}

.timeline-content.superior {
    bottom: 60px;
}

.timeline-content.inferior {
    top: 60px;
}
.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: var(--global_font_weight_8);
    font-size: 12px;
    background: #000;
    color: #fff;
    z-index: 2;
    padding: 2px;
    border-radius: 3px;
}

.timeline-year.superior {
    top: -30px;
}

.timeline-year.inferior {
    bottom: -30px;
}

.timeline-dot {
    position: relative;
}

.timeline-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
    z-index: 10;
    white-space: nowrap;
}

.timeline-dot:hover .timeline-tooltip {
    display: block;
}


/* Estilos para versão mobile */
@media (max-width: 768px) {
    .timeline-container {
        width: 90%;
        height: auto;
        margin: 90px 5%;
        float: left;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .timeline-line {
        width: 2px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
    }
 .timeline-vertical-line.superior {
    bottom: -5px;
    width: 20px;
    height: 1px;
    transform: translateX(20%);
    left: 40%;
  }
     .timeline-vertical-line.inferior {
        top: 5px;
        width: 20px;
        height: 1px;
        transform: translateX(50%);
        left: 50% !important;
      }
    .timeline-point {
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 60px; /* Aumento do espaçamento entre os pontos */
        left: 0 !important;
    }

    .timeline-dot {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: 0px;
    }

    .timeline-content {
        width: 80%;
        text-align: center;
        margin-top: 10px;
    }

    .timeline-content.superior {
        left: auto;
        right: 60%;
        text-align: right;
        top: 50%;
        margin: 0;
        height: auto;
        transform: translateY(-50%);
        bottom: inherit;
        width: auto;
    }

    .timeline-content.inferior {
        left: 65%;
        text-align: left;
        top: 54% !important;
        margin: 0 !important;
        transform: translateY(-50%);
        height: auto;
        right: auto;
        width: auto;
    }

    .timeline-year {
        position: absolute;
        font-size: 16px;
    }
 .timeline-year.superior {
        left: 33%;
        transform: none;
        transform: none;
        position: absolute;
        top: 50%;
        bottom: inherit;
        transform: translateY(-25%);
        font-size: 13px;
    }

    .timeline-year.inferior {
        right: 33%;
        left: auto;
        position: absolute;
        top: 55%;
        bottom: inherit;
        transform: translateY(-26%);
        font-size: 13px;
    }
     .timeline-point.mobile-hidden {
        display: none;
    }
}