/* Timeline item consistency fixes */
.timeline-item {
    position: relative;
}

/* Ensure consistent date position */
.timeline-date {
    display: block !important; /* Override any inline-block */
    margin-bottom: 15px !important;
    width: fit-content;
}

/* Fix timeline content spacing */
.timeline-content {
    padding: 30px !important;
}

/* Ensure consistent text alignment */
.timeline-title,
.timeline-subtitle,
.timeline-text,
.timeline-skills {
    text-align: left !important;
}

/* Fix the timeline dot position */
.timeline-item::after {
    top: 30px !important;
}

/* Add hover effects to both modes consistently */
.timeline-item:hover::after {
    background-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    transform: scale(1.2);
}

/* Fix dark mode inconsistencies */
[data-theme="dark"] .timeline-date,
.timeline-date {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Fix for mobile responsiveness */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 21px !important;
        right: auto !important;
    }
}
