/**
 * Case Study Single + Archive Styles
 */

/* ========================================
   SINGLE CASE STUDY
   ======================================== */

.cs-single {
	background: #ffffff;
	padding: 0 0 100px;
}

/* ========================================
   HEADER
   ======================================== */

.cs-single__header {
	max-width: 1280px;
	margin: 0 auto;
	padding: 100px 50px 60px;
	display: flex;
	flex-direction: column;
	gap: 60px;
}

.cs-single__header-bg {
	background: url('/wp-content/uploads/2025/12/warm-bg.svg') center/cover no-repeat;
}

/* Breadcrumbs */
.cs-single__breadcrumbs {
	display: flex;
	align-items: center;
	border-radius: 8px;
}

.cs-single__breadcrumb-link {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: #27272a;
	text-decoration: none;
	white-space: nowrap;
}

.cs-single__breadcrumb-link:hover {
	text-decoration: underline;
}

.cs-single__breadcrumb-sep {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: #a1a1aa;
	margin: 0 4px;
}

.cs-single__breadcrumb-current {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: #a1a1aa;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 180px;
}

/* Header Row */
.cs-single__header-row {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.cs-single__header-left {
	width: 780px;
	flex-shrink: 0;
	padding-right: 60px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cs-single__title {
	font-family: 'TWK Everett', sans-serif;
	font-size: 48px;
	font-weight: 500;
	line-height: normal;
	color: #000000;
	margin: 0;
	letter-spacing: -1.44px;
}

/* Header Tags */
.cs-single__header-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.cs-single__header-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #000000;
	background: rgba(212, 212, 216, 0.4);
	height: 32px;
	padding: 0 8px;
	border-radius: 8px;
	white-space: nowrap;
}

.cs-single__header-country {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 300;
	color: #000000;
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.15);
	height: 32px;
	padding: 0 12px 0 6px;
	border-radius: 9999px;
	white-space: nowrap;
}

.cs-single__header-flag {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

/* Header CTA Card */
.cs-single__header-cta {
	flex: 1;
	min-width: 0;
	background: #f2e6ff;
	border-radius: 28px;
	overflow: hidden;
	position: relative;
}

.cs-single__header-cta-bg {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% 80%, rgba(180, 130, 255, 0.3) 0%, transparent 70%);
	pointer-events: none;
}

.cs-single__header-cta-inner {
	position: relative;
	z-index: 1;
	padding: 36px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}

.cs-single__header-cta-label {
	font-family: 'TWK Everett', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: normal;
	color: #000000;
}

.cs-single__header-cta-title {
	font-family: 'TWK Everett', sans-serif;
	font-size: 24px;
	font-weight: 500;
	line-height: normal;
	color: #191a23;
}

.cs-single__header-cta-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	height: 40px;
	background: #000000;
	color: #ffffff;
	border: 2px solid #000000;
	border-radius: 12px;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s;
}

.cs-single__header-cta-btn:hover {
	background: #333333;
	border-color: #333333;
	color: #ffffff;
}

.cs-single__header-cta-btn svg {
	width: 20px;
	height: 20px;
}

/* ========================================
   CONTENT AREA
   ======================================== */

.cs-single__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 50px 50px 100px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0;
}

/* Main Content */
.cs-single__main {
	width: 780px;
	flex-shrink: 0;
	padding-right: 36px;
	display: flex;
	flex-direction: column;
	gap: 60px;
}

/* Content Sections */
.cs-single__section {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cs-single__heading {
	font-family: 'TWK Everett', sans-serif;
	font-size: 36px;
	font-weight: 500;
	line-height: normal;
	color: #000000;
	margin: 0;
}

.cs-single__body {
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: normal;
	color: #191a23;
}

.cs-single__body p {
	margin: 0 0 16px;
}

.cs-single__body p:last-child {
	margin-bottom: 0;
}

.cs-single__body h3,
.cs-single__body h4,
.cs-single__body strong {
	font-family: 'TWK Everett', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: normal;
	color: #000000;
	margin: 16px 0 0;
}

/* Testimonial Quote */
.cs-single__quote {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
	padding-right: 60px;
}

.cs-single__quote-content {
	display: flex;
	gap: 2px;
	align-items: flex-start;
	width: 580px;
	max-width: 100%;
}

.cs-single__quote-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	margin-top: 2px;
}

.cs-single__quote-text {
	font-family: 'DM Sans', sans-serif;
	font-size: 20px;
	font-weight: 300;
	line-height: normal;
	color: #5172e1;
	margin: 0;
}

.cs-single__quote-attribution {
	display: flex;
	flex-direction: column;
	width: 580px;
	max-width: 100%;
	padding-left: 26px;
}

.cs-single__quote-author {
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	font-weight: 300;
	line-height: normal;
	color: #656672;
}

.cs-single__quote-company {
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	font-weight: 300;
	line-height: normal;
	color: #656672;
}

/* ========================================
   SIDEBAR
   ======================================== */

.cs-single__aside {
	width: 380px;
	flex-shrink: 0;
	position: sticky;
	top: 100px;
}

.cs-single__sidebar-card {
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.15);
	border-radius: 28px;
	padding: 36px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Sidebar Fields */
.cs-single__sidebar-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 12px;
}

.cs-single__sidebar-label {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: #52525b;
}

.cs-single__sidebar-label--heading {
	font-family: 'TWK Everett', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: normal;
	color: #000000;
}

/* Provider Row */
.cs-single__sidebar-provider {
	display: flex;
	align-items: center;
	gap: 20px;
}

.cs-single__sidebar-avatar {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	overflow: hidden;
	background: #3f3f46;
	flex-shrink: 0;
}

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

.cs-single__sidebar-provider-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.cs-single__sidebar-provider-name {
	font-family: 'TWK Everett', sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
	color: #000000;
	word-break: break-word;
	overflow-wrap: break-word;
}

.cs-single__sidebar-provider-link {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: #1c1c1b;
	text-decoration: underline;
	letter-spacing: 0.14px;
}

.cs-single__sidebar-provider-link:hover {
	color: #5172e1;
}

/* Chips & Pills */
.cs-single__sidebar-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cs-single__sidebar-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #000000;
	background: rgba(212, 212, 216, 0.4);
	min-height: 32px;
	padding: 4px 10px;
	border-radius: 8px;
	max-width: 100%;
	overflow-wrap: break-word;
	word-break: break-word;
}

.cs-single__sidebar-chip-logo {
	width: 20px;
	height: 20px;
	border-radius: 4px;
	object-fit: contain;
	flex-shrink: 0;
}

.cs-single__sidebar-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #000000;
	background: #f4f4f5;
	height: 32px;
	padding: 0 12px;
	border-radius: 9999px;
	white-space: nowrap;
}

/* Country with flag */
.cs-single__sidebar-country {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 300;
	color: #000000;
	background: #f4f4f5;
	height: 32px;
	padding: 0 12px 0 6px;
	border-radius: 9999px;
	white-space: nowrap;
}

.cs-single__sidebar-flag {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

/* Source Link */
.cs-single__sidebar-source {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #1c1c1b;
	text-decoration: underline;
	letter-spacing: 0.14px;
}

.cs-single__sidebar-source:hover {
	color: #5172e1;
}

.cs-single__sidebar-source svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

/* ========================================
   RELATED CASE STUDIES
   ======================================== */

.case-study-related {
	background: #F5F1ED url('/wp-content/uploads/2026/01/submit-a-review-bg.svg') center/cover no-repeat;
	padding: 50px 0 64px;
}

.case-study-related__heading {
	font-family: 'TWK Everett', sans-serif;
	font-weight: 500;
	font-size: 28px;
	color: #1a1a2e;
	margin: 0 0 32px;
}

.case-study-related .cs-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.case-study-related .cs-card {
	background: #ffffff;
	border-radius: 28px;
	padding: 24px;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition: box-shadow 0.2s, transform 0.2s;
	height: 480px;
	overflow: hidden;
}

.case-study-related .cs-card:hover {
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
	color: inherit;
}

.case-study-related .cs-card__partner {
	display: flex;
	align-items: center;
	gap: 10px;
}

.case-study-related .cs-card__partner-avatar {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
}

.case-study-related .cs-card__partner-name {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #3f3f46;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.case-study-related .cs-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
}

.case-study-related .cs-card__title {
	font-family: 'TWK Everett', sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	color: #000000;
	margin: 0;
}

.case-study-related .cs-card__excerpt {
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.4;
	color: #52525b;
	margin: 0;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.case-study-related .cs-card__logo-area {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
	flex-shrink: 0;
}

.case-study-related .cs-card__logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 180px;
	height: 90px;
	overflow: hidden;
}

.case-study-related .cs-card__logo-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.case-study-related .cs-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.case-study-related .cs-card__chip {
	display: inline-flex;
	align-items: center;
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #3f3f46;
	background: rgba(212, 212, 216, 0.4);
	height: 32px;
	padding: 0 14px;
	border-radius: 8px;
	white-space: nowrap;
}

.case-study-related .cs-card__flags {
	display: flex;
	align-items: center;
	gap: 4px;
}

.case-study-related .cs-card__flag {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.case-study-related .cs-card__flag-more {
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #71717a;
	margin-left: 2px;
}


/* ========================================
   RESPONSIVE — SINGLE
   ======================================== */

@media (max-width: 1024px) {
	.cs-single__header {
		padding: 100px 40px 40px;
	}


	.cs-single__header-row {
		flex-direction: column;
	}

	.cs-single__header-left {
		width: 100%;
		padding-right: 0;
	}

	.cs-single__header-cta {
		max-width: 480px;
	}

	.cs-single__inner {
		flex-direction: column;
		padding: 0 40px;
	}

	.cs-single__main {
		width: 100%;
		padding-right: 0;
	}

	.cs-single__aside {
		width: 100%;
		position: static;
		margin-top: 48px;
		max-width: 480px;
	}

	.cs-single__quote {
		padding-right: 0;
	}

	.cs-single__quote-content,
	.cs-single__quote-attribution {
		width: 100%;
	}

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

@media (max-width: 768px) {
	.cs-single__header {
		padding: 100px 20px 32px;
		gap: 32px;
	}

	.cs-single__title {
		font-size: 28px;
		letter-spacing: -0.5px;
	}

	.cs-single__header-cta-inner {
		padding: 24px;
		gap: 16px;
	}

	.cs-single__header-cta-title {
		font-size: 20px;
	}

	.cs-single__inner {
		padding: 0 20px;
	}

	.cs-single__main {
		gap: 40px;
	}

	.cs-single__heading {
		font-size: 28px;
	}

	.cs-single__quote-text {
		font-size: 16px;
	}

	.cs-single__sidebar-card {
		padding: 24px;
	}

	.case-study-related {
		padding: 40px 0;
	}

	.case-study-related__heading {
		font-size: 22px;
	}

	.case-study-related .cs-grid {
		grid-template-columns: 1fr;
	}

	.case-study-related .cs-card {
		height: auto;
		min-height: 320px;
	}
}


/* ========================================
   CASE STUDY ARCHIVE
   ======================================== */

.cs-archive {
	background: #FCFAF7;
	padding: 140px 0 80px;
	min-height: 100vh;
}

.cs-archive__container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 50px;
}

/* Header */
.cs-archive__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
}

.cs-archive__count {
	font-family: 'TWK Everett', sans-serif;
	font-size: 24px;
	font-weight: 500;
	color: #000000;
	margin: 0;
}

/* Tabs */
.cs-archive__tabs {
	display: flex;
	align-items: center;
	gap: 4px;
	background: rgba(255, 255, 255, 0.6);
	border-radius: 16px;
	padding: 4px;
}

.cs-archive__tab {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #71717a;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 12px;
	transition: all 0.2s;
	white-space: nowrap;
}

.cs-archive__tab:hover {
	color: #000000;
}

.cs-archive__tab--active {
	background: #000000;
	color: #ffffff;
}

.cs-archive__tab--active:hover {
	color: #ffffff;
}

/* Filters */
.cs-archive__filters {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 32px;
	flex-wrap: wrap;
}

.cs-archive__filter-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.cs-archive__filter-select {
	appearance: none;
	-webkit-appearance: none;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #3f3f46;
	background: rgba(212, 212, 216, 0.4);
	border: none;
	border-radius: 8px;
	height: 40px;
	padding: 0 36px 0 16px;
	cursor: pointer;
	transition: background 0.2s;
}

.cs-archive__filter-select:hover {
	background: rgba(212, 212, 216, 0.6);
}

.cs-archive__filter-chevron {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #71717a;
	width: 16px;
	height: 16px;
}

.cs-archive__filter-clear {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #71717a;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 8px;
	transition: all 0.2s;
}

.cs-archive__filter-clear:hover {
	color: #000000;
	background: rgba(212, 212, 216, 0.3);
}

/* Card Grid */
.cs-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* Card */
.cs-card {
	background: #ffffff;
	border-radius: 28px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s, transform 0.2s;
	min-height: 320px;
}

.cs-card:hover {
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
	color: inherit;
}

/* Card — Partner Row */
.cs-card__partner {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cs-card__partner-avatar {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
}

.cs-card__partner-avatar--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #3f3f46;
	color: #ffffff;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 600;
}

.cs-card__partner-name {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #3f3f46;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Card — Body */
.cs-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
}

.cs-card__title {
	font-family: 'TWK Everett', sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	color: #000000;
	margin: 0;
}

.cs-card__excerpt {
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.4;
	color: #52525b;
	margin: 0;
}

/* Card — Client Logo */
.cs-card__logo-area {
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fafafa;
	border-radius: 12px;
}

.cs-card__logo-wrap {
	width: 180px;
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cs-card__logo-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Card — Tags */
.cs-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cs-card__chip {
	display: inline-flex;
	align-items: center;
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #3f3f46;
	background: rgba(212, 212, 216, 0.4);
	height: 32px;
	padding: 0 14px;
	border-radius: 8px;
	white-space: nowrap;
}

/* Empty State */
.cs-archive__empty {
	grid-column: 1 / -1;
	text-align: center;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	color: #71717a;
	padding: 60px 20px;
}

/* Pagination */
.cs-archive__pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 48px;
	padding-top: 32px;
}

.cs-archive__page-numbers ul {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cs-archive__page-numbers li {
	margin: 0;
}

.cs-archive__page-numbers li a,
.cs-archive__page-numbers li span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #3f3f46;
	text-decoration: none;
	transition: all 0.2s;
}

.cs-archive__page-numbers li a:hover {
	background: rgba(212, 212, 216, 0.4);
}

.cs-archive__page-numbers li span.current {
	background: #347ee5;
	color: #ffffff;
}

.cs-archive__page-nav {
	display: flex;
	align-items: center;
	gap: 16px;
}

.cs-archive__page-nav a {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #3f3f46;
	text-decoration: none;
	transition: color 0.2s;
}

.cs-archive__page-nav a:hover {
	color: #000000;
}

/* Archive Responsive */
@media (max-width: 1024px) {
	.cs-archive__container {
		padding: 0 40px;
	}

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

	.cs-archive__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}

@media (max-width: 768px) {
	.cs-archive {
		padding: 120px 0 60px;
	}

	.cs-archive__container {
		padding: 0 20px;
	}

	.cs-archive__count {
		font-size: 20px;
	}

	.cs-archive__grid {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin: 0 auto;
	}

	.cs-card {
		min-height: auto;
	}

	.cs-archive__pagination {
		flex-direction: column;
		gap: 20px;
	}
}
