/**
 * Case studies index and detail pages.
 */

.wc-case-studies {
	background: #fff;
}

.wc-case-studies__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 38px;
}

.wc-case-studies__grid--single {
	grid-template-columns: minmax(0, 460px);
	justify-content: center;
}

.wc-case-studies__grid--double {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 780px;
	margin-right: auto;
	margin-left: auto;
}

.wc-case-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wc-border);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(11, 17, 48, 0.06);
	color: inherit;
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.wc-case-card:hover {
	border-color: rgba(29, 78, 216, 0.24);
	box-shadow: 0 24px 55px rgba(11, 17, 48, 0.12);
	transform: translateY(-4px);
}

.wc-case-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eef3ff;
}

.wc-case-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.4s ease;
}

.wc-case-card:hover .wc-case-card__media img {
	transform: scale(1.03);
}

.wc-case-card__badge {
	position: absolute;
	left: 16px;
	bottom: 16px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	background: rgba(11, 17, 48, 0.82);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	backdrop-filter: blur(8px);
}

.wc-case-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 22px 20px;
}

.wc-case-card__meta {
	margin-bottom: 9px;
	color: var(--wc-blue);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.wc-case-card__title {
	margin-bottom: 10px;
	color: var(--wc-navy);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.wc-case-card__summary {
	margin-bottom: 20px;
	color: #5b6478;
	font-size: 14px;
	line-height: 1.65;
}

.wc-case-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px 18px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid rgba(17, 26, 66, 0.08);
}

.wc-case-card__stat {
	display: grid;
	gap: 1px;
}

.wc-case-card__stat strong {
	color: var(--wc-navy);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.wc-case-card__stat small {
	color: #5b6678;
	font-size: 10.5px;
	line-height: 1.2;
}

.wc-case-card__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-left: auto;
	color: var(--wc-blue);
	font-size: 12.5px;
	font-weight: 700;
}

.wc-case-card__link i {
	font-size: 10px;
	transition: transform 0.2s ease;
}

.wc-case-card:hover .wc-case-card__link i {
	transform: translateX(3px);
}

.wc-case-studies__cta {
	margin-top: 34px;
	text-align: center;
}

/* Detail page */
.wc-case-hero {
	position: relative;
	padding: 190px 0 80px;
	overflow: hidden;
	background: radial-gradient(circle at 85% 20%, rgba(29, 78, 216, 0.42), transparent 40%), var(--wc-navy);
	color: #fff;
}

.wc-case-hero__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 34px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.wc-case-hero__back:hover {
	color: #fff;
}

.wc-case-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 310px;
	align-items: end;
	gap: 46px;
}

.wc-case-hero__content .wc-eyebrow {
	margin-bottom: 16px;
}

.wc-case-hero__title {
	max-width: 880px;
	margin: 0 0 18px;
	color: #fff !important;
	font-size: clamp(34px, 4.6vw, 58px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.wc-case-hero .wc-case-hero__title {
	color: #fff !important;
}

.wc-case-hero__lead {
	max-width: 760px;
	margin: 0 0 24px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 17px;
	line-height: 1.75;
}

.wc-case-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
}

.wc-case-hero__meta a,
.wc-case-hero__meta span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 13px;
	text-decoration: none;
}

.wc-case-hero__meta a:hover {
	color: #ffc107;
}

.wc-case-hero__meta i {
	color: #8fb0ff;
}

.wc-case-hero__aside {
	display: grid;
	gap: 7px;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(8px);
	transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.wc-case-hero__aside:hover {
	border-color: rgba(255, 255, 255, 0.32);
	background: rgba(255, 255, 255, 0.13);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
	transform: translateY(-3px);
}

.wc-case-hero__kicker {
	color: #8fb0ff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wc-case-hero__result {
	color: #fff;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.15;
}

.wc-case-hero__period {
	margin-bottom: 14px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
}

.wc-case-hero__aside .wc-btn {
	justify-content: center;
	width: 100%;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wc-case-hero__aside .wc-btn:hover {
	box-shadow: 0 14px 28px rgba(29, 78, 216, 0.42);
	transform: translateY(-2px);
}

.wc-case-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 46px;
}

.wc-case-stat {
	display: grid;
	gap: 5px;
	padding: 18px 20px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.06);
	transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.wc-case-stat:hover {
	border-color: rgba(143, 176, 255, 0.5);
	background: rgba(255, 255, 255, 0.12);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
	transform: translateY(-3px);
}

.wc-case-stat:hover strong {
	color: #ffc107;
}

.wc-case-stat strong {
	color: #fff;
	font-size: 27px;
	font-weight: 700;
	line-height: 1;
}

.wc-case-stat span {
	color: rgba(255, 255, 255, 0.82);
	font-size: 12.5px;
	font-weight: 600;
}

.wc-case-stat small {
	color: rgba(255, 255, 255, 0.48);
	font-size: 11px;
	line-height: 1.3;
}

.wc-case-visual {
	padding-top: 56px;
	background: var(--wc-light);
}

.wc-case-frame {
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(17, 26, 66, 0.1);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 30px 70px rgba(11, 17, 48, 0.14);
}

.wc-case-frame__bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 18px;
	border-bottom: 1px solid rgba(17, 26, 66, 0.08);
	background: #f5f8ff;
}

.wc-case-frame__dots {
	display: inline-flex;
	gap: 5px;
}

.wc-case-frame__dots i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #c9d3e8;
}

.wc-case-frame__dots i:first-child {
	background: #ffb4a8;
}

.wc-case-frame__dots i:nth-child(2) {
	background: #ffd88a;
}

.wc-case-frame__dots i:nth-child(3) {
	background: #9ddfb0;
}

.wc-case-frame__url {
	color: #6b7280;
	font-size: 12px;
	font-weight: 500;
}

.wc-case-frame img {
	display: block;
	width: 100%;
	height: auto;
}

.wc-case-caption {
	margin: 14px 0 0;
	padding: 0 18px 16px;
	color: #5b6678;
	font-size: 12px;
	text-align: center;
}

.wc-case-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 54px;
	align-items: start;
}

.wc-case-content h2 {
	margin: 38px 0 14px;
	color: var(--wc-navy);
	font-size: 28px;
	line-height: 1.2;
}

.wc-case-content h2:first-child {
	margin-top: 0;
}

.wc-case-content p {
	margin: 0 0 17px;
	color: #4b5563;
	font-size: 15.5px;
	line-height: 1.85;
}

.wc-case-quote {
	margin: 32px 0 0;
	padding: 24px 26px;
	border-left: 4px solid var(--wc-blue);
	border-radius: 0 14px 14px 0;
	background: #f4f8ff;
}

.wc-case-quote p {
	margin: 0 0 12px;
	color: var(--wc-navy);
	font-size: 16px;
	font-style: italic;
	font-weight: 500;
	line-height: 1.7;
}

.wc-case-quote cite {
	color: #6b7280;
	font-size: 12.5px;
	font-style: normal;
	font-weight: 600;
}

.wc-case-sidebar {
	position: sticky;
	top: 110px;
	display: grid;
	gap: 18px;
}

.wc-case-sidebar__card,
.wc-case-sidebar__cta {
	padding: 22px;
	border: 1px solid var(--wc-border);
	border-radius: 16px;
	background: #fff;
}

.wc-case-sidebar__card h3,
.wc-case-sidebar__cta h3 {
	margin: 0 0 14px;
	color: var(--wc-navy);
	font-size: 17px;
	line-height: 1.3;
}

.wc-case-facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 14px;
	margin: 0;
}

.wc-case-facts dt {
	color: #5b6678;
	font-size: 11.5px;
	font-weight: 600;
}

.wc-case-facts dd {
	margin: 0;
	color: var(--wc-navy);
	font-size: 12.5px;
	font-weight: 600;
	text-align: right;
}

.wc-case-facts a {
	color: var(--wc-blue);
	text-decoration: none;
}

.wc-case-service-links {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wc-case-service-links a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 10px 12px;
	border: 1px solid rgba(17, 26, 66, 0.08);
	border-radius: 10px;
	background: #f8fbff;
	color: var(--wc-navy);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.wc-case-service-links a:hover {
	border-color: var(--wc-blue);
	background: var(--wc-blue);
	color: #fff;
}

.wc-case-service-links a i:first-child {
	color: var(--wc-blue);
}

.wc-case-service-links a:hover i {
	color: #fff;
}

.wc-case-service-links a i:last-child {
	margin-left: auto;
	font-size: 10px;
}

.wc-case-sidebar__cta {
	background: var(--wc-navy);
	color: #fff;
}

.wc-case-sidebar__cta h3 {
	color: #fff;
}

.wc-case-sidebar__cta p {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 13px;
	line-height: 1.65;
}

.wc-case-sidebar__eyebrow {
	display: block;
	margin-bottom: 8px;
	color: #8fb0ff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wc-case-sidebar__cta .wc-btn {
	justify-content: center;
	width: 100%;
}

@media (max-width: 1024px) {
	.wc-case-studies__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wc-case-studies__grid--single {
		grid-template-columns: minmax(0, 460px);
	}

	.wc-case-studies__grid--double {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wc-case-hero__grid {
		grid-template-columns: 1fr;
	}

	.wc-case-hero__aside {
		max-width: 360px;
	}

	.wc-case-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wc-case-layout {
		grid-template-columns: 1fr;
	}

	.wc-case-sidebar {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.wc-case-studies__grid,
	.wc-case-studies__grid--single,
	.wc-case-studies__grid--double,
	.wc-case-stats,
	.wc-case-sidebar {
		grid-template-columns: 1fr;
	}

	.wc-case-hero {
		padding: 160px 0 60px;
	}

	.wc-case-visual {
		padding-top: 38px;
	}

	.wc-case-hero__title {
		font-size: 34px;
	}

	.wc-case-hero__lead {
		font-size: 15.5px;
	}

	.wc-case-card__title {
		font-size: 20px;
	}

	.wc-case-card__link {
		margin-left: 0;
	}
}
