/* ============================================================
   Project C.U.R.E. — Single Case Study Page
   World-class design with hero, metrics, story, quote, sidebar
   ============================================================ */

.csSingle {
	--cs-color: #E03036;
	font-family: "Nunito Sans", sans-serif;
	color: #0c0d0d;
}

/* ========== HERO ========== */
.csHero {
	position: relative;
	min-height: 560px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center;
	background-color: #0c0d0d;
	overflow: hidden;
}

.csHero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(12,13,13,0.45) 0%, rgba(12,13,13,0.82) 100%);
	z-index: 1;
}

/* Subtle pattern overlay for depth */
.csHero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 20% 80%, var(--cs-color) 0%, transparent 50%);
	opacity: 0.15;
	z-index: 1;
}

.csHero__inner {
	position: relative;
	z-index: 2;
	max-width: 900px;
	padding: 80px 24px 60px;
	text-align: center;
	color: #fff;
}

.csBadge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--cs-color);
	color: #fff;
	font-family: "PT Sans", sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 10px 22px;
	border-radius: 999px;
	margin-bottom: 28px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.csBadge__icon {
	font-size: 1.1em;
}

.csHero__title {
	font-family: "PT Sans", sans-serif;
	font-size: 3rem;
	font-weight: 700;
	line-height: 1.12;
	margin: 0 auto 20px;
	color: #fff;
	max-width: 800px;
	text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.csHero__meta {
	font-family: "Nunito Sans", sans-serif;
	font-size: 1.1rem;
	color: rgba(255,255,255,0.82);
	margin: 0 0 48px;
	line-height: 1.5;
	font-weight: 400;
}

.csHero__metrics {
	display: flex;
	justify-content: center;
	gap: 0;
	margin-top: 40px;
	padding: 28px 0;
	border-top: 1px solid rgba(255,255,255,0.15);
	border-bottom: 1px solid rgba(255,255,255,0.15);
}

.csHeroMetric {
	text-align: center;
	padding: 0 40px;
	border-right: 1px solid rgba(255,255,255,0.18);
}

.csHeroMetric:last-child {
	border-right: none;
}

.csHeroMetric__value {
	display: block;
	font-family: "PT Sans", sans-serif;
	font-size: 2.6rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;
	margin-bottom: 8px;
	text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.csHeroMetric__label {
	display: block;
	font-family: "Nunito Sans", sans-serif;
	font-size: 0.8rem;
	color: rgba(255,255,255,0.7);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.3;
}

.csHero__scroll {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	color: rgba(255,255,255,0.5);
	animation: csScroll 2s ease-in-out infinite;
}

@keyframes csScroll {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(8px); }
}

/* ========== BODY ========== */
.csBody {
	padding: 72px 0 64px;
}

.csLead {
	font-family: "PT Sans", sans-serif;
	font-size: 1.4rem;
	line-height: 1.6;
	color: #3b3d3d;
	max-width: 760px;
	margin: 0 auto 56px;
	text-align: center;
	font-weight: 400;
	position: relative;
}

.csLead::before {
	content: "";
	display: block;
	width: 50px;
	height: 4px;
	background: var(--cs-color);
	border-radius: 999px;
	margin: 0 auto 32px;
}

/* ========== STORY ========== */
.csStory {
	max-width: 760px;
	margin: 0 auto 56px;
}

.csSection {
	margin-bottom: 48px;
}

.csSection:last-child {
	margin-bottom: 0;
}

.csSection__title {
	font-family: "PT Sans", sans-serif;
	font-size: 1.6rem;
	font-weight: 700;
	color: #0c0d0d;
	margin: 0 0 20px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.csSection__title::before {
	content: "";
	width: 6px;
	height: 28px;
	background: var(--cs-color);
	border-radius: 999px;
	flex-shrink: 0;
}

.csSection p {
	font-family: "Nunito Sans", sans-serif;
	font-size: 1.08rem;
	line-height: 1.75;
	color: #3b3d3d;
	margin: 0;
}

/* ========== PULL QUOTE ========== */
.csQuote {
	position: relative;
	background: linear-gradient(135deg, #f5f3ed 0%, #fff 100%);
	border-radius: 20px;
	padding: 56px 48px 40px;
	margin: 0 auto 64px;
	max-width: 860px;
	text-align: center;
	border: 1px solid #e8e7e3;
	box-shadow: 0 4px 30px rgba(12,13,13,0.05);
}

.csQuote__mark {
	font-family: "PT Sans", sans-serif;
	font-size: 5rem;
	color: var(--cs-color);
	opacity: 0.25;
	line-height: 0.8;
	margin-bottom: 8px;
}

.csQuote__text {
	font-family: "PT Sans", sans-serif;
	font-size: 1.3rem;
	line-height: 1.55;
	color: #0c0d0d;
	font-style: italic;
	margin: 0 0 28px;
}

.csQuote__author {
	display: block;
	font-style: normal;
	border-top: 1px solid #e8e7e3;
	padding-top: 20px;
}

.csQuote__name {
	display: block;
	font-family: "PT Sans", sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: #0c0d0d;
}

.csQuote__role {
	display: block;
	font-family: "Nunito Sans", sans-serif;
	font-size: 0.9rem;
	color: #5a5f5f;
	margin-top: 4px;
}

/* ========== FULL-WIDTH SIDEBAR ========== */
.csSidebar {
	margin: 0 auto 64px;
}

.csPhoto {
	margin: 0 0 32px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 40px rgba(12,13,13,0.08);
}

.csPhoto img {
	width: 100%;
	display: block;
	max-height: 480px;
	object-fit: cover;
}

.csPhoto figcaption {
	font-family: "Nunito Sans", sans-serif;
	font-size: 0.88rem;
	color: #818888;
	line-height: 1.5;
	margin-top: 12px;
	text-align: center;
	padding: 0 24px;
}

.csSidebarGrid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
	align-items: stretch;
}

.csSidebarTitle {
	font-family: "PT Sans", sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--cs-color);
	margin: 0 0 20px;
}

/* Metrics grid */
.csMoreMetrics {
	background: #f5f3ed;
	border-radius: 16px;
	padding: 32px 28px;
}

.csMetricsGrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.csMetricCard {
	background: #fff;
	border-radius: 12px;
	padding: 24px 16px;
	text-align: center;
	border: 1px solid #e8e7e3;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.csMetricCard:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(12,13,13,0.06);
}

.csMetricCard__value {
	display: block;
	font-family: "PT Sans", sans-serif;
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--cs-color);
	line-height: 1;
	margin-bottom: 8px;
}

.csMetricCard__label {
	display: block;
	font-family: "Nunito Sans", sans-serif;
	font-size: 0.82rem;
	color: #5a5f5f;
	line-height: 1.3;
}

/* Donor card */
.csDonor {
	background: linear-gradient(135deg, var(--cs-color) 0%, #A61229 100%);
	border-radius: 16px;
	padding: 32px 24px;
	text-align: center;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.csDonor__icon {
	color: rgba(255,255,255,0.85);
	margin-bottom: 4px;
}

.csDonor__label {
	font-family: "Nunito Sans", sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255,255,255,0.75);
}

.csDonor__name {
	font-family: "PT Sans", sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
}

/* ========== CTA ========== */
.csCta {
	text-align: center;
	background: linear-gradient(135deg, #f5f3ed 0%, #fff 100%);
	border-radius: 20px;
	padding: 56px 40px;
	margin: 0 auto;
	max-width: 860px;
	border: 1px solid #e8e7e3;
	box-shadow: 0 4px 30px rgba(12,13,13,0.05);
}

.csCta h2 {
	font-family: "PT Sans", sans-serif;
	font-size: 1.7rem;
	font-weight: 700;
	color: #0c0d0d;
	margin: 0 0 14px;
}

.csCta p {
	font-family: "Nunito Sans", sans-serif;
	font-size: 1.08rem;
	color: #5a5f5f;
	margin: 0 0 28px;
	line-height: 1.5;
}

.csCta__btn {
	display: inline-flex;
	align-items: center;
	background: var(--cs-color);
	color: #fff;
	font-family: "PT Sans", sans-serif;
	font-weight: 700;
	font-size: 1.05rem;
	padding: 16px 40px;
	border-radius: 999px;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
	box-shadow: 0 4px 20px rgba(224,48,54,0.3);
}

.csCta__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(166,18,41,0.35);
	background: #A61229;
	color: #fff;
}

/* ========== HERO TAGS ========== */
.csHero__tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 28px;
	position: relative;
	z-index: 2;
}

.csTag {
	display: inline-block;
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.25);
	color: rgba(255,255,255,0.9);
	font-family: "Nunito Sans", sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 6px 16px;
	border-radius: 999px;
	backdrop-filter: blur(4px);
}

.csTag--sdg {
	background: rgba(54,120,56,0.35);
	border-color: rgba(130,196,133,0.4);
}

/* ========== SUBMITTED BY ========== */
.csSubmitted {
	text-align: center;
	margin: 0 auto 40px;
	padding: 20px;
	max-width: 760px;
}

.csSubmitted__label {
	display: block;
	font-family: "Nunito Sans", sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #818888;
	margin-bottom: 4px;
}

.csSubmitted__name {
	font-family: "PT Sans", sans-serif;
	font-size: 0.95rem;
	color: #3b3d3d;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
	.csSidebarGrid {
		grid-template-columns: 1fr;
	}

	.csMetricsGrid {
		grid-template-columns: repeat(2, 1fr);
	}

	.csHero__title {
		font-size: 2.3rem;
	}
}

@media (max-width: 767px) {
	.csHero {
		min-height: 440px;
	}

	.csHero__inner {
		padding: 56px 20px 48px;
	}

	.csHero__title {
		font-size: 1.7rem;
	}

	.csHero__meta {
		font-size: 0.95rem;
		margin-bottom: 32px;
	}

	.csHero__metrics {
		flex-wrap: wrap;
		gap: 20px 0;
		padding: 20px 0;
	}

	.csHeroMetric {
		flex: 0 0 50%;
		padding: 0 12px;
		border-right: none;
	}

	.csHeroMetric__value {
		font-size: 1.9rem;
	}

	.csHeroMetric__label {
		font-size: 0.75rem;
	}

	.csBody {
		padding: 48px 16px 40px;
	}

	.csLead {
		font-size: 1.15rem;
		margin-bottom: 40px;
	}

	.csSection__title {
		font-size: 1.3rem;
	}

	.csSection p {
		font-size: 1rem;
	}

	.csQuote {
		padding: 40px 24px 32px;
	}

	.csQuote__text {
		font-size: 1.1rem;
	}

	.csMetricsGrid {
		grid-template-columns: 1fr;
	}

	.csCta {
		padding: 40px 20px;
	}

	.csCta h2 {
		font-size: 1.35rem;
	}

	.csCta__btn {
		width: 100%;
		padding: 16px 24px;
	}
}

@media (max-width: 429px) {
	.csHero__title {
		font-size: 1.45rem;
	}

	.csHeroMetric {
		flex: 0 0 100%;
		padding: 14px 0;
		border-bottom: 1px solid rgba(255,255,255,0.12);
	}

	.csHeroMetric:last-child {
		border-bottom: none;
	}
}
