/* How Sehat Works - numbered step timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Center vertical line */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* Numbered dot on the timeline */
.timeline-item::after {
    content: attr(data-step);
    position: absolute;
    width: 30px;
    height: 30px;
    right: -15px;
    background-color: var(--primary);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 18px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--bg);
    transition: var(--transition);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -15px;
}

.timeline-content {
    padding: 24px;
    background-color: var(--card);
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--primary);
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-gray);
    font-size: 14px;
}

@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 10px;
    }

    .timeline-item::after {
        left: 16px;
        right: auto;
    }

    .left,
    .right {
        left: 0;
    }
}
