/* Single Post Hero – full-width hero for single post template */

.cpc-hero {
	position: relative;
	display: flex;
	align-items: stretch;
	min-height: 420px;
	background-color: #2d1f4e;
	background-size: cover;
	background-position: center;
}

.cpc-hero__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.cpc-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 2rem 1.5rem 2.5rem;
	box-sizing: border-box;
}

.cpc-hero__back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-size: 0.9375rem;
	text-decoration: none;
	color: #fff;
	margin-bottom: 1.5rem;
	align-self: flex-start;
}

.cpc-hero__back-link:hover {
	text-decoration: underline;
}

.cpc-hero__main {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 2rem;
}

.cpc-hero__category {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.85rem;
	border-radius: 6px;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 1rem;
	background-color: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.cpc-hero__category-icon {
	flex-shrink: 0;
	opacity: 0.9;
}

.cpc-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	line-height: 1.2;
	font-weight: 700;
	color: #fff;
	max-width: 42ch;
}

.cpc-hero__date {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: 0.9375rem;
	color: #fff;
	opacity: 0.95;
	align-self: center;
}

.cpc-hero__date-icon {
	flex-shrink: 0;
	opacity: 0.9;
}

.cpc-hero__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	width: 100%;
}

.cpc-hero__nav-link {
	text-decoration: none;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background-color: rgba(0, 0, 0, 0.25);
	font-size: 0.875rem;
	transition: background-color 0.2s ease;
}

.cpc-hero__nav-link:hover {
	background-color: rgba(0, 0, 0, 0.35);
}

.cpc-hero__nav-prev {
	flex-direction: row;
	text-align: left;
}

.cpc-hero__nav-next {
	flex-direction: row;
	text-align: right;
	justify-content: flex-end;
}

.cpc-hero__nav-next .cpc-hero__nav-title {
	order: 1;
	text-align: right;
}

.cpc-hero__nav-next .cpc-hero__nav-label {
	order: 2;
}

.cpc-hero__nav-next span[aria-hidden="true"] {
	order: 3;
}

.cpc-hero__nav-label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.85;
	flex-shrink: 0;
}

.cpc-hero__nav-prev .cpc-hero__nav-label {
	margin-right: 0.25rem;
}

.cpc-hero__nav-next .cpc-hero__nav-label {
	margin-left: 0.25rem;
}

.cpc-hero__nav-title {
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cpc-hero__nav-prev .cpc-hero__nav-title {
	order: 1;
}

.cpc-hero__nav-empty {
	visibility: hidden;
	pointer-events: none;
}

.cpc-hero--placeholder .cpc-hero__inner {
	color: #fff;
}

.cpc-hero--placeholder p {
	margin: 0;
	opacity: 0.9;
}

@media (min-width: 768px) {
	.cpc-hero__inner {
		padding: 3rem 2rem 3rem;
	}

	.cpc-hero__title {
		margin-bottom: 1.25rem;
	}
}
