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

/*
 * CHỈ áp display:grid khi khối dưới là "Grid đơn giản" (có class
 * nlct-cols-X đi kèm). Khi khối dưới là 1 trong 5 layout NLH thuần loop,
 * .nlct-post-grid không có class nlct-cols-X - để trống, tránh đè CSS
 * grid lên cấu trúc row/col (Flatsome) mà các layout đó tự dùng.
 */
.nlct-post-grid.nlct-cols-2,
.nlct-post-grid.nlct-cols-3,
.nlct-post-grid.nlct-cols-4 {
	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);
}

@media (max-width: 900px) {
	.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-cols-2,
	.nlct-post-grid.nlct-cols-3,
	.nlct-post-grid.nlct-cols-4 {
		grid-template-columns: 1fr;
	}
}

/* Khoảng cách giữa khối trên và khối dưới */
.nlct-post-top-block {
	margin-bottom: 32px;
}

.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;
}
