/* ----------------------------------------------------------------
	Support Us / Vision 2030 page  (scoped to body.support-page)
	Also provides the homepage "partner" banner (.sp-partner).
-----------------------------------------------------------------*/

body.support-page,
body.home-modern {
	--sp-ink: #0f2a3d;
	--sp-text: #4a5b69;
	--sp-primary: #0a7ea4;
	--sp-primary-dark: #0b4f6c;
	--sp-navy: #0a2a3c;
	--sp-accent: #d4a24c;
	--sp-accent-dark: #b8872f;
	--sp-bg: #f5f9fb;
	--sp-line: #e3ecf1;
	--sp-radius: 18px;
	--sp-shadow: 0 10px 30px rgba(15, 42, 61, .08);
	--sp-shadow-lg: 0 18px 44px rgba(15, 42, 61, .16);
}

.sp-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.sp-section { padding: 80px 0; position: relative; overflow-x: clip; }
.sp-section-alt { background: var(--sp-bg); }
.sp-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.sp-title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; line-height: 1.25; color: var(--sp-ink); margin: 0 0 14px; }
.sp-title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--sp-accent); margin: 16px auto 0; }
.sp-head .sp-lead { margin: 0; }
.sp-lead { font-size: 16.5px; line-height: 1.85; color: var(--sp-text); }

.sp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 30px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .3px;
	text-decoration: none !important;
	border: 2px solid transparent;
	transition: transform .2s, background .2s, box-shadow .2s;
}
.sp-btn-gold { background: var(--sp-accent); color: var(--sp-navy) !important; box-shadow: 0 10px 24px rgba(212, 162, 76, .38); }
.sp-btn-gold:hover { background: #e2b25e; transform: translateY(-2px); }
.sp-btn-ghost { border-color: rgba(255, 255, 255, .65); color: #fff !important; background: rgba(255, 255, 255, .08); }
.sp-btn-ghost:hover { background: #fff; color: var(--sp-navy) !important; }

/* ---------- Hero ---------- */
.sp-hero {
	position: relative;
	color: #fff;
	padding: 96px 0 88px;
	background:
		radial-gradient(circle at 85% 10%, rgba(212, 162, 76, .22), transparent 45%),
		linear-gradient(120deg, #072232 0%, var(--sp-navy) 50%, #0b4f6c 100%);
	overflow: hidden;
}
.sp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url('../assets/images/icon-pattern.jpg') repeat;
	opacity: .05;
	pointer-events: none;
}
.sp-hero .sp-container { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.sp-hero h1 { color: #fff !important; font-size: clamp(30px, 4.8vw, 54px); font-weight: 700; line-height: 1.15; margin: 0 0 20px; }
.sp-hero h1 span { color: var(--sp-accent); }
.sp-hero-sub { font-size: clamp(15px, 1.6vw, 18px); color: #cfe3ee; margin: 0 0 34px; }
.sp-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
body.support-page .breadcrumb { background: transparent; justify-content: center; margin: 0 0 26px; padding: 0; }
body.support-page .breadcrumb a { color: var(--sp-accent); }
body.support-page .breadcrumb .active, body.support-page .breadcrumb-item + .breadcrumb-item::before { color: #cfe3ee; }

/* ---------- Letter ---------- */
.sp-letter {
	max-width: 860px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: var(--sp-radius);
	box-shadow: var(--sp-shadow);
	padding: 48px 52px;
	position: relative;
	margin-top: -64px;
	z-index: 3;
}
.sp-letter::before {
	content: "\201C";
	position: absolute;
	top: 10px;
	right: 30px;
	font-family: Georgia, serif;
	font-size: 110px;
	line-height: 1;
	color: rgba(212, 162, 76, .25);
}
.sp-letter p { font-size: 16.5px; line-height: 1.9; color: var(--sp-text); margin-bottom: 18px; }
.sp-letter .sp-dear { font-weight: 700; color: var(--sp-ink); font-size: 18px; margin-bottom: 8px; }
.sp-letter .sp-salam { font-weight: 600; color: var(--sp-primary-dark); }
.sp-letter .sp-greeting { font-style: italic; color: var(--sp-accent-dark); }
.sp-letter p:last-child { margin-bottom: 0; }

/* ---------- Institutions ---------- */
.sp-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px; }
.sp-grid .sp-card { grid-column: span 2; }
.sp-grid .sp-card:nth-child(4) { grid-column: 2 / span 2; }
.sp-grid .sp-card:nth-child(5) { grid-column: 4 / span 2; }
.sp-card {
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: var(--sp-radius);
	box-shadow: var(--sp-shadow);
	padding: 32px 28px;
	transition: transform .3s, box-shadow .3s;
	position: relative;
	overflow: hidden;
}
.sp-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	height: 4px;
	width: 100%;
	background: linear-gradient(90deg, var(--sp-accent), var(--sp-primary));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .4s;
}
.sp-card:hover { transform: translateY(-8px); box-shadow: var(--sp-shadow-lg); }
.sp-card:hover::before { transform: scaleX(1); }
.sp-icon {
	width: 58px;
	height: 58px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--sp-primary), var(--sp-primary-dark));
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 20px;
	box-shadow: 0 10px 22px rgba(10, 126, 164, .28);
}
.sp-card h4 { font-size: 18px; font-weight: 700; color: var(--sp-ink); margin: 0 0 12px; line-height: 1.35; }
.sp-card p { font-size: 15px; line-height: 1.8; color: var(--sp-text); margin: 0; }
.sp-card .sp-courses { margin-top: 14px; padding: 12px 14px; background: var(--sp-bg); border-radius: 12px; font-size: 14px; color: var(--sp-primary-dark); font-weight: 500; }

/* ---------- Vision 2030 ---------- */
.sp-vision {
	color: #fff;
	text-align: center;
	background:
		radial-gradient(circle at 15% 90%, rgba(212, 162, 76, .2), transparent 45%),
		linear-gradient(130deg, #072232, var(--sp-navy) 55%, #0b4f6c);
}
.sp-vision .sp-title { color: #fff; }
.sp-vision .sp-lead { color: #cfe3ee; max-width: 780px; margin: 0 auto; }
.sp-vision-kicker { color: var(--sp-accent); font-size: 20px; font-weight: 600; margin: 0 0 22px; }
.sp-vision-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: rgba(212, 162, 76, .16);
	border: 1px solid rgba(212, 162, 76, .5);
	color: var(--sp-accent);
	font-size: 32px;
	margin-bottom: 22px;
}

/* ---------- Phases ---------- */
.sp-phases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.sp-phase {
	display: flex;
	gap: 20px;
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: var(--sp-radius);
	box-shadow: var(--sp-shadow);
	padding: 28px;
	transition: transform .3s, box-shadow .3s;
}
.sp-phase:hover { transform: translateY(-6px); box-shadow: var(--sp-shadow-lg); }
.sp-phase-no {
	flex: 0 0 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--sp-accent);
	color: var(--sp-navy);
	font-weight: 700;
	font-size: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 18px rgba(212, 162, 76, .4);
}
.sp-phase h4 { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--sp-accent-dark); margin: 4px 0 8px; font-weight: 700; }
.sp-phase p { font-size: 15.5px; line-height: 1.75; color: var(--sp-text); margin: 0; }
.sp-phase strong { color: var(--sp-primary-dark); }

/* ---------- Sadaqah ---------- */
.sp-sadaqah { max-width: 960px; margin: 0 auto; }
.sp-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.sp-option {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid var(--sp-line);
	border-left: 5px solid var(--sp-accent);
	border-radius: 14px;
	box-shadow: var(--sp-shadow);
	padding: 22px 24px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--sp-ink);
	font-weight: 500;
}
.sp-option i { color: var(--sp-accent); font-size: 24px; margin-top: 3px; }
.sp-notice {
	margin: 30px auto 0;
	max-width: 960px;
	display: flex;
	gap: 14px;
	align-items: center;
	background: #fff8e8;
	border: 1px solid #f0dcae;
	color: #7a5a14;
	border-radius: 14px;
	padding: 16px 22px;
	font-weight: 600;
}
.sp-notice i { font-size: 22px; }

/* ---------- Donation details ---------- */
.sp-bank {
	max-width: 820px;
	margin: 0 auto;
	border-radius: 22px;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--sp-shadow-lg);
	border: 1px solid var(--sp-line);
}
.sp-bank-head {
	background: linear-gradient(120deg, var(--sp-navy), #0b4f6c);
	color: #fff;
	padding: 28px 36px;
	display: flex;
	align-items: center;
	gap: 16px;
}
.sp-bank-head i { font-size: 30px; color: var(--sp-accent); }
.sp-bank-head h3 { margin: 0; color: #fff; font-size: 22px; font-weight: 700; }
.sp-bank-body { padding: 14px 36px 22px; }
.sp-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--sp-line); }
.sp-row:last-child { border-bottom: 0; }
.sp-row-label { flex: 0 0 190px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #7b8c99; font-weight: 600; }
.sp-row-value { flex: 1; font-size: 17px; font-weight: 600; color: var(--sp-ink); word-break: break-word; }
.sp-copy {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	border: 1px solid var(--sp-line);
	background: var(--sp-bg);
	color: var(--sp-primary);
	cursor: pointer;
	transition: background .2s, color .2s;
}
.sp-copy:hover { background: var(--sp-primary); color: #fff; }
.sp-copy.is-copied { background: #1f9d55; border-color: #1f9d55; color: #fff; }

/* ---------- Closing prayer ---------- */
.sp-dua { text-align: center; max-width: 760px; margin: 0 auto; }
.sp-dua i { font-size: 34px; color: var(--sp-accent); margin-bottom: 14px; }
.sp-dua p { font-size: 20px; line-height: 1.8; font-weight: 500; color: var(--sp-ink); margin: 0; }

/* ---------- Homepage banner ---------- */
.sp-partner {
	position: relative;
	color: #fff;
	padding: 76px 0;
	overflow: hidden;
	background:
		radial-gradient(circle at 90% 15%, rgba(212, 162, 76, .25), transparent 45%),
		linear-gradient(120deg, #072232 0%, var(--sp-navy) 55%, #0b4f6c 100%);
}
.sp-partner .sp-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.sp-partner h3 { color: #fff !important; font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1.2; margin: 0 0 16px; }
.sp-partner p { color: #cfe3ee; font-size: 16px; line-height: 1.8; margin: 0 0 28px; }
.sp-partner-card {
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--sp-radius);
	padding: 28px;
	backdrop-filter: blur(6px);
}
.sp-partner-card h4 { color: var(--sp-accent) !important; font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.sp-partner-card p { margin: 0; font-size: 15px; }

/* ---------- Scroll reveal ---------- */
.sp-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.sp-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sp-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.sp-section { padding: 60px 0; }
	.sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sp-grid .sp-card, .sp-grid .sp-card:nth-child(4), .sp-grid .sp-card:nth-child(5) { grid-column: auto; }
	.sp-grid .sp-card:nth-child(5) { grid-column: 1 / -1; }
	.sp-partner .sp-wrap { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 640px) {
	.sp-section { padding: 48px 0; }
	.sp-hero { padding: 64px 0 80px; }
	.sp-letter { padding: 30px 24px; margin-top: -48px; }
	.sp-grid, .sp-phases, .sp-options { grid-template-columns: minmax(0, 1fr); }
	.sp-grid .sp-card:nth-child(5) { grid-column: auto; }
	.sp-row { flex-wrap: wrap; gap: 6px 12px; }
	.sp-row-label { flex: 1 0 100%; }
	.sp-bank-head, .sp-bank-body { padding-left: 22px; padding-right: 22px; }
	.sp-hero-actions .sp-btn { width: 100%; }
	.sp-partner { padding: 56px 0; }
}

/* Overrides for theme defaults */
body.support-page .sp-hero h1 span { color: var(--sp-accent) !important; }
body.support-page .sp-hero .breadcrumb { position: static !important; top: auto !important; right: auto !important; transform: none !important; display: flex; width: 100%; justify-content: center; }

/* ---------- About Us page ---------- */
.sp-hero-compact { padding: 64px 0 60px; }
.sp-hero-compact h1 { margin-bottom: 10px; }
.sp-hero-compact .sp-hero-sub { margin: 0; }
.sp-title-left { text-align: left; }
.sp-title-left::after { margin-left: 0; }

.sp-about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.sp-about .sp-lead { margin-bottom: 18px; }
.sp-about-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.sp-btn-solid { background: var(--sp-navy); color: #fff !important; box-shadow: 0 10px 24px rgba(10, 42, 60, .25); }
.sp-btn-solid:hover { background: var(--sp-primary-dark); transform: translateY(-2px); }
.sp-btn-outline { border-color: var(--sp-navy); color: var(--sp-navy) !important; background: transparent; }
.sp-btn-outline:hover { background: var(--sp-navy); color: #fff !important; transform: translateY(-2px); }

.sp-photo { position: relative; padding: 0 22px 22px 0; }
.sp-photo::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 82%;
	height: 82%;
	border: 3px solid var(--sp-accent);
	border-radius: 22px;
}
.sp-photo img { position: relative; display: block; width: 100%; border-radius: 22px; box-shadow: var(--sp-shadow-lg); }

.sp-quote {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	padding: 46px 56px;
	text-align: center;
	border: 0;
	border-radius: var(--sp-radius);
	background: #fff;
	box-shadow: var(--sp-shadow);
}
.sp-quote i { display: block; font-size: 34px; color: var(--sp-accent); margin-bottom: 18px; }
.sp-quote p { margin: 0; font-size: 19px; line-height: 1.9; color: var(--sp-ink); font-weight: 500; }

.sp-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 40px 48px;
	border-radius: 22px;
	color: #fff;
	background:
		radial-gradient(circle at 90% 10%, rgba(212, 162, 76, .25), transparent 45%),
		linear-gradient(120deg, #072232, var(--sp-navy) 55%, #0b4f6c);
	box-shadow: var(--sp-shadow-lg);
}
.sp-cta h3 { color: #fff !important; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.25; margin: 0 0 10px; }
.sp-cta p { color: #cfe3ee; margin: 0; font-size: 15.5px; line-height: 1.7; }
.sp-cta .sp-btn { flex: 0 0 auto; }

@media (max-width: 991px) {
	.sp-about { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.sp-cta { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 640px) {
	.sp-quote { padding: 32px 24px; }
	.sp-quote p { font-size: 17px; }
	.sp-about-actions .sp-btn, .sp-cta .sp-btn { width: 100%; }
	.sp-hero-compact { padding: 48px 0 46px; }
}

/* ---------- Contact page ---------- */
.ct-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ct-form-card {
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: 22px;
	box-shadow: var(--sp-shadow);
	padding: 44px 46px;
}
.ct-heading { font-size: 26px; font-weight: 700; color: var(--sp-ink); margin: 0 0 8px; }
.ct-heading::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 4px; background: var(--sp-accent); margin: 14px 0 28px; }

body.contact-page .ct-form .form-group { margin-bottom: 22px; }
body.contact-page .ct-form label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #4a5b69;
}
body.contact-page .ct-form label small { color: var(--sp-accent-dark); font-size: 14px; }
body.contact-page .ct-form .sm-form-control {
	width: 100%;
	height: 52px;
	padding: 12px 16px;
	font-size: 15px;
	color: var(--sp-ink);
	background: var(--sp-bg);
	border: 1px solid var(--sp-line);
	border-radius: 12px;
	box-shadow: none;
	transition: border-color .2s, background .2s, box-shadow .2s;
}
body.contact-page .ct-form textarea.sm-form-control { height: auto; min-height: 150px; resize: vertical; line-height: 1.7; }
body.contact-page .ct-form .sm-form-control:focus {
	outline: 0;
	background: #fff;
	border-color: var(--sp-primary);
	box-shadow: 0 0 0 4px rgba(10, 126, 164, .12);
}
body.contact-page .ct-form .error,
body.contact-page .ct-form .sm-form-control.error { border-color: #d9534f; }
body.contact-page .ct-submit { border: 0; cursor: pointer; padding: 15px 36px; }
body.contact-page .form-result { margin-bottom: 14px; }

.ct-info {
	position: sticky;
	top: 110px;
	padding: 38px 34px;
	border-radius: 22px;
	color: #cfe3ee;
	background:
		radial-gradient(circle at 90% 5%, rgba(212, 162, 76, .22), transparent 45%),
		linear-gradient(135deg, #072232, var(--sp-navy) 55%, #0b4f6c);
	box-shadow: var(--sp-shadow-lg);
}
.ct-item { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ct-item:first-child { padding-top: 0; }
.ct-icon {
	flex: 0 0 48px;
	height: 48px;
	border-radius: 14px;
	background: rgba(212, 162, 76, .16);
	border: 1px solid rgba(212, 162, 76, .45);
	color: var(--sp-accent);
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ct-item address, .ct-item div { font-size: 15px; line-height: 1.8; color: #cfe3ee; font-style: normal; }
.ct-item strong { color: #fff; letter-spacing: .6px; }
.ct-item a { color: #fff !important; font-weight: 600; text-decoration: none; }
.ct-item a:hover { color: var(--sp-accent) !important; }
.ct-social { display: flex; gap: 12px; padding-top: 24px; }
.ct-social-link {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .3);
	color: #fff !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.ct-social-link:hover { background: var(--sp-accent); border-color: var(--sp-accent); color: var(--sp-navy) !important; transform: translateY(-3px); }

@media (max-width: 991px) {
	.ct-layout { grid-template-columns: minmax(0, 1fr); }
	.ct-info { position: static; }
}
@media (max-width: 640px) {
	.ct-form-card { padding: 30px 22px; }
	.ct-info { padding: 30px 24px; }
	body.contact-page .ct-submit { width: 100%; }
}
.ct-info abbr, .ct-info abbr[title] { text-decoration: none; border: 0; cursor: default; }
