/* Reusable sections, cards, home modules, and global pre-footer/footer. */

.bhc-section {
	padding-block: clamp(3.5rem, 6vw, 5.75rem);
}

.bhc-section--surface {
	background: var(--bhc-color-soft);
}

.site-main > .bhc-section--surface:first-child {
	border-bottom: 1px solid var(--bhc-color-line);
	padding-block: clamp(2.75rem, 6vw, 5rem);
}

.site-main > .bhc-section--surface:first-child h1 {
	max-width: 62rem;
	margin-block: 0;
	color: var(--wp--preset--color--primary);
}

.bhc-section-heading {
	max-width: 48rem;
}

.bhc-section-heading + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.bhc-card {
	height: 100%;
	border: 1px solid var(--bhc-color-line);
	border-radius: var(--bhc-radius-lg);
	background: #fff;
	box-shadow: var(--bhc-shadow-sm);
	padding: clamp(1.5rem, 2.5vw, 2.25rem);
	transition: border-color var(--bhc-transition), box-shadow var(--bhc-transition), transform var(--bhc-transition);
}

.bhc-card:hover {
	border-color: var(--bhc-color-line-strong);
	box-shadow: var(--bhc-shadow-md);
	transform: translateY(-0.25rem);
}

.bhc-card > :first-child,
.bhc-placeholder > :first-child {
	margin-block-start: 0;
}

.bhc-card > :last-child,
.bhc-placeholder > :last-child {
	margin-block-end: 0;
}

.bhc-feature-grid,
.bhc-stats-grid,
.bhc-sponsor-grid,
.bhc-gallery-grid {
	align-items: stretch;
}

.bhc-feature-grid .bhc-card {
	position: relative;
	border: 1px solid var(--bhc-color-line);
	border-radius: var(--bhc-radius-lg);
	background: #fff;
	box-shadow: var(--bhc-shadow-sm);
}

.bhc-feature-grid .bhc-card:hover {
	border-color: var(--bhc-color-line-strong);
	box-shadow: var(--bhc-shadow-md);
	transform: translateY(-0.25rem);
}

.bhc-feature-grid h3 {
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.6rem);
}

.bhc-feature-grid a::after,
.bhc-publication-card .wp-block-post-excerpt__more-link::after,
.bhc-resource-card .wp-block-post-excerpt__more-link::after {
	content: "\00a0\2192";
}

.bhc-stat-value {
	margin: 0;
	color: var(--wp--preset--color--secondary);
	font-family: var(--wp--preset--font-family--display-sans);
	font-size: clamp(2.4rem, 1.7rem + 2vw, 4rem);
	font-weight: 600;
	line-height: 1;
}

.bhc-stats-grid .bhc-card {
	border: 0;
	border-left: 1px solid var(--bhc-color-line-strong);
	border-radius: 0;
	background: transparent;
	padding-block: 0.75rem;
}

.bhc-placeholder {
	display: grid;
	min-height: 10rem;
	place-items: center;
	border: 1px dashed var(--bhc-color-line-strong);
	border-radius: var(--bhc-radius-sm);
	background: var(--bhc-color-wash);
	padding: var(--wp--preset--spacing--30);
	text-align: center;
}

.bhc-placeholder p {
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--small);
}

.bhc-gallery-grid,
.bhc-page-slug-meet-the-team .wp-block-post-content > .wp-block-columns {
	position: relative;
	left: 50%;
	width: min(calc(100vw - (2 * var(--wp--preset--spacing--30))), var(--wp--style--global--wide-size));
	max-width: none;
	margin-inline: 0 !important;
	transform: translateX(-50%);
}

.bhc-page-slug-meet-the-team .wp-block-post-content > p:first-child {
	max-width: 42rem;
	font-size: var(--wp--preset--font-size--large);
}

.bhc-page-slug-meet-the-team .bhc-card {
	border: 1px solid var(--bhc-color-line);
	border-radius: var(--bhc-radius-lg);
	box-shadow: var(--bhc-shadow-sm);
}

.bhc-page-slug-meet-the-team .bhc-card h3 {
	margin-bottom: 0.35rem;
	font-size: 1.5rem;
}

.bhc-page-intro {
	max-width: 54rem;
}

.bhc-page-intro > p:first-of-type {
	max-width: 46rem;
}

.bhc-section-note {
	border-left: 0.25rem solid var(--wp--preset--color--accent);
	padding-left: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--primary);
}

/* Home page hero supports an editor-replaceable media layer. */
.home .wp-block-post-content > .bhc-home-hero,
.home .wp-block-post-content > .bhc-section:first-child {
	position: relative;
	display: grid;
	min-height: clamp(35rem, 76vh, 46rem);
	align-items: center;
	overflow: hidden;
	border: 0;
	background: var(--wp--preset--color--primary);
	color: #fff;
	padding-block: clamp(5rem, 10vw, 8rem);
}

.home .wp-block-post-content > .bhc-home-hero::before,
.home .wp-block-post-content > .bhc-section:first-child::before {
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(90deg, rgb(100 54 36 / 94%) 0%, rgb(100 54 36 / 78%) 50%, rgb(100 54 36 / 38%) 100%);
	content: "";
}

.home .bhc-home-hero > .bhc-hero-copy,
.home .wp-block-post-content > .bhc-section:first-child > .bhc-page-intro {
	position: relative;
	z-index: 2;
	width: 100%;
	margin-inline: auto;
}

.home .bhc-home-hero h1,
.home .wp-block-post-content > .bhc-section:first-child h1 {
	max-width: 56rem;
	margin-block: 0 var(--wp--preset--spacing--30);
	color: #fff;
	font-size: clamp(3rem, 6.5vw, 5.35rem);
	line-height: 0.96;
}

.home .bhc-home-hero .bhc-hero-copy > p,
.home .wp-block-post-content > .bhc-section:first-child > .bhc-page-intro > p {
	max-width: 41rem;
	color: #fff;
	font-size: clamp(1.2rem, 1rem + 0.75vw, 1.65rem);
}

.home .bhc-home-hero .bhc-hero-media {
	position: absolute;
	z-index: 0;
	inset: 0;
	width: 100%;
	max-width: none;
	min-height: 100%;
	border: 0;
	border-radius: 0;
	background-color: var(--wp--preset--color--primary);
	background-image: url("../../images/hero/pexels-gabby-k-9487242.jpg");
	background-position: center 43%;
	background-repeat: no-repeat;
	background-size: cover;
	padding: 0;
}

.home .bhc-home-hero .bhc-hero-media p {
	display: none;
}

.home .wp-block-post-content > .bhc-section:first-child .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	color: #fff;
}

.home .wp-block-post-content > .bhc-section:first-child .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.home .wp-block-post-content > .bhc-section:first-child .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

.home .wp-block-post-content > .bhc-section:first-child .is-style-outline .wp-block-button__link {
	border-color: #fff;
	color: #fff;
}

.home .wp-block-post-content > .bhc-section:nth-child(2) {
	display: grid;
	grid-template-columns: minmax(15rem, 0.7fr) minmax(25rem, 1.3fr);
	gap: 0 var(--wp--preset--spacing--60);
}

.home .wp-block-post-content > .bhc-section:nth-child(2) h2,
.home .wp-block-post-content > .bhc-section:nth-child(2) p {
	grid-column: 1;
}

.home .wp-block-post-content > .bhc-section:nth-child(2) .wp-block-search {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: center;
	width: 100%;
}

.home .wp-block-post-content > .bhc-section:nth-child(3) {
	border-top: 1px solid var(--bhc-color-line);
}

.home .wp-block-post-content > .bhc-section:nth-child(4) {
	background: var(--bhc-color-soft);
}

.home .wp-block-post-content > .bhc-section:nth-child(5) .bhc-section-heading {
	display: flex;
	max-width: none;
	align-items: end;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
}

.home .wp-block-post-content > .bhc-section:nth-child(7) {
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--secondary);
	color: #fff;
	box-shadow: none;
	padding-block: clamp(3rem, 6vw, 5rem);
}

.home .wp-block-post-content > .bhc-section:nth-child(7) h2,
.home .wp-block-post-content > .bhc-section:nth-child(7) p {
	color: #fff;
}

.home .wp-block-post-content > .bhc-section:nth-child(7) .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: #fff;
	color: var(--wp--preset--color--secondary);
}

.home .wp-block-post-content > .bhc-section:nth-child(7) .is-style-outline .wp-block-button__link {
	border-color: #fff;
	color: #fff;
}

/* Editorial page content remains spacious without boxing each section. */
.page .site-main > .bhc-section .wp-block-post-content {
	max-width: 52rem;
}

.page .wp-block-post-content > h2 {
	margin-block-start: clamp(3.25rem, 7vw, 5rem);
	padding-top: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--secondary);
}

.page .wp-block-post-content > h2:first-child {
	margin-block-start: 0;
}

.page .wp-block-post-content > h2 + p {
	margin-block-start: var(--wp--preset--spacing--20);
}

.bhc-page-slug-publications-by-dr-salami .site-main > .bhc-section:first-child {
	border-bottom-color: var(--wp--preset--color--accent);
}

.bhc-page-slug-black-health .site-main > .bhc-section:first-child {
	box-shadow: none;
}

.bhc-page-slug-child-welfare .site-main > .bhc-section:first-child {
	box-shadow: none;
}

.parent-pageid-9 .wp-block-post-content > p:first-child {
	max-width: 44rem;
	margin-block: 0 clamp(2.5rem, 5vw, 4rem);
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--large);
}

/* Newsletter, partner strip, and footer form a single deliberate ending. */
.site-pre-footer > .bhc-section:first-child {
	background: var(--wp--preset--color--primary);
	color: #fff;
	padding-block: clamp(3.5rem, 6vw, 5rem);
}

.site-pre-footer > .bhc-section:first-child h2,
.site-pre-footer > .bhc-section:first-child p {
	color: #fff;
}

.site-pre-footer > .bhc-section:first-child p {
	max-width: 44rem;
	margin-inline: auto;
}

.site-pre-footer > .bhc-section--surface {
	background: var(--bhc-color-soft);
	padding-block: clamp(2.75rem, 5vw, 4rem);
}

.bhc-sponsor-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--20);
}

.bhc-sponsor-grid .wp-block-column {
	min-width: 0;
}

.bhc-sponsor-card {
	display: grid;
	height: 100%;
	min-height: 9rem;
	place-items: center;
	border: 1px solid var(--bhc-color-line);
	border-radius: var(--bhc-radius-md);
	background: #fff;
	padding: clamp(1.25rem, 2.5vw, 2rem);
}

.bhc-sponsor-logo {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.bhc-sponsor-logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 5rem;
	object-fit: contain;
}

footer.wp-block-template-part > .wp-block-group {
	border-top: 1px solid rgb(204 163 127 / 35%);
}

footer .wp-block-site-title {
	max-width: 30rem;
	font-family: var(--wp--preset--font-family--display-sans);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
	font-weight: 600;
}

footer .wp-block-site-title a,
footer a {
	color: #fff;
}

footer.wp-block-template-part .wp-block-navigation-item__content {
	color: #fff !important;
}

footer.wp-block-template-part .wp-block-navigation-item__content:hover,
footer.wp-block-template-part .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--surface) !important;
}

footer .wp-block-site-tagline {
	max-width: 36rem;
	color: var(--wp--preset--color--surface) !important;
}

footer .wp-block-navigation__container {
	max-width: 28rem;
	justify-content: flex-end;
	gap: 0.5rem 1.5rem;
}

@media (max-width: 64rem) {
	.bhc-sponsor-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home .wp-block-post-content > .bhc-section:nth-child(2) {
		grid-template-columns: 1fr;
	}

	.home .wp-block-post-content > .bhc-section:nth-child(2) h2,
	.home .wp-block-post-content > .bhc-section:nth-child(2) p,
	.home .wp-block-post-content > .bhc-section:nth-child(2) .wp-block-search {
		grid-column: 1;
		grid-row: auto;
	}

	footer .alignwide.is-layout-flex {
		align-items: flex-start;
		flex-direction: column;
	}

	footer .wp-block-navigation,
	footer .wp-block-navigation__container {
		justify-content: flex-start;
	}
}

@media (max-width: 48.875rem) {
	.bhc-section {
		padding-block: clamp(3rem, 11vw, 4.25rem);
	}

	.home .wp-block-post-content > .bhc-home-hero::before,
	.home .wp-block-post-content > .bhc-section:first-child::before {
		background: rgb(100 54 36 / 76%);
	}

	.home .bhc-home-hero .bhc-hero-media {
		background-position: 53% center;
	}

	.home .wp-block-post-content > .bhc-section:first-child h1 {
		max-width: calc(100% - 1rem);
	}

	.bhc-feature-grid,
	.bhc-stats-grid,
	.bhc-gallery-grid,
	.bhc-sponsor-grid {
		gap: var(--wp--preset--spacing--30);
	}

	.bhc-stats-grid .bhc-card {
		border-top: 1px solid var(--bhc-color-line-strong);
		border-left: 0;
	}
}

@media (max-width: 37.5rem) {
	.home .wp-block-post-content > .bhc-section:first-child .wp-block-buttons,
	.home .wp-block-post-content > .bhc-section:nth-child(7) .wp-block-buttons {
		align-items: stretch;
		flex-direction: column;
	}

	.home .wp-block-post-content > .bhc-section:first-child .wp-block-button,
	.home .wp-block-post-content > .bhc-section:first-child .wp-block-button__link,
	.home .wp-block-post-content > .bhc-section:nth-child(7) .wp-block-button,
	.home .wp-block-post-content > .bhc-section:nth-child(7) .wp-block-button__link {
		width: 100%;
	}
}

@media (max-width: 22rem) {
	.bhc-sponsor-grid {
		grid-template-columns: 1fr;
	}
}
