/**
 * Full-width page hero (Pages only) — outside Astra .ast-container.
 */

.cobb-page-hero {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	min-height: clamp(280px, 42vh, 520px);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-sizing: border-box;
}

.cobb-page-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
	padding: 0;
}

.cobb-page-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

.cobb-page-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.35) 0%,
		rgba(0, 0, 0, 0.5) 100%
	);
	pointer-events: none;
}

.cobb-page-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: min(960px, 92vw);
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0.75rem;
}

.cobb-page-hero__title {
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: clamp(1.75rem, 4.5vw, 3rem);
	line-height: 1.15;
	font-weight: 700;
	text-wrap: balance;
}

.cobb-page-hero__breadcrumbs {
	width: 100%;
	display: flex;
	justify-content: center;
}

.cobb-page-hero__breadcrumbs .ast-breadcrumbs-wrapper,
.cobb-page-hero__breadcrumbs .ast-breadcrumbs-inner {
	margin: 0;
	padding: 0;
}

.cobb-page-hero__breadcrumbs .ast-breadcrumbs,
.cobb-page-hero__breadcrumbs .breadcrumb-trail {
	font-size: 0.875rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.88);
}

.cobb-page-hero__breadcrumbs .ast-breadcrumbs a,
.cobb-page-hero__breadcrumbs .breadcrumb-trail a {
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
}

.cobb-page-hero__breadcrumbs .ast-breadcrumbs a:hover,
.cobb-page-hero__breadcrumbs .breadcrumb-trail a:hover,
.cobb-page-hero__breadcrumbs .ast-breadcrumbs a:focus-visible,
.cobb-page-hero__breadcrumbs .breadcrumb-trail a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.cobb-page-hero__breadcrumbs .trail-end,
.cobb-page-hero__breadcrumbs .breadcrumb-trail .trail-end {
	color: #fff;
	font-weight: 600;
}

/* Hide duplicate title/banner inside the page article when hero is active. */
body.cobb-page-has-hero.singular-page .entry-header {
	display: none !important;
}

body.cobb-page-has-hero.singular-page .ast-single-entry-banner {
	display: none !important;
}
