/* Contrivian Posts Card – horizontal image-left card layout */

.cpc-posts-card-widget {
	--cpc-image-ratio: 0.38; /* ~38% width for image */
	--cpc-card-radius: 8px;
	--cpc-padding: 24px;
}

.cpc-list {
	display: flex;
	flex-direction: column;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cpc-card {
	display: flex;
	flex-direction: row;
	background: #fff;
	border-radius: var(--cpc-card-radius);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	text-align: left;
}

.cpc-card__image {
	flex: 0 0 38%;
	min-width: 0;
	align-self: stretch;
}

.cpc-card__image a {
	display: block;
	height: 100%;
	min-height: 200px;
}

.cpc-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	vertical-align: middle;
}

.cpc-card__image-placeholder {
	width: 100%;
	min-height: 200px;
	background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.cpc-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: var(--cpc-padding);
}

.cpc-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.cpc-card__tag {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	background-color: #e8e0f0;
	color: #5a4a6a;
}

.cpc-card__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8125rem;
	color: #6b7280;
}

.cpc-card__date-icon {
	flex-shrink: 0;
	opacity: 0.85;
}

.cpc-card__title {
	margin: 0 0 10px;
	font-size: 1.25rem;
	line-height: 1.35;
	font-weight: 700;
}

.cpc-card__title a {
	text-decoration: none;
	color: #1a1a1a;
}

.cpc-card__title a:hover {
	text-decoration: underline;
}

.cpc-card__excerpt {
	margin: 0 0 14px;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #4a4a4a;
	flex: 1;
}

.cpc-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	flex-wrap: wrap;
}

.cpc-card__secondary {
	font-size: 0.8125rem;
	color: #9ca3af;
}

.cpc-card__read-more {
	font-size: 0.9375rem;
	font-weight: 500;
	color: #2563eb;
	text-decoration: none;
}

.cpc-card__read-more:hover {
	color: #1d4ed8;
	text-decoration: underline;
}

.cpc-empty {
	margin: 0;
	padding: 1em;
	color: #6b7280;
}

/* Responsive: stack on small screens */
@media (max-width: 767px) {
	.cpc-card {
		flex-direction: column;
	}

	.cpc-card__image {
		flex: none;
		width: 100%;
	}

	.cpc-card__image img {
		border-radius: var(--cpc-card-radius) var(--cpc-card-radius) 0 0;
	}

	.cpc-card__image-placeholder {
		min-height: 180px;
	}
}
