/* Case Study Showcase */
.cssh-wrap {
	--cssh-cols: 3;
	--cssh-gap: 24px;
	width: 100%;
	box-sizing: border-box;
}
.cssh-wrap *, .cssh-hero * { box-sizing: border-box; }
.cssh-wrap.cssh-cols-1 { --cssh-cols: 1; }
.cssh-wrap.cssh-cols-2 { --cssh-cols: 2; }
.cssh-wrap.cssh-cols-3 { --cssh-cols: 3; }
.cssh-wrap.cssh-cols-4 { --cssh-cols: 4; }

/* ---------- Grid ---------- */
.cssh-grid {
	display: grid;
	grid-template-columns: repeat(var(--cssh-cols), minmax(0, 1fr));
	gap: var(--cssh-gap);
}

/* ---------- Slider ---------- */
.cssh-nav {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-bottom: 20px;
}
.cssh-nav button {
	width: 40px;
	height: 40px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #111;
	border: 1px solid var(--cssh-accent);
	border-radius: 10px;
	cursor: pointer;
	transition: background .2s, color .2s, opacity .2s;
}
.cssh-nav button svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.cssh-nav button:hover:not(:disabled) { background: var(--cssh-accent); color: #fff; }
.cssh-nav button:disabled { opacity: .35; cursor: default; }

.cssh-track {
	display: flex;
	gap: var(--cssh-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
}
.cssh-track::-webkit-scrollbar { display: none; }
.cssh-slider .cssh-card {
	flex: 0 0 calc((100% - var(--cssh-cols) * var(--cssh-gap)) / (var(--cssh-cols) + 0.2));
	scroll-snap-align: start;
}

/* ---------- Card ---------- */
.cssh-card {
	min-width: 0;
	border-radius: 18px;
	overflow: hidden;
	background: var(--cssh-card-bg);
}
.cssh-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}
.cssh-card__link:hover, .cssh-card__link:focus { color: inherit; text-decoration: none; }
.cssh-card__body {
	flex: 1 1 auto;
	padding: 26px 22px 22px;
}
.cssh-card__label {
	display: block;
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--cssh-accent);
}
.cssh-card__percent {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	margin: 0 0 8px;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.1;
	color: #111;
}
.cssh-card__percent svg {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 5px;
	fill: none;
	stroke: var(--cssh-accent);
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.cssh-card__text {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #111;
}
.cssh-card__media {
	position: relative;
	height: var(--cssh-img-h, 210px);
	overflow: hidden;
	flex: 0 0 auto;
}
.cssh-card__media img,
.cssh-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	transition: transform .5s ease;
}
.cssh-card__placeholder { background: #ddd; }
.cssh-card__link:hover .cssh-card__media img { transform: scale(1.05); }
.cssh-card__btn {
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--cssh-accent);
	color: #fff;
	border-radius: 8px;
	transition: transform .2s;
}
.cssh-card__btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.cssh-card__link:hover .cssh-card__btn { transform: translate(2px, -2px); }

/* ---------- Detail page ---------- */
.cssh-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	margin: 0 0 40px;
	background: var(--cssh-card-bg);
	border-radius: 18px;
	overflow: hidden;
}
.cssh-hero__info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px 40px;
}
.cssh-hero__percent { font-size: 64px; margin-bottom: 14px; }
.cssh-hero__percent svg { width: 28px; height: 28px; margin-top: 10px; }
.cssh-hero__text { margin: 0; font-size: 17px; line-height: 1.6; color: #111; }
.cssh-hero__media { min-height: 320px; }
.cssh-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
}
.cssh-single__content { margin: 0 0 48px; }
.cssh-more { margin-top: 56px; }
.cssh-more__title { margin: 0 0 20px; }
.cssh-more .cssh-nav { margin-top: -50px; margin-bottom: 20px; }

/* ---------- Pagination ---------- */
.cssh-pagination { margin-top: 40px; }
.cssh-pagination ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cssh-pagination li { margin: 0; padding: 0; list-style: none; }
.cssh-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	background: transparent;
	color: #111;
	border: 1px solid transparent;
	border-radius: 14px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	box-shadow: none;
	transition: background .2s, color .2s;
}
.cssh-pagination a.page-numbers:hover { color: var(--cssh-accent); }
.cssh-pagination .page-numbers.current {
	background: var(--cssh-accent);
	border-color: var(--cssh-accent);
	color: #fff;
}
.cssh-pagination .page-numbers.dots { min-width: 24px; padding: 0; }

/* Arrow buttons: outlined rounded squares */
.cssh-pagination .page-numbers.prev,
.cssh-pagination .page-numbers.next {
	width: 46px;
	padding: 0;
	background: #fff;
	border-color: var(--cssh-accent);
	color: #111;
}
.cssh-pagination a.page-numbers.prev:hover,
.cssh-pagination a.page-numbers.next:hover {
	background: var(--cssh-accent);
	color: #fff;
}
.cssh-pagination .page-numbers.cssh-disabled { opacity: .35; cursor: default; }
.cssh-pagination .page-numbers svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.cssh-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.cssh-wrap { --cssh-cols: 2 !important; }
	.cssh-hero__percent { font-size: 52px; }
}
@media (max-width: 680px) {
	.cssh-wrap { --cssh-cols: 1 !important; --cssh-gap: 16px; }
	.cssh-hero { grid-template-columns: 1fr; }
	.cssh-hero__info { padding: 32px 24px; }
	.cssh-hero__media { min-height: 220px; order: 2; }
	.cssh-more .cssh-nav { margin-top: 0; }
}
