/* ----------------------------------------
   Hero
---------------------------------------- */
.case-study .site-content {
	padding: 0;
}

.cs-hero {
	position: relative;
	min-height: 620px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--th-navy);
}

.cs-hero__media {
	position: absolute;
	inset: 0;
}

.cs-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cs-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(6, 6, 20, 0.78) 0%, rgba(6, 6, 20, 0.45) 45%, rgba(6, 6, 20, 0.15) 100%);
}

.cs-hero__inner {
	position: relative;
	z-index: 1;
	padding: 100px 0;
	max-width: 760px;
}

.cs-hero__client {
	color: var(--th-amber);
	font-weight: 600;
	font-size: 18px;
	margin-bottom: 16px;
}

.cs-hero__heading {
	color: var(--th-white);
	font-size: 44px;
	line-height: 1.15;
	margin-bottom: 24px;
}

.cs-hero__intro {
	color: var(--th-white);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.6;
	opacity: 0.92;
}

/* ----------------------------------------
   Body: sticky TOC sidebar + article
---------------------------------------- */
.cs-body {
	display: flex;
	align-items: flex-start;
	gap: 64px;
	padding: 80px 0;
}

.cs-sidebar {
	flex: 0 0 350px;
	position: sticky;
	top: 32px;
}

.cs-toc {
	display: flex;
	flex-direction: column;
	margin-bottom: 24px;
}

.cs-toc__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid var(--th-gray-200);
	color: var(--th-gray-400);
	font-weight: 700;
	font-size: 18px;
	text-decoration: none;
	transition: color 0.25s ease;
}

.cs-toc__item:first-child {
	padding-top: 0;
}

.cs-toc__item:hover {
	color: var(--th-navy-soft);
	text-decoration: none;
}

.cs-toc__item.is-active {
	color: var(--th-navy);
}

.cs-toc__chevron {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--th-navy);
}

.cs-sidebar__cta {
	background: var(--th-navy);
	border-radius: 16px;
	padding: 32px;
}

.cs-sidebar__cta p {
	color: var(--th-white);
	font-weight: 700;
	font-size: 19px;
	line-height: 1.4;
	margin: 0 0 24px;
}

.cs-article {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 780px;
}

.cs-article h2 {
	font-size: 32px;
	scroll-margin-top: 32px;
	margin: 0 0 20px;
}

.cs-article h2:not(:first-child) {
	margin-top: 64px;
}

.cs-article p {
	font-size: 17px;
	font-weight: 500;
	line-height: 1.7;
	color: var(--th-navy-soft);
	margin: 0 0 20px;
}

.cs-article ul {
	margin: 0 0 20px;
	padding-left: 20px;
}

.cs-article ul li {
	font-size: 17px;
	font-weight: 500;
	line-height: 1.7;
	color: var(--th-navy-soft);
	margin-bottom: 8px;
}

.cs-article strong {
	color: var(--th-navy);
}

/* ----------------------------------------
   Testimonial
---------------------------------------- */
.cs-testimonial {
	position: relative;
	background-color: var(--th-navy);
	background-size: cover;
	background-position: center;
	padding: 100px 0;
}

.cs-testimonial::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(6, 6, 20, 0.6);
}

.cs-testimonial__inner {
	position: relative;
	z-index: 1;
	max-width: 760px;
}

.cs-testimonial__logo {
	width: auto;
	max-width: 200px;
	margin-bottom: 28px;
}

.cs-testimonial__quote {
	color: var(--th-white);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.45;
}

/* ----------------------------------------
   CTA band
---------------------------------------- */
.cs-cta {
	background: var(--th-navy);
	padding: 80px 0;
	text-align: center;
}

.cs-cta__inner {
	max-width: 720px;
	margin: 0 auto;
}

.cs-cta h2 {
	color: var(--th-white);
	font-size: 36px;
	margin-bottom: 16px;
}

.cs-cta p {
	color: var(--th-white);
	opacity: 0.85;
	font-size: 17px;
	font-weight: 500;
	margin-bottom: 32px;
}

/* ----------------------------------------
   Related cases slider
---------------------------------------- */
.cs-related {
	padding: 80px 0;
	background: var(--th-gray-50);
	overflow: hidden;
}

/* ----------------------------------------
   Responsive
---------------------------------------- */
@media (max-width: 900px) {
	.cs-hero {
		min-height: 0;
	}

	.cs-hero__inner {
		padding: 64px 0;
	}

	.cs-hero__heading {
		font-size: 32px;
	}

	.cs-body {
		flex-direction: column;
		gap: 32px;
	}

	.cs-sidebar {
		position: static;
		width: 100%;
	}

	.cs-ecosystem__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
