.timeline-505a78a9 {
    position: relative;
    width: 100%;
}

/* Background & Progress Lines */
.timeline-505a78a9-line-bg,
.timeline-505a78a9-line-progress {
    position: absolute;
    left: 30px; /* Aligned with marker center on mobile */
    top: 0;
    z-index: 1;
}

.timeline-505a78a9-line-progress {
    background-color: #3b82f6;
    transition: height 0.1s ease-out;
}

.timeline-505a78a9-items {
    position: relative;
    z-index: 2;
}

.timeline-505a78a9-item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-left: 80px; /* Space for marker and line on mobile */
    box-sizing: border-box;
}

/* Marker */
.timeline-505a78a9-marker {
    position: absolute;
    left: 30px;
    top: 0;
    transform: translateX(-50%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background-color: #f3e8ee;
    transition: background-color 0.3s ease;
}

.timeline-505a78a9-number {
    font-weight: bold;
}

.timeline-505a78a9-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.timeline-505a78a9-headline {
    margin: 0 0 10px 0;
    font-family: inherit;
    line-height: 1.2;
}

.timeline-505a78a9-text p {
    margin: 0;
}

/* Desktop Alternating Layout */
@media (min-width: 768px) {
    .timeline-505a78a9-line-bg,
    .timeline-505a78a9-line-progress {
        left: 50%;
    }

    .timeline-505a78a9-item {
        width: 50%;
        padding-left: 0;
    }

    /* Left aligned items */
    .timeline-505a78a9-item.timeline-505a78a9-left {
        align-self: flex-start;
        padding-right: 60px;
        text-align: right;
    }

    .timeline-505a78a9-item.timeline-505a78a9-left .timeline-505a78a9-marker {
        left: auto;
        right: 0;
        transform: translate(50%, 0);
    }

    /* Right aligned items */
    .timeline-505a78a9-item.timeline-505a78a9-right {
        align-self: flex-end;
        margin-left: 50%;
        padding-left: 60px;
        text-align: left;
    }

    .timeline-505a78a9-item.timeline-505a78a9-right .timeline-505a78a9-marker {
        left: 0;
        transform: translate(-50%, 0);
    }
}
