/* Community Involvement page — a continuation of the homepage/About/Loan/Contact system. */
.boc-community {
	--boc-community-radius: 18px;
	overflow: hidden;
	margin-bottom: 0;
	padding: 0;
	color: var(--boc-color-text);
}

.boc-community,
.boc-community *,
.boc-community *::before,
.boc-community *::after {
	box-sizing: border-box;
}

.site-main .boc-community .wp-block-group__inner-container {
	padding: 0;
}

.boc-community > .wp-block-group__inner-container {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Neutralize the theme's per-block padding, exactly as on the other pages:
 * the page owns spacing at the section/panel level instead. */
.boc-community .boc-community-hero > .wp-block-group__inner-container > .boc-kicker,
.boc-community .boc-community-hero > .wp-block-group__inner-container > h1,
.boc-community .boc-community-hero > .wp-block-group__inner-container > p,
.boc-community .boc-community-section .wp-block-group__inner-container > h2,
.boc-community .boc-community-section .wp-block-group__inner-container > h3,
.boc-community .boc-community-section .wp-block-group__inner-container > p {
	padding-right: 0;
	padding-left: 0;
}

.boc-community > .wp-block-group__inner-container > :not(.boc-community-hero) {
	width: 100%;
	max-width: 1200px;
	margin-right: auto;
	margin-left: auto;
	padding-right: 28px;
	padding-left: 28px;
}

.boc-community .boc-kicker {
	margin: 0 0 12px;
	color: var(--boc-color-accent-dark);
	font: 700 13px/1.3 Arial, sans-serif;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* Full-bleed hero with the Pexels community-volunteer photo (free license) behind
 * a navy gradient so headline text always meets contrast requirements. */
.boc-community > .wp-block-group__inner-container > .boc-community-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100vw;
	max-width: none;
	margin: 0 0 0 calc(50% - 50vw);
	padding: clamp(48px, 7vw, 86px) 0;
	background:
		linear-gradient(90deg, var(--boc-navy-950) 0%, rgba(var(--boc-navy-rgb), .96) 44%, rgba(var(--boc-navy-rgb), .72) 64%, rgba(var(--boc-navy-rgb), .38) 100%),
		url("/wp-content/uploads/2026/09/community-hero.jpg") center 42% / cover no-repeat,
		var(--boc-navy-900);
	color: var(--boc-white);
}

.boc-community .boc-community-hero > .wp-block-group__inner-container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 28px;
}

.boc-community .boc-community-hero > .wp-block-group__inner-container > * {
	max-width: 680px;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

.boc-community .boc-community-hero .boc-kicker {
	color: var(--boc-gold-400);
}

.boc-community .boc-community-hero h1 {
	margin: 0 0 18px;
	color: var(--boc-white);
	font-family: Georgia, serif;
	font-size: clamp(40px, 5vw, 64px);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -.028em;
}

.boc-community .boc-community-hero p:not(.boc-kicker) {
	max-width: 610px;
	margin: 0;
	color: rgba(255, 255, 255, .86);
	font-size: 18px;
	line-height: 1.65;
}

.boc-community > .wp-block-group__inner-container > .boc-community-section {
	padding-top: clamp(42px, 5vw, 64px);
	padding-bottom: clamp(34px, 4vw, 52px);
}

.boc-community .boc-community-section + .boc-community-section {
	border-top: 1px solid var(--boc-border);
}

/* A section followed by another one keeps less air under its last block,
 * so the divider line doesn't float in a void (same rhythm as Identity Theft). */
.boc-community > .wp-block-group__inner-container > .boc-community-section:has(+ .boc-community-section) {
	padding-bottom: clamp(18px, 2.2vw, 28px);
}

.boc-community .boc-community-section h2 {
	margin: 0 0 16px;
	color: var(--boc-navy-950);
	font-family: Georgia, serif;
	font-size: clamp(28px, 3.4vw, 38px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.02em;
}

.boc-community .boc-community-section p {
	max-width: 780px;
	margin: 0 0 14px;
	font-size: 17px;
	line-height: 1.7;
}

/* Relay For Life banner — framed like the page cards on the other pages. */
.boc-community .boc-community-rfl {
	max-width: none;
	margin: 22px 0 8px;
	padding: clamp(18px, 2.6vw, 28px);
	border: 1px solid var(--boc-border);
	border-top: 4px solid var(--boc-gold-600);
	border-radius: var(--boc-community-radius);
	background: var(--boc-white);
	box-shadow: 0 3px 10px rgba(var(--boc-navy-rgb), .06);
}

.boc-community .boc-community-rfl img {
	display: block;
	width: 100%;
	max-width: 603px;
	height: auto;
	margin: 0 auto;
}

/* Section header row: heading on the left, community emblem on the right. */
.boc-community .boc-community-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 28px;
	margin-bottom: 18px;
}

.boc-community .boc-community-head h2 {
	margin-bottom: 0;
}

.boc-community .boc-community-emblem {
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--boc-border);
	border-radius: 12px;
	background: var(--boc-white);
	box-shadow: 0 3px 10px rgba(var(--boc-navy-rgb), .05);
}

.boc-community .boc-community-emblem img {
	display: block;
	width: auto;
	max-width: 176px;
	height: auto;
}

/* Activities checklist — gold markers, two columns on wide screens. */
.boc-community .boc-community-list {
	max-width: none;
	margin: 0 0 6px;
	padding-left: 26px;
}

.boc-community .boc-community-list li {
	margin: 0 0 12px;
	font-size: 17px;
	line-height: 1.68;
}

.boc-community .boc-community-list li::marker {
	color: var(--boc-gold-600);
}

@media (min-width: 781px) {
	.boc-community .boc-community-list {
		columns: 2;
		column-gap: 56px;
	}

	.boc-community .boc-community-list li {
		break-inside: avoid;
	}
}

/* Breakpoints — kept identical to the About/Loan/Contact system. */
@media (max-width: 700px) {
	.boc-community .boc-community-hero {
		background:
			linear-gradient(180deg, rgba(var(--boc-navy-rgb), .94) 0%, rgba(var(--boc-navy-rgb), .82) 60%, rgba(var(--boc-navy-rgb), .66) 100%),
			url("/wp-content/uploads/2026/09/community-hero.jpg") center 30% / cover no-repeat,
			var(--boc-navy-900);
	}

	.boc-community .boc-community-head {
		justify-content: flex-start;
	}
}

@media (max-width: 420px) {
	.boc-community > .wp-block-group__inner-container > :not(.boc-community-hero) {
		padding-right: 20px;
		padding-left: 20px;
	}

	.boc-community .boc-community-hero > .wp-block-group__inner-container {
		padding: 0 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.boc-community,
	.boc-community * {
		transition: none !important;
		animation: none !important;
	}
}
