.nml-blog {
    padding: 80px 0;
    background: var(--color-bg);
    overflow: hidden;
}

/* ── Header ── */
.nml-blog__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
}

.nml-blog__header-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nml-blog__heading {
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text-primary);
    margin: 0;
}

/* Wrap a word in <span> to give it the accent colour. */
.nml-blog__heading span { color: var(--color-accent); }

/* Nav */
.nml-blog__nav-wrap {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.nml-blog__nav {
    width: 48px;
    height: 48px;
    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;
}

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

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

/* ── Slider — overflow both sides ── */
.nml-blog__slider-wrap { width: 100%; }

.nml-blog__swiper {
    overflow: hidden;
}

.nml-blog__slide {
    height: auto;
}

/* ── Card ── */
.nml-blog__card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-bg);
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0px 1px 2px 0px #4C83F333;
}

/* Thumbnail */
.nml-blog__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-secondary);
    overflow: hidden;
    flex-shrink: 0;
}

.nml-blog__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.nml-blog__card:hover .nml-blog__thumb img {
    transform: scale(1.04);
}

/* Card body */
.nml-blog__card-body {
    display: flex;
    flex-direction: column;
    padding: 16px 20px 20px;
    flex: 1;
}

/* Meta row: date + category */
.nml-blog__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.nml-blog__date {
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: #303D60;
    text-transform: uppercase;
}

.nml-blog__cat {
    display: inline-flex;
    padding: 6px 8px;
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    color: var(--color-accent);
    background: #FF41710A;
    white-space: nowrap;
}

/* Title */
.nml-blog__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: var(--color-text-primary);
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Excerpt */
.nml-blog__excerpt {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer: author + reading time */
.nml-blog__footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
}

.nml-blog__author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.nml-blog__avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nml-blog__author-name {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nml-blog__sep {
    color: var(--color-text-tertiary);
    font-size: 13px;
    flex-shrink: 0;
}

.nml-blog__read-time {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mobile nav (shown only below 768px) */
.nml-blog__nav-wrap--mobile {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nml-blog { padding: 40px 0; }

    .nml-blog__header {
        align-items: center;
        justify-content: space-between;
        flex-direction: column;
        margin-bottom: 32px;
    }

    .nml-blog__nav-wrap {
        display: none;
    }

    .nml-blog__nav-wrap--mobile {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        margin-top: 24px;
    }

    .nml-blog__header-left {
        align-items: center;
        gap: 16px;
    }

    .nml-blog__heading {
        font-size: 32px;
        line-height: 40px;
        font-weight: 700;
        text-align: center;
    }

    .nml-blog__card-body{
        padding: 12px 16px 16px;
    }

    .nml-blog__meta{
        margin-bottom: 10px;
    }

    .nml-blog__title {
        font-size: 18px;
        line-height: 26px;
    }

    .nml-blog__footer{
        padding-top: 20px;
    }

    .nml-blog__avatar {
        width: 16px;
        height: 16px;
    }

    .nml-blog__author{
        gap: 4px;
    }

    .nml-blog__author-name {
        font-size: 12px;
        line-height: 16px;
    }

    .nml-blog__read-time {
        font-size: 12px;
        line-height: 16px;
    }

    .nml-blog__nav {
        width: 44px;
        height: 44px;
    }
}
