/* ============================================================
   Project C.U.R.E. — Case Study Archive
   World-class grid with hero header, filter pills, and cards
   ============================================================ */

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

/* ========== HERO HEADER ========== */
.csArchive__hero {
	background: linear-gradient(135deg, #0c0d0d 0%, #2a0a0e 100%);
	padding: 100px 0 80px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.csArchive__hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 80% 20%, rgba(224,48,54,0.15) 0%, transparent 50%);
}

.csArchive__heroInner {
	position: relative;
	z-index: 1;
	max-width: 760px;
	margin: 0 auto;
}

/* keep container centered but narrower for the hero text */
.csArchive__hero .container {
	max-width: 760px;
}

.csArchive__eyebrow {
	font-family: "PT Sans", sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #E03036;
	margin: 0 0 16px;
}

.csArchive__title {
	font-family: "PT Sans", sans-serif;
	font-size: 3rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 20px;
	line-height: 1.15;
}

.csArchive__intro {
	font-family: "Nunito Sans", sans-serif;
	font-size: 1.15rem;
	color: rgba(255,255,255,0.75);
	line-height: 1.6;
	margin: 0;
	max-width: 620px;
	margin: 0 auto;
}

/* ========== BODY ========== */
.csArchive__body {
	padding: 56px 0 80px;
}

/* ========== FILTER PILLS ========== */
.csArchive__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 48px;
}

.csFilterPill {
	background: #fff;
	border: 2px solid #e8e7e3;
	border-radius: 999px;
	padding: 10px 24px;
	font-family: "PT Sans", sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	color: #5a5f5f;
	cursor: pointer;
	transition: all 0.2s ease;
}

.csFilterPill:hover {
	border-color: #E03036;
	color: #E03036;
}

.csFilterPill.is-active {
	background: #E03036;
	border-color: #E03036;
	color: #fff;
	box-shadow: 0 4px 16px rgba(224,48,54,0.25);
}

/* ========== GRID ========== */
.csArchive__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

/* ========== CARD ========== */
.csCard {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	border: 1px solid #e8e7e3;
	transition: transform 0.2s ease, box-shadow 0.3s ease;
	box-shadow: 0 2px 12px rgba(12,13,13,0.04);
}

.csCard:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(12,13,13,0.1);
}

.csCard__image {
	height: 220px;
	background-size: cover;
	background-position: center;
	position: relative;
}

.csCard__image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4) 100%);
}

.csCard__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 1;
	background: var(--cs-color, #E03036);
	color: #fff;
	font-family: "PT Sans", sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 6px 14px;
	border-radius: 999px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.csCard__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.csCard__location {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: "Nunito Sans", sans-serif;
	font-size: 0.85rem;
	color: #818888;
	margin: 0 0 10px;
}

.csCard__location svg {
	color: #E03036;
	flex-shrink: 0;
}

.csCard__title {
	font-family: "PT Sans", sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	color: #0c0d0d;
	line-height: 1.3;
	margin: 0 0 20px;
	flex: 1;
}

.csCard__metric {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 14px 16px;
	background: #f5f3ed;
	border-radius: 10px;
	margin-bottom: 16px;
}

.csCard__metricValue {
	font-family: "PT Sans", sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--cs-color, #E03036);
	line-height: 1;
}

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

.csCard__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "PT Sans", sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--cs-color, #E03036);
	transition: gap 0.2s ease;
}

.csCard:hover .csCard__link {
	gap: 12px;
}

/* ========== EMPTY ========== */
.csArchive__empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 80px 20px;
	color: #818888;
	font-size: 1.1rem;
}

/* ========== PAGINATION ========== */
.csArchive__nav {
	margin-top: 48px;
	text-align: center;
}

.csArchive__nav .pagination,
.csArchive__nav .nav-previous,
.csArchive__nav .nav-next {
	display: inline-block;
}

.csArchive__nav a {
	display: inline-block;
	padding: 10px 20px;
	border: 2px solid #e8e7e3;
	border-radius: 999px;
	text-decoration: none;
	font-family: "PT Sans", sans-serif;
	font-weight: 700;
	font-size: 0.9rem;
	color: #5a5f5f;
	transition: all 0.2s ease;
}

.csArchive__nav a:hover {
	border-color: #E03036;
	color: #E03036;
}

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

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

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

.csArchive__ctaBtn {
	display: inline-flex;
	align-items: center;
	background: #E03036;
	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);
}

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

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

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

@media (max-width: 767px) {
	.csArchive__hero {
		padding: 64px 20px 56px;
	}

	.csArchive__title {
		font-size: 1.8rem;
	}

	.csArchive__intro {
		font-size: 1rem;
	}

	.csArchive__body {
		padding: 40px 16px 56px;
	}

	.csArchive__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.csArchive__cta {
		padding: 40px 20px;
	}

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

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

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

	.csFilterPill {
		padding: 8px 16px;
		font-size: 0.82rem;
	}
}
