.timeline-card {
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-card-final {
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-year {
    font-size: 44px;
    font-weight: bold;
    color: var(--primary-orange)
}

.timeline-next-year {
    position: absolute;
    right: 79%; 
    top: -5px;
    font-size: 28px;
    transform: translateX(50%);
}

.timeline-last-year {
    position: absolute;
    right: 21%; 
    top: -5px;
    font-size: 28px;
    transform: translateX(50%);
}
.timeline-date{
    font-size: 18px;
    color: var(--primary-orange)
}
.timeline-title {
    font-size: 20px;
    font-weight: 500;
}
.timeline-description {
    font-size: 16px;
}
.timeline-dot {

    width: 18px;
    height: 18px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
}
.timeline-card::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 45px; 
    background-color: var(--primary-orange);
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: -199999; 
}
.timeline-dot-active{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 50%;
}
.timeline-divider {
    margin-top: 30px;
    width: 70%;
    height: 3px;
    background-color: var(--primary-orange);
    display: flex;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    align-self: center;

}

.timeline-divider:before {
    content: "";
    width: 18px;
    height: 18px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%) translateX(-50%);
}


.timeline-divider:after {
    content: "";
    width: 18px;
    height: 18px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 90%;
    transform: translateY(-50%) translateX(-50%);
}
.timeline-container {
    width: 100%;
    position: relative;
    
}

/* Ajustes para anos com múltiplos cards */
.carousel-item.multiple-cards .timeline-next-year {
    right: 88%; /* Move mais para a esquerda */
}

.carousel-item.multiple-cards .timeline-last-year {
    right: 12%; /* Move mais para a direita */
}

.carousel-item.multiple-cards .timeline-container {
    padding: 0 80px; /* Adiciona padding lateral para afastar dos botões */
}

/* Ajustar linha do timeline para múltiplos cards */
.carousel-item.multiple-cards ~ .timeline-divider {
    width: 80%; /* Linha mais larga para acomodar os anos nas laterais */
}

/* Ajustar botões do carousel para não sobrepor cards */
.carousel-control-prev {
    left: 10px !important;
}

.carousel-control-next {
    right: 10px !important;
}

/* ========================================
   NOVA TIMELINE VERTICAL COM LOOP
   ======================================== */

.vertical-timeline-section {
    position: relative;
    height: 700px;
    overflow: hidden;
    padding: 40px 0;
    margin: 40px 0;
}

.timeline-nav-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px solid var(--primary-orange);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(var(--primary-orange-rgb), 0.2);
}

.timeline-nav-btn:hover {
    background: var(--primary-orange);
    transform: translateX(-50%) scale(1.1);
}

.timeline-nav-btn:hover svg path {
    stroke: white;
}

.timeline-nav-up {
    top: 0;
}

.timeline-nav-down {
    bottom: 0;
}

.vertical-timeline-container {
    height: 100%;
    overflow: hidden;
    position: relative;
    padding: 60px 0;
}

.vertical-timeline-track {
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, 
        rgba(var(--primary-orange-rgb), 0.3) 0%, 
        var(--primary-orange) 50%, 
        rgba(var(--primary-orange-rgb), 0.3) 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-year-block {
    position: relative;
    min-height: 250px;
    margin-bottom: 100px;
    padding: 20px 0;
}

/* Espaço extra para anos com múltiplos cards */
.timeline-year-block:has(.events-grid) {
    min-height: 320px;
    margin-bottom: 140px;
}

.timeline-dot-vertical {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 24px;
    height: 24px;
    background: var(--primary-orange);
    border: 5px solid white;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 0 4px rgba(var(--primary-orange-rgb), 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(var(--primary-orange-rgb), 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(var(--primary-orange-rgb), 0.1);
    }
}

.timeline-year-label {
    position: absolute;
    top: 20px;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-orange);
    z-index: 5;
}

.timeline-year-label.left {
    right: 52%;
    text-align: right;
    padding-right: 20px;
}

.timeline-year-label.right {
    left: 52%;
    text-align: left;
    padding-left: 20px;
}

.timeline-events {
    position: absolute;
    top: 70px;
    width: 44%;
    z-index: 5;
}

.timeline-events.left {
    right: 52%;
    padding-right: 30px;
}

.timeline-events.right {
    left: 52%;
    padding-left: 30px;
}

.timeline-connector {
    position: absolute;
    top: 42px;
    height: 3px;
    background: var(--primary-orange);
    z-index: 2;
}

.timeline-connector.left {
    right: 50%;
    left: 48%;
}

.timeline-connector.right {
    left: 50%;
    right: 48%;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(var(--primary-orange-rgb), 0.2);
}

.event-card-body {
    padding: 20px;
}

.event-image {
    width: 100%;
    max-width: 120px;
    max-height: 80px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 12px;
}

.event-date {
    font-size: 16px;
    color: var(--primary-orange);
    font-weight: 600;
    margin-bottom: 8px;
}

.event-title {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .vertical-timeline-section {
        height: 600px;
    }
    
    .timeline-year-label {
        font-size: 28px;
    }
    
    .timeline-year-label.left,
    .timeline-year-label.right {
        right: auto;
        left: 60px;
        text-align: left;
        padding: 0;
    }
    
    .timeline-events {
        width: calc(100% - 80px);
    }
    
    .timeline-events.left,
    .timeline-events.right {
        left: 60px;
        right: 20px;
        padding: 0;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-dot-vertical {
        left: 30px;
    }
    
    .timeline-connector {
        display: none;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
}


