/* ============================================================
   NTM Blog — Articles grid

   2-up grid of editorial cards. Each card is a full-bleed
   portrait image with a dark gradient overlay on the left half
   so the type can sit on top: top-left category chip, serif
   title, "BY <AUTHOR>" line + two bullet rows, and a bottom
   "READ THE ARTICLE" link with arrow.

   Below the grid sits a centered "LOAD MORE" pill that links
   to the next paginated page when one exists.
   ============================================================ */

.ntm-blog-articles {
    background-color: var(--ntm-bg-page, #f6f3ef);
    padding: clamp(28px, 4vw, 56px) clamp(24px, 5vw, 64px) clamp(64px, 8vw, 120px);
}

.ntm-blog-articles__inner {
    max-width: var(--ntm-container-max, 1392px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 5vw, 64px);
}

.ntm-blog-articles__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 2vw, 32px);
}

@media (min-width: 900px) {
    .ntm-blog-articles__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ntm-blog-articles__tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    min-height: clamp(320px, 30vw, 440px);
    background-color: #161616;
    isolation: isolate;
}

.ntm-blog-articles__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ntm-blog-articles__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}

/* Dark gradient on the left so the editorial type sits cleanly on top */
.ntm-blog-articles__tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(12, 16, 18, 0.92) 0%,
        rgba(12, 16, 18, 0.85) 38%,
        rgba(12, 16, 18, 0.45) 62%,
        rgba(12, 16, 18, 0) 88%
    );
    z-index: 1;
    pointer-events: none;
}

.ntm-blog-articles__body {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: clamp(20px, 2.2vw, 32px) clamp(24px, 2.4vw, 36px);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1vw, 14px);
    color: #ffffff;
    width: min(100%, 64%);
}

.ntm-blog-articles__cat-chip {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: clamp(6px, 0.6vw, 8px) clamp(10px, 1vw, 14px);
    background-color: #ffffff;
    color: #161616;
    font-family: var(--ntm-font-sans);
    font-weight: 600;
    font-size: clamp(0.65rem, 0.72vw, 0.75rem);
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.ntm-blog-articles__cat-chip:hover,
.ntm-blog-articles__cat-chip:focus-visible {
    background-color: var(--ntm-accent-teal);
    color: #ffffff;
}

.ntm-blog-articles__title {
    margin: clamp(10px, 1.2vw, 16px) 0 0;
    font-family: var(--ntm-font-serif);
    font-weight: 400;
    font-size: clamp(1.4rem, 2.1vw, 1.875rem);
    line-height: 1.15;
    color: #ffffff;
}

.ntm-blog-articles__title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.18s ease;
}

.ntm-blog-articles__title a:hover,
.ntm-blog-articles__title a:focus-visible {
    opacity: 0.88;
}

.ntm-blog-articles__author {
    margin: clamp(6px, 0.8vw, 12px) 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ntm-blog-articles__author-name {
    margin: 0;
    font-family: var(--ntm-font-sans);
    font-weight: 600;
    font-size: clamp(0.7rem, 0.78vw, 0.8rem);
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
}

.ntm-blog-articles__author-role,
.ntm-blog-articles__author-org {
    margin: 0;
    padding-left: 14px;
    position: relative;
    font-family: var(--ntm-font-sans);
    font-weight: 400;
    font-size: clamp(0.78rem, 0.88vw, 0.875rem);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.78);
}

.ntm-blog-articles__author-role::before,
.ntm-blog-articles__author-org::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.55);
}

.ntm-blog-articles__read {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding-bottom: 4px;
    color: #ffffff;
    font-family: var(--ntm-font-sans);
    font-weight: 600;
    font-size: clamp(0.7rem, 0.78vw, 0.8rem);
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    transition: color 0.18s ease, border-color 0.18s ease;
}

.ntm-blog-articles__read:hover,
.ntm-blog-articles__read:focus-visible {
    color: var(--ntm-accent-teal);
    border-bottom-color: var(--ntm-accent-teal);
}

.ntm-blog-articles__read-arrow {
    width: 12px;
    height: 12px;
    display: block;
}

/* ---------- Pagination — NTM editorial tone ---------- */
.ntm-blog-articles .site-pagination {
    --pg-active-bg: #161616;
    --pg-active-color: #ffffff;
    --pg-link-color: var(--ntm-ink, #14323a);
    --pg-hover-bg: var(--ntm-accent-teal, #2a8b94);
    --pg-hover-color: #ffffff;
    --pg-disabled-color: rgba(20, 50, 58, 0.35);
}

.ntm-blog-articles .site-pagination .page-item .page-link {
    font-family: var(--ntm-font-sans);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.ntm-blog-articles__empty {
    margin: 0;
    padding: clamp(40px, 5vw, 80px) 0;
    font-family: var(--ntm-font-sans);
    font-size: clamp(0.95rem, 1.05vw, 1.0625rem);
    color: rgba(20, 50, 58, 0.7);
    text-align: center;
}
