/**
 * VN Content Page — shared layout for WordPress editorial pages.
 */

.vn-content-page__container {
	box-sizing: border-box;
}

.vn-content-page__hero:not(.vn-breadcrumb-hero) {
	position: relative;
	min-height: clamp(180px, 14vw, 260px);
	display: grid;
	align-items: center;
	background-position: center;
	background-size: cover;
	background-color: #2f3f31;
	overflow: hidden;
}

.vn-content-page__hero-overlay,
.vn-content-page__hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(17, 28, 18, 0.48),
		rgba(17, 28, 18, 0.18)
	);
	pointer-events: none;
}

.vn-content-page__hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
	color: #fff;
	padding-block: clamp(36px, 5vw, 56px);
}

.vn-content-page__title {
	margin: 0 0 14px;
	color: #fff;
	font-family: var(--vn-font-heading);
	font-size: clamp(38px, 4.5vw, 58px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: normal;
}

.vn-content-page__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 4px;
	font-size: 14px;
	line-height: 1.4;
}

.vn-content-page__breadcrumb a,
.vn-content-page__breadcrumb .vn-breadcrumb__current {
	color: #fff;
}

.vn-content-page__breadcrumb .vn-breadcrumb__sep {
	color: rgba(255, 255, 255, 0.72);
}

.vn-content-page__body {
	padding-block: clamp(64px, 7vw, 96px);
}

.vn-content-page__layout {
	width: 100%;
}

.vn-content-page__article {
	width: 100%;
	max-width: 920px;
	margin-inline: auto;
	padding-bottom: 20px;
}

/* Typography */
.vn-content-page__content {
	font-family: var(--vn-font-body);
	color: #3e463f;
	font-size: 16px;
	line-height: 1.75;
	text-align: left;
	text-wrap: pretty;
}

.vn-content-page__content > :first-child {
	margin-top: 0;
}

.vn-content-page__content p {
	margin: 0 0 18px;
	color: #4f5750;
	font-size: 16px;
	line-height: 1.75;
	text-align: left;
}

.vn-content-page__content h1,
.vn-content-page__content h2,
.vn-content-page__content h3,
.vn-content-page__content h4 {
	font-family: var(--vn-font-heading);
	font-weight: 500;
	color: #1f3524;
	letter-spacing: normal;
}

.vn-content-page__content h1 {
	margin: 36px 0 18px;
	font-size: clamp(28px, 3vw, 36px);
	line-height: 1.2;
}

.vn-content-page__content h2 {
	margin: 44px 0 20px;
	font-size: clamp(28px, 3vw, 38px);
	line-height: 1.18;
}

.vn-content-page__content h3 {
	margin: 32px 0 16px;
	font-size: clamp(22px, 2vw, 28px);
	line-height: 1.25;
}

.vn-content-page__content h4 {
	margin: 26px 0 12px;
	font-size: 20px;
	line-height: 1.35;
}

.vn-content-page__content h1[style],
.vn-content-page__content h2[style],
.vn-content-page__content h3[style],
.vn-content-page__content h4[style] {
	font-family: var(--vn-font-heading) !important;
}

.vn-content-page__content h2[style] {
	font-size: clamp(28px, 3vw, 38px) !important;
	line-height: 1.18 !important;
}

.vn-content-page__content h3[style] {
	font-size: clamp(22px, 2vw, 28px) !important;
	line-height: 1.25 !important;
}

.vn-content-page__content p[style] {
	font-size: 16px !important;
	line-height: 1.75 !important;
	text-align: left !important;
}

.vn-content-page__content a {
	color: var(--vn-color-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.vn-content-page__content a:hover {
	color: #194d22;
}

.vn-content-page__content img {
	max-width: 100%;
	height: auto;
}

.vn-content-page__content ul,
.vn-content-page__content ol {
	margin: 0 0 22px;
	padding-left: 24px;
}

.vn-content-page__content li {
	margin-bottom: 8px;
	line-height: 1.7;
}

.vn-content-page__content ul.vn-check-list {
	list-style: none;
	padding-left: 0;
}

.vn-content-page__content ul.vn-check-list li {
	position: relative;
	padding-left: 28px;
}

.vn-content-page__content ul.vn-check-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--vn-color-primary);
	font-weight: 700;
}

/* Payment logos */
.vn-payment-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	margin: 28px 0 36px;
}

.vn-payment-logos img {
	width: auto;
	height: auto;
	max-width: 110px;
	max-height: 58px;
	object-fit: contain;
}

/* Tables */
.vn-table-scroll {
	width: 100%;
	overflow-x: auto;
	margin: 28px 0;
	border: 1px solid #e2e7df;
	border-radius: 8px;
	background: #fff;
	-webkit-overflow-scrolling: touch;
}

.vn-content-page__content table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
	margin: 0;
	font-size: 14px;
}

.vn-content-page__content th,
.vn-content-page__content td {
	padding: 14px 16px;
	border: 1px solid #e6e9e4;
	text-align: left;
	vertical-align: middle;
}

.vn-content-page__content thead th {
	background: #f4f7f2;
	color: #214d29;
	font-weight: 600;
}

.vn-content-page__content tbody tr:nth-child(even) {
	background: #fafbf9;
}

.vn-content-page__content tbody tr:hover {
	background: #f3f7f1;
}

/* Callout */
.vn-content-note {
	margin: 28px 0;
	padding: 20px 22px;
	border-left: 4px solid var(--vn-color-primary);
	background: #f5f8f3;
	color: #3f4b40;
	border-radius: 0 8px 8px 0;
}

.vn-content-note p:last-child {
	margin-bottom: 0;
}

/* Block editor alignment */
.vn-content-page__content .alignwide,
.vn-content-page__content .alignfull {
	max-width: 100%;
}

@media (max-width: 991px) {
	.vn-content-page__article {
		max-width: 100%;
	}

	.vn-content-page__hero:not(.vn-breadcrumb-hero) {
		min-height: 200px;
	}
}

@media (max-width: 767px) {
	.vn-content-page__body {
		padding-block: 48px;
	}

	.vn-content-page__content {
		font-size: 16px;
		line-height: 1.7;
	}

	.vn-content-page__content h2,
	.vn-content-page__content h2[style] {
		font-size: 28px !important;
	}

	.vn-content-page__content h3,
	.vn-content-page__content h3[style] {
		font-size: 23px !important;
	}

	.vn-payment-logos {
		gap: 12px;
	}

	.vn-payment-logos img {
		max-width: 82px;
		max-height: 48px;
	}
}

@media (max-width: 479px) {
	:root {
		--vn-gutter: clamp(18px, 5vw, 20px);
	}

	.vn-content-page__title {
		font-size: clamp(30px, 9vw, 38px);
	}

	.vn-content-page__content table {
		min-width: 640px;
		font-size: 13px;
	}
}
