/**
 * Timeline Widget Styles
 * Default styling for the Elementor Timeline Widget
 */

/* Container Styles */
.timeline-widget-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Timeline Line */
.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    background-color: #666666;
    width: 2px;
    z-index: 1;
}

/* Timeline Items Container */
.timeline-items {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Individual Timeline Item */
.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    cursor: pointer; /* Make it clear items are clickable */
    transition: all 0.3s ease;
}

.timeline-item:not(:last-child) {
    margin-bottom: 40px;
}

/* Active State */
.timeline-item.active .timeline-dot {
    background-color: #e91e63;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 6px rgba(233, 30, 99, 0.3);
}

.timeline-item.active .timeline-year {
    color: #e91e63;
    font-weight: 700;
    transform: translateX(-8px);
}

/* Timeline Dot */
.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #666666;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

/* Year Label */
.timeline-year {
    position: absolute;
    right: calc(50% + 20px);
    color: #666666;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Highlighted Item Styles */
.timeline-item.highlighted .timeline-year {
    color: #e91e63;
    font-size: 18px;
    font-weight: 600;
}

.timeline-item.highlighted .timeline-dot {
    background-color: #e91e63;
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.2);
}

/* Hover Effects */
.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(102, 102, 102, 0.2);
}

.timeline-item:hover .timeline-year {
    transform: translateX(-5px);
    color: #333;
}

/* Content Section Transitions */
.timeline-content > * {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Content hover and highlight effects */
.timeline-hover {
    background-color: rgba(233, 30, 99, 0.05);
    transition: background-color 0.3s ease;
}

.timeline-highlight {
    background-color: rgba(233, 30, 99, 0.1);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.2);
    transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .timeline-year {
        font-size: 12px;
        right: calc(50% + 15px);
    }
    
    .timeline-item.highlighted .timeline-year {
        font-size: 16px;
    }
    
    .timeline-item:not(:last-child) {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .timeline-year {
        font-size: 11px;
        right: calc(50% + 12px);
    }
    
    .timeline-item.highlighted .timeline-year {
        font-size: 14px;
    }
    
    .timeline-item:not(:last-child) {
        margin-bottom: 25px;
    }
    
    .timeline-dot {
        width: 6px;
        height: 6px;
    }
    
    .timeline-item.highlighted .timeline-dot {
        width: 10px;
        height: 10px;
    }
}

/* Animation for initial load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.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; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }
.timeline-item:nth-child(8) { animation-delay: 0.8s; }
