/* ── Category Posts Widget ── */

.cpw-list {
	display: flex;
	flex-direction: column;
}

.cpw-card {
	display: flex;
	align-items: stretch;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	transition: box-shadow 0.25s ease;
}
.cpw-card:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.cpw-card + .cpw-card {
	margin-top: 30px;
}

/* Thumbnail */
.cpw-thumb {
	flex: 0 0 240px;
	width: 240px;
	height: 200px;
	overflow: hidden;
}
.cpw-thumb a {
	display: block;
	width: 100%;
	height: 100%;
}
.cpw-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}
.cpw-card:hover .cpw-thumb img {
	transform: scale(1.06);
}

/* Content */
.cpw-content {
	flex: 1;
	padding: 20px 24px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Title */
.cpw-title {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	color: #1e3a5f;
}
.cpw-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}
.cpw-title a:hover {
	color: #1e56a0;
}

/* Excerpt */
.cpw-excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: #4b5563;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Pagination */
.cpw-pagination {
	margin-top: 40px;
}
.cpw-pagination ul {
	display: flex;
	align-items: center;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 4px;
	position: relative;
}
.cpw-pagination li {
	display: flex;
}
.cpw-pagination li a,
.cpw-pagination li span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 6px;
	font-size: 15px;
	font-weight: 500;
	color: #374151;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}
.cpw-pagination li a:hover {
	background-color: #2563eb;
	color: #ffffff;
}
.cpw-pagination li span.current {
	background-color: #2563eb;
	color: #ffffff;
}
.cpw-pagination li .dots {
	background: none;
	color: #9ca3af;
	cursor: default;
}
.cpw-pagination li.next {
	position: absolute;
	right: 0;
}
.cpw-pagination li.next a {
	font-weight: 500;
	color: #374151;
	gap: 4px;
}
.cpw-pagination li.prev a:hover,
.cpw-pagination li.next a:hover {
	color: #111827;
	background: none;
}

/* Responsive */
@media (max-width: 768px) {
	.cpw-card {
		flex-direction: column;
	}
	.cpw-thumb {
		flex: none;
		width: 100% !important;
		height: 180px !important;
	}
	.cpw-content {
		padding: 16px;
	}
}
