/* ==========================================================================
   Case Study Single Portfolio Template
   ========================================================================== */

.cs-single-portfolio {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

.cs-case-study {
	padding-bottom: 60px;
}

/* ── Hero ── */
.cs-hero {
	text-align: center;
	padding: 60px 0 40px;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 50px;
}

.cs-headline {
	font-size: 2.2em;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 auto 15px;
	max-width: 800px;
}

.cs-client-name {
	font-size: 1.1em;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #888;
	margin: 0 0 15px;
	font-weight: 600;
}

.cs-categories {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.cs-category-tag {
	display: inline-block;
	font-size: 0.75em;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 4px 12px;
	border: 1px solid #ccc;
	border-radius: 3px;
	color: #666;
}

/* ── Sections ── */
.cs-section {
	margin-bottom: 50px;
}

.cs-section-heading {
	font-size: 1.6em;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 20px;
}

.cs-section-heading span {
	font-weight: 400;
}

.cs-section-text {
	font-size: 1.05em;
	line-height: 1.8;
	color: #444;
}

.cs-section-text p {
	margin-bottom: 1em;
}

/* ── Gallery Slideshow ── */
.cs-gallery {
	margin-bottom: 50px;
}

.cs-slideshow {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	background: #f5f5f5;
}

.cs-slideshow-track {
	display: flex;
	transition: transform 0.4s ease;
}

.cs-slide {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
}

.cs-slide img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	max-height: 600px;
}

.cs-slide-prev,
.cs-slide-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	border: none;
	font-size: 2em;
	width: 45px;
	height: 45px;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: background 0.2s;
}

.cs-slide-prev:hover,
.cs-slide-next:hover {
	background: rgba(0, 0, 0, 0.75);
}

.cs-slide-prev {
	left: 15px;
}

.cs-slide-next {
	right: 15px;
}

.cs-slide-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 15px 0;
}

.cs-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid #999;
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s;
}

.cs-dot.active {
	background: #333;
	border-color: #333;
}

/* ── Ah-ha Moment + Secondary Image ── */
.cs-ahha-section {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.cs-ahha-content {
	flex: 1;
	min-width: 0;
}

.cs-ahha-image {
	flex: 0 0 320px;
}

.cs-ahha-image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
}

/* ── Client Quote ── */
.cs-quote-section {
	background: #f8f8f8;
	padding: 40px;
	border-radius: 6px;
	border-left: 4px solid var(--main-theme, #005776);
}

.cs-quote p {
	font-size: 1.15em;
	line-height: 1.7;
	font-style: italic;
	color: #333;
	margin: 0 0 20px;
}

.cs-quote-footer {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cs-quotee-name {
	font-style: normal;
	font-weight: 700;
	font-size: 1em;
	color: #222;
}

.cs-quotee-title {
	font-size: 0.9em;
	color: #666;
}

/* ── Video ── */
.cs-video-section {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.cs-video-player .wp-video {
	width: 100% !important;
}

.cs-video-player video {
	width: 100%;
	border-radius: 6px;
}

/* ── Final Logo ── */
.cs-logo-section {
	text-align: center;
}

.cs-final-logo {
	max-width: 350px;
	height: auto;
}

/* ── Scope of Work ── */
.cs-scope .cs-section-heading {
	text-align: center;
	margin-bottom: 30px;
}

.cs-scope-columns {
	display: flex;
	gap: 60px;
}

.cs-scope-col {
	flex: 0 1 300px;
}

.cs-scope-single {
	flex-direction: column;
}

.cs-scope-single .cs-scope-col {
	flex: none;
	max-width: 600px;
	width: 100%;
}

.cs-scope-item {
	font-size: 1em;
	line-height: 1.6;
	color: #444;
	margin: 0 0 8px;
	padding-left: 15px;
	position: relative;
}

.cs-scope-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--main-theme, #005776);
}

/* ── Back Link ── */
.cs-back-link {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
}

.cs-btn {
	display: inline-block;
	padding: 12px 30px;
	font-size: 0.95em;
	font-weight: 600;
	letter-spacing: 0.5px;
	color: #fff;
	background: var(--main-theme, #005776);
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.2s;
}

.cs-btn:hover {
	background: #003d54;
	color: #fff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.cs-hero {
		padding: 40px 0 30px;
	}

	.cs-headline {
		font-size: 1.6em;
	}

	.cs-section-heading {
		font-size: 1.3em;
	}

	.cs-ahha-section {
		flex-direction: column;
	}

	.cs-ahha-image {
		flex: none;
		width: 100%;
	}

	.cs-scope-columns {
		flex-direction: column;
		gap: 30px;
	}

	.cs-quote-section {
		padding: 25px;
	}

	.cs-slide-prev,
	.cs-slide-next {
		width: 35px;
		height: 35px;
		font-size: 1.5em;
	}
}
