/* ===================================================
   News Section Page — /news/ — DNS-compact style
   =================================================== */

.nl-page { padding-bottom: 60px; }
.nl-page__title { display: none; }

/* FILTER TABS */
.nl-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.nl-filter__btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: #f2f2f2;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.nl-filter__btn:hover {
    border-color: var(--color-accent, #85c635);
    color: var(--color-accent, #85c635);
    background: #fff;
}
.nl-filter__btn.active {
    background: var(--color-accent, #85c635);
    color: #fff;
    border-color: var(--color-accent, #85c635);
}

/* CATEGORY TAG */
.nl-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 8px;
    border-radius: 50px;
    flex-shrink: 0;
    align-self: flex-start;
    width: fit-content;
}

/* ==============================================
   TOP ROW: главная слева + две справа
   ============================================== */
.nl-top {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 12px;
    margin-bottom: 12px;
    align-items: stretch;
}

/* Главная карточка (левая большая) — DNS style */
.nl-top__main {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}
.nl-top__main:hover {
    box-shadow: 0 6px 22px rgba(0,0,0,0.11);
    transform: translateY(-2px);
}
.nl-top__img {
    aspect-ratio: 16/8;
    background-size: cover;
    background-position: center;
    background-color: #2e2e35;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.35s;
}
.nl-top__main:hover .nl-top__img { transform: scale(1.03); }
.nl-top__img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: rgba(133,198,53,0.22);
    background: linear-gradient(135deg,#2e2e35,#3d3d45);
}
.nl-top__body {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nl-top__title {
    font-size: 17px;
    font-weight: 800;
    color: #111;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.nl-top__main:hover .nl-top__title { color: var(--color-accent, #85c635); }
.nl-top__text {
    font-size: 13px;
    color: #555;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nl-top__date {
    font-size: 11px;
    color: #bbb;
}

/* Правая колонка — два стопкой */
.nl-top__side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nl-side-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    flex: 1;
    transition: box-shadow 0.2s, transform 0.2s;
}
.nl-side-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}

.nl-side-card__img {
    aspect-ratio: 16/8;
    background-size: cover;
    background-position: center;
    background-color: #2e2e35;
    flex-shrink: 0;
    transition: transform 0.3s;
    overflow: hidden;
}
.nl-side-card:hover .nl-side-card__img { transform: scale(1.04); }
.nl-side-card__img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgba(133,198,53,0.25);
    background: linear-gradient(135deg,#2e2e35,#3d3d45);
}
.nl-side-card__body {
    padding: 10px 13px 13px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.nl-side-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.nl-side-card:hover .nl-side-card__title { color: var(--color-accent,#85c635); }
.nl-side-card__date {
    font-size: 10px;
    color: #bbb;
}

/* ==============================================
   GRID — остальные карточки (4 колонки)
   ============================================== */
.nl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}
.nl-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}
.nl-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}
.nl-card__img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f0;
}
.nl-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.nl-card:hover .nl-card__img img { transform: scale(1.05); }
.nl-card__img-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: rgba(133,198,53,0.25);
    background: linear-gradient(135deg,#f5f5f5,#ebebeb);
}
.nl-card__body {
    flex: 1;
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nl-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.nl-card:hover .nl-card__title { color: var(--color-accent,#85c635); }
.nl-card__date {
    font-size: 10px;
    color: #bbb;
    margin-top: auto;
}

/* EMPTY */
.nl-empty { text-align: center; padding: 60px 20px; color: #bbb; }
.nl-empty i { font-size: 40px; display: block; margin-bottom: 12px; }

/* PAGER */
.nl-pager {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}
.nl-pager a, .nl-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}
.nl-pager a:hover { border-color: var(--color-accent,#85c635); color: var(--color-accent,#85c635); }
.nl-pager .current { background: var(--color-accent,#85c635); color:#fff; border-color: var(--color-accent,#85c635); }

/* RESPONSIVE */
@media (max-width: 1100px) {
    .nl-top { grid-template-columns: 1fr 280px; }
    .nl-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 860px) {
    .nl-top { grid-template-columns: 1fr; }
    .nl-top__side { flex-direction: row; }
    .nl-side-card { flex-direction: column; }
    .nl-side-card__img { width: 100%; aspect-ratio: 16/7; }
    .nl-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
    .nl-top__side { flex-direction: column; }
    .nl-grid { grid-template-columns: 1fr; }
}
