/* Campaign card + progress bar — see web/wordpress/style-guide/DESIGN_SYSTEM.md */

.gcf-campaign-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
}

.gcf-campaign-filter .chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #21293b;
	background: #f6f6f6;
	border: 1px solid #21293b1a;
	cursor: pointer;
	text-decoration: none;
	transition: background 180ms ease, color 180ms ease;
}

.gcf-campaign-filter .chip.is-active {
	background: #0093d0;
	border-color: #0093d0;
	color: #ffffff;
}

.gcf-campaign-filter__count {
	margin-left: auto;
	font-size: 13px;
	color: #5c6270;
}

.gcf-campaign-grid {
	display: grid;
	grid-template-columns: repeat(var(--gcf-grid-columns, 3), 1fr);
	gap: 24px;
}

.gcf-campaign-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(33, 41, 59, 0.08);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.gcf-campaign-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(33, 41, 59, 0.14);
}

/* The link wrapper and body flex-fill the card, and the progress block pins
   to the bottom — so bars, totals, and footer buttons sit level across a row
   of cards regardless of title/blurb length. */
.gcf-campaign-card__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	text-decoration: none;
	color: inherit;
}

.gcf-campaign-card__media {
	position: relative;
	height: 200px;
	overflow: hidden;
}

.gcf-campaign-card__img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gcf-campaign-card:hover .gcf-campaign-card__img {
	transform: scale(1.06);
}

.gcf-campaign-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	margin-bottom: 0;
}

/* Branded placeholder when a campaign has no photo — light category tint
   plus a full-strength pastel heart glyph. */
.gcf-campaign-card__media--fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 56px;
	line-height: 1;
}

.gcf-fallback--cancer {
	background: #fcf0f5;
	color: #f2bfd4;
}

.gcf-fallback--heart {
	background: #eef9f5;
	color: #8fd9c4;
}

.gcf-fallback--sicklecell {
	background: #f4f1f9;
	color: #b9a8d8;
}

.gcf-fallback--general {
	background: #fdf2e8;
	color: #f0a868;
}

/* Per-category media fallbacks; class derived from the badge class in
   render_programme_card(). */
.gcf-fallback--cancer-blood {
	background: #fcf0f5;
	color: #f2bfd4;
}

.gcf-fallback--specialist-clinics {
	background: #f4f1f9;
	color: #b9a8d8;
}

.gcf-fallback--newborns-child-wellness {
	background: #fdf2e8;
	color: #f0a868;
}

.gcf-fallback--hospital-wide-funds,
.gcf-fallback--surgery-critical-care,
.gcf-fallback--telemedicine-outreach {
	background: #eaf6fc;
	color: #0093d0;
}

.gcf-campaign-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.gcf-campaign-card__body > .gcf-badge {
	align-self: flex-start;
	margin-bottom: 12px;
	white-space: normal;
}

.gcf-campaign-card__footer {
	padding: 0 20px 20px;
}

.gcf-campaign-card__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 600;
	color: #21293b;
	line-height: 1.3;
}

.gcf-campaign-card__blurb {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.55;
	color: #5c6270;
}

.gcf-campaign-card__progress {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	margin-bottom: 10px;
}

.gcf-campaign-card__progress .gcf-progress-bar {
	flex: 1;
	margin-bottom: 0;
}

.gcf-campaign-card__percent {
	font-size: 12px;
	font-weight: 700;
	color: #0093d0;
}

.gcf-progress-bar {
	height: 10px;
	border-radius: 999px;
	background: #21293b1a;
	overflow: hidden;
	margin-bottom: 10px;
}

.gcf-progress-bar__fill {
	height: 100%;
	border-radius: 999px;
	background: #0093d0;
}

/* Fills flagged for the scroll-into-view animation (campaign-filter.js). */
.gcf-progress-bar__fill[data-gcf-animate] {
	transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.gcf-campaign-card__totals {
	margin-bottom: 16px;
}

.gcf-campaign-card__raised {
	font-size: 20px;
	font-weight: 700;
	color: #21293b;
}

.gcf-campaign-card__raised span {
	font-size: 13px;
	font-weight: 400;
	color: #5c6270;
}

.gcf-campaign-card__goal {
	font-size: 13px;
	color: #5c6270;
	margin-top: 2px;
}

/* The sidebar/detail progress card keeps the flex-totals layout. */
.gcf-campaign-progress .gcf-campaign-card__totals {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #5c6270;
}

/* Badges - the "Gertrude's Foundation Website" canvas chips: light pastel
   tint with a hue-matched dark ink, never the saturated brand pastel. */
.gcf-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	color: #21293b;
	margin-bottom: 10px;
}

.gcf-badge--cancer,
.gcf-badge--cancer-blood {
	background: #fadfec;
	color: #98446f;
}

.gcf-badge--heart {
	background: #d8f1ec;
	color: #17695e;
}

.gcf-badge--sicklecell,
.gcf-badge--specialist-clinics {
	background: #ebe2f4;
	color: #64437f;
}

.gcf-badge--general,
.gcf-badge--newborns-child-wellness {
	background: #fbe3d0;
	color: #8f4e1d;
}

.gcf-badge--hospital-wide-funds,
.gcf-badge--surgery-critical-care,
.gcf-badge--telemedicine-outreach {
	background: #e3f4fb;
	color: #006a96;
}

.gcf-badge--success {
	background: #1e9e5a14;
	color: #1e9e5a;
}

/* Generic button used outside `.gcf-campaign-progress` (e.g. the per-card
   Donate CTA in the grid) — same two-class specificity guard as
   `.gcf-donate-btn`, see below. Quiet tint at rest so a grid of cards
   isn't six solid-blue blocks; goes solid when the card is hovered. */
.gcf-campaign-card .gcf-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #eaf6fc;
	color: #0093d0;
	font-weight: 500;
	text-decoration: none;
	border-radius: 8px;
	padding: 0 16px;
	line-height: 40px;
	height: 40px;
	transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.gcf-campaign-card:hover .gcf-btn-primary,
.gcf-campaign-card .gcf-btn-primary:hover {
	background: #0093d0;
	color: #ffffff;
}

.gcf-campaign-card .gcf-btn-primary:hover {
	background: #0076a8;
}

.gcf-btn-block {
	width: 100%;
}

/* Two classes to out-specificity the theme's `.post-entry a { color: ... }`
   rule, which otherwise wins on singular templates (0-1-1 beats 0-1-0). */
.gcf-campaign-progress .gcf-donate-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #0093d0;
	color: #ffffff;
	font-weight: 500;
	text-decoration: none;
	border-radius: 8px;
	padding: 0 16px;
	line-height: 40px;
	height: 40px;
	margin-bottom: 20px;
	transition: background 180ms ease, box-shadow 180ms ease;
}

.gcf-campaign-progress .gcf-donate-btn:hover {
	background: #0076a8;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(0, 147, 208, 0.3);
}

.gcf-donate-btn--block {
	width: 100%;
}

.gcf-campaign-sidebar {
	position: sticky;
	top: 92px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.gcf-campaign-progress,
.gcf-donor-list {
	background: #ffffff;
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 6px 24px rgba(33, 41, 59, 0.08);
}

.gcf-donor-list__heading {
	padding: 0 0 6px;
}

.gcf-donor-row:first-child {
	border-top: none;
}

.gcf-related-campaigns {
	margin-top: 48px;
}

.gcf-campaign-progress__header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 10px;
}

.gcf-campaign-progress__amount {
	font-size: 26px;
	font-weight: 700;
	color: #21293b;
}

.gcf-campaign-progress__percent {
	font-size: 14px;
	color: #5c6270;
}

.gcf-campaign-progress .gcf-campaign-card__totals {
	margin-top: 10px;
	margin-bottom: 20px;
}

.gcf-mpesa-box {
	display: flex;
	flex-direction: column;
	gap: 2px;
	border: 1px solid #21293b1a;
	border-radius: 12px;
	padding: 14px 16px;
	background: #f6f6f6;
	font-size: 13px;
	color: #5c6270;
	line-height: 1.5;
}

.gcf-mpesa-box strong {
	color: #21293b;
	font-size: 14px;
}

.gcf-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Round icon buttons — matches the site's circular social-icon pattern.
   Two-class selector to out-specify the Elementor kit's `.elementor-kit-* button`
   rule (same guard as `.gcf-donate-btn` below). */
.gcf-share-buttons .gcf-share-buttons__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 999px;
	border: none;
	background: #eaf6fc;
	color: #0093d0;
	text-decoration: none;
	cursor: pointer;
	transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.gcf-share-buttons .gcf-share-buttons__item svg {
	width: 20px;
	height: 20px;
}

.gcf-share-buttons .gcf-share-buttons__item:hover {
	background: #0093d0;
	color: #ffffff;
	transform: translateY(-2px);
}

.gcf-share-buttons .gcf-share-buttons__item.is-copied {
	background: #1e9e5a;
	color: #ffffff;
}

.gcf-share-buttons .gcf-share-buttons__item.is-copied svg {
	display: none;
}

.gcf-share-buttons .gcf-share-buttons__item.is-copied::after {
	content: "\2713";
	font-size: 18px;
	font-weight: 700;
}

/* Single-campaign heading rhythm — the theme's default h2 is display-sized,
   far too loud for in-page section headings. `.single-page` ancestor
   out-specifies the Elementor kit's `.elementor-kit-* h2` rule. */
.single-page .gcf-section-heading,
.gcf-section-heading {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
	color: #21293b;
	margin: 40px 0 16px;
}

.gcf-related-campaigns .gcf-section-heading {
	margin: 0 0 24px;
}

.single-campaign .post-entry h2 {
	font-size: 28px;
	line-height: 1.3;
	margin: 32px 0 12px;
}

.single-campaign .post-entry h3 {
	font-size: 22px;
	line-height: 1.35;
	margin: 28px 0 10px;
}

/* "Recent donors" list — a repeated Container + text pattern, not a
   dedicated widget, since Phase 1 has no real donor-record data source. */
.gcf-donor-list__heading {
	padding: 14px 20px 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #5c6270;
}

.gcf-donor-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	border-top: 1px solid #21293b1a;
}

.gcf-donor-row__title {
	font-size: 15px;
	font-weight: 500;
	color: #21293b;
}

.gcf-donor-row__subtitle {
	font-size: 13px;
	color: #5c6270;
	margin-top: 2px;
}

.gcf-donor-row__amount {
	font-size: 14px;
	font-weight: 600;
	color: #21293b;
	white-space: nowrap;
}

@media (max-width: 1024px) {
	.gcf-campaign-grid {
		grid-template-columns: repeat(var(--gcf-grid-columns-tablet, 2), 1fr);
	}
}

@media (max-width: 640px) {
	.gcf-campaign-grid {
		grid-template-columns: repeat(var(--gcf-grid-columns-mobile, 1), 1fr);
	}
}

/* Canvas sections (.gcf-canvas on the Elementor container): the campaign
   card as drawn in the "Gertrude's Foundation Website" canvas - no blurb,
   no percent, bold raised / muted goal on one row, outlined donate button. */
.gcf-canvas .gcf-campaign-grid {
	gap: 32px;
}

.gcf-canvas .gcf-campaign-card {
	box-shadow: 0 8px 24px rgba(28, 42, 50, 0.06);
}

.gcf-canvas .gcf-campaign-card__body {
	padding: 28px;
}

.gcf-canvas .gcf-campaign-card__body > .gcf-badge {
	margin-bottom: 16px;
}

.gcf-canvas .gcf-campaign-card__title {
	margin: 0 0 16px;
	font-size: 22px;
	letter-spacing: -0.01em;
	line-height: 1.25;
	color: #1c2a32;
}

.gcf-canvas .gcf-campaign-card__blurb {
	display: none;
}

.gcf-canvas .gcf-campaign-card__progress {
	margin-bottom: 16px;
}

.gcf-canvas .gcf-progress-bar {
	height: 8px;
	background: #ede9e2;
}

.gcf-canvas .gcf-campaign-card__totals {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 12px;
	margin-bottom: 0;
}

.gcf-canvas .gcf-campaign-card__raised {
	font-size: 17px;
	color: #1c2a32;
	white-space: nowrap;
}

.gcf-canvas .gcf-campaign-card__raised span {
	display: none;
}

.gcf-canvas .gcf-campaign-card__goal {
	margin-top: 0;
	font-size: 14px;
	color: #8a969c;
}

.gcf-canvas .gcf-campaign-card__footer {
	padding: 16px 28px 28px;
}

.gcf-canvas .gcf-campaign-card .gcf-btn-primary {
	background: transparent;
	border: 1.5px solid #0093d0;
	color: #0093d0;
	padding: 12px;
	height: auto;
	line-height: 1.2;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
}

.gcf-canvas .gcf-campaign-card:hover .gcf-btn-primary,
.gcf-canvas .gcf-campaign-card .gcf-btn-primary:hover {
	background: #0093d0;
	color: #ffffff;
}
