
/* ── Campaign Hero — template-agnostic base ──────────────────────────── */

.charitable-campaign-wrap .charitable-campaign-hero {
	position: relative;
	width: 100%;
	min-height: 420px;
	margin: 0;
	display: block;
}

.charitable-campaign-wrap .charitable-campaign-hero__banner {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 1;
}

.charitable-campaign-wrap .charitable-campaign-hero__overlay {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 32px;
	padding: 32px;
	min-height: 420px;
	align-items: end;
}

.charitable-campaign-wrap .charitable-campaign-hero__identity {
	display: flex;
	align-items: flex-end;
	gap: 20px;
	min-width: 0;
	align-self: end;
}

.charitable-campaign-wrap .charitable-campaign-hero__avatar {
	width: clamp(105px, 12vw, 157px);
	height: clamp(105px, 12vw, 157px);
	flex-shrink: 0;
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.charitable-campaign-wrap .charitable-campaign-hero__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.charitable-campaign-wrap .charitable-campaign-hero__title {
	color: #fff;
	font-size: clamp(28px, 3.6vw, 44px);
	font-weight: 700;
	margin: 0 0 16px 0;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
	flex: 1 1 auto;
	line-height: 1.15;
}

.charitable-campaign-wrap .charitable-campaign-hero__widget-shell {
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 0;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	position: relative;
	align-self: end;
}

.charitable-campaign-wrap .charitable-campaign-hero__raised {
	background: var(--charitable-hero-accent, #1d3a8a);
	color: #fff;
	padding: 10px 16px;
}

.charitable-campaign-wrap .charitable-campaign-hero__raised-text {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
}

.charitable-campaign-wrap .charitable-campaign-hero__progress {
	background: rgba(255, 255, 255, 0.25);
	height: 4px;
	border-radius: 2px;
	overflow: hidden;
}

.charitable-campaign-wrap .charitable-campaign-hero__progress span {
	display: block;
	height: 100%;
	background: #fff;
}

.charitable-campaign-wrap .charitable-campaign-hero__widget {
	padding: 14px 16px 16px;
}

.charitable-campaign-wrap .charitable-campaign-hero__widget .charitable-mini-widget {
	max-width: none;
	width: 100%;
}

/* Donate Now CTA inside the hero follows the theme Button color (separate from the primary accent). */
.charitable-campaign-wrap .charitable-campaign-hero__widget .charitable-mini-widget__cta {
	background-color: var(--charitable-hero-button, var(--charitable-hero-accent, #1d3a8a));
}

/* Mobile: stack the hero overlay grid so the widget drops below the identity block. */
@media ( max-width: 800px ) {
	.charitable-campaign-wrap .charitable-campaign-hero__overlay {
		grid-template-columns: 1fr;
		padding: 24px 16px;
		min-height: 320px;
		gap: 16px;
	}
	.charitable-campaign-wrap .charitable-campaign-hero {
		min-height: auto;
	}
}
