/* BMC Donations — uses the Barishal Muslim Center theme tokens with fallbacks */
.bmcd-page {
	--d-ink: var(--ink, #07203f);
	--d-blue: var(--emerald, #1456a8);
	--d-gold: var(--gold, #c9a24b);
	--d-ivory: var(--ivory, #f6f0e1);
	--d-sand: var(--sand, #e9dec3);
	--d-text: var(--text, #12243f);
	--d-muted: var(--muted, #5a6a82);
	--d-display: var(--display, "Marcellus", "Times New Roman", serif);
	--d-body: var(--body, "Figtree", system-ui, sans-serif);
	background: var(--d-ivory);
	color: var(--d-text);
	font-family: var(--d-body);
}
.bmcd-page *, .bmcd-page *::before, .bmcd-page *::after { box-sizing: border-box; }
.bmcd-page .wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Hero */
.bmcd-hero { text-align: center; position: relative; }
.bmcd-hero h1 { margin-inline: auto; }
.bmcd-hero.has-img {
	background-size: cover !important;
	background-position: center !important;
	box-shadow: inset 0 0 0 2000px rgba(7, 32, 63, .62);
}

/* Sections */
.bmcd-sec { padding: clamp(48px, 7vw, 88px) 0; }
.bmcd-head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 4vw, 44px); }
.bmcd-eyebrow {
	margin: 0 0 10px; color: var(--d-gold); font-weight: 700; letter-spacing: .14em;
	text-transform: uppercase; font-size: 13px;
}
.bmcd-title {
	font-family: var(--d-display); font-weight: 400; color: var(--d-ink);
	font-size: clamp(30px, 4.2vw, 46px); line-height: 1.15; margin: 0 0 12px;
}
.bmcd-title-sm { font-size: clamp(24px, 3vw, 32px); text-align: center; margin-bottom: 22px; }
.bmcd-lead { color: var(--d-muted); font-size: 17px; line-height: 1.6; margin: 0; }

/* Buttons */
.bmcd-btn,
.bmcd-page .bmcd-btn,
.bmcd-page button.bmcd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--d-ink); color: #fff !important; text-decoration: none !important;
	border: 0; border-radius: 999px; padding: 12px 26px; font: 600 15px/1.2 var(--d-body);
	cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.bmcd-btn:hover, .bmcd-page .bmcd-btn:hover, .bmcd-page .bmcd-btn:focus { background: var(--d-blue); color: #fff !important; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(7, 32, 63, .18); }
.bmcd-page .bmcd-btn-gold, .bmcd-btn-gold { background: var(--d-gold); color: var(--d-ink) !important; }
.bmcd-page .bmcd-btn-gold:hover, .bmcd-page .bmcd-btn-gold:focus { background: #d8b55f; color: var(--d-ink) !important; }
.bmcd-btn-block { width: 100%; }
.bmcd-btn[disabled] { opacity: .7; cursor: wait; }

/* Program cards */
.bmcd-list { display: grid; gap: 24px; max-width: 1040px; margin: 0 auto; }
.bmcd-card {
	display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: 0;
	background: #fff; border-radius: 20px; overflow: hidden;
	box-shadow: 0 10px 30px rgba(7, 32, 63, .08); border: 1px solid rgba(7, 32, 63, .06);
	transition: transform .2s ease, box-shadow .2s ease;
}
.bmcd-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(7, 32, 63, .13); }
.bmcd-card-media { display: block; position: relative; min-height: 230px; background: var(--d-ink); }
.bmcd-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bmcd-card-body { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.bmcd-card-body h3 { font-family: var(--d-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 10px; line-height: 1.2; }
.bmcd-card-body h3 a { color: var(--d-ink); text-decoration: none; }
.bmcd-card-body h3 a:hover { color: var(--d-blue); }
.bmcd-card-body p { color: var(--d-muted); line-height: 1.65; margin: 0 0 20px; font-size: 15.5px; }

/* Placeholder art when no featured image */
.bmcd-ph {
	position: absolute; inset: 0; display: grid; place-items: center; color: var(--d-gold);
	background:
		radial-gradient(circle at 30% 20%, rgba(43, 143, 214, .45), transparent 55%),
		linear-gradient(rgba(7, 32, 63, .55), rgba(7, 32, 63, .55)),
		var(--pattern, none) center / 72px,
		linear-gradient(140deg, #0b2d57, var(--d-ink));
}
.bmcd-ph svg { width: 34%; max-width: 120px; height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }

/* How your giving helps */
.bmcd-helps { background: #fff; }
.bmcd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bmcd-help {
	background: var(--d-ivory); border-radius: 18px; padding: 26px 24px;
	border: 1px solid rgba(201, 162, 75, .25);
}
.bmcd-help-ic {
	width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
	background: var(--d-ink); color: var(--d-gold); margin-bottom: 16px;
}
.bmcd-help-ic svg { width: 28px; height: 28px; }
.bmcd-help h3 { font-family: var(--d-display); font-weight: 400; color: var(--d-ink); font-size: 21px; margin: 0 0 6px; }
.bmcd-help p { color: var(--d-muted); margin: 0; line-height: 1.55; font-size: 15px; }

/* CTA band */
.bmcd-cta {
	background:
		radial-gradient(circle at 50% 0%, rgba(43, 143, 214, .32), transparent 60%),
		linear-gradient(rgba(7, 32, 63, .86), rgba(7, 32, 63, .86)),
		var(--pattern, none) center / 72px,
		var(--d-ink);
	color: #fff; text-align: center; padding: clamp(52px, 7vw, 84px) 0;
}
.bmcd-cta h2 { font-family: var(--d-display); font-weight: 400; color: #fff; font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; }
.bmcd-cta p { color: rgba(255, 255, 255, .82); max-width: 640px; margin: 0 auto 26px; font-size: 17px; line-height: 1.6; }

/* Single program */
.bmcd-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: clamp(24px, 4vw, 44px); align-items: start; }
.bmcd-feature {
	position: relative; border-radius: 20px; overflow: hidden; background: var(--d-ink);
	aspect-ratio: 16 / 10; box-shadow: 0 12px 34px rgba(7, 32, 63, .12);
}
.bmcd-feature img, .bmcd-feature iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; border: 0; }
.bmcd-feature.is-video { aspect-ratio: 16 / 9; }
.bmcd-content { margin-top: 28px; font-size: 16.5px; line-height: 1.75; color: var(--d-text); }
.bmcd-content p { margin: 0 0 16px; }
.bmcd-goals-title { font-family: var(--d-display); font-weight: 400; color: var(--d-ink); font-size: 24px; margin: 26px 0 12px; }
.bmcd-goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bmcd-goals li { position: relative; padding: 12px 16px 12px 46px; background: #fff; border-radius: 12px; border: 1px solid rgba(7, 32, 63, .07); }
.bmcd-goals li::before {
	content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
	border-radius: 50%; background: var(--d-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307203f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Form card */
.bmcd-side-col { position: sticky; top: 110px; scroll-margin-top: 120px; }
.bmcd-form-card {
	background: #fff; border-radius: 20px; padding: clamp(22px, 3vw, 30px);
	box-shadow: 0 14px 40px rgba(7, 32, 63, .1); border-top: 4px solid var(--d-gold);
}
.bmcd-form-card h2 { font-family: var(--d-display); font-weight: 400; color: var(--d-ink); font-size: 25px; text-align: center; margin: 0 0 4px; line-height: 1.25; }
.bmcd-form-sub { text-align: center; color: var(--d-muted); font-size: 14px; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(7, 32, 63, .08); }
.bmcd-fs {
	font-family: var(--d-display); font-weight: 400; font-size: 17px; color: var(--d-ink);
	border-left: 3px solid var(--d-blue); padding-left: 10px; margin: 20px 0 12px; line-height: 1.2;
}
.bmcd-form .bmcd-fs:first-of-type { margin-top: 4px; }
.bmcd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bmcd-field { display: block; margin-bottom: 12px; }
.bmcd-field > span:first-child { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--d-muted); margin-bottom: 6px; }
.bmcd-field b { color: #c0392b; font-weight: 700; }
.bmcd-form input[type="text"], .bmcd-form input[type="email"], .bmcd-form input[type="tel"],
.bmcd-form input[type="number"], .bmcd-form textarea {
	width: 100%; border: 1px solid #d9d2bf; background: #fcfaf4; border-radius: 10px;
	padding: 11px 13px; font: 400 15px/1.4 var(--d-body); color: var(--d-text);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.bmcd-form textarea { resize: vertical; min-height: 84px; }
.bmcd-form input:focus, .bmcd-form textarea:focus { outline: none; border-color: var(--d-blue); box-shadow: 0 0 0 3px rgba(20, 86, 168, .15); background: #fff; }
.bmcd-money { position: relative; display: block; }
.bmcd-money i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--d-muted); font-weight: 600; }
.bmcd-form .bmcd-money input { padding-left: 28px; font-weight: 600; }
.bmcd-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; margin-bottom: 12px; }
.bmcd-page .bmcd-form .bmcd-amt {
	border: 1px solid #d9d2bf; background: #fff; color: var(--d-ink); border-radius: 10px;
	padding: 9px 6px; font: 600 15px/1 var(--d-body); cursor: pointer; transition: all .15s ease;
}
.bmcd-page .bmcd-form .bmcd-amt:hover, .bmcd-page .bmcd-form .bmcd-amt:focus { background: #fff; color: var(--d-ink); border-color: var(--d-gold); box-shadow: none; }
.bmcd-page .bmcd-form .bmcd-amt.is-on { background: var(--d-ink); color: #fff; border-color: var(--d-ink); }
.bmcd-check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--d-muted); margin: 4px 0 18px; cursor: pointer; }
.bmcd-page .bmcd-form .bmcd-submit { width: 100%; padding: 15px 20px; font-size: 16px; border-radius: 12px; }
.bmcd-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.bmcd-note {
	margin-top: 16px; background: var(--d-ivory); border-radius: 12px; padding: 12px 14px;
	font-size: 13.5px; line-height: 1.55; color: var(--d-muted);
}
.bmcd-note p { margin: 0 0 6px; }
.bmcd-note p:last-child { margin: 0; }
.bmcd-error { background: #fdecea; color: #a12a1d; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.bmcd-thanks { text-align: center; padding-top: 10px; }
.bmcd-thanks-ic { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--d-ivory); color: var(--d-gold); margin: 6px 0 12px; }
.bmcd-thanks-ic svg { width: 32px; height: 32px; }
.bmcd-thanks > p { font-size: 16px; line-height: 1.6; color: var(--d-text); margin: 0 0 16px; }
.bmcd-link { display: inline-block; margin-top: 14px; color: var(--d-blue); font-weight: 600; font-size: 14px; }

/* Other programs */
.bmcd-others { padding-top: 0; }
.bmcd-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bmcd-chip {
	display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--d-ink) !important;
	border: 1px solid rgba(7, 32, 63, .1); border-radius: 999px; padding: 8px 16px 8px 8px;
	text-decoration: none !important; font-weight: 600; font-size: 15px; transition: all .15s ease;
}
.bmcd-chip:hover { border-color: var(--d-gold); transform: translateY(-1px); }
.bmcd-chip-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--d-ink); color: var(--d-gold); display: grid; place-items: center; }
.bmcd-chip-ic svg { width: 17px; height: 17px; }
.bmcd-chip-all { padding-left: 16px; background: transparent; }

/* The theme styles every <button> with !important — override for our buttons */
.bmcd-page button.bmcd-btn { background: var(--d-ink) !important; color: #fff !important; border: 0 !important; }
.bmcd-page button.bmcd-btn:hover, .bmcd-page button.bmcd-btn:focus { background: var(--d-blue) !important; color: #fff !important; }
.bmcd-page .bmcd-form button.bmcd-amt { background: #fff !important; color: var(--d-ink) !important; border: 1px solid #d9d2bf !important; border-radius: 10px !important; box-shadow: none !important; }
.bmcd-page .bmcd-form button.bmcd-amt:hover, .bmcd-page .bmcd-form button.bmcd-amt:focus { background: #fff !important; color: var(--d-ink) !important; border-color: var(--d-gold) !important; }
.bmcd-page .bmcd-form button.bmcd-amt.is-on { background: var(--d-ink) !important; color: #fff !important; border-color: var(--d-ink) !important; }

.bmcd-empty { text-align: center; color: var(--d-muted); }

/* Responsive */
@media (max-width: 980px) {
	.bmcd-split { grid-template-columns: 1fr; }
	.bmcd-side-col { position: static; }
	.bmcd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
	.bmcd-card { grid-template-columns: 1fr; }
	.bmcd-card-media { min-height: 0; aspect-ratio: 16 / 9; }
	.bmcd-grid { grid-template-columns: 1fr; }
	.bmcd-row { grid-template-columns: 1fr; gap: 0; }
}
