.section-workflow .workflow-steps {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    gap: 20px;
    counter-reset: step;
}

.section-workflow .workflow-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--color-border);
    z-index: 0;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.section-workflow .workflow-steps .step-card:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(100% + 8px);
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid var(--color-muted-foreground);
}

.step-card .step-number {
    counter-increment: step;
}

.step-card .step-number::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    color: var(--color-background);
    border-radius: 50%;
    font-size: 16px;
}

.step-card .h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.step-card p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

@media (max-width: 768px) {
    .section-workflow .workflow-steps {
        flex-direction: column;
        gap: 40px;
    }

    .section-workflow .workflow-steps::before {
        top: 24px;
        bottom: 0;
        left: 24px;
        width: 1px;
        height: auto;
    }

    .section-workflow .workflow-steps .step-card {
        flex: unset;
        flex-direction: row;
        width: 100%;
    }

    .section-workflow .workflow-steps .step-card:not(:last-child)::before {
        top: calc(100% + 19px);
        left: 20px;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 6px solid var(--color-muted-foreground);
        border-bottom: none;
    }

    .section-workflow .workflow-steps .step-card .step-info {
        text-align: left;
    }
}
