/* 
 * Centered Timeline Widget Styles
 */

.elementor-timeline-widget.timeline-centered {
    position: relative;
    padding: 40px 0;
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Center Timeline Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #f9c221;
    transform: translateX(-50%);
    z-index: 1;
}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Left Side Items */
.timeline-item.timeline-left {
    justify-content: flex-end;
}

.timeline-item.timeline-left .timeline-content {
    text-align: right;
    padding-right: 40px;
    margin-right: 6px;
}

/* Right Side Items */
.timeline-item.timeline-right {
    justify-content: flex-start;
}

.timeline-item.timeline-right .timeline-content {
    text-align: left;
    padding-left: 40px;
    margin-left: 6px;
}

/* Timeline Content */
.timeline-content {
    max-width: 45%;
    padding: 0;
}

/* Timeline Bullets */
.timeline-bullet {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    background-color: #f9c221;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Text Styling */
.timeline-date {
    color: #f9c221;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.timeline-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    margin-top: 0;
}

.timeline-company {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.timeline-description {
    color: #CCCCCC;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-container {
        padding: 0 15px;
    }
    
    /* Stack items vertically on mobile */
    .timeline-item.timeline-left,
    .timeline-item.timeline-right {
        justify-content: flex-start;
    }
    
    .timeline-item.timeline-left .timeline-content,
    .timeline-item.timeline-right .timeline-content {
        text-align: left;
        padding-left: 30px;
        padding-right: 0;
        margin-left: 6px;
        margin-right: 0;
        max-width: calc(100% - 36px);
    }
    
    /* Move line to left on mobile */
    .timeline-line {
        left: 20px;
        transform: none;
    }
    
    .timeline-bullet {
        left: 20px;
        transform: translate(-50%, -50%);
    }
    
    .timeline-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .timeline-company {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .timeline-description {
        font-size: 13px;
    }
    
    .timeline-date {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .elementor-timeline-widget.timeline-centered {
        padding: 20px 0;
    }
    
    .timeline-container {
        padding: 0 10px;
    }
    
    .timeline-item {
        margin-bottom: 35px;
    }
    
    .timeline-item.timeline-left .timeline-content,
    .timeline-item.timeline-right .timeline-content {
        padding-left: 25px;
        max-width: calc(100% - 31px);
    }
    
    .timeline-line {
        left: 15px;
    }
    
    .timeline-bullet {
        left: 15px;
    }
    
    .timeline-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .timeline-company {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .timeline-description {
        font-size: 12px;
    }
    
    .timeline-date {
        font-size: 11px;
        margin-bottom: 6px;
    }
}

/* Dark background compatibility */
.elementor-timeline-widget {
    background: transparent;
}

/* Print styles */
@media print {
    .timeline-bullet {
        background-color: #000 !important;
    }
    
    .timeline-line {
        background-color: #000 !important;
    }
    
    .timeline-date {
        color: #000 !important;
    }
    
    .timeline-title {
        color: #000 !important;
    }
    
    .timeline-description {
        color: #333 !important;
    }
}