/* AFRA Site Design v1.0 — consolidated Bright + Content page styles */

.afra-bright-page {
	--afra-green: #07845f;
	--afra-green-dark: #03533e;
	--afra-green-deep: #063c30;
	--afra-cream: #f7f4ec;
	--afra-pale: #eef6f2;
	--afra-ink: #142620;
	--afra-muted: #596761;
	--afra-gold: #c69a49;
}

.afra-bright-page,
.afra-bright-page p,
.afra-bright-page li {
	color: var(--afra-ink);
}

.afra-bright-page .afra-on-dark,
.afra-bright-page .afra-on-dark h1,
.afra-bright-page .afra-on-dark h2,
.afra-bright-page .afra-on-dark h3,
.afra-bright-page .afra-on-dark p {
	color: #fff;
}

/*
 * Bright banner treatment:
 * The photograph itself stays vivid. Only the text side receives a strong
 * green gradient, fading to almost transparent across the photograph.
 */
.afra-site-design .afra-vibrant-hero .wp-block-cover__background {
	opacity: 1 !important;
	background:
		linear-gradient(
			90deg,
			rgba(2, 76, 56, .94) 0%,
			rgba(2, 76, 56, .80) 28%,
			rgba(2, 76, 56, .47) 48%,
			rgba(2, 76, 56, .10) 68%,
			rgba(2, 76, 56, 0) 82%
		) !important;
}

.afra-site-design .afra-vibrant-hero img {
	filter: saturate(1.08) contrast(1.03);
}

.afra-bright-page .afra-kicker {
	margin: 0 0 .85rem;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.afra-bright-page .afra-section-kicker {
	color: var(--afra-green);
}

.afra-bright-page .afra-big-heading {
	font-size: clamp(3.1rem, 6.5vw, 6.2rem);
	line-height: 1.02;
	letter-spacing: -.035em;
}

.afra-bright-page .afra-section-heading {
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1.08;
}

.afra-bright-page .afra-button-primary .wp-block-button__link {
	border-radius: 999px;
	background: var(--afra-green);
	color: #fff;
	font-weight: 750;
	padding-inline: 1.4rem;
}

.afra-bright-page .afra-button-light .wp-block-button__link {
	border-radius: 999px;
	background: #fff;
	color: var(--afra-green-dark);
	font-weight: 750;
	padding-inline: 1.4rem;
}

.afra-bright-page .afra-button-outline .wp-block-button__link {
	border-radius: 999px;
	border-color: currentColor;
	font-weight: 750;
	padding-inline: 1.4rem;
}

.afra-bright-page .afra-impact-bar {
	position: relative;
	z-index: 3;
	margin-top: -52px;
	border: 1px solid rgba(7, 132, 95, .10);
	border-radius: 24px;
	background: rgba(255,255,255,.98);
	box-shadow: 0 24px 55px rgba(20, 38, 32, .12);
}

.afra-bright-page .afra-impact-bar .wp-block-column + .wp-block-column {
	border-left: 1px solid rgba(7, 132, 95, .13);
}

.afra-bright-page .afra-stat-number {
	color: var(--afra-green);
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	font-weight: 800;
	line-height: 1;
}

.afra-bright-page .afra-card {
	height: 100%;
	border: 1px solid rgba(7, 132, 95, .13);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 35px rgba(20, 38, 32, .055);
}

.afra-bright-page .afra-icon {
	display: grid;
	width: 46px;
	height: 46px;
	place-items: center;
	margin-bottom: 1rem;
	border-radius: 14px;
	background: #e4f3ec;
	color: var(--afra-green-dark);
	font-size: 1.35rem;
}

.afra-bright-page .afra-feature-image {
	overflow: hidden;
	border-radius: 24px;
}

.afra-bright-page .afra-feature-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afra-bright-page .afra-news-list {
	border-radius: 18px;
	border: 1px solid rgba(7, 132, 95, .11);
	background: #fff;
}

.afra-bright-page .afra-news-list + .afra-news-list {
	margin-top: 14px;
}

.afra-bright-page .afra-staff-wrap {
	width: 100%;
	max-width: 1600px;
	margin-inline: auto;
}

.afra-bright-page .afra-soft-section {
	background: linear-gradient(180deg, #fbfaf7 0%, #f7f4ec 100%);
}

@media (max-width: 781px) {
	.afra-site-design .afra-vibrant-hero .wp-block-cover__background {
		background:
			linear-gradient(
				180deg,
				rgba(2, 76, 56, .56) 0%,
				rgba(2, 76, 56, .78) 50%,
				rgba(2, 76, 56, .94) 100%
			) !important;
	}

	.afra-site-design .afra-vibrant-hero {
		min-height: 680px !important;
		align-items: flex-end;
	}

	.afra-bright-page .afra-impact-bar {
		margin-top: 0;
		border-radius: 0;
	}

	.afra-bright-page .afra-impact-bar .wp-block-column + .wp-block-column {
		border-left: 0;
		border-top: 1px solid rgba(7, 132, 95, .13);
	}
}

.afra-content-page {
	--afra-green: #087b5b;
	--afra-green-dark: #04543e;
	--afra-pale: #eff6f2;
	--afra-cream: #f7f2e4;
	--afra-ink: #18221f;
	--afra-muted: #5f6c67;
	--afra-gold: #c89c50;
}

.afra-content-page,
.afra-content-page p,
.afra-content-page li {
	color: var(--afra-ink);
}

.afra-content-page .afra-white,
.afra-content-page .afra-white p,
.afra-content-page .afra-white h1,
.afra-content-page .afra-white h2,
.afra-content-page .afra-white h3 {
	color: #fff;
}

.afra-content-page .afra-kicker {
	margin-bottom: .65rem;
	font-size: .78rem;
	font-weight: 750;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--afra-green);
}

.afra-content-page .afra-section-title {
	font-size: clamp(2rem, 4vw, 3.5rem);
	line-height: 1.08;
}

.afra-content-page .afra-card {
	overflow: hidden;
	border: 1px solid rgba(8, 123, 91, .12);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 14px 38px rgba(24, 34, 31, .07);
}

.afra-content-page .afra-card img {
	width: 100%;
}

.afra-content-page .afra-pill {
	display: inline-block;
	padding: .35rem .7rem;
	border-radius: 999px;
	background: var(--afra-pale);
	color: var(--afra-green-dark);
	font-size: .75rem;
	font-weight: 700;
}

.afra-content-page .afra-number {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 999px;
	background: var(--afra-green);
	color: #fff;
	font-weight: 800;
}

.afra-content-page .afra-programme-nav .wp-block-column {
	border-top: 4px solid var(--afra-green);
}

.afra-content-page .afra-resource-category {
	position: relative;
	overflow: hidden;
	border-radius: 22px;
	min-height: 360px;
	box-shadow: 0 18px 45px rgba(24, 34, 31, .10);
}

.afra-content-page .afra-resource-category .wp-block-cover__inner-container {
	height: 100%;
}

.afra-content-page .afra-resource-category .wp-block-group {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.afra-content-page .afra-resource-category:hover img {
	transform: scale(1.035);
}

.afra-content-page .afra-resource-category img {
	transition: transform .3s ease;
}

.afra-content-page .afra-resource-item {
	border-top: 1px solid rgba(8, 123, 91, .16);
}

.afra-content-page .afra-resource-item a {
	color: var(--afra-green-dark);
	font-weight: 700;
}

.afra-content-page .wp-block-button__link {
	border-radius: 8px;
	font-weight: 700;
}

.afra-content-page .afra-green-button .wp-block-button__link {
	background: var(--afra-green);
	color: #fff;
}

.afra-content-page .afra-image-round img {
	border-radius: 20px;
}

.afra-content-page .afra-staff-shell {
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	max-width: 1600px;
}

@media (max-width: 781px) {
	.afra-content-page .afra-resource-category {
		min-height: 300px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.afra-content-page .afra-resource-category img {
		transition: none;
	}
}

/* =========================================================
   AFRA Site Design — shared additions
   ========================================================= */

.afra-site-partners {
	--afra-partner-green: #087b5b;
	--afra-partner-green-dark: #045b44;
	--afra-partner-pale: #eef6f2;
	--afra-partner-cream: #f8f4e9;
	--afra-partner-ink: #17231f;
}

.afra-site-partners .afra-partner-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.2rem;
}

.afra-site-partners .afra-network-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.2rem;
	max-width: 780px;
	margin-inline: auto;
}

.afra-site-partners .afra-partner-card {
	display: flex;
	min-height: 230px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1.75rem;
	border: 1px solid rgba(8,123,91,.13);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 13px 34px rgba(23,35,31,.06);
	text-align: center;
}

.afra-site-partners .afra-partner-logo {
	display: flex;
	height: 130px;
	width: 100%;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.1rem;
}

.afra-site-partners .afra-partner-logo img {
	display: block;
	max-width: 100%;
	max-height: 120px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.afra-site-partners .afra-partner-name {
	margin: 0;
	color: var(--afra-partner-ink);
	font-size: 1rem;
	font-weight: 750;
	line-height: 1.3;
}

.afra-site-partners .afra-partner-note {
	color: #68736f;
	font-size: .88rem;
}

.afra-site-design .afra-people-section {
	width: 100%;
	max-width: 1600px;
	margin-inline: auto;
}

@media (max-width: 900px) {
	.afra-site-partners .afra-partner-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 580px) {
	.afra-site-partners .afra-partner-grid,
	.afra-site-partners .afra-network-grid {
		grid-template-columns: 1fr;
	}
}

/* AFRA Site Design v1.1 — universal vibrant Cover treatment */
.afra-site-design .wp-block-cover.afra-vibrant-hero .wp-block-cover__background {
	opacity: 1 !important;
	background:
		linear-gradient(
			90deg,
			rgba(2, 76, 56, .94) 0%,
			rgba(2, 76, 56, .80) 28%,
			rgba(2, 76, 56, .47) 48%,
			rgba(2, 76, 56, .10) 68%,
			rgba(2, 76, 56, 0) 82%
		) !important;
}

.afra-site-design .wp-block-cover.afra-vibrant-hero > img.wp-block-cover__image-background {
	filter: saturate(1.08) contrast(1.03);
}

@media (max-width: 781px) {
	.afra-site-design .wp-block-cover.afra-vibrant-hero .wp-block-cover__background {
		background:
			linear-gradient(
				180deg,
				rgba(2, 76, 56, .56) 0%,
				rgba(2, 76, 56, .78) 50%,
				rgba(2, 76, 56, .94) 100%
			) !important;
	}
}

/* AFRA Site Design v1.2 — Contact page */
.afra-contact-page .afra-contact-details {
	border-top: 1px solid rgba(8, 123, 91, .16);
}

.afra-contact-page .afra-contact-item {
	border-bottom: 1px solid rgba(8, 123, 91, .16);
}

.afra-contact-page .afra-contact-label {
	margin: 0 0 .35rem;
	color: var(--afra-green);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.afra-contact-page .afra-contact-item p:last-child {
	margin-bottom: 0;
}

.afra-contact-page .afra-contact-item a {
	color: var(--afra-green-dark);
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.afra-contact-page .afra-contact-form-card {
	border: 1px solid rgba(8, 123, 91, .13);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(20, 38, 32, .08);
}

.afra-contact-page .afra-wpforms-slot {
	border: 2px dashed rgba(8, 123, 91, .28);
	border-radius: 14px;
	background: #eef6f2;
	color: #456158;
}

@media (max-width: 781px) {
	.afra-contact-page .afra-contact-form-card {
		padding: 28px !important;
	}
}

/* AFRA Site Design v1.3 — map + social links */
.afra-site-design .afra-social-links {
	gap: .65rem;
}

.afra-site-design .afra-social-links .wp-social-link {
	transition: transform .18s ease, opacity .18s ease;
}

.afra-site-design .afra-social-links .wp-social-link:hover,
.afra-site-design .afra-social-links .wp-social-link:focus-within {
	transform: translateY(-2px);
}

.afra-contact-page .afra-find-us {
	overflow: hidden;
}

.afra-contact-page .afra-map-frame {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	line-height: 0;
	overflow: hidden;
	background: #dfe9e4;
}

.afra-contact-page .afra-map-frame iframe {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0;
	border: 0;
}

@media (max-width: 781px) {
	.afra-contact-page .afra-map-frame iframe {
		height: 380px;
	}
}

