/**
 * Timeline Widget CSS
 * 
 * This file contains styles specific to the Timeline widget.
 * All styles are designed to work with Elementor's dynamic styling system.
 */

/* ==========================================
   TIMELINE WIDGET
   ========================================== */

.cew-timeline-widget {
    position: relative;
    /* padding: 40px 0; */
}

.cew-timeline-header {
    text-align: center;
    margin-bottom: 40px;
}

.cew-timeline-title {
    margin-bottom: 1rem;
}

/* .cew-timeline-description {
    max-width: 600px;
    margin: 0 auto;
} */

.cew-timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

.cew-timeline-line {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.cew-timeline-list {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    list-style: none;
    margin: 0 !important;
    padding: 0;
    z-index: 2;
    overflow-x: auto;
}

.cew-timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 33.33% 0 0;
    padding: 0 10px;
    margin: 0 !important;
}

.cew-timeline-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4CAF50;
    margin-bottom: 20px;
    z-index: 3;
    position: relative;
}

.cew-timeline-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    font-family: serif;
}

.cew-timeline-item-description {
    color: #666;
    line-height: 1.4;
    font-family: serif;
    font-size: 0.9rem;
    /* max-width: 200px; */
    margin: 0 auto;
}

/* Responsive Design */
@media screen and (max-width:1366px) {
    .cew-timeline-item { flex: 50% 0 0;}
}
/* @media (max-width: 767px) {
    .cew-timeline-list {
        flex-direction: column;
        align-items: center;
    }

    .cew-timeline-item {
        margin-bottom: 30px;
        width: 100%;
        max-width: 300px;
    }

    .cew-timeline-line {
        display: none;
    }

    .cew-timeline-circle {
        margin-bottom: 15px;
    }

    .cew-timeline-item-description {
        max-width: 100%;
    }
} */

@media (max-width: 575px) {
    /* .cew-timeline-widget {
        padding: 20px 0;
    } */

    .cew-timeline-header {
        margin-bottom: 30px;
    }

    .cew-timeline-year {
        font-size: 1rem;
    }

    .cew-timeline-item-description {
        font-size: 0.8rem;
    }
    .elementor-4587 .elementor-element.elementor-element-0e0c06f .cew-timeline-circle {
        width: 16px;
        height: 16px;
    }
    .cew-timeline-line { top: 7px;}
}

/* Animation Classes */
.cew-timeline-animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.6s ease;
}

.cew-line-animate {
    animation: timelineLineGrow 1.5s ease-out;
}

@keyframes timelineLineGrow {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Elementor Editor Specific Styles */
.elementor-widget.elementor-widget-timeline .elementor-heading-title {
    margin-bottom: 0;
}

.elementor-widget.elementor-widget-timeline .elementor-text-editor {
    margin-bottom: 0;
} 