/* Latest News listing — image left, title right (desktop + mobile) */

.nl-page {
    background: #f3f4f6;
    padding: 1rem 0 2.5rem;
}

.nl-page__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nl-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

.nl-main {
    min-width: 0;
}

.nl-heading {
    margin: 0 0 1rem;
    padding: .65rem .85rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #d00000;
    border-radius: 4px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
}

.nl-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.nl-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.nl-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .1);
}

.nl-card__link {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: .75rem;
    align-items: stretch;
    padding: .65rem;
    color: inherit;
    text-decoration: none;
    min-height: 88px;
}

.nl-card__media {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #e5e7eb;
    min-height: 78px;
}

.nl-card__media img,
.nl-card__media picture,
.nl-card__media picture img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 78px;
    max-height: none !important;
    object-fit: cover !important;
}

.nl-card__media > div {
    width: 100%;
    height: 100%;
    min-height: inherit;
    aspect-ratio: auto !important;
}

.nl-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
    min-width: 0;
    padding: .1rem .15rem .1rem 0;
}

.nl-card__cat {
    display: inline-block;
    width: fit-content;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #d00000;
}

.nl-card__title {
    margin: 0;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nl-card:hover .nl-card__title {
    color: #b91c1c;
}

.nl-card__meta {
    margin: 0;
    font-size: .7rem;
    color: #6b7280;
}

.nl-empty {
    margin: 0;
    padding: 1.5rem;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    color: #6b7280;
    text-align: center;
}

.nl-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nl-side-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: .85rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}

.nl-side-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: 0 0 .75rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #d00000;
}

.nl-side-card__title {
    margin: 0;
    font-size: .95rem;
    font-weight: 800;
    color: #111827;
}

.nl-side-card__more {
    font-size: .75rem;
    font-weight: 700;
    color: #d00000;
    text-decoration: none;
    white-space: nowrap;
}

.nl-side-card__more:hover {
    text-decoration: underline;
}

.nl-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.nl-side-item__link {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: .55rem;
    align-items: start;
    color: inherit;
    text-decoration: none;
}

.nl-side-item__media {
    overflow: hidden;
    border-radius: 4px;
    background: #e5e7eb;
    aspect-ratio: 4 / 3;
}

.nl-side-item__media img,
.nl-side-item__media picture,
.nl-side-item__media picture img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
}

.nl-side-item__media > div {
    width: 100%;
    height: 100%;
    aspect-ratio: auto !important;
}

.nl-side-item__title {
    margin: 0;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nl-side-item__link:hover .nl-side-item__title {
    color: #b91c1c;
}

.nl-bullet-list {
    list-style: none;
    margin: .75rem 0 0;
    padding: 0;
    border-top: 1px solid #f1f5f9;
}

.nl-bullet-list li {
    position: relative;
    padding: .55rem 0 .55rem .9rem;
    border-bottom: 1px solid #f1f5f9;
}

.nl-bullet-list li:last-child {
    border-bottom: 0;
}

.nl-bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .95rem;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #d00000;
}

.nl-bullet-list a {
    color: #1f2937;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nl-bullet-list a:hover {
    color: #b91c1c;
}

.nl-pagination {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 0 0 6px 6px;
}

.pager {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pager__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .15rem .35rem;
    list-style: none;
    margin: 0;
    padding: .35rem 0;
}

.pager__page,
.pager__arrow,
.pager__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 .35rem;
    font-size: .95rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    border-radius: 999px;
    line-height: 1;
}

.pager__page:hover,
.pager__arrow:hover {
    background: #f3f4f6;
}

.pager__page.is-active {
    background: #1e3a8a;
    color: #fff;
    font-weight: 700;
    pointer-events: none;
}

.pager__arrow {
    font-size: 1.1rem;
    color: #111827;
}

.pager__arrow--disabled {
    color: #d1d5db;
    pointer-events: none;
}

.pager__ellipsis {
    color: #6b7280;
    min-width: 28px;
}

@media (min-width: 640px) {
    .nl-card__link {
        grid-template-columns: 168px 1fr;
        gap: 1rem;
        padding: .85rem;
        min-height: 112px;
    }

    .nl-card__media,
    .nl-card__media img,
    .nl-card__media picture img {
        min-height: 100px;
    }

    .nl-card__title {
        font-size: 1.05rem;
        -webkit-line-clamp: 3;
    }

    .nl-card__cat {
        font-size: .7rem;
    }
}

@media (min-width: 960px) {
    .nl-layout {
        grid-template-columns: minmax(0, 1.7fr) minmax(260px, .85fr);
        gap: 1.5rem;
    }

    .nl-card__link {
        grid-template-columns: 210px 1fr;
        gap: 1.15rem;
        padding: 1rem;
    }

    .nl-card__media,
    .nl-card__media img,
    .nl-card__media picture img {
        min-height: 120px;
    }

    .nl-card__title {
        font-size: 1.12rem;
    }
}

@media (max-width: 479px) {
    .nl-page {
        padding: .75rem 0 2rem;
    }

    .nl-page__inner {
        padding: 0 .7rem;
    }

    .nl-list {
        gap: .55rem;
    }

    .nl-card__link {
        grid-template-columns: 96px 1fr;
        gap: .55rem;
        padding: .5rem;
        min-height: 76px;
    }

    .nl-card__media,
    .nl-card__media img,
    .nl-card__media picture img {
        min-height: 68px;
    }

    .nl-card__title {
        font-size: .84rem;
        -webkit-line-clamp: 3;
    }

    .nl-card__meta {
        display: none;
    }
}
