.wpcg-posts-section {
	--wpcg-posts-accent: #163a5f;
	--wpcg-posts-accent-deep: #0f2c49;
	--wpcg-posts-accent-soft: #e7f0f8;
	--wpcg-posts-border: #dbe3ee;
	--wpcg-posts-ink: #172033;
	--wpcg-posts-muted: #5d6b82;
	--wpcg-posts-surface: #ffffff;
	--wpcg-posts-surface-subtle: #f7fafc;
	color: var(--wpcg-posts-ink);
	margin: 32px 0;
}

.wpcg-posts-section *,
.wpcg-posts-section *::before,
.wpcg-posts-section *::after {
	box-sizing: border-box;
}

.wpcg-posts-header {
	align-items: end;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	margin: 0 0 22px;
}

.wpcg-posts-header-copy {
	max-width: 720px;
}

.wpcg-posts-eyebrow {
	color: var(--wpcg-posts-accent);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.wpcg-posts-title {
	color: var(--wpcg-posts-ink);
	font-size: clamp(1.6rem, 2.4vw, 2.3rem);
	font-weight: 800;
	line-height: 1.1;
	margin: 0;
}

.wpcg-posts-more {
	align-items: center;
	background: var(--wpcg-posts-surface);
	border: 1px solid var(--wpcg-posts-border);
	border-radius: 999px;
	color: var(--wpcg-posts-accent);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 0.92rem;
	font-weight: 800;
	gap: 6px;
	justify-content: center;
	line-height: 1;
	min-height: 42px;
	padding: 12px 16px;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.wpcg-posts-more:focus-visible,
.wpcg-posts-card-media:focus-visible,
.wpcg-posts-card-title a:focus-visible,
.wpcg-posts-card-category:focus-visible,
.wpcg-posts-card-action:focus-visible {
	outline: 3px solid rgba(22, 58, 95, 0.32);
	outline-offset: 3px;
}

.wpcg-posts-more:hover,
.wpcg-posts-more:focus-visible {
	background: var(--wpcg-posts-accent);
	border-color: var(--wpcg-posts-accent);
	color: #ffffff;
	transform: translateY(-1px);
}

.wpcg-posts-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: 1fr;
}

.wpcg-posts-card {
	background: var(--wpcg-posts-surface);
	border: 1px solid var(--wpcg-posts-border);
	border-radius: 8px;
	box-shadow: 0 16px 34px rgba(23, 32, 51, 0.08);
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
}

.wpcg-posts-card-media {
	background: linear-gradient(135deg, #e7f0f8 0%, #f9fbfd 100%);
	display: block;
	text-decoration: none;
}

.wpcg-posts-card-image,
.wpcg-posts-card-placeholder {
	aspect-ratio: 16 / 9;
	display: block;
	height: auto;
	width: 100%;
}

.wpcg-posts-card-image {
	object-fit: cover;
	object-position: center center;
}

.wpcg-posts-card-placeholder {
	align-items: center;
	color: var(--wpcg-posts-accent);
	display: flex;
	justify-content: center;
}

.wpcg-posts-card-placeholder span {
	border: 1px solid rgba(22, 58, 95, 0.18);
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 900;
	line-height: 1;
	padding: 9px 12px;
}

.wpcg-posts-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	padding: 18px;
}

.wpcg-posts-card-category {
	align-self: start;
	color: var(--wpcg-posts-accent);
	display: -webkit-box;
	font-size: 0.74rem;
	font-weight: 900;
	line-height: 1.25;
	margin: 0 0 9px;
	overflow: hidden;
	text-decoration: none;
	text-transform: uppercase;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.wpcg-posts-card-category:hover,
.wpcg-posts-card-category:focus-visible {
	color: var(--wpcg-posts-accent-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wpcg-posts-card-title {
	color: var(--wpcg-posts-ink);
	display: -webkit-box;
	font-size: 1.12rem;
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 9px;
	min-height: 2.8em;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.wpcg-posts-card-title a {
	color: inherit;
	text-decoration: none;
}

.wpcg-posts-card-title a:hover,
.wpcg-posts-card-title a:focus-visible {
	color: var(--wpcg-posts-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wpcg-posts-card-excerpt {
	color: var(--wpcg-posts-muted);
	display: -webkit-box;
	font-size: 0.94rem;
	line-height: 1.5;
	margin: 0 0 18px;
	min-height: 4.2em;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.wpcg-posts-card-footer {
	align-items: center;
	border-top: 1px solid rgba(219, 227, 238, 0.82);
	display: flex;
	gap: 14px;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 15px;
}

.wpcg-posts-card-date {
	color: var(--wpcg-posts-muted);
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.35;
}

.wpcg-posts-card-action {
	align-items: center;
	color: var(--wpcg-posts-accent);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 0.9rem;
	font-weight: 850;
	gap: 5px;
	line-height: 1;
	text-decoration: none;
}

.wpcg-posts-card-action:hover,
.wpcg-posts-card-action:focus-visible {
	color: var(--wpcg-posts-accent-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wpcg-posts-empty {
	background: var(--wpcg-posts-surface-subtle);
	border: 1px solid var(--wpcg-posts-border);
	border-radius: 8px;
	color: var(--wpcg-posts-muted);
	font-size: 1rem;
	line-height: 1.55;
	margin: 0;
	padding: 18px 20px;
}

@media (min-width: 680px) {
	.wpcg-posts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.wpcg-posts-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 679px) {
	.wpcg-posts-header {
		align-items: start;
		flex-direction: column;
		gap: 14px;
	}

	.wpcg-posts-more {
		min-height: 40px;
	}
}
