/* Trang danh sach tin tuc (ViewTintuc trong include/func_layoutCate.asp). Pham vi: .nl-page */
.nl-page { padding-top: 96px; padding-bottom: 56px; color: #17302c; }
.nl-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6a7f7b; margin: 0 0 8px; }
.nl-crumb a { color: #0c8f78; text-decoration: none; }
.nl-crumb a:hover { text-decoration: underline; }
.nl-crumb b { font-weight: 500; color: #3b5450; }
.nl-title { font-size: 32px; line-height: 1.2; font-weight: 700; margin: 0 0 24px; color: #17302c; letter-spacing: -.01em; }
.nl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nl-card, .nl-featured { background: #fff; border: 1px solid #e1e9e7; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.nl-card:hover, .nl-featured:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(12, 143, 120, .12); border-color: #bfe3da; }
.nl-img { display: block; overflow: hidden; background: #eef5f3; aspect-ratio: 16 / 10; }
.nl-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.nl-card:hover .nl-img img, .nl-featured:hover .nl-img img { transform: scale(1.04); }
.nl-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.nl-h { margin: 0 0 8px; font-size: 18px; line-height: 1.4; font-weight: 700; }
.nl-h a { color: #17302c; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nl-h a:hover { color: #0c8f78; }
.nl-desc { margin: 0 0 14px; font-size: 14.5px; line-height: 1.65; color: #526963; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nl-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: #7a8d89; }
.nl-more { color: #0c8f78; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nl-more:hover { text-decoration: underline; }
.nl-chip { align-self: flex-start; background: #e2f4ef; color: #0c8f78; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; margin: 0 0 12px; }

/* The noi bat: chiem het hang, anh trai - chu phai */
.nl-featured { grid-column: 1 / -1; flex-direction: row; }
.nl-featured .nl-img { flex: 0 0 52%; aspect-ratio: auto; min-height: 300px; }
.nl-featured .nl-body { justify-content: center; padding: 32px 36px; }
.nl-featured .nl-h { font-size: 28px; line-height: 1.3; margin-bottom: 12px; }
.nl-featured .nl-h a { -webkit-line-clamp: 3; }
.nl-featured .nl-desc { font-size: 16px; -webkit-line-clamp: 4; margin-bottom: 20px; }
.nl-featured .nl-meta { margin-top: 0; justify-content: flex-start; gap: 18px; }

/* Phan trang */
.nl-page .pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 36px 0 0; flex-wrap: wrap; justify-content: center; }
.nl-page .pagination li a, .nl-page .pagination li span { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid #d9e6e3; border-radius: 10px; color: #3b5450; text-decoration: none; background: #fff; font-size: 14px; }
.nl-page .pagination li a:hover { border-color: #0c8f78; color: #0c8f78; }
.nl-page .pagination li.active a, .nl-page .pagination li.active span { background: #0c8f78; border-color: #0c8f78; color: #fff; }

@media (max-width: 991px) {
    .nl-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .nl-featured .nl-body { padding: 24px; }
    .nl-featured .nl-h { font-size: 24px; }
}
@media (max-width: 680px) {
    .nl-page { padding-top: 84px; }
    .nl-title { font-size: 26px; margin-bottom: 18px; }
    .nl-grid { grid-template-columns: 1fr; }
    .nl-featured { flex-direction: column; }
    .nl-featured .nl-img { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
    .nl-featured .nl-body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .nl-card, .nl-featured, .nl-img img { transition: none !important; }
    .nl-card:hover, .nl-featured:hover { transform: none; }
}
