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

.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: 1px solid #21293b1a;
	border-radius: 16px;
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.gcf-campaign-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(33, 41, 59, 0.1);
}

.gcf-campaign-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.gcf-campaign-card__img {
	height: 200px;
	width: 100%;
	object-fit: cover;
	display: block;
}

.gcf-campaign-card__body {
	padding: 20px;
}

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

.gcf-campaign-card__title {
	margin: 10px 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-progress-bar {
	height: 8px;
	border-radius: 999px;
	background: #21293b1a;
	overflow: hidden;
	margin-bottom: 10px;
}

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

.gcf-campaign-card__totals {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #5c6270;
	margin-bottom: 16px;
}

.gcf-campaign-card__totals strong {
	color: #21293b;
	font-weight: 600;
}

/* Badges — colors match the branch-accent pastels in DESIGN_SYSTEM.md */
.gcf-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	color: #21293b;
	margin-bottom: 10px;
}

.gcf-badge--cancer {
	background: #f2bfd4;
}

.gcf-badge--heart {
	background: #8fd9c4;
}

.gcf-badge--sicklecell {
	background: #b9a8d8;
}

.gcf-badge--general {
	background: #f0a868;
}

.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. */
.gcf-campaign-card .gcf-btn-primary {
	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;
	transition: background 180ms ease, box-shadow 180ms ease;
}

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

.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-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;
}

/* "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);
	}
}
