/*
CTC Separate Stylesheet
Updated: 2026-04-18 20:15:16
*/


/* ============================================================
 * newdesign — post card grid (home + category archives)
 * 4 cards per row on desktop, 3 on tablet, 2 on mobile.
 * ============================================================ */

.nd-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}

.nd-archive-header {
	margin: 0 0 20px;
}
.nd-page-title {
	font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
	margin: 0 0 6px;
	line-height: 1.2;
}
.nd-page-subtitle {
	margin: 0;
	color: #6b7280;
	font-size: 0.95rem;
}

/* Grid */
.nd-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
@media (max-width: 1024px) {
	.nd-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
	.nd-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.nd-container { padding: 16px 12px 32px; }
}

/* Card */
.c-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.c-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	border-color: #d4d4d8;
}

.c-img {
	position: relative;
	aspect-ratio: 3 / 4; /* vertical flyer ratio */
	background: #f3f4f6;
	overflow: hidden;
}
.c-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.c-t {
	padding: 10px 12px 14px;
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
@media (max-width: 640px) {
	.c-t {
		padding: 8px 10px 10px;
		font-size: 0.82rem;
	}
}

.badge-new {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #e60023;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 3px 8px;
	border-radius: 4px;
	z-index: 2;
}

/* Pagination */
.nd-pagination {
	margin: 32px 0 0;
}
.nd-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}
.nd-pagination .page-numbers {
	display: inline-block;
	padding: 7px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
	font-size: 0.9rem;
}
.nd-pagination .page-numbers:hover {
	background: #f3f4f6;
}
.nd-pagination .page-numbers.current {
	background: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}

.nd-empty {
	padding: 40px 0;
	text-align: center;
	color: #6b7280;
}
