/* Case Studies Showcase - change these variables to match your brand */
.cssh, .cssh-single {
	--cssh-accent: #e11d2e;
	--cssh-accent-soft: #fdecee;
	--cssh-text: #111827;
	--cssh-muted: #6b7280;
	--cssh-border: #e5e7eb;
	--cssh-bg: #ffffff;
	--cssh-soft: #f9fafb;
	--cssh-radius: 12px;
	color: var(--cssh-text);
	box-sizing: border-box;
}
.cssh *, .cssh-single * { box-sizing: border-box; }

/* ---------- Filters ---------- */
.cssh-filters {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	padding: 14px;
	background: var(--cssh-bg);
	border: 1px solid var(--cssh-border);
	border-radius: var(--cssh-radius);
	margin-bottom: 18px;
}
.cssh-select {
	width: 100%;
	height: 44px;
	padding: 0 40px 0 14px;
	font-size: 15px;
	color: var(--cssh-text);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
	border: 1px solid var(--cssh-border);
	border-radius: 8px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.cssh-select:hover { border-color: #cbd5e1; }
.cssh-select:focus { outline: none; border-color: var(--cssh-accent); box-shadow: 0 0 0 3px var(--cssh-accent-soft); }

.cssh-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}
.cssh-count { font-size: 14px; color: var(--cssh-muted); }
.cssh-clear {
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #0b0b0b;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s;
}
.cssh-clear:hover { background: var(--cssh-accent); }

/* ---------- Grid + cards ---------- */
.cssh-grid {
	display: grid;
	grid-template-columns: repeat(var(--cssh-cols, 3), minmax(0, 1fr));
	gap: 20px;
	transition: opacity .2s;
}
.cssh.is-loading .cssh-grid { opacity: .45; pointer-events: none; }

.cssh-card {
	display: flex;
	flex-direction: column;
	background: var(--cssh-bg);
	border: 1px solid var(--cssh-border);
	border-radius: var(--cssh-radius);
	overflow: hidden;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cssh-card:hover {
	transform: translateY(-4px);
	border-color: transparent;
	box-shadow: 0 14px 32px rgba(17, 24, 39, .12);
}
.cssh-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--cssh-soft);
	overflow: hidden;
}
.cssh-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform .4s;
}
.cssh-card:hover .cssh-card__media img { transform: scale(1.04); }
.cssh-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 48px;
	font-weight: 700;
	color: var(--cssh-accent);
	background: var(--cssh-accent-soft);
}
.cssh-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.cssh-card__title { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; }
.cssh-card__title a { color: inherit; text-decoration: none; }
.cssh-card__title a:hover { color: var(--cssh-accent); }
.cssh-card__meta { margin: 0; font-size: 13px; color: var(--cssh-muted); }

.cssh-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.cssh-pill {
	display: inline-block;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	color: #374151;
	background: #f3f4f6;
	border: 1px solid var(--cssh-border);
	border-radius: 999px;
}
.cssh-pill--primary {
	color: var(--cssh-accent);
	background: #fff;
	border-color: var(--cssh-accent);
}

.cssh-empty { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--cssh-muted); }

.cssh-more-wrap { margin-top: 28px; text-align: center; }
.cssh-more {
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	color: var(--cssh-accent);
	background: #fff;
	border: 1px solid var(--cssh-accent);
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.cssh-more:hover { background: var(--cssh-accent); color: #fff; }

/* ---------- Single case study ---------- */
.cssh-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.cssh-hero { padding: 56px 0 48px; background: linear-gradient(180deg, var(--cssh-soft), #fff); }
.cssh-hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.cssh-back { display: inline-block; margin-bottom: 18px; font-size: 14px; color: var(--cssh-muted); text-decoration: none; }
.cssh-back:hover { color: var(--cssh-accent); }
.cssh-hero__title { margin: 14px 0 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; }
.cssh-hero__stat {
	display: inline-block;
	margin: 0 0 14px;
	padding: 8px 16px;
	font-size: 20px;
	font-weight: 700;
	color: var(--cssh-accent);
	background: var(--cssh-accent-soft);
	border-radius: 8px;
}
.cssh-hero__excerpt { margin: 0; font-size: 17px; line-height: 1.6; color: var(--cssh-muted); }
.cssh-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	border: 1px solid var(--cssh-border);
	box-shadow: 0 24px 48px rgba(17, 24, 39, .14);
}

.cssh-statband { background: #0b0b0b; color: #fff; }
.cssh-statband__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.cssh-stat { text-align: center; }
.cssh-stat strong { display: block; font-size: 34px; line-height: 1.1; color: #fff; }
.cssh-stat span { display: block; margin-top: 6px; font-size: 14px; color: #cbd5e1; }

.cssh-body { padding: 56px 0; }
.cssh-body__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.cssh-content h2 { margin: 32px 0 10px; font-size: 26px; }
.cssh-content h2:first-child { margin-top: 0; }
.cssh-content p { font-size: 17px; line-height: 1.75; }
.cssh-content img { max-width: 100%; height: auto; border-radius: 10px; }
.cssh-quote {
	margin: 36px 0 0;
	padding: 24px 28px;
	background: var(--cssh-soft);
	border-left: 4px solid var(--cssh-accent);
	border-radius: 0 var(--cssh-radius) var(--cssh-radius) 0;
}
.cssh-quote p { margin: 0 0 10px; font-size: 19px; font-style: italic; }
.cssh-quote cite { font-size: 14px; font-style: normal; font-weight: 600; color: var(--cssh-muted); }

.cssh-side { position: sticky; top: 24px; }
.cssh-side__card { padding: 24px; background: #fff; border: 1px solid var(--cssh-border); border-radius: var(--cssh-radius); box-shadow: 0 8px 24px rgba(17, 24, 39, .06); }
.cssh-side__card h3 { margin: 0 0 14px; font-size: 18px; }
.cssh-side__card dl { margin: 0 0 18px; }
.cssh-side__card dt { margin-top: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--cssh-muted); }
.cssh-side__card dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.cssh-btn {
	display: block;
	padding: 12px 18px;
	text-align: center;
	font-weight: 600;
	color: #fff !important;
	background: var(--cssh-accent);
	border-radius: 8px;
	text-decoration: none;
	transition: opacity .15s;
}
.cssh-btn:hover { opacity: .9; }

.cssh-related { padding: 8px 0 72px; }
.cssh-related h2 { margin: 0 0 22px; font-size: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.cssh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cssh-hero__grid, .cssh-body__grid { grid-template-columns: 1fr; gap: 32px; }
	.cssh-side { position: static; }
}
@media (max-width: 640px) {
	.cssh-grid { grid-template-columns: 1fr; }
	.cssh-filters { grid-template-columns: 1fr; }
	.cssh-hero { padding: 36px 0 32px; }
}
