/* NL Category Templates - Danh sách bài viết ([nlct_post_list]) */

.nlct-post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.nlct-post-grid.nlct-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.nlct-post-grid.nlct-cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

/*
 * KHÔNG thêm CSS grid ở đây - "nlct-post-block" là wrapper trung tính
 * dùng cho layout_XX (nlh-news-block-for-flatsome), để layout đó tự lo
 * row/col Flatsome riêng của nó. Nhầm gán CSS Grid như .nlct-post-grid
 * vào đây sẽ ép nguyên khối layout chỉ còn 1/3 chiều ngang - lỗi đã gặp.
 */
.nlct-post-block {
}

@media (max-width: 900px) {
	.nlct-post-grid,
	.nlct-post-grid.nlct-cols-3,
	.nlct-post-grid.nlct-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.nlct-post-grid,
	.nlct-post-grid.nlct-cols-2,
	.nlct-post-grid.nlct-cols-3,
	.nlct-post-grid.nlct-cols-4 {
		grid-template-columns: 1fr;
	}
}

.nlct-post-card {
	border: 1px solid #eaeaea;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s;
}

.nlct-post-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.nlct-post-thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f2f2f2;
}

.nlct-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nlct-post-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: #f2f2f2;
}

.nlct-post-body {
	padding: 16px;
}

.nlct-post-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.4;
}

.nlct-post-title a {
	color: inherit;
	text-decoration: none;
}

.nlct-post-title a:hover {
	text-decoration: underline;
}

.nlct-post-excerpt {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
	margin-bottom: 8px;
}

.nlct-post-meta {
	font-size: 12px;
	color: #999;
}

.nlct-pagination {
	margin-top: 28px;
	text-align: center;
}

.nlct-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 3px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	color: inherit;
	text-decoration: none;
}

.nlct-pagination .page-numbers.current {
	background: #0f4c3a;
	border-color: #0f4c3a;
	color: #fff;
}

.nlct-load-more-wrap {
	text-align: center;
	margin-top: 28px;
}

.nlct-load-more-btn {
	padding: 10px 28px;
	cursor: pointer;
}

.nlct-infinite-sentinel {
	height: 1px;
}

@keyframes nlctFadeInUp {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.nlct-fade-in {
	animation: nlctFadeInUp 0.45s ease both;
}

@media (prefers-reduced-motion: reduce) {
	.nlct-fade-in {
		animation: none;
	}
}
