/* ==========================================================================
   Community Development page
   ========================================================================== */

/* ---------- Hero ---------- */
.cd-hero {
	padding: 168px 0 72px;
	background: linear-gradient(180deg, #eaf7ef 0%, #ffffff 100%);
}

.cd-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

.cd-hero .ng-head {
	margin-bottom: 1.75rem;
}

.cd-hero .ng-head__title {
	font-size: clamp(2.4rem, 5.5vw, 3.75rem);
}

.cd-hero__media {
	margin: 0;
}

.cd-hero__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 24px;
	box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.35);
}

/* ---------- Projects ---------- */
.cd-projects {
	scroll-margin-top: 80px;
}

.cd-projects__list {
	display: grid;
	gap: 72px;
}

.cd-project {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 48px;
	align-items: center;
	scroll-margin-top: 100px;
}

.cd-project--flip .cd-project__media {
	order: 2;
}

.cd-project__img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 22px;
}

.cd-project__gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 12px;
	list-style: none;
}

.cd-project__gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
}

.cd-project__tag {
	display: inline-block;
	margin-bottom: 0.9rem;
	padding: 0.3rem 0.7rem;
	border-radius: 6px;
	background: #17703d;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.cd-project__title {
	font-size: clamp(1.4rem, 2.5vw, 1.9rem);
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.cd-project__desc {
	color: #555;
	line-height: 1.75;
}

.cd-project__desc--pending {
	color: #6b716d;
	font-style: italic;
}

/* ---------- Focus areas ---------- */
.cd-focus {
	background:
		radial-gradient(ellipse at 90% 0%, rgba(46, 204, 113, 0.14), transparent 50%),
		#0c0f0d;
}

.cd-focus__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	list-style: none;
}

.cd-focus__card {
	padding: 28px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.cd-focus__num {
	font-size: 0.9rem;
	font-weight: 700;
	color: #2ecc71;
}

.cd-focus__title {
	margin: 0.6rem 0;
	font-size: 1.15rem;
	line-height: 1.3;
	color: #fff;
}

.cd-focus__desc {
	margin: 0;
	font-size: 0.93rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.7);
}

/* ---------- Free-form page content ---------- */
.cd-content__inner {
	max-width: 820px;
}

.cd-content__inner p {
	color: #444;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.cd-hero {
		padding: 140px 0 56px;
	}

	.cd-hero__inner,
	.cd-project {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.cd-project--flip .cd-project__media {
		order: 0;
	}

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

@media (max-width: 640px) {
	.cd-focus__grid {
		grid-template-columns: 1fr;
	}
}
