/* Custom Timeline Elementor Widget Styles */
.timeline-wrapper {
    width: 100%;
    max-width: 1400px;
    padding: 60px 20px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    font-family: 'Inter', sans-serif;
}
.timeline-wrapper::-webkit-scrollbar {
    display: none;
}
.timeline {
    display: flex;
    align-items: stretch;
    position: relative;
    min-width: 1100px;
}
.line-bg {
    position: absolute;
    top: 50%;
    left: 20px;
    right: -20px;
    height: 2px;
    background: #7b61ff;
    transform: translateY(-50%);
    z-index: 1;
}
.line-bg::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #7b61ff;
    border-right: 2px solid #7b61ff;
    transform: translateY(-50%) rotate(45deg);
}
.timeline-column {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    flex: 1;
    padding: 0 10px;
}
.timeline-item {
    display: flex;
    gap: 12px;
}
.timeline-item.top {
    align-self: end;
    padding-bottom: 30px;
}
.timeline-item.bottom {
    align-self: start;
    padding-top: 30px;
}
.timeline-item.empty {
    /* Ensures empty slots still occupy space for correct node alignment */
    min-height: 50px;
}
.node-container {
    display: flex;
    align-items: center;
    padding-left: 22px;
}
.node {
    width: 8px;
    height: 8px;
    background: #7b61ff;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}
.icon {
    font-size: 26px;
    color: #9c27b0;
    margin-top: 2px;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}
.content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.time {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ff529a;
    text-transform: uppercase;
}
.title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e61c76;
}
.desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .timeline-wrapper {
        padding: 40px 20px;
    }
    .timeline {
        min-width: unset;
        flex-direction: column;
        padding-left: 40px;
        gap: 35px;
    }
    .timeline-column {
        display: contents;
    }
    .timeline-item {
        position: relative;
        padding: 0 !important;
        align-self: flex-start !important;
    }
    .timeline-item.empty {
        display: none !important; /* Hide empty spacers on mobile */
    }
    .node-container, .line-bg {
        display: none;
    }
    .timeline::before {
        content: '';
        position: absolute;
        left: 20px;
        top: 0;
        bottom: -20px;
        width: 2px;
        background: #7b61ff;
    }
    .timeline::after {
        content: '';
        position: absolute;
        left: 16px;
        bottom: -20px;
        width: 10px;
        height: 10px;
        border-bottom: 2px solid #7b61ff;
        border-right: 2px solid #7b61ff;
        transform: rotate(45deg);
    }
    .timeline-item::before {
        content: '';
        position: absolute;
        left: -24px;
        top: 8px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #7b61ff;
    }
}
