.nml-hf {
    padding: 0 0 80px;
    background-color: var(--color-primary);
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Hero row */
.nml-hf__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 152px;
    padding-bottom: 56px;
    position: relative;
}

.nml-hf__hero-content {
    max-width: 594px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.nml-hf__heading {
    color: var(--color-text-white);
    margin: 0;
    font-size: 56px;
    line-height: 64px;
    font-weight: 700;
    margin-bottom: 20px;
}

.nml-hf__subhead {
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 26px;
    font-weight: 500;
    display: flex;
    align-items: center;
    text-align: left;
    color: var(--color-text-white);
}

.nml-hf__ratings {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 32px;
}
.nml-hf__rating-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nml-hf__rating-icon--container {
    width: 24px;
    height: 24px;
    background: #fff;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nml-hf__rating-item img {
    width: 16px;
    height: 16px;
}

.nml-hf__rating-text {
    display: flex;
    flex-direction: column;
}

.nml-hf__rating-label {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--color-text-white);
}

.nml-hf__rating-sublabel {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: var(--color-text-white);
}

/* Decorative logo */
.nml-hf__hero-deco {
    position: absolute;
    right: -70px;
    top: 45px;
    max-width: 631px;
    width: 100%;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}
.nml-hf__hero-deco img {
    display: block;
    width: 100%;
    height: auto;
}
.nml-hf__hero-deco--placeholder {
    height: 320px;
    border-radius: 24px;
    background: rgba(255,255,255,0.05);
}

/* Feature cards */
.nml-hf__cards {
    gap: 20px;
    overflow: visible;
}

.nml-hf__cards .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.nml-hf__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background: #FFFFFF33;
    border-radius: 12px;
    border: 1.5px solid var(--color-line-blue);
    box-shadow: 0px 2px 4px 0px #4C83F33D;
    backdrop-filter: blur(8px);
}

.nml-hf__card-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    background: #162F6F;
    border-radius: 8px;
    justify-content: center;
}
.nml-hf__card-icon img {
    width: 24px;
    height: 24px;
}

.nml-hf__card-title {
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.nml-hf__card-text {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin: 8px 0 0 0;
}

/* ── Slider nav (mobile only) ── */
.nml-hf__nav-row {
    display: none;
}

@media (max-width: 1024px) {
    .nml-hf__cards .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .nml-hf__hero-deco {
        width: 38%;
    }
}
@media (max-width: 768px) {
    .nml-hf{
        padding: 0 0 40px;
    }

    .nml-hf__hero {
        flex-direction: column;
        padding-top: 104px;
        padding-bottom: 40px;
    }

    .nml-hf__heading {
        font-size: 40px;
        line-height: 48px;
        margin-bottom: 16px;
    }

    .nml-hf__subhead {
        margin: 0 0 24px;
        font-size: 16px;
        line-height: 24px;
    }

    .nml-hf__hero-deco {
        display: none;
    }
    .nml-hf__ratings {
        gap: 12px 32px;
        justify-content: flex-start;
    }
    .nml-hf__cards {
        display: block;
    }
    .nml-hf__cards .swiper-wrapper {
        display: flex;
        align-items: stretch;
        gap: 0;
    }
    .nml-hf__card {
        height: auto;
        border-radius: 8px;
    }

    .nml-hf__rating-label {
        font-size: 14px;
        line-height: 21px;
    }

    .nml-hf__rating-item img {
        width: 20px;
        height: 20px;
    }

    .nml-hf__card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
    }

    .nml-hf__card-icon img {
        width: 20px;
        height: 20px;
    }

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

    .nml-hf__card-text {
        font-size: 14px;
        line-height: 20px;
    }

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

    /* ── Nav arrows ── */
    .nml-hf__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-hf__nav:hover {
        border-color: var(--color-primary-border);
        box-shadow: 0 2px 10px rgba(22, 47, 111, 0.10);
    }

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

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

    .nml-hf__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-hf__pagination .swiper-pagination-bullet-active {
        background: var(--color-primary);
        width: 32px;
        border-radius: 100px;
    }
}
