/**
 * Unified breadcrumb hero section — single source of truth for height/sizing.
 */

.vn-breadcrumb-hero {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: clamp(180px, 14vw, 260px);
	padding: 40px 0;
	overflow: hidden;
	isolation: isolate;
	background-color: #edf1ed;
	background-image: var(--vn-breadcrumb-bg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	text-align: center;
}

.vn-breadcrumb-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.48),
		rgba(0, 0, 0, 0.12)
	);
	pointer-events: none;
}

.vn-breadcrumb-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	text-align: center;
}

.vn-breadcrumb-hero__title {
	margin: 0 0 10px;
	font-family: var(--vn-font-heading, 'Cormorant Garamond', Georgia, serif);
	font-size: clamp(32px, 3.2vw, 50px);
	line-height: 1.12;
	color: #fff;
	font-weight: 600;
}

.vn-breadcrumb-hero__title,
.vn-breadcrumb-hero a,
.vn-breadcrumb-hero__trail,
.vn-breadcrumb-hero .vn-breadcrumb__current {
	color: #fff;
}

.vn-breadcrumb-hero__trail {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.vn-breadcrumb-hero a {
	text-decoration: none;
	color: rgba(255, 255, 255, 0.88);
}

.vn-breadcrumb-hero a:hover {
	color: #fff;
}

.vn-breadcrumb-hero .vn-breadcrumb__sep {
	color: rgba(255, 255, 255, 0.72);
}

/* Neutralize legacy page hero sizing when breadcrumb component is active */
.vn-breadcrumb-hero.vn-about-hero,
.vn-breadcrumb-hero.vn-about-section--compact,
.vn-breadcrumb-hero.vn-product-archive__hero,
.vn-breadcrumb-hero.vn-page-breadcrumb-hero,
.vn-breadcrumb-hero.vn-advice-hero,
.vn-breadcrumb-hero.vn-content-page__hero {
	min-height: clamp(180px, 14vw, 260px);
	padding: 40px 0;
}

.vn-breadcrumb-hero.vn-about-hero::before,
.vn-breadcrumb-hero.vn-content-page__hero::before {
	display: none;
}

@media (max-width: 991px) {
	.vn-breadcrumb-hero {
		min-height: 200px;
		padding: 32px 0;
	}

	.vn-breadcrumb-hero__title {
		font-size: 38px;
	}
}

@media (max-width: 767px) {
	.vn-breadcrumb-hero {
		min-height: 160px;
		padding: 24px 0;
		background-position: center;
	}

	.vn-breadcrumb-hero__title {
		margin-bottom: 6px;
		font-size: 30px;
	}

	.vn-breadcrumb-hero__trail {
		font-size: 13px;
	}
}
