/**
 * Timeline Element Styles
 * Webvina Flatsome Tools
 */

.wvft-timeline-container {
    position: relative;
    padding: 60px 20px;
    overflow: hidden;
}

.wvft-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    z-index: 1;
}

.wvft-timeline-items {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.wvft-timeline-item {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    min-height: 100px;
}

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

/* Left aligned items */
.wvft-timeline-item.left {
    justify-content: flex-end;
    text-align: right;
}

.wvft-timeline-item.left .wvft-timeline-content {
    padding-right: 60px;
    max-width: 50%;
}

/* Right aligned items */
.wvft-timeline-item.right {
    justify-content: flex-start;
    text-align: left;
}

.wvft-timeline-item.right .wvft-timeline-content {
    padding-left: 60px;
    max-width: 50%;
}

/* Timeline dot */
.wvft-timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid;
    z-index: 3;
    transition: all 0.3s ease;
}

.wvft-timeline-dot.highlight {
    width: 20px;
    height: 20px;
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.2);
}

/* Timeline content */
.wvft-timeline-content {
    animation: fadeInUp 0.6s ease;
}

.wvft-timeline-year {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.2;
}

.wvft-timeline-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.3;
}

.wvft-timeline-description {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Responsive styles */
@media (max-width: 768px) {
    .wvft-timeline-container {
        padding: 40px 15px;
    }

    .wvft-timeline-line {
        left: 30px;
    }

    .wvft-timeline-item {
        margin-bottom: 50px;
    }

    .wvft-timeline-item.left,
    .wvft-timeline-item.right {
        justify-content: flex-start;
        text-align: left;
    }

    .wvft-timeline-item.left .wvft-timeline-content,
    .wvft-timeline-item.right .wvft-timeline-content {
        padding-left: 60px;
        padding-right: 0;
        max-width: 100%;
    }

    .wvft-timeline-dot {
        left: 30px;
    }

    .wvft-timeline-year {
        font-size: 22px;
    }

    .wvft-timeline-title {
        font-size: 18px;
    }

    .wvft-timeline-description {
        font-size: 13px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects */
.wvft-timeline-item:hover .wvft-timeline-dot {
    transform: translate(-50%, -50%) scale(1.2);
}

.wvft-timeline-item:hover .wvft-timeline-content {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}