.cpg-widget {
	width: 100%;
}

.cpg-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 28px;
	row-gap: 38px;
	align-items: start;
}

.cpg-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.cpg-image-wrap {
	display: block;
	width: 100%;
	height: var(--cpg-image-height, 200px);
	min-height: var(--cpg-image-height, 200px);
	max-height: var(--cpg-image-height, 200px);
	overflow: hidden;
	border-radius: 3px;
	background: #f3f4f6;
	text-decoration: none;
	flex: 0 0 auto;
}

.cpg-image {
	width: 100%;
	height: 100%;
	min-height: 100%;
	display: block;
	object-fit: cover;
	object-position: center center;
	transition: transform 320ms ease;
}

.cpg-image-wrap img.cpg-image {
	width: 100%;
	height: 100% !important;
	max-width: none;
	max-height: none;
}

.cpg-card:hover .cpg-image {
	transform: scale(1.04);
}

.cpg-image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.cpg-title {
	margin: 20px 14px 8px;
	min-height: calc(1.25em * 2);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: #000000;
}

.cpg-title a {
	color: inherit;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	max-height: calc(1.25em * 2);
	overflow: hidden;
}

.cpg-title a:hover {
	color: inherit;
}

.cpg-excerpt {
	margin: 0 14px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
	color: #222222;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 0 !important;
	max-height: none !important;
	height: auto !important;
}

.cpg-excerpt p {
	margin: 0;
}

.cpg-excerpt a {
	color: inherit;
}

.cpg-quote-wrap {
	min-height: 34px;
	margin: 13px 14px 0;
}

.cpg-quote {
	display: inline-block;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #42b8d4;
	text-decoration: none;
	cursor: pointer;
	transition: color 200ms ease;
}

.cpg-quote:hover {
	color: #1598b5;
	text-decoration: none;
}

.cpg-empty {
	padding: 24px;
	border: 1px dashed #d1d5db;
	color: #9ca3af;
	text-align: center;
}

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

@media (max-width: 767px) {
	.cpg-grid {
		grid-template-columns: 1fr;
	}

	.cpg-title {
		margin-top: 16px;
		font-size: 20px;
	}
}

/* Pagination */
.cpg-pagination {
	margin-top: 40px;
	display: flex;
	justify-content: center;
}

.cpg-page-list {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cpg-page-item a,
.cpg-page-item span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: #374151;
	text-decoration: none;
	background: #fff;
	transition: all 200ms ease;
}

.cpg-page-item a:hover {
	background: #F4B706;
	border-color: #F4B706;
	color: #fff;
}

.cpg-page-item span.current {
	background: #F4B706;
	border-color: #F4B706;
	color: #fff;
}

.cpg-page-item .dots {
	border: none;
	background: none;
	min-width: auto;
	padding: 0 4px;
	color: #9ca3af;
}

.cpg-page-item a svg,
.cpg-page-item span svg {
	display: block;
	width: 16px;
	height: 16px;
}
