.header-nossa-historia, .wave-divider {
    background-color: #091951;
}

.div-nossa-historia {
    padding: 2rem;
}

.titulo-dark {
    color: #091951;
}

.div-nossa-historia h1, .linha-tempo h1 {
    font-size: 3rem;
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 2rem;
    font-family: "Libre Baskerville" !important;
    font-style: italic;
    color: #091951;
}

.timeline-container {
    margin: 0 auto;
    width: 79%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.timeline-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.timeline-line {
    height: 4px;
    background-color: #d5d6da;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.timeline-dot:hover {
    transform: scale(1.1);
}

.timeline-tooltip {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.timeline-dot:hover .timeline-tooltip {
    opacity: 1;
    visibility: visible;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 900;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-item {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}

.event-item.reverse {
    flex-direction: row-reverse;
}

.event-text {
    flex: 1;
    padding: 0 20px;
}

.event-image {
    flex: 1;
    padding: 0 20px;
}

.event-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-gallery img {
    width: calc(50% - 5px);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #1f2937;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

.year-indicator {
    position: sticky;
    top: 0;
    background-color: white;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    z-index: 10;
    text-align: center;
}

@media (max-width: 768px) {
    .event-item, .event-item.reverse {
        flex-direction: column;
    }
    .event-text, .event-image {
        padding: 10px;
        width: 100%;
    }
    .image-gallery img {
        width: 100%;
    }
}
