/* ===========================================
   Community Service - Page-Specific Styles
   =========================================== */

/* -------------------------
   Hero
   ------------------------- */
.cs-hero {
	min-height: 100vh;
	justify-content: flex-start;
	align-items: center;
	padding: 0 4%;
}

.cs-hero-bg {
	position: absolute;
	inset: 0;
	background-image: url('../images/U2030-photos/community-service-banner.webp');
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.cs-hero-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(7, 80, 86, 1)    0%,
		rgba(7, 80, 86, 1)    40%,
		rgba(7, 80, 86, 0.85) 55%,
		rgba(7, 80, 86, 0.4)  75%,
		rgba(7, 80, 86, 0.2)  100%
	);
}

.cs-hero-content {
	position: relative;
	z-index: 2;
	max-width: 1400px;
	margin: 0 auto;
	padding: 10rem 0 6rem;
	width: 100%;
}

.cs-hero-text {
	max-width: 650px;
}

.cs-hero-text h1 {
	font-size: clamp(2.5rem, 5vw, 4rem);
	color: var(--white);
	margin-bottom: 0.25rem;
	letter-spacing: -0.5px;
}

.cs-hero-text .prog-hero-theme {
	font-family: 'Solitreo', cursive;
	font-size: clamp(1.4rem, 2.5vw, 2rem);
	color: var(--blaze-orange);
	margin-bottom: 1.5rem;
	font-weight: 600;
}

.cs-hero-subtitle {
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.8;
	margin-bottom: 1rem;
	max-width: 600px;
}

.cs-hero-ctas {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

/* -------------------------
   Service Through Leadership (Pins)
   ------------------------- */
.cs-pins-section {
	background: var(--white);
	padding: 6rem 4%;
}

.cs-pins-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.cs-pins-text h2 {
	font-size: clamp(2rem, 4vw, 2.75rem);
	color: var(--navy-black);
	margin-bottom: 1.5rem;
}

.cs-pins-text p {
	font-size: 1.05rem;
	color: #666;
	line-height: 1.8;
	margin-bottom: 1rem;
}

.cs-pins-highlight {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 2rem;
	padding: 1.5rem;
	background: var(--muted-teal);
	border-radius: 12px;
	border-left: 4px solid var(--blaze-orange);
}

.cs-pins-highlight .material-icons-outlined {
	font-size: 2rem;
	color: var(--blaze-orange);
	flex-shrink: 0;
}

.cs-pins-highlight p {
	margin: 0;
	font-size: 1rem;
	color: var(--navy-black);
}

.cs-pins-visual {
	position: relative;
}

.cs-pins-image-wrapper {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(7, 80, 86, 0.15);
	height: 460px;
}

.cs-pins-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.cs-pins-slide.active {
	opacity: 1;
}

.cs-pins-accent {
	position: absolute;
	bottom: -20px;
	right: -20px;
	width: 150px;
	height: 150px;
	background: var(--blaze-orange);
	border-radius: 16px;
	z-index: -1;
	opacity: 0.15;
}

/* -------------------------
   Partner Logo Scroller
   ------------------------- */
.cs-partners-section {
	padding: 4rem 0;
	background: var(--soft-cream);
	overflow: hidden;
}

.cs-partners-header {
	text-align: center;
	padding: 0 4%;
	margin-bottom: 3rem;
}

.cs-partners-header h2 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	color: var(--navy-black);
}

.cs-logo-scroller {
	display: flex;
	overflow: hidden;
	position: relative;
}

.cs-logo-scroller::before,
.cs-logo-scroller::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 150px;
	z-index: 2;
	pointer-events: none;
}

.cs-logo-scroller::before {
	left: 0;
	background: linear-gradient(to right, var(--soft-cream), transparent);
}

.cs-logo-scroller::after {
	right: 0;
	background: linear-gradient(to left, var(--soft-cream), transparent);
}

.cs-logo-track {
	display: flex;
	gap: 4rem;
	animation: cs-scroll 40s linear infinite;
	padding: 1rem 0;
	align-items: center;
}

.cs-logo-track:hover {
	animation-play-state: paused;
}

@keyframes cs-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.cs-partner-logo {
	flex-shrink: 0;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	filter: grayscale(100%);
	opacity: 0.7;
	transition: all 0.3s ease;
	text-decoration: none;
}

.cs-partner-logo:hover {
	filter: grayscale(0%);
	opacity: 1;
}

.cs-partner-logo img {
	height: 50px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
}

/* -------------------------
   Featured Projects
   ------------------------- */
.cs-projects-section {
	background: var(--soft-cream);
	padding: 6rem 4%;
}

.cs-projects-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

.cs-project-card {
	background: var(--white);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(7, 80, 86, 0.08);
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	text-decoration: none;
	display: block;
	color: inherit;
}

.cs-project-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 30px 60px rgba(7, 80, 86, 0.12);
}

.cs-project-image {
	height: 220px;
	background: linear-gradient(135deg, var(--dark-teal) 0%, var(--light-teal) 50%, var(--sea-green) 100%);
	position: relative;
	overflow: hidden;
}

.cs-project-image::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
	background-size: 40px 40px;
}

.cs-project-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.cs-project-card:hover .cs-project-image img {
	transform: scale(1.05);
}

.cs-project-image-link {
	display: block;
	text-decoration: none;
}

.cs-project-image-link .cs-project-image {
	transition: opacity 0.3s ease;
}

.cs-project-image-link:hover .cs-project-image {
	opacity: 0.85;
}

.cs-project-badge {
	position: absolute;
	bottom: 1rem;
	left: 1rem;
	background: var(--blaze-orange);
	color: var(--white);
	padding: 0.35rem 0.75rem;
	border-radius: 4px;
	font-family: 'Funnel Sans', sans-serif;
	font-weight: 500;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.cs-project-content {
	padding: 1.75rem;
}

.cs-project-content h3 {
	font-size: 1.1rem;
	color: var(--navy-black);
	margin-bottom: 0.75rem;
	line-height: 1.4;
}

.cs-project-excerpt {
	color: #5a6872;
	font-size: 0.85rem;
	line-height: 1.6;
	margin-bottom: 0.75rem;
}

.cs-project-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: #888;
	font-size: 0.78rem;
	margin-bottom: 1rem;
}

.cs-project-meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.cs-project-meta .material-icons-outlined {
	font-size: 14px;
}

.cs-project-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: 'Funnel Sans', sans-serif;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--dark-teal);
	text-decoration: none;
	transition: all 0.3s ease;
}

.cs-project-link:hover {
	color: var(--blaze-orange);
	gap: 0.75rem;
}

.cs-project-link .material-icons-outlined {
	font-size: 18px;
}

.cs-no-posts {
	grid-column: 1 / -1;
	text-align: center;
	color: #666;
	font-size: 1rem;
	padding: 3rem 0;
}

/* -------------------------
   Quote / CTA Section
   ------------------------- */
.cs-quote-section {
	background: linear-gradient(135deg, var(--sea-green) 0%, var(--dark-teal) 100%);
	padding: 6rem 4%;
	position: relative;
	overflow: hidden;
}


.cs-quote-wrapper {
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
	position: relative;
	z-index: 1;
}

.cs-quote-text {
	font-family: 'Funnel Sans', sans-serif;
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 500;
	color: var(--white);
	line-height: 1.6;
	margin-bottom: 1rem;
	font-style: italic;
}

.cs-quote-author {
	font-size: 1rem;
	color: var(--white);
	font-weight: 600;
	margin-bottom: 2.5rem;
}

.cs-quote-ctas {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* -------------------------
   Responsive
   ------------------------- */
@media (max-width: 1024px) {
	.cs-pins-content {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.cs-projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.cs-hero-text h1 {
		font-size: 2.25rem;
	}

	.cs-hero-ctas {
		flex-direction: column;
	}

	.cs-projects-grid {
		grid-template-columns: 1fr;
	}

	.cs-quote-ctas {
		flex-direction: column;
		align-items: center;
	}

	.cs-hero-bg {
		background-position: right bottom;
		background-size: auto 45%;
		background-repeat: no-repeat;
	}

	.cs-hero-bg::after {
		background: linear-gradient(
			to bottom,
			rgba(7, 80, 86, 1) 0%,
			rgba(7, 80, 86, 1) 55%,
			rgba(7, 80, 86, 0) 160%
		);
	}
}
