/* Responsive card grid for list page */
.list-page {
	background-color: #f7f8fa;
	padding: 20px 0;
}

.list-page .list-container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 10px;
}

.list-page .list-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 16px;
}

@media (max-width: 1024px) {
    .list-page .list-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .list-page .list-grid { grid-template-columns: 1fr; }
}

.list-page .list-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	transition: box-shadow .2s ease, transform .2s ease;
}

.list-page .list-card:hover {
	box-shadow: 0 6px 16px rgba(0,0,0,0.12);
	transform: translateY(-2px);
}

.list-page .list-card-media {
	display: block;
	position: relative;
}

.list-page .list-card-media img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
	background: #fafafa;
}

.list-page .list-card-body {
	padding: 12px 14px 10px 14px;
}

.list-page .list-card-title {
	font-size: 16px;
	font-weight: 600;
	color: #222;
	line-height: 1.4;
	margin: 0 0 6px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.list-page .list-card-meta {
	font-size: 12px;
	color: #8a8f98;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.list-page .list-card-desc {
	font-size: 13px;
	color: #4a4f55;
	line-height: 1.6;
	height: 42px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
}

.list-page .list-card-title a.is-red { color: red; }
.list-page .list-card-title a.is-bold { font-weight: bold; }

.list-page .list-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 10px 0 14px 0;
}

.list-page .list-toolbar .count {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	border: 1px solid #ff5a5f;
	border-radius: 6px;
	background: #fff;
	color: #6b7280;
	font-size: 12px;
}

.list-page .list-toolbar .count span {
	color: #1F4A45;
	font-weight: 700;
}

.list-page .list-toolbar .post-link a {
	background: #ff5a5f;
	color: #fff;
	padding: 6px 10px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 13px;
}

.list-page .list-pagination {
	margin: 18px 0 6px 0;
	display: flex;
	justify-content: center;
}

/* scoped: make pagination more prominent on list page only */
.list-page .list-pagination .pagination2 a,
.list-page .list-pagination .pagination2 span.current {
	border-radius: 20px;
	padding: 8px 14px;
	border-color: #d0d5dd;
	box-shadow: 0 1px 2px rgba(16,24,40,0.06);
	font-weight: 600;
	color: #344054;
}

.list-page .list-pagination .pagination2 a:hover,
.list-page .list-pagination .pagination2 span.current {
	box-shadow: 0 2px 6px rgba(16,24,40,0.12);
}

/* brand pagination color */
.list-page .list-pagination .pagination2 a {
	color: #1F4A45;
}

.list-page .list-pagination .pagination2 a:hover,
.list-page .list-pagination .pagination2 span.current {
	background-color: #1F4A45;
	border-color: #1F4A45;
	color: #fff;
}

.list-page .list-breadcrumb {
	font-size: 12px;
	color: #8a8f98;
	margin: 10px 0 8px 0;
}

.list-page .list-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 4px 0 8px 0;
}

/* emphasize current category/title link */
.list-page .list-header a.currentr {
	color: #1F4A45;
	font-size: 18px;
	font-weight: 700;
}

.list-page .list-header a.currentr:hover {
	color: #1F4A45;
	text-decoration: none;
}

.list-page .badge {
	display: inline-block;
	font-size: 11px;
	line-height: 1;
	padding: 3px 6px;
	border-radius: 3px;
	margin-left: 6px;
	color: #fff;
	background: #5c7cff;
}

.list-page .badge.recommend { background: #ff8b3d; }
.list-page .badge.certify { background: #2cc56f; }
.list-page .badge.imgcount { background: #7a7f88; }

/* ensure legacy .ding only affects our list cards here */
.list-page .list-card.ding {
	background: #fffae7;
	background-image: none;
	position: relative;
}


