/* Modern Timeline Styles */
.modern-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
   
}

.timeline-container {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-track {
    position: relative;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 0 60px;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #60b158, #8cd4bc);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

.timeline-items {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 0 60px;
}

.timeline-item {
    position: absolute;
    top: -12px;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 3px solid #d1d5db;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-item:hover::before {
    border-color: #60b158;
    transform: translateX(-50%) scale(1.1);
}

.timeline-item.selected::before {
    background: #60b158;
    border-color: #60b158;
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.timeline-item-label {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.timeline-item:hover .timeline-item-label {
    color: #60b158;
}

.timeline-item.selected .timeline-item-label {
    color: #60b158;
    font-weight: 700;
}

.timeline-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.timeline-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000000;
}

.timeline-nav:hover:not(.disabled) {
    border-color: #60b158;
    color: #60b158;
    transform: scale(1.05);
}

.timeline-nav.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.timeline-nav svg {
    width: 16px;
    height: 16px;
}

.timeline-content {
    position: relative;
    min-height: 200px;
}

.timeline-content-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.timeline-content-item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}




.timeline-content-item .tx-primary-1 {
    color: #60b158;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-timeline {
        padding: 1rem 0;
    }
    
    .timeline-track {
        margin: 0 40px;
    }
    
    .timeline-items {
        margin: 0 40px;
    }
    
    .timeline-item-label {
        font-size: 0.875rem;
    }
    
    .timeline-content-item h3 {
        font-size: 1.5rem;
    }
    
    .timeline-content-item p {
        font-size: 1rem;
    }
    
    .timeline-navigation {
        margin-bottom: 1.5rem;
    }
    
    .timeline-nav {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .timeline-track {
        margin: 0 30px;
    }
    
    .timeline-items {
        margin: 0 30px;
    }
    
    .timeline-item::before {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
    
    .timeline-item-label {
        font-size: 0.75rem;
        top: 25px;
    }
    
    .timeline-content-item {
        padding: 0.5rem !important;
    }
    
    .timeline-content-item h3 {
        font-size: 1.25rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .timeline-content-item p {
        font-size: 0.875rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 450px) {
    .modern-timeline {
        padding: 0.5rem 0;
        overflow-x: hidden;
    }
    
    .timeline-track {
        margin: 0 20px;
    }
    
    .timeline-items {
        margin: 0 20px;
    }
    
    .timeline-item::before {
        width: 14px;
        height: 14px;
        border-width: 2px;
    }
    
    .timeline-item-label {
        font-size: 0.7rem;
        top: 22px;
    }
    
    .timeline-content {
        min-height: 250px;
        padding: 0 0.5rem;
    }
    
    .timeline-content-item {
        padding: 0.5rem !important;
        box-sizing: border-box;
    }
    
    .timeline-content-item h3 {
        font-size: 1.125rem !important;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .timeline-content-item p {
        font-size: 0.8125rem !important;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .timeline-navigation {
        margin-bottom: 1rem;
    }
    
    .timeline-nav {
        width: 32px;
        height: 32px;
    }
    
    .timeline-nav svg {
        width: 14px;
        height: 14px;
    }
}

