/**
 * Timeline Widget Styles
 * Professional vertical timeline design
 */

.timeline-widget {
    position: relative;
    padding: 20px 0;
}

/* Vertical line */
.timeline-widget::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #E5E7EB;
}

/* Timeline item */
.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Marker (circle) */
.timeline-item-marker {
    position: relative;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-color: #7C3AED;
    border: 4px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-item-marker {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

/* Content container */
.timeline-item-content {
    flex: 1;
    margin-left: 40px;
    padding-top: 2px;
}

/* Date */
.timeline-item-date {
    font-size: 14px;
    font-weight: 600;
    color: #2563EB;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Title */
.timeline-item-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Description */
.timeline-item-description {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-widget::before {
        left: 10px;
    }
    
    .timeline-item-marker {
        width: 20px;
        height: 20px;
        border-width: 3px;
    }
    
    .timeline-item-content {
        margin-left: 30px;
    }
    
    .timeline-item-date {
        font-size: 12px;
    }
    
    .timeline-item-title {
        font-size: 18px;
    }
    
    .timeline-item-description {
        font-size: 14px;
    }
    
    .timeline-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .timeline-item-content {
        margin-left: 25px;
    }
    
    .timeline-item-title {
        font-size: 16px;
    }
    
    .timeline-item-description {
        font-size: 13px;
    }
}

/* Animation on scroll (optional enhancement) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

/* Elementor editor specific styles */
.elementor-editor-active .timeline-item {
    animation: none;
}
