.nml-cards-grid {
    padding: 80px 0;
    background: var(--color-bg);
}

/* ── Header ── */
.nml-cards-grid__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 48px;
}

.nml-cards-grid .nml-badge{
    margin-bottom: 20px;
}

.nml-cards-grid__heading {
    margin: 0;
    font-size: 48px;
    line-height: 56px;
    font-weight: 700;
    max-width: 720px;
    margin-bottom: 16px;
}

.nml-cards-grid__heading-plain  { color: var(--color-text-primary); }
.nml-cards-grid__heading-accent,
.nml-cards-grid__heading span { color: var(--color-text-accent); }

.nml-cards-grid__subhead {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    color: var(--color-text-secondary);
    max-width: 1004px;
}

/* ── Desktop grid ── */
.nml-cards-grid__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Mobile slider: hidden on desktop ── */
.nml-cards-grid__slider-wrap {
    display: none;
}

/* ── Card ── */
.nml-cards-grid__card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--color-line-blue);
    border-radius: 12px;
    background: var(--color-bg);
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0px 2px 4px 0px #4C83F33D;
}

.nml-cards-grid__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(151.85deg, #162F6F -0.45%, #FF4171 231.49%);
    flex-shrink: 0;
    margin-bottom: 16px;
}

.nml-cards-grid__icon--empty {
    background: var(--color-bg-secondary);
}

.nml-cards-grid__icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.nml-cards-grid__card-title {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    color: var(--color-text-primary);
}

.nml-cards-grid__card-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--color-text-secondary);
}

/* ── Nav row: prev | bullets | next ── */
.nml-cards-grid__nav-row {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

/* ── Nav arrows ── */
.nml-cards-grid__nav {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #889CF1;
    background: #F5F6FA;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #889CF1;
    transition: border-color 0.18s, box-shadow 0.18s;
    flex-shrink: 0;
}

.nml-cards-grid__nav:hover {
    border-color: var(--color-primary-border);
    box-shadow: 0 2px 10px rgba(22, 47, 111, 0.10);
}

.nml-cards-grid__nav.swiper-button-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Pagination dots ── */
.nml-cards-grid__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nml-cards-grid__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 100px;
    background: var(--color-line);
    opacity: 1;
    transition: background 0.18s, width 0.18s;
    cursor: pointer;
    margin: 0 !important;
}

.nml-cards-grid__pagination .swiper-pagination-bullet-active {
    background: var(--color-primary);
    width: 32px;
    border-radius: 100px;
}


@media (max-width: 768px) {
    .nml-cards-grid__header {
        margin-bottom: 32px;
    }

    .nml-cards-grid .nml-badge {
        margin-bottom: 16px;
    }

    .nml-cards-grid {
        padding: 40px 0;
    }

    .nml-cards-grid__heading {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 12px;
    }

    .nml-cards-grid__subhead {
        font-size: 14px;
        line-height: 20px;
    }

    .nml-cards-grid__card {
        padding: 20px;
        border-radius: 8px;
    }

    .nml-cards-grid__icon {
        width: 38px;
        height: 38px;
        margin-bottom: 12px;
    }

    .nml-cards-grid__icon img {
        width: 18px;
        height: 18px;
    }

    .nml-cards-grid__card-title {
        font-size: 16px;
        line-height: 24px;
    }

    .nml-cards-grid__grid {
        display: none;
    }

    .nml-cards-grid__slider-wrap {
        display: block;
    }

    .nml-cards-grid__slide {
        height: auto;
    }
}
