/* ============ Case Studies Filter ============ */
:root {
	--csf-accent: #c9a227;       /* sidebar gold */
	--csf-accent-bg: #faedbd;
	--csf-accent-text: #8a6914;
	--csf-card-accent: #d23f2f;  /* card red (matches screenshot) */
}

.csf-wrap {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px;
	color: #1a1a1a;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Sidebar ---------- */
.csf-filter-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 14px;
	padding: 22px 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	position: sticky;
	top: 20px;
}
.csf-filter-header {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 20px;
	color: var(--csf-accent);
}
.csf-group { margin-top: 18px; }
.csf-group-label {
	font-size: 11px;
	letter-spacing: 1.5px;
	color: var(--csf-accent);
	margin-bottom: 10px;
	font-weight: 600;
}
.csf-term-list { list-style: none; padding: 0; margin: 0; }
.csf-term {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	border-radius: 10px;
	cursor: pointer;
	margin-bottom: 4px;
	transition: background 0.15s;
	font-size: 14px;
}
.csf-term:hover { background: #faf6ea; }
.csf-term.is-active {
	background: var(--csf-accent-bg);
	color: var(--csf-accent-text);
	font-weight: 600;
}
.csf-term.is-active .csf-term-count {
	background: var(--csf-accent);
	color: #fff;
}
.csf-term.is-empty {
	color: #bbb;
	pointer-events: none;
	opacity: 0.55;
}
.csf-term-name { display: flex; align-items: center; gap: 8px; }
.csf-icon { width: 16px; height: 16px; stroke: currentColor; }
.csf-term-count {
	background: #f0f0f0;
	color: #888;
	font-size: 12px;
	font-weight: 600;
	padding: 2px 9px;
	border-radius: 12px;
	min-width: 24px;
	text-align: center;
}

/* ---------- Main ---------- */
.csf-main { min-width: 0; }
.csf-results-header {
	font-size: 14px;
	color: #555;
	margin-bottom: 12px;
}
.csf-results-header strong { color: #1a1a1a; font-weight: 700; }
.csf-group-header {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.5px;
	color: #888;
	border-bottom: 1px solid #eee;
	padding-bottom: 12px;
	margin: 22px 0;
}
.csf-group-header:first-child { margin-top: 0; }

/* ---------- Cards grid ---------- */
.csf-cards-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
	margin-bottom: 24px;
}

/* ---------- Card (new layout) ---------- */
.csf-card {
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(0,0,0,0.06);
	transition: transform 0.2s, box-shadow 0.2s;
	display: flex;
	flex-direction: column;
}
.csf-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}
.csf-card-media-link {
	display: block;
	text-decoration: none;
}
.csf-card-media {
	height: 280px;
	background-size: cover;
	background-position: center;
	background-color: #e0e0e0;
}

.csf-card-body {
	padding: 26px 28px 28px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.csf-card-eyebrow {
	display: inline-block;
	color: var(--csf-card-accent);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	margin-bottom: 10px;
	text-transform: capitalize;
}
.csf-card-eyebrow:hover { text-decoration: underline; }

.csf-card-headline {
	font-size: 24px;
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 14px;
	color: #111;
}
.csf-card-headline a {
	color: inherit;
	text-decoration: none;
}
.csf-card-headline a:hover { color: var(--csf-card-accent); }

.csf-card-excerpt {
	color: #4a4a4a;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 22px;
}
.csf-card-excerpt p { margin: 0 0 10px; }
.csf-card-excerpt p:last-child { margin-bottom: 0; }

.csf-card-prices {
	display: flex;
	gap: 32px;
	padding-top: 22px;
	border-top: 1px solid #eee;
	margin-top: auto;
	flex-wrap: wrap;
}
.csf-price {
	display: flex;
	align-items: baseline;
	gap: 10px;
}
.csf-price-value {
	color: var(--csf-card-accent);
	font-weight: 800;
	font-size: 26px;
	line-height: 1;
}
.csf-price-title {
	color: #555;
	font-size: 15px;
}

.csf-empty {
	padding: 40px;
	text-align: center;
	background: #fff;
	border-radius: 12px;
	color: #888;
}

@media (max-width: 900px) {
	.csf-wrap { grid-template-columns: 1fr; }
	.csf-filter-card { position: static; }
	.csf-cards-grid { grid-template-columns: 1fr; }
	.csf-card-media { height: 220px; }
	.csf-card-headline { font-size: 20px; }
}
