/*
 * Donation CTA homepage section (Carbon Fields crb_sections type: donation_cta).
 * Values from Figma: Brook Checkout w Donations, node 22900-143.
 * The widget card interior is styled by donation-widget.css — this file only
 * styles the surrounding section: image left, coloured content side right.
 */

.brook-donate-cta {
	padding: 40px 0;
}

.brook-donate-cta,
.brook-donate-cta * {
	box-sizing: border-box;
}

/* Two equal halves, 10px outer radius — Figma: 670px + 670px */
.brook-donate-cta__card {
	display: flex;
	align-items: stretch;
	max-width: 1340px;
	margin: 0 auto;
}

.brook-donate-cta__media {
	position: relative;
	width: 50%;
	border-radius: 10px 0 0 10px;
	overflow: hidden;
}

.brook-donate-cta__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Content side — Figma: #ff96bb default bg (overridden inline from the CMS),
   45px gap, 45px vertical / 67.5px horizontal padding, centred column */
.brook-donate-cta__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 45px;
	width: 50%;
	padding: 45px 67.5px;
	background: #ff96bb;
	border-radius: 0 10px 10px 0;
}

/* Title — Figma: Obviously Narrow Bold 52px / 48px, -0.52px tracking,
   #1b131e, uppercase, centred */
.brook-donate-cta__title {
	width: 100%;
	margin: 0;
	font-family: obviously-narrow, sans-serif;
	font-weight: 700;
	font-size: 42px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: uppercase;
	text-align: center;
	color: #1b131e;
}

.brook-donate-cta__content .brook-donate-widget {
	width: 100%;
}

/* Stack image above content on smaller screens */
@media (max-width: 991px) {
	.brook-donate-cta__card {
		flex-direction: column;
	}

	.brook-donate-cta__media {
		width: 100%;
		border-radius: 10px 10px 0 0;
	}

	.brook-donate-cta__media img {
		position: static;
		aspect-ratio: 4 / 3;
	}

	.brook-donate-cta__content {
		width: 100%;
		gap: 30px;
		padding: 35px 24px;
		border-radius: 0 0 10px 10px;
	}

	.brook-donate-cta__title {
		font-size: 36px;
	}
}
