/* ========================================
   Архів новин
   ======================================== */

.nl-wrapper {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 15px 80px;
}

.page-title {
    text-align: center;
    font-size: 38px;
    color: #0080cc;
    margin-bottom: 40px;
    font-weight: 700;
}

.divider {
    border: none;
    border-top: 1px solid #b3b0b0;
    opacity: 0.3;
    margin: 40px 0;
}


.nl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

/* Картка */
.nl-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 51, 102, 0.09);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nl-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(0, 51, 102, 0.16);
}

/* Фото */
.nl-card-image-link {
    display: block;
    text-decoration: none;
}

.nl-card-image {
    height: 210px;
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease;
}

.nl-card:hover .nl-card-image {
    transform: scale(1.04);
}

.nl-card-image-link {
    overflow: hidden;
}

/* Тіло картки */
.nl-card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nl-card-date {
    font-size: 12px;
    font-weight: 500;
    color: #0080cc;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.nl-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #003366;
    line-height: 1.45;
    margin-bottom: 10px;
    flex: 1;
}

.nl-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.nl-card-title a:hover { color: #0066cc; }

.nl-card-excerpt {
    font-size: 0.875rem;
    color: #5a7a99;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 18px;
}

.nl-card-btn {
    display: inline-block;
    padding: 9px 22px;
    font-size: 0.875rem;
    align-self: center;
    margin-top: 18px;
    text-decoration: none;
}

/* Пагінація */
.nl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nl-page-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 8px;
    background: #eaf4ff;
    color: #0066cc;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.nl-page-btn:hover {
    background: #0066cc;
    color: #fff;
}

.nl-page-first, .nl-page-last {
    padding: 8px 14px;
}

.nl-page-current {
    font-size: 0.9rem;
    color: #5a7a99;
    padding: 8px 4px;
}

/* Порожній стан */
.nl-empty {
    text-align: center;
    color: #5a7a99;
    padding: 60px 20px;
    font-size: 1rem;
}

/* Адаптив */
@media (max-width: 640px) {
    .nl-page-title { font-size: 1.5rem; }
    .nl-grid { grid-template-columns: 1fr; }
    .nl-card-image { height: 180px; }
}
