.timeline-widget {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Background overlay support */
.timeline-widget.has-overlay {
    position: relative;
}

.timeline-widget::before,
.timeline-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.timeline-content-wrapper {
    position: relative;
    z-index: 2;
}

.timeline-title {
    text-align: center;
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 20px;
    color: #1e3a5f;
}

.timeline-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 60px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-container {
    position: relative;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #00c8ff;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background-color: #00c8ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 200, 255, 0.3);
    transition: all 0.3s ease;
}



.timeline-icon svg {
    max-width:  40px;
    fill: #F8F8F8;
    max-height: 40px;
}

.timeline-icon:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 200, 255, 0.4);
}

.timeline-content {
    width: calc(50% - 60px);
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

/* Arrow pointing to timeline */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: #ffffff;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: #ffffff;
}

.timeline-number {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #00c8ff;
    background-color: #f0f9ff;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.timeline-step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.timeline-description {
    color: #666666;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-widget {
        padding: 40px 15px;
    }
    
    .timeline-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .timeline-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .timeline-line {
        left: 40px;
        transform: none;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-bottom: 50px;
    }
    
    .timeline-icon {
        left: 40px;
        transform: translateX(-50%);
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .timeline-content {
        width: calc(100% - 100px);
        margin-left: 100px !important;
        margin-right: 0 !important;
    }
    
    .timeline-content::before {
        left: -30px !important;
        right: auto !important;
        border-right-color: #ffffff !important;
        border-left-color: transparent !important;
    }
    
    .timeline-step-title {
        font-size: 1.3rem;
    }
    
    .timeline-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .timeline-widget {
        padding: 30px 10px;
    }
    
    .timeline-title {
        font-size: 1.8rem;
    }
    
    .timeline-subtitle {
        font-size: 1rem;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-icon {
        left: 30px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        padding: 20px;
    }
    
    .timeline-content::before {
        left: -25px !important;
        border-width: 12px;
    }
    
    .timeline-step-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .timeline-number {
        font-size: 0.8rem;
        padding: 4px 10px;
        margin-bottom: 12px;
    }
}

/* Animation on scroll (optional) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation delay */
.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; }
