/* Certainty Case Studies page — scoped to .ccs-page */
.ccs-page {
	--ccs-brand: #6226d9;
	--ccs-brand-2: #3b82f6;
	--ccs-cyan: #40d9f1;
	--ccs-navy: #0f172a;
	--ccs-text: #4b5563;
	--ccs-muted: #6b7280;
	--ccs-bg: #ffffff;
	--ccs-white: #ffffff;
	--ccs-radius: 20px;
	--ccs-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
	--ccs-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	font-family: var(--ccs-font);
	color: var(--ccs-text);
	line-height: 1.6;
	overflow-x: hidden;
	background: var(--ccs-bg);
}

.ccs-page * { box-sizing: border-box; }

.ccs-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* Header — Our Work style: transparent over hero before scroll */
body.cert-case-studies-page .iteck-custom-header,
body.cert-case-studies-page .cert-case-studies-header {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
	z-index: 999;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck),
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .elementor-section,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .elementor-container,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .stuck-nav {
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

body.cert-case-studies-page .iteck-custom-header .stuck-nav > .container-fluid {
	border-bottom: none !important;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .navigation > li:not(.headerbtn) > a {
	color: #fff !important;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .navigation > li:not(.headerbtn) > a:hover,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .navigation > li > a[href*="/case-studies"] {
	color: #fff !important;
	opacity: 0.92 !important;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .navigation > li.menu-item-has-children > a::after {
	color: rgba(255, 255, 255, 0.9) !important;
}

body.cert-case-studies-page .iteck-custom-header .menu-wrapper ul li ul,
body.cert-case-studies-page .iteck-custom-header .navigation .sub-menu {
	background: #fff !important;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
}

body.cert-case-studies-page .iteck-custom-header .navigation .sub-menu li a,
body.cert-case-studies-page .iteck-custom-header .menu-wrapper .menu ul.sub-menu li a {
	color: #333 !important;
}

body.cert-case-studies-page .iteck-custom-header .navigation .sub-menu li a:hover,
body.cert-case-studies-page .iteck-custom-header .menu-wrapper .menu ul.sub-menu li a:hover,
body.cert-case-studies-page .iteck-custom-header .navigation .sub-menu li.current-menu-item a,
body.cert-case-studies-page .iteck-custom-header .menu-wrapper .menu ul.sub-menu li.current-menu-item a {
	color: #6226d9 !important;
	opacity: 1 !important;
}

body.cert-case-studies-page .iteck-custom-header .navigation li.menu-item-has-children li.menu-item-has-children > a::after {
	color: #666 !important;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .headerbtn a,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .headerbtn a .iteck-button-text {
	color: #777 !important;
	background: #fff !important;
	background-image: none !important;
	border: 2px solid #fff !important;
	border-radius: 10px !important;
	padding: 10px 20px !important;
	transition: opacity 0.2s linear;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .headerbtn a:hover,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .headerbtn a:hover .iteck-button-text {
	opacity: 0.8;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .headerbtn a,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .headerbtn a .iteck-button-text,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .headerbtn .iteck-button-text {
	background: var(--e-global-color-primary, #6226d9) !important;
	background-image: linear-gradient(
		90deg,
		var(--e-global-color-primary, #6226d9) 0%,
		var(--e-global-color-secondary, #40d9f1) 100%
	) !important;
	background-color: transparent !important;
	color: #fff !important;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .headerbtn a:hover,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .headerbtn a:hover .iteck-button-text {
	color: #fff !important;
	opacity: 0.8;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .custom-logo .custom-logo-light,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .logo-dark,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .logo-default,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .iteck-logo-light {
	display: none !important;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .custom-logo .custom-logo-dark,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .logo-white,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .logo-light,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .iteck-logo-dark {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	max-height: 40px;
	width: auto;
	height: auto;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .hamburger__icon,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .hamburger__icon::before,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top:not(.is-stuck) .hamburger__icon::after {
	background: #fff !important;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck {
	background: #fff !important;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .elementor-section,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .elementor-container,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .stuck-nav {
	background: #fff !important;
	box-shadow: none !important;
	border: none !important;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .stuck-nav > .container-fluid {
	border-bottom: none !important;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .navigation > li:not(.headerbtn) > a {
	color: #1f1f1f !important;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .navigation > li:not(.headerbtn) > a:hover,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .navigation > li > a[href*="/case-studies"] {
	color: #6226d9 !important;
	opacity: 1 !important;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .navigation > li.menu-item-has-children > a::after {
	color: #666 !important;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .custom-logo .custom-logo-dark,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .logo-white,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .iteck-logo-dark {
	display: none !important;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .custom-logo .custom-logo-light,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .logo-dark,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .iteck-logo-light {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	max-height: 40px;
	width: auto;
	height: auto;
}

body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .hamburger__icon,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .hamburger__icon::before,
body.cert-case-studies-page .iteck-custom-header .iteck-sticky-top.is-stuck .hamburger__icon::after {
	background: #1f1f1f !important;
}

/* Hero */
.ccs-hero,
body.cert-case-studies-page #bannerbg.ccs-hero {
	position: relative;
	overflow: visible;
	text-align: center;
	padding: 150px 0 88px;
	background: linear-gradient(120deg, #1d4ed8 0%, #4f46e5 45%, #6226d9 100%) !important;
	z-index: 2;
}

.ccs-hero__decor {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	border-radius: inherit;
}

.ccs-hero__waves {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 55%;
	opacity: 0.9;
}

.ccs-hero__dots {
	position: absolute;
	width: 96px;
	height: 96px;
	opacity: 0.35;
	background-image: radial-gradient(rgba(255, 255, 255, 0.7) 1.5px, transparent 1.6px);
	background-size: 14px 14px;
}

.ccs-hero__dots--left { left: 4%; top: 28%; }
.ccs-hero__dots--right { right: 4%; top: 36%; }

.ccs-hero__inner {
	position: relative;
	z-index: 1;
}

.ccs-hero__title {
	margin: 0 0 14px;
	font-size: clamp(2.4rem, 5vw, 3.4rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: #fff;
}

.ccs-hero__subtitle {
	margin: 0 auto 22px;
	max-width: 640px;
	font-size: clamp(1rem, 1.8vw, 1.125rem);
	font-weight: 400;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.92);
}

.ccs-hero__rule {
	display: block;
	width: 88px;
	height: 3px;
	margin: 0 auto;
	border-radius: 999px;
	background: linear-gradient(90deg, #6226d9 0%, #40d9f1 100%);
}

/* Actions bar — absolute, centered on hero bottom edge */
.ccs-hero__actions {
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: 5;
	width: min(1180px, calc(100% - 48px));
	transform: translate(-50%, 50%);
	pointer-events: none;
}

.ccs-hero__actions .ccs-toolbar {
	pointer-events: auto;
	margin: 0;
}

/* Body clears overlapping half of the toolbar */
.ccs-body {
	position: relative;
	z-index: 1;
	padding: 56px 0 96px;
	margin-top: 0;
	background: var(--ccs-bg);
}

.ccs-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 20px;
	flex-wrap: wrap;
	padding: 16px 18px;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
	margin-bottom: 0;
}

.ccs-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
	flex: 1;
}

.ccs-filter {
	appearance: none;
	border: 1px solid rgba(15, 23, 42, 0.1);
	background: #fff;
	color: #334155;
	font-family: inherit;
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1;
	padding: 11px 16px;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ccs-filter:hover {
	border-color: rgba(98, 38, 217, 0.35);
	color: var(--ccs-brand);
}

.ccs-filter.is-active {
	background: var(--ccs-brand);
	border-color: var(--ccs-brand);
	color: #fff;
	box-shadow: 0 8px 20px rgba(98, 38, 217, 0.28);
}

.ccs-search {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 220px;
	max-width: 280px;
	flex: 0 1 280px;
}

.ccs-search__icon {
	position: absolute;
	left: 14px;
	width: 16px;
	height: 16px;
	color: #94a3b8;
	pointer-events: none;
}

.ccs-search__input {
	width: 100%;
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-radius: 999px;
	padding: 12px 14px 12px 38px;
	font-family: inherit;
	font-size: 0.9rem;
	color: var(--ccs-navy);
	background: #fff;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ccs-search__input::placeholder { color: #94a3b8; }

.ccs-search__input:focus {
	border-color: rgba(98, 38, 217, 0.4);
	box-shadow: 0 0 0 3px rgba(98, 38, 217, 0.12);
}

/* Cards grid */
.ccs-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.ccs-card {
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.06);
	border-radius: var(--ccs-radius);
	overflow: hidden;
	box-shadow: var(--ccs-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ccs-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

.ccs-card.is-hidden { display: none; }

.ccs-card__media {
	position: relative;
	flex: 0 0 auto;
	width: 100%;
	line-height: 0;
	background: #eef4f8;
	overflow: hidden;
	padding: 10px;
	box-sizing: border-box;
}

.ccs-card__media img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	border: 0;
	border-radius: 10px !important;
	object-fit: contain;
	transform: none;
	background: transparent;
	overflow: hidden;
}

.ccs-card--rich {
	min-height: 0;
}

.ccs-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 0;
	font-size: 3.2rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	color: #fff;
	background: linear-gradient(145deg, #7c3aed 0%, #4f46e5 100%);
}

.ccs-card__body {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 18px 20px 20px;
	min-width: 0;
	flex: 1 1 auto;
}

.ccs-card__tag {
	display: inline-flex;
	align-self: flex-start;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin-bottom: 10px;
}

.ccs-card__tag--purple { background: #efe7ff; color: #6226d9; }
.ccs-card__tag--teal { background: #dcfaf5; color: #0f766e; }
.ccs-card__tag--blue { background: #dbeafe; color: #1d4ed8; }
.ccs-card__tag--indigo { background: #e0e7ff; color: #4338ca; }
.ccs-card__tag--violet { background: #f3e8ff; color: #7c3aed; }

.ccs-card__title {
	margin: 0 0 8px;
	font-size: 1.12rem !important;
	font-weight: 800 !important;
	line-height: 1.35 !important;
	letter-spacing: -0.01em;
	color: var(--ccs-navy);
	min-height: calc(1.12rem * 1.35 * 2);
}

.ccs-card__desc {
	margin: 0 0 12px;
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--ccs-muted);
}

.ccs-card__highlights {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.ccs-card__highlights li {
	position: relative;
	padding-left: 14px;
	list-style: none;
	font-size: 0.8rem;
	line-height: 1.4;
	color: #334155;
	font-weight: 600;
}

.ccs-card__highlights li::marker {
	content: "";
}

.ccs-card__highlights li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ccs-brand);
}

.ccs-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--ccs-brand);
	text-decoration: none;
	margin-top: auto;
	transition: gap 0.2s ease, opacity 0.2s ease;
}

.ccs-card__link:hover {
	gap: 10px;
	color: var(--ccs-brand);
	opacity: 0.9;
}

.ccs-empty {
	text-align: center;
	margin: 32px 0 0;
	padding: 28px;
	color: var(--ccs-muted);
	background: #fff;
	border-radius: 16px;
	border: 1px dashed rgba(15, 23, 42, 0.12);
}

/* Reveal */
.ccs-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: calc(var(--i, 0) * 70ms);
}

.ccs-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.ccs-page *, .ccs-page *::before, .ccs-page *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.ccs-reveal { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
	.ccs-hero,
	body.cert-case-studies-page #bannerbg.ccs-hero {
		padding: 120px 0 80px;
	}

	.ccs-hero__actions {
		width: calc(100% - 32px);
	}

	.ccs-body {
		padding-top: 64px;
	}

	.ccs-toolbar {
		border-radius: 24px;
		padding: 16px;
	}

	.ccs-search {
		max-width: none;
		flex: 1 1 100%;
	}
}

@media (max-width: 860px) {
	.ccs-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.ccs-hero,
	body.cert-case-studies-page #bannerbg.ccs-hero {
		padding: 110px 0 72px;
	}

	.ccs-hero__actions {
		width: calc(100% - 24px);
	}

	.ccs-body {
		padding: 72px 0 64px;
	}

	.ccs-toolbar {
		border-radius: 20px;
		gap: 12px;
	}

	.ccs-filter {
		padding: 10px 13px;
		font-size: 0.8rem;
	}

	.ccs-card__body { padding: 20px 18px; }
}

.blank-builder .ccs-page { width: 100%; }

body.cert-case-studies-page .blank-builder {
	margin: 0;
	padding: 0;
}
