/*
Theme Name: EcoSlagCem
Description: Custom theme for the ECO-SLAG-CEM project site, rebuilt from the Figma Sites design (V7 - Responsive for Figma Sites).
Version: 1.0.0
Text Domain: ecoslagcem
*/

:root {
	--color-brand-green: #0c7a00;
	--color-cream: #f7f4eb;
	--color-light-gray: #f2f2f2;
	--color-black: #000000;
	--color-white: #ffffff;
	--color-tag-bg: rgba(50, 196, 244, 0.3);
	--color-tag-text: #0a0a0a;
	--tag-blue: rgba(50, 196, 244, 0.3);
	--tag-orange: #fae6be;
	--tag-green: #cce8cc;

	--font-heading: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-mono: "DM Mono", "Courier New", monospace;

	--container-max: 1340px;
	--container-padding: 50px;
}

* {
	box-sizing: border-box;
}

html {
	overflow-x: hidden;
}

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-black);
	background: var(--color-white);
	overflow-x: hidden;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
}

.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

@media (max-width: 900px) {
	:root {
		--container-padding: 24px;
	}
}

/* Top nav */
.site-header {
	position: relative;
	background: var(--color-brand-green);
	padding: 20px 0;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.site-header__logo img {
	height: 22px;
	width: auto;
}

.site-header__nav {
	display: flex;
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-header__nav a {
	font-family: var(--font-heading);
	font-size: 18px;
	color: var(--color-white);
	letter-spacing: -0.54px;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.15s ease;
}

.site-header__nav a:hover {
	opacity: 0.7;
	text-decoration: underline;
	text-decoration-skip-ink: none;
	text-underline-offset: 6px;
}

.site-header__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 32px;
	height: 32px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}

.site-header__burger span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--color-white);
	border-radius: 1px;
	transition: transform 0.2s ease, opacity 0.15s ease;
}

.site-header__burger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.site-header__burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.site-header__burger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 799px) {
	.site-header__burger {
		display: flex;
	}

	.site-header nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 100;
		background: var(--color-brand-green);
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
	}

	.site-header nav.is-open {
		display: block;
	}

	.site-header__nav {
		flex-direction: column;
		gap: 0;
		padding: 0 var(--container-padding) 24px;
	}

	.site-header__nav li {
		padding: 16px 0;
		border-top: 1px solid rgba(255, 255, 255, 0.2);
	}

	.site-header__nav li:first-child {
		border-top: none;
	}

	.site-header__nav a {
		display: block;
		font-size: 22px;
	}
}

/* Footer */
.site-footer {
	background: var(--color-brand-green);
	color: var(--color-white);
	padding: 68px 0;
}

.site-footer .container {
	max-width: 1480px;
}

.site-footer__grid {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	row-gap: 40px;
}

.site-footer__left {
	flex: 1 1 580px;
	max-width: 580px;
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.site-footer__logo img {
	height: 39px;
	width: auto;
}

.site-footer__eu-note strong {
	display: block;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 16px;
}

.site-footer__eu-note p {
	font-size: 14px;
	font-weight: 300;
	line-height: 1.32;
	margin: 12px 0 0;
}

.site-footer__flag {
	width: 66px;
	height: 44px;
	margin-top: 16px;
}

.site-footer__copyright {
	font-size: 14px;
	line-height: 1.4;
}

.site-footer__right {
	display: flex;
	flex-direction: column;
	gap: 64px;
	flex: 1 1 800px;
	max-width: 800px;
}

.site-footer__tagline {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 52px;
	line-height: 1.18;
	margin: 0;
	width: 632px;
	max-width: 100%;
}

.site-footer__columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 64px;
}

@media (max-width: 799px) {
	.site-footer__columns {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

.site-footer__columns h3 {
	font-family: var(--font-heading);
	font-weight: 300;
	font-size: 16px;
	margin: 0 0 20px;
}

.site-footer__columns ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.site-footer__columns a {
	font-weight: 300;
	font-size: 14px;
	letter-spacing: -0.15px;
	text-decoration: underline;
}

.site-footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.site-footer__contact-item img {
	width: 16px;
	height: 16px;
	margin-top: 2px;
}

/* Tablet/mobile: single stacked column in a specific order (logo, tagline,
   nav columns, EU note, copyright) rather than the two source-order groups
   (left: logo/EU-note/copyright, right: tagline/columns) stacked as-is. */
@media (max-width: 1439px) {
	.site-footer__grid {
		flex-direction: column;
		align-items: stretch;
	}

	.site-footer__left,
	.site-footer__right {
		display: contents;
	}

	.site-footer__logo {
		order: 1;
	}

	.site-footer__tagline {
		order: 2;
	}

	.site-footer__columns {
		order: 3;
	}

	.site-footer__eu-note {
		order: 4;
	}

	.site-footer__copyright {
		order: 5;
	}
}

/* Page builder layouts */
.pb-section {
	position: relative;
}

/* Hero */
.pb-hero {
	position: relative;
	min-height: 689px;
	display: flex;
	align-items: flex-end;
	padding: 25px var(--container-padding) 70px;
	background-color: #1a1a1a;
	background-size: cover;
	background-position: center;
	color: var(--color-light-gray);
}

.pb-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.pb-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
}

/* Readability overlay for static (non-video) hero images: darkest at the
   bottom where the text sits, fading to a lighter multiply toward the top.
   Reproduces the live site's SVG gradient as a plain CSS gradient. */
.pb-hero__overlay--gradient {
	background: linear-gradient(
		to top,
		rgb(0, 0, 0) 0%,
		rgb(0, 0, 0) 27.4%,
		rgb(11, 11, 11) 31.9%,
		rgb(22, 22, 22) 36.5%,
		rgb(44, 44, 44) 45.6%,
		rgb(66, 66, 66) 54.6%,
		rgb(88, 88, 88) 63.7%,
		rgb(110, 110, 110) 72.8%,
		rgb(131, 131, 131) 81.9%,
		rgb(175, 175, 175) 100%
	);
	opacity: 0.6;
	mix-blend-mode: multiply;
}

.pb-hero__content {
	position: relative;
	z-index: 1;
	max-width: var(--container-max);
	margin: 0 auto;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.pb-hero__heading {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 81px;
	line-height: 0.95;
	letter-spacing: -2.43px;
	margin: 0;
	padding-right: 247px;
}

.pb-hero__bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 80px;
}

.page-theproject .pb-hero__bottom,
.page-theconsortium .pb-hero__bottom,
.page-theinnovation .pb-hero__bottom {
	width: 60%;
}

.single-post .pb-hero__bottom {
	width: 66%;
}

@media (min-width: 800px) and (max-width: 1439px) {
	.pb-hero__bottom,
	.page-theproject .pb-hero__bottom,
	.page-theconsortium .pb-hero__bottom,
	.page-theinnovation .pb-hero__bottom,
	.single-post .pb-hero__bottom {
		width: 100%;
	}
}

.pb-hero__subheading {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 32px;
	line-height: 1.09;
	letter-spacing: -1.6px;
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	padding-right: 40px;
}

@media (min-width: 800px) and (max-width: 1439px) {
	.pb-hero__heading {
		font-size: 62px;
		line-height: 59px;
	}

	.pb-hero__subheading {
		font-size: 25px;
		line-height: 28px;
	}
}

@media (max-width: 799px) {
	.pb-hero__heading {
		font-size: 41px;
		line-height: 39px;
		padding-right: 0;
		width: 100%;
	}

	.pb-hero__bottom,
	.page-theproject .pb-hero__bottom,
	.page-theconsortium .pb-hero__bottom,
	.page-theinnovation .pb-hero__bottom,
	.single-post .pb-hero__bottom {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		gap: 24px;
	}

	.pb-hero__subheading {
		font-size: 25px;
		line-height: 28px;
		padding-right: 0;
		width: 100%;
	}
}

.pb-hero__cta {
	background: var(--color-white);
	color: var(--color-black);
	border-radius: 500px;
	padding: 14px 21px;
	font-family: var(--font-heading);
	font-size: 16px;
	letter-spacing: -0.32px;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.pb-hero__cta:hover {
	background: var(--color-black);
	color: var(--color-white);
}

/* Intro (dark-green two-column pattern) */
.pb-intro {
	position: relative;
	background: var(--color-brand-green);
	color: var(--color-cream);
	padding: 93px 0;
	overflow: hidden;
}

.pb-intro .container {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 142px;
	align-items: flex-start;
}

.pb-intro__image {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 452px;
	max-width: 45%;
	height: 448px;
	pointer-events: none;
}

.pb-intro__image img {
	width: 100%;
	height: 100%;
	display: block;
}

/* Section Heading: cream background, stacked small-label + large statement */
.pb-section-heading {
	background: var(--color-cream);
	color: #2a2a2a;
	padding: 93px var(--container-padding);
}

.pb-section-heading .container {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.pb-section-heading__eyebrow {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 20px;
	flex: 0 0 220px;
	margin: 0;
}

.pb-intro__label {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 42px;
	flex: 0 0 220px;
	margin: 0;
}

.pb-intro__body {
	font-family: var(--font-heading);
	font-size: 22px;
	line-height: 1.18;
	margin: 0;
	flex: 1 1 auto;
	max-width: 100%;
}

/* Homepage keeps its original sizing (small label, large statement) */
.pb-intro--large .pb-intro__label {
	font-size: 20px;
}

.pb-intro--large .pb-intro__body {
	font-size: 42px;
}

.pb-intro__body p:first-child {
	margin-top: 0;
}

.pb-intro__body p:last-child {
	margin-bottom: 0;
}

/* Small variant (e.g. Funding on About): stacked, not side-by-side */
.pb-intro--small .pb-intro__body {
	line-height: 1.3;
}

/* Below the native design width, both variants stack (heading above
   paragraph) instead of the side-by-side row. At 1440px+ they revert to
   that row layout. */
@media (max-width: 1439px) {
	.pb-intro--small .container,
	.pb-intro--large .container {
		flex-direction: column;
		gap: 24px;
	}

	.pb-intro--small .pb-intro__label,
	.pb-intro--large .pb-intro__label {
		flex: none;
	}
}

/* Tablet only: both variants use the same body copy size/width. */
@media (min-width: 800px) and (max-width: 1439px) {
	.pb-intro__body,
	.pb-intro--large .pb-intro__body,
	.pb-intro--small .pb-intro__body {
		font-size: 22px;
		line-height: 29px;
		width: 90%;
	}
}

@media (max-width: 799px) {
	.pb-intro__body,
	.pb-intro--large .pb-intro__body,
	.pb-intro--small .pb-intro__body {
		font-size: 22px;
		line-height: 29px;
	}
}


.pb-section-heading__heading {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 20px;
	margin: 0;
}

.pb-section-heading__paragraph {
	font-family: var(--font-heading);
	font-size: 36px;
	line-height: 1.18;
	margin: 0;
}

/* Info cards row */
.pb-cards {
	padding: 93px var(--container-padding);
	background: var(--color-cream);
}

.pb-cards .container {
	padding: 0;
}

.pb-cards__intro {
	display: flex;
	gap: 29px;
	align-items: flex-start;
	margin-bottom: 60px;
}

.pb-cards__label {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 20px;
	flex: 0 0 426px;
	margin: 0;
}

.pb-cards__paragraph {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 42px;
	line-height: 1.18;
	margin: 0;
	flex: 0 0 884px;
	max-width: 100%;
}

.pb-cards__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

@media (max-width: 1439px) {
	.pb-cards__intro {
		flex-direction: column;
		gap: 16px;
	}

	.pb-cards__label,
	.pb-cards__paragraph {
		flex: none;
		width: 100%;
	}
}

@media (min-width: 800px) and (max-width: 1439px) {
	.pb-cards__paragraph {
		font-size: 36px;
		line-height: 42px;
	}
}

@media (max-width: 799px) {
	.pb-cards__label {
		font-size: 16px;
		line-height: 17px;
	}

	.pb-cards__paragraph {
		font-size: 24px;
		line-height: 28px;
	}
}

/* Tag colour — background pill on Grid Cards */
.pb-card__tag { background: var(--tag-blue); }
.pb-card[data-card-colour="blue"] .pb-card__tag { background: var(--tag-blue); }
.pb-card[data-card-colour="orange"] .pb-card__tag { background: var(--tag-orange); }
.pb-card[data-card-colour="green"] .pb-card__tag { background: var(--tag-green); }
.pb-card[data-card-colour="white"] .pb-card__tag { background: var(--color-white); }

.pb-card:hover[data-card-colour="blue"] { background: #d5f0f9; }
.pb-card:hover[data-card-colour="orange"] { background: #fff2d8; }
.pb-card:hover[data-card-colour="orange"] .pb-card__tag { background: #fadfa6; }
.pb-card:hover[data-card-colour="green"] { background: #d9f8d9; }
.pb-card:hover[data-card-colour="green"] .pb-card__tag { background: #b2e3b2; }
.pb-card:hover[data-card-colour="white"] { background: #f2f2f2; }

/* Stacked List display style (e.g. The Innovation) — same card box as Grid Cards
   (white background, rounded, same responsive 3-across grid), just no border
   on the card itself, no hover tint, and the tag becomes an outlined pill in
   the label's own colour instead of a filled one. */
.pb-cards--list .pb-card {
	border: none;
}

.pb-cards--list .pb-card:hover[data-card-colour] {
	background: var(--color-white);
}

.pb-cards--list .pb-card[data-card-colour] .pb-card__tag,
.pb-cards--list .pb-card:hover[data-card-colour] .pb-card__tag {
	background: none;
	border: 1px solid currentColor;
}

.pb-cards--list .pb-card[data-card-colour="blue"] .pb-card__tag { color: #2196c9; }
.pb-cards--list .pb-card[data-card-colour="orange"] .pb-card__tag { color: #d97a1f; }
.pb-cards--list .pb-card[data-card-colour="green"] .pb-card__tag { color: var(--color-brand-green); }
.pb-cards--list .pb-card[data-card-colour="white"] .pb-card__tag { color: var(--color-black); }

.pb-card {
	background: var(--color-white);
	border: 1px solid var(--color-light-gray);
	border-radius: 21px;
	padding: 38px 40px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	transition: background-color 0.15s ease;
}

.pb-card__tag {
	display: inline-flex;
	align-self: flex-start;
	color: var(--color-tag-text);
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 1.32px;
	text-transform: uppercase;
	padding: 8px 16px;
	border-radius: 999px;
	transition: background-color 0.15s ease;
}

.pb-card__heading {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 32px;
	line-height: 1.15;
	margin: 0;
}

.pb-card__paragraph {
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.5;
	margin: 0;
}

/* Image banner */
.pb-image-banner {
	position: relative;
}

.pb-image-banner img {
	width: 100%;
	height: 640px;
	object-fit: cover;
	display: block;
}

.pb-image-banner__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.pb-image-banner__content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 24px;
	padding: 220px 312px 93px 168px;
	color: var(--color-light-gray);
	text-align: left;
}

.pb-image-banner__caption {
	font-family: var(--font-heading);
	font-size: 24px;
	letter-spacing: -0.72px;
	margin: 0;
}

.pb-image-banner__statement {
	font-family: var(--font-heading);
	font-size: 52px;
	line-height: 1.07;
	letter-spacing: -1.26px;
	margin: 0;
}

@media (min-width: 800px) and (max-width: 1439px) {
	.pb-image-banner__content {
		padding: 220px 78px 93px 65px;
	}

	.pb-image-banner__statement {
		font-size: 42px;
		line-height: 45px;
	}
}

@media (max-width: 799px) {
	.pb-image-banner img {
		height: 400px;
	}

	.pb-image-banner__content {
		padding: 20px 20px 93px 20px;
	}

	.pb-image-banner__caption {
		font-size: 18px;
		line-height: 17px;
	}

	.pb-image-banner__statement {
		font-size: 24px;
		line-height: 26px;
	}
}

/* Content module */
.pb-content-module {
	position: relative;
	background: var(--color-cream);
	padding: 93px var(--container-padding);
}

.pb-content-module .container {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: 0;
}

.pb-content-module__heading {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 42px;
	margin: 0 0 29px;
}

.pb-content-module__text {
	font-size: 22px;
	line-height: 1.3;
}

.pb-content-module__text p:first-child {
	margin-top: 0;
}

.pb-content-module__text p:last-child {
	margin-bottom: 0;
}

/* Decorative graphic, independent of the text/accent flow — positioned
   absolute within .container (not the accent column) so it doesn't add to
   the row's height, matching how it bleeds past the row on live: it sits
   low and to the right, partially overlapping the row below (both share
   the same cream background, so the overlap is seamless). Two variants
   (set per-row via the Image Position field) because a single rule can't
   suit both a long body text (About) and a short one (The Innovation):
   flush-bottom would push a short row's image up over the accent text. */
.pb-content-module__image {
	position: absolute;
	right: -273px;
	width: 467px;
	height: 442px;
	pointer-events: none;
}

.pb-content-module__image--bottom {
	/* Ignore the row's own 93px bottom padding so the image touches the
	   next section, while the text above keeps its normal padding. */
	bottom: -93px;
}

.pb-content-module__image--offset {
	top: 177px;
}

.pb-content-module__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* The desktop bleed position/size is tuned against the two-column row (see
   the min-width:1440px block below); below that the row stacks. Mobile has
   no tuned treatment yet, so it stays hidden there; tablet gets its own
   smaller size/position per variant, matching live. */
@media (max-width: 799px) {
	.pb-content-module__image {
		display: none;
	}
}

@media (min-width: 800px) and (max-width: 1439px) {
	.pb-content-module__image {
		display: block;
		width: 304px;
		height: 265px;
		right: calc(-1 * var(--container-padding));
	}

	.pb-content-module__image--bottom {
		/* Flush with the top of the row that follows (ignoring this row's
		   own bottom padding) and with the true screen edge. */
		bottom: -93px;
	}

	.pb-content-module__image--offset {
		width: 491px;
		height: 465px;
		top: 544px;
	}
}

.pb-content-module__accent {
	color: var(--color-brand-green);
}

.pb-content-module__accent-heading {
	font-family: var(--font-heading);
	font-size: 33px;
	line-height: 1.18;
	margin: 0;
}

@media (min-width: 800px) and (max-width: 1439px) {
	.pb-content-module__accent-heading {
		font-size: 40px;
		line-height: 47px;
	}
}

.pb-content-module__accent-stat {
	font-family: var(--font-heading);
	font-size: 134px;
	line-height: 1.18;
	margin: 0;
}

/* At the native design width and up, Accent Text sits beside the body text
   as a second column instead of stacking below it. */
@media (min-width: 1440px) {
	.pb-content-module .container {
		flex-direction: row;
		align-items: flex-start;
		gap: 29px;
	}

	.pb-content-module__text {
		flex: 1 1 auto;
		min-width: 0;
	}

	.pb-content-module__accent {
		flex: 0 0 426px;
		padding-left: 113px;
	}

	/* Only the stat variant (e.g. Objectives & Impact's "14%") needs the extra
	   top offset — the heading variant (e.g. The Innovation) sits flush with
	   the row top, matching live. */
	.pb-content-module__accent:has(.pb-content-module__accent-stat) {
		padding-top: 83px;
	}

	.site-footer__tagline {
		font-size: 67px;
		width: 800px;
	}

	.site-footer__logo {
		padding-bottom: 20%;
	}
}

@media (max-width: 799px) {
	.site-footer__tagline {
		font-size: 32px;
		line-height: 38px;
	}
}

.pb-content-module__accent-caption {
	font-family: var(--font-heading);
	font-size: 22px;
	line-height: 1.18;
	margin: 0;
}

/* List */
.pb-list {
	background: #0d1f08;
	color: var(--color-white);
	padding: 93px 0;
}

.pb-list .container {
	display: flex;
	flex-direction: column;
	gap: 53px;
}

.pb-list__item {
	display: flex;
	gap: 36px;
	padding-top: 30px;
	border-top: 1px solid rgba(247, 244, 235, 0.48);
}

.pb-list__title {
	flex: 1 1 0;
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 42px;
	line-height: 1.18;
}

.pb-list__description {
	flex: 1 1 0;
	font-size: 22px;
	line-height: 1.3;
}

@media (max-width: 799px) {
	.pb-list__item {
		flex-direction: column;
		gap: 12px;
	}

	.pb-list__title {
		font-size: 32px;
		line-height: 38px;
	}

	.pb-list__description {
		font-size: 22px;
		line-height: 29px;
	}
}

/* Stat highlight */
.pb-stat {
	padding: 80px 0;
	background: var(--color-cream);
	text-align: left;
}

.pb-stat__number {
	font-family: var(--font-heading);
	font-size: 96px;
	line-height: 1;
	color: var(--color-brand-green);
	margin: 0 0 12px;
}

.pb-stat__caption {
	font-family: var(--font-body);
	font-size: 20px;
	max-width: 500px;
	margin: 0;
}

/* Consortium grid */
.pb-consortium {
	background: var(--color-cream);
	padding: 93px 0;
}

.pb-consortium .container {
	display: flex;
	flex-direction: column;
	gap: 29px;
	max-width: 1600px;
}

.pb-consortium__row {
	display: flex;
	align-items: center;
	gap: 102px;
	padding-top: 19px;
	border-top: 1px solid rgba(12, 122, 0, 0.5);
	flex-wrap: wrap;
}

.pb-consortium__name {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 22px;
	margin: 0;
	flex: 0 0 597px;
	max-width: 100%;
}

.pb-consortium__logo {
	flex: 0 0 229px;
	height: 73px;
}

.pb-consortium__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pb-consortium__link {
	font-size: 18px;
	text-decoration: underline 5.5% dotted rgb(12, 122, 0);
	text-underline-offset: 4px;
	flex: 0 0 308px;
	max-width: 100%;
	overflow-wrap: break-word;
	word-break: break-word;
}

@media (max-width: 799px) {
	.pb-consortium__row {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.pb-consortium__name,
	.pb-consortium__link {
		flex: none;
		width: 100%;
	}

	.pb-consortium__name {
		order: 1;
	}

	.pb-consortium__link {
		order: 2;
	}

	.pb-consortium__logo {
		flex: none;
		width: 229px;
		height: 73px;
		order: 3;
	}
}

/* Tablet: name+link stacked on the left, logo on the right. */
@media (min-width: 800px) and (max-width: 1439px) {
	.pb-consortium__row {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"name logo"
			"link logo";
		column-gap: 40px;
		row-gap: 8px;
		align-items: center;
	}

	.pb-consortium__name {
		grid-area: name;
	}

	.pb-consortium__link {
		grid-area: link;
	}

	.pb-consortium__logo {
		grid-area: logo;
		align-self: center;
		width: 229px;
		height: 73px;
	}
}

/* Partner logo carousel */
.pb-carousel {
	background: var(--color-cream);
	padding: 50px 0 57px;
}

.pb-carousel__intro {
	margin-bottom: 40px;
	padding: 0 var(--container-padding);
}

.pb-carousel__label {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 20px;
	color: #2a2a2a;
	margin: 0 0 16px;
}

.pb-carousel__paragraph {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 30px;
	color: #2a2a2a;
	width: 95%;
	margin: 0;
}

.pb-carousel__track {
	width: 100%;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, black 50px, black calc(100% - 50px), transparent);
	mask-image: linear-gradient(to right, transparent, black 50px, black calc(100% - 50px), transparent);
}

.pb-carousel__track-inner {
	display: flex;
	align-items: center;
	gap: 60px;
	width: max-content;
	padding-left: var(--container-padding);
	animation: pb-carousel-scroll 30s linear infinite;
}

.pb-carousel__track:hover .pb-carousel__track-inner {
	animation-play-state: paused;
}

@keyframes pb-carousel-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

.pb-carousel__track img {
	width: 229px;
	height: 73px;
	object-fit: contain;
	flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
	.pb-carousel__track-inner {
		animation: none;
	}
}

/* Latest news feed */
.pb-news {
	position: relative;
	padding: 93px 0;
	background: var(--color-cream);
	overflow: hidden;
}

.pb-news__decor {
	position: absolute;
	top: 0;
	left: 358px;
	width: 1082px;
	aspect-ratio: 1082 / 496;
	height: auto;
	pointer-events: none;
}

.pb-news__heading {
	position: relative;
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 52px;
	margin: 0 0 40px;
}

@media (max-width: 799px) {
	.pb-news__heading {
		font-size: 24px;
		line-height: 26px;
	}
}

.pb-news__grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 34px;
}

.pb-news__card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-decoration: none;
}

.pb-news__card img {
	border-radius: 0;
	width: 100% !important;
	height: 272px !important;
	object-fit: cover;
	transition: border-radius 0.15s ease;
}

.pb-news__card:hover img {
	border-radius: 20px;
}

.pb-news__tag,
.pb-news__title,
.pb-news__excerpt {
	transition: opacity 0.15s ease, color 0.15s ease;
}

.pb-news__card:hover .pb-news__tag,
.pb-news__card:hover .pb-news__title,
.pb-news__card:hover .pb-news__excerpt {
	opacity: 0.6;
}

.pb-news__tag {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 18px;
	color: #2a2a2a;
}

.pb-news__title {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 25px;
	color: #2a2a2a;
	margin: 0;
}

.pb-news__excerpt {
	font-weight: 400;
	font-size: 20px;
	line-height: 1.35;
	color: #2a2a2a;
	color: #444;
	margin: 0;
}

/* Single Post */
.pb-post {
	padding: 93px var(--container-padding);
	background: var(--color-cream);
}

.pb-post .container {
	padding: 0;
}

.pb-post__row {
	display: flex;
	gap: 29px;
	align-items: flex-start;
}

.pb-post__content {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 22px;
	line-height: 1.3;
}

.pb-post__content > *:first-child {
	margin-top: 0;
}

.pb-post__content > *:last-child {
	margin-bottom: 0;
}

.pb-post__content p {
	margin: 0 0 22px;
}

.pb-post__content h2,
.pb-post__content h3 {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 32px;
	line-height: 1.15;
	margin: 40px 0 12px;
}

.pb-post__content ul,
.pb-post__content ol {
	margin: 0 0 22px;
	padding-left: 33px;
}

.pb-post__content li {
	margin-bottom: 7px;
}

.pb-post__content a {
	color: var(--color-black);
	text-decoration: underline;
}

.pb-post__content a:hover {
	color: var(--color-brand-green);
}

.pb-post__sidebar {
	flex: 0 0 426px;
	max-width: 100%;
	padding-left: 113px;
}

.pb-post__sidebar-row {
	font-size: 22px;
	line-height: 1.18;
	margin: 0 0 12px;
}

.pb-post__sidebar-label {
	display: block;
	color: var(--color-black);
}

.pb-post__sidebar-text {
	color: var(--color-brand-green);
}

@media (max-width: 1439px) {
	.pb-post__row {
		flex-direction: column;
	}

	.pb-post__content {
		width: 100%;
	}

	.pb-post__sidebar {
		flex: none;
		width: 100%;
		padding-left: 0;
	}
}

/* Scroll reveal animations — subtle fade + rise, applied to elements marked
   with [data-reveal] in the templates. Hidden state only applies once JS has
   confirmed it can actually reveal them (html loses .no-js very early, see
   header.php); without JS everything stays fully visible. */
.no-js [data-reveal],
[data-reveal] {
	opacity: 1;
	transform: none;
}

html:not(.no-js) [data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html:not(.no-js) [data-reveal].is-revealed {
	opacity: 1;
	transform: none;
}

/* A slight cascade when several reveal elements sit side by side or stack
   in a list (card grids, consortium rows, hero heading -> subheading, etc). */
html:not(.no-js) [data-reveal] + [data-reveal] {
	transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
	html:not(.no-js) [data-reveal] {
		transition: none;
		opacity: 1;
		transform: none;
	}
}
