/* ============================================================
   Next Steps / Care Pathway Widget
   ============================================================ */

.next-steps {
    padding: 20px 0 60px;
}

.next-steps h2 {
    font-size: 32px;
    color: #007954;
}

.ns-track {
    display: flex;
    align-items: stretch;
}

.ns-item {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 30px 116px 30px 26px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 76, 53, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ns-item:hover,
.ns-item:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 76, 53, 0.14);
    text-decoration: none;
}

.ns-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #E1F2EA;
    width: 96px;
    color: #00623F;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ns-icon-circle {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #E1F2EA;
    color: #007954;
}

.ns-icon-circle svg {
    width: 46px;
    height: 46px;
}

.ns-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #004C35;
}

.ns-learn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #007954;
    font-size: 15px;
    font-weight: 700;
}

.ns-learn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.ns-item:hover .ns-learn svg {
    transform: translateX(4px);
}

.ns-connector {
    display: flex;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ns-connector::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #BFE3D3;
    transform: translateY(-50%);
}

.ns-connector svg {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #00623F;
    color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .next-steps {
        padding: 10px 0 40px;
    }

    .next-steps h2 {
        font-size: 26px;
    }

    .ns-track {
        flex-direction: column;
        gap: 20px;
    }

    .ns-connector {
        display: none;
    }

    .ns-item {
        padding: 24px 90px 24px 22px;
    }

    .ns-icon-circle {
        top: 18px;
        right: 18px;
        width: 64px;
        height: 64px;
    }

    .ns-icon-circle svg {
        width: 30px;
        height: 30px;
    }

    .ns-title {
        font-size: 19px;
    }
}
