/* Single case study (template-parts/case-study/single.php). Same visual
   language as the hubs: dark hero, lime accent, blue eyebrows. */

.itc-cs { color: #0A0E17; }
.itc-cs-wrap { max-width: 1288px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.itc-cs h1, .itc-cs h2, .itc-cs h3 { margin: 0; letter-spacing: -0.02em; }

/* Hero */
.itc-cs-hero {
	color: #fff;
	padding: 56px 0 104px;
	background:
		radial-gradient(560px 380px at 88% 8%, rgba(47,84,255,0.45), transparent 70%),
		radial-gradient(420px 320px at 4% 92%, rgba(198,242,78,0.12), transparent 70%),
		#0A0E17;
}
.itc-cs-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: #8A93A3; margin-bottom: 26px; }
.itc-cs-crumbs a { color: #8A93A3 !important; text-decoration: none; }
.itc-cs-crumbs a:hover { color: #fff !important; }
.itc-cs-crumbs [aria-current] { color: #C6F24E; }
.itc-cs-pill {
	display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 30px;
	border: 1px solid rgba(198,242,78,0.35); background: rgba(198,242,78,0.08);
	color: #C6F24E; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.itc-cs-pill span { width: 7px; height: 7px; border-radius: 50%; background: #C6F24E; }
.itc-cs-hero h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; font-weight: 800; margin-top: 20px !important; max-width: 980px; color: #fff; }
.itc-cs .itc-cs-lead { font-size: 18.5px; line-height: 1.65; color: #AEB6C6; margin: 22px 0 0; max-width: 820px; }
.itc-cs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 36px 0 0; border-top: 1px solid rgba(255,255,255,0.12); }
.itc-cs-facts > div { padding: 18px 20px 0 0; }
.itc-cs-facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #8A93A3; }
.itc-cs-facts dd { margin: 8px 0 0; font-size: 15.5px; font-weight: 600; line-height: 1.45; color: #fff; }

/* Cover */
.itc-cs-cover { margin: -110px 0 0; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(10,14,23,0.6); background: #0B1020; }
.itc-cs-cover img { display: block; width: 100%; height: auto; }

/* Highlights */
.itc-cs-highlights {
	position: relative; z-index: 1; margin-top: -56px; box-shadow: 0 30px 60px -36px rgba(10,14,23,0.45);
	display: grid; grid-template-columns: repeat(4, 1fr);
	border: 1px solid #E7EAF1; border-radius: 18px; background: #fff;
}
.itc-cs-highlights > div { padding: 22px 26px; display: flex; flex-direction: column; gap: 4px; }
.itc-cs-highlights > div + div { border-left: 1px solid #E7EAF1; }
.itc-cs-highlights strong { font-family: 'Archivo', sans-serif; font-size: 26px; font-weight: 800; color: #2F54FF; letter-spacing: -0.02em; }
.itc-cs-highlights span { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #5F6878; }

/* Layout */
.itc-cs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-top: 64px; padding-bottom: 40px; }
/* The whole rail (contents + CTA card) sticks as ONE block, so the card
   stays stacked under the contents instead of scrolling over it. */
.itc-cs-rail { position: sticky; top: 110px; align-self: start; max-height: calc(100vh - 130px); overflow-y: auto; scrollbar-width: none; }
.itc-cs-rail::-webkit-scrollbar { display: none; }
.itc-cs-rail nav { margin-bottom: 24px; }
.itc-cs-rail-t { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #5F6878; margin-bottom: 12px; }
.itc-cs-rail ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid #EEF1FF; }
.itc-cs-rail ol a { display: flex; gap: 10px; padding: 8px 0 8px 14px; font-size: 14.5px; color: #3A4250 !important; text-decoration: none; }
.itc-cs-rail ol a span { font-weight: 700; color: #8A93A3; font-size: 12.5px; padding-top: 2px; }
.itc-cs-rail ol a:hover { color: #2F54FF !important; }
.itc-cs-rail-cta { padding: 20px; border-radius: 16px; background: #0A0E17; color: #fff; }
.itc-cs-rail nav + .itc-cs-rail-cta { margin-top: 24px; }
.itc-cs-rail-cta strong { display: block; font-size: 16px; }
.itc-cs-rail-cta p { font-size: 13.5px; color: #AEB6C6; margin: 6px 0 12px; line-height: 1.5; }
.itc-cs-rail-cta a { font-size: 14px; font-weight: 700; color: #C6F24E !important; text-decoration: none; }

/* Body content */
.itc-cs-body { min-width: 0; max-width: 820px; font-size: 17px; line-height: 1.75; color: #3A4250; }
:where(.itc-cs-body) p { margin: 0; }
.itc-cs .itc-cs-body > * + * { margin-top: 18px; }
.itc-cs .itc-cs-body > h2 + p { margin-top: 16px; }
.itc-cs .itc-cs-body .itc-cs-eyebrow {
	margin-top: 64px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #2F54FF;
}
.itc-cs-body > .itc-cs-eyebrow:first-child { margin-top: 0; }
.itc-cs-body h2 { margin-top: 8px !important; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; font-weight: 800; color: #0A0E17; scroll-margin-top: 110px; }
.itc-cs .itc-cs-body > h3 + p { margin-top: 10px; }
.itc-cs-body h3 { margin-top: 32px; font-size: 21px; line-height: 1.3; font-weight: 700; color: #0A0E17; }
.itc-cs-body strong { color: #0A0E17; }

.itc-cs-body .itc-cs-figure { margin: 32px 0 !important; }
.itc-cs-body .itc-cs-figure img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 30px 60px -36px rgba(10,14,23,0.55); }

.itc-cs-body .itc-cs-checks { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.itc-cs-body .itc-cs-checks li {
	position: relative; padding: 18px 20px 18px 52px; border: 1px solid #E7EAF1; border-radius: 14px; background: #fff;
	font-size: 15px; line-height: 1.6;
}
.itc-cs-body .itc-cs-checks li::before {
	content: "!"; position: absolute; left: 18px; top: 18px; width: 22px; height: 22px; border-radius: 7px;
	display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #B42318; background: #FEE4E2;
}
.itc-cs-body .itc-cs-checks strong { display: block; margin-bottom: 4px; }

.itc-cs-body .itc-cs-quote {
	margin: 36px 0 !important; padding: 30px 34px; border: 0; border-radius: 20px; color: #fff;
	background: radial-gradient(360px 220px at 90% 0%, rgba(47,84,255,0.5), transparent 70%), #0A0E17;
}
.itc-cs-body .itc-cs-quote p { font-family: 'Archivo', sans-serif; font-size: 22px; line-height: 1.45; font-weight: 600; color: #fff; }
.itc-cs-body .itc-cs-quote p::before { content: "\201C"; color: #C6F24E; margin-right: 2px; }
.itc-cs-body .itc-cs-quote p::after { content: "\201D"; color: #C6F24E; }
.itc-cs-body .itc-cs-quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 14px; color: #AEB6C6; }

.itc-cs-body .itc-cs-glance { margin: 28px 0 0; border: 1px solid #E7EAF1; border-radius: 18px; background: #F8FAFE; overflow: hidden; }
.itc-cs-body .itc-cs-glance > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; padding: 16px 22px; }
.itc-cs-body .itc-cs-glance > div + div { border-top: 1px solid #E7EAF1; }
.itc-cs-body .itc-cs-glance dt { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #2F54FF; padding-top: 3px; }
.itc-cs-body .itc-cs-glance dd { margin: 0; font-size: 15.5px; line-height: 1.6; color: #1B2230; }

.itc-cs-body .itc-cs-cards { margin-top: 26px; }
/* Classic themes wrap a group's children in __inner-container: grid that. */
.itc-cs-body .itc-cs-cards,
.itc-cs-body .itc-cs-cards > .wp-block-group__inner-container { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.itc-cs-body .itc-cs-cards:has(> .wp-block-group__inner-container) { display: block; }
.itc-cs-body .itc-cs-cards > .wp-block-group__inner-container > *,
.itc-cs-body .itc-cs-card > .wp-block-group__inner-container > * { margin: 0; }
.itc-cs-body .itc-cs-card .wp-block-group__inner-container > * + * { margin-top: 8px; }
.itc-cs-body .itc-cs-card { padding: 22px 24px; border: 1px solid #E7EAF1; border-radius: 16px; background: #fff; }
.itc-cs-body .itc-cs-card > * + * { margin-top: 8px; }
.itc-cs-body .itc-cs-card h3 { margin-top: 0; font-size: 18px; }
.itc-cs-body .itc-cs-card p { font-size: 15px; line-height: 1.6; }
.itc-cs-body .itc-cs-results .itc-cs-card { border-top: 3px solid #C6F24E; }
.itc-cs-body .itc-cs-stack .itc-cs-card h3 { color: #2F54FF; }

/* CTA */
.itc-cs-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
	margin: 40px 0 0; padding: 44px 48px; border-radius: 24px; color: #fff;
	background: radial-gradient(420px 260px at 92% 0%, rgba(47,84,255,0.5), transparent 70%), #0A0E17;
}
.itc-cs-cta > div:first-child { max-width: 640px; }
.itc-cs-cta-eb { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #C6F24E; }
.itc-cs-cta h2 { font-size: clamp(24px, 2.6vw, 32px); color: #fff; margin-top: 10px; }
.itc-cs-cta p { font-size: 15.5px; color: #AEB6C6; line-height: 1.6; margin: 12px 0 0; }
.itc-cs-cta-btns { display: flex; flex-direction: column; gap: 12px; }
.itc-cs-btn { display: inline-flex; justify-content: center; padding: 15px 26px; border-radius: 12px; font-weight: 700; font-size: 15.5px; text-decoration: none; }
.itc-cs-btn-lime { background: #C6F24E; color: #0A0E17 !important; }
.itc-cs-btn-ghost { border: 1px solid rgba(255,255,255,0.22); color: #fff !important; }

/* More */
.itc-cs-more { padding-top: 72px; padding-bottom: 88px; }
.itc-cs-more-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.itc-cs-more-head h2 { font-size: 30px; font-weight: 800; }
.itc-cs-more-head a { font-weight: 700; color: #2F54FF !important; text-decoration: none; }
.itc-cs-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.itc-cs-more-card { display: block; border: 1px solid #E7EAF1; border-radius: 18px; overflow: hidden; background: #fff; color: #0A0E17 !important; text-decoration: none; }
.itc-cs-more-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #0B1020; height: auto; }
.itc-cs-more-ind { display: block; margin: 18px 20px 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #5F6878; font-weight: 700; }
.itc-cs-more-card h3 { margin: 8px 20px 22px; font-size: 18px; line-height: 1.35; }
.itc-cs > .itc-cs-wrap:last-child:not(.itc-cs-more) { padding-bottom: 88px; }

/* Responsive */
@media (max-width: 1024px) {
	.itc-cs-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.itc-cs-rail { position: static; max-height: none; overflow: visible; }
	.itc-cs-rail nav { display: none; }
	.itc-cs-rail { order: 2; }
	.itc-cs-facts { grid-template-columns: 1fr 1fr; }
	.itc-cs-more-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
	.itc-cs-wrap { padding: 0 16px; }
	.itc-cs-hero { padding: 36px 0 84px; }
	.itc-cs-highlights { margin-top: -48px; }
	.itc-cs-lead { font-size: 16.5px; }
	.itc-cs-cover { margin-top: -60px; border-radius: 16px; }
	.itc-cs-highlights { grid-template-columns: 1fr 1fr; }
	.itc-cs-highlights > div:nth-child(3) { border-left: 0; }
	.itc-cs-highlights > div:nth-child(n+3) { border-top: 1px solid #E7EAF1; }
	.itc-cs-highlights > div { padding: 16px 18px; }
	.itc-cs-highlights strong { font-size: 22px; }
	.itc-cs-layout { padding-top: 40px; }
	.itc-cs-body { font-size: 16px; }
	.itc-cs-body .itc-cs-checks,
	.itc-cs-body .itc-cs-cards,
	.itc-cs-body .itc-cs-cards > .wp-block-group__inner-container { grid-template-columns: 1fr; }
	.itc-cs-body .itc-cs-glance > div { grid-template-columns: 1fr; gap: 4px; }
	.itc-cs-body .itc-cs-quote { padding: 24px; }
	.itc-cs-body .itc-cs-quote p { font-size: 19px; }
	.itc-cs-cta { padding: 30px 22px; }
	.itc-cs-cta-btns { width: 100%; }
	.itc-cs-more-grid { grid-template-columns: 1fr; }
}

/* Numbered delivery steps (itc_cs_block_steps). */
.itc-cs-body .itc-cs-steps { list-style: none; padding: 0; counter-reset: itcstep; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.itc-cs-body .itc-cs-steps li {
	counter-increment: itcstep; position: relative; padding: 16px 18px 16px 62px;
	border: 1px solid #E7EAF1; border-radius: 14px; background: #fff; font-size: 15px; line-height: 1.55;
}
.itc-cs-body .itc-cs-steps li::before {
	content: counter(itcstep, decimal-leading-zero); position: absolute; left: 16px; top: 15px;
	width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
	font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 13px; color: #0A0E17; background: #C6F24E;
}
.itc-cs-body .itc-cs-steps strong { display: block; margin-bottom: 2px; }
@media (max-width: 720px) { .itc-cs-body .itc-cs-steps { grid-template-columns: 1fr; } }
