.cnsw-wrapper {
    background-color: #14213D;
    padding: 80px 32px;
    width: 100%;
    box-sizing: border-box;
}

.cnsw-grid {
    display: grid;
    grid-template-columns: repeat(var(--cnsw-cols, 3), 1fr);
    gap: var(--cnsw-gap, 0px);
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* ---- Entrance animation (scroll-triggered) ---- */
.cnsw-step {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 40px 32px;
    box-sizing: border-box;
    cursor: default;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.cnsw-step.cnsw-visible {
    opacity: 1;
    transform: translateY(0);
}

.cnsw-wrapper.cnsw-no-animate .cnsw-step {
    opacity: 1;
    transform: none;
    transition: none;
}

.cnsw-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

/* ---- Hover ---- */
.cnsw-step:hover .cnsw-step-number {
    opacity: 0.6;
}

.cnsw-step:hover .cnsw-step-content {
    transform: translateX(4px);
}

.cnsw-step-number {
    flex-shrink: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 130px;
    line-height: 1;
    color: #FFFFFF;
    opacity: 1;
    font-weight: 400;
    user-select: none;
    transition: opacity 0.3s ease;
}

.cnsw-step-content {
    flex: 1;
    min-width: 0;
    transition: transform 0.25s ease;
}

.cnsw-title {
    color: #FFFFFF;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px 0;
}

.cnsw-desc {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.88;
}

@media (max-width: 1024px) {
    .cnsw-grid {
        grid-template-columns: repeat(var(--cnsw-cols-tab, 2), 1fr);
    }
    .cnsw-step:nth-last-child(-n+1)::after,
    .cnsw-step:nth-child(even)::after {
        display: none;
    }
    .cnsw-step:not(:last-child)::after {
        display: block;
    }
    .cnsw-step-number {
        font-size: 110px;
    }
}

@media (max-width: 767px) {
    .cnsw-wrapper {
        padding: 56px 20px;
    }
    .cnsw-grid {
        grid-template-columns: repeat(var(--cnsw-cols-mob, 1), 1fr);
    }
    .cnsw-step {
        padding: 28px 20px;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
    .cnsw-step:not(:last-child)::after {
        top: auto;
        bottom: 0;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 1px;
    }
    .cnsw-step-number {
        font-size: 90px;
    }
    .cnsw-title {
        font-size: 18px;
    }
    .cnsw-desc {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cnsw-step {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .cnsw-step-number,
    .cnsw-step-content {
        transition: none;
    }
}
