/* Cases page — same system as Videos; image cards instead of video */

html:has(.soryqex-cases-page),
body.soryqex-template-cases,
body.soryqex-template-cases .site,
body.soryqex-template-cases .site-content,
body.soryqex-template-cases #content,
body.soryqex-template-cases .entry-content,
body.soryqex-template-cases article,
body.soryqex-template-cases #primary {
	background-color: #ffffff !important;
	background-image: none !important;
}

body.soryqex-template-cases #content.site-content > .ast-container,
body.soryqex-template-cases .site-content > .ast-container,
body.soryqex-template-cases #primary,
body.soryqex-template-cases .site-main,
body.soryqex-template-cases article,
body.soryqex-template-cases.ast-separate-container .ast-article-single {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.soryqex-template-cases .entry-header,
body.soryqex-template-cases .entry-title,
body.page-id-601 .entry-header,
body.page-id-601 .entry-title {
	display: none !important;
}

body.page-id-601 .entry-content > .soryqex-page-hero,
body.soryqex-template-cases .soryqex-page-hero {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	height: 600px;
	min-height: 600px;
	max-height: 600px;
	padding: 0 24px;
	box-sizing: border-box;
	overflow: hidden;
	display: grid;
	place-items: center;
	text-align: center;
	color: #fff;
	background-color: #141830;
	isolation: isolate;
}

body.page-id-601 .soryqex-page-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	z-index: 0;
}

body.page-id-601 .soryqex-page-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(15, 18, 32, 0.48) 0%,
		rgba(15, 18, 32, 0.42) 42%,
		rgba(15, 18, 32, 0.18) 72%,
		rgba(255, 255, 255, 0) 100%
	);
	pointer-events: none;
}

body.page-id-601 .soryqex-page-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.35) 35%,
		rgba(255, 255, 255, 0.78) 68%,
		#ffffff 100%
	);
}

body.page-id-601 .soryqex-page-hero__inner {
	position: relative;
	z-index: 3;
	max-width: 820px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

body.page-id-601 .soryqex-page-hero__title {
	margin: 0 0 18px;
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1.12;
	font-weight: 700;
	color: #fff;
}

body.page-id-601 .soryqex-page-hero__lead {
	margin: 0 auto;
	max-width: 680px;
	font-size: 17px;
	line-height: 1.8;
	color: #fff;
}

body.page-id-601 .soryqex-page-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 28px;
}

body.page-id-601 .soryqex-page-hero__ctas .btn {
	margin-top: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 24px;
	border-radius: 10px;
	border: 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.page-id-601 .soryqex-page-hero__ctas .btn-primary {
	background: #dd183b;
	color: #fff !important;
	box-shadow: 0 8px 20px rgba(221, 24, 59, 0.22);
}

body.page-id-601 .soryqex-page-hero__ctas .btn-primary:hover {
	background: #c41434;
	transform: translateY(-1px);
}

body.page-id-601 .soryqex-page-hero__ctas .btn-ghost {
	background: transparent;
	color: #fff !important;
	border: 1.5px solid rgba(255, 255, 255, 0.85);
}

body.page-id-601 .soryqex-page-hero__ctas .btn-ghost:hover {
	background: rgba(255, 255, 255, 0.12);
}

body.page-id-601 .entry-content > .soryqex-cases-page,
body.page-id-601 .soryqex-cases-page {
	margin: 0 auto;
	padding: 28px 24px 88px;
	background: transparent;
	width: 100%;
	max-width: 1560px;
	box-sizing: border-box;
}

body.page-id-601 .soryqex-cases-grid {
	width: 100%;
	max-width: none;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 28px;
	list-style: none;
	padding: 0;
	scroll-margin-top: 96px;
}

body.page-id-601 .soryqex-case-card {
	margin: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e6edf5;
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(15, 23, 40, 0.06);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.page-id-601 .soryqex-case-card:hover {
	transform: translateY(-3px);
	border-color: #d4deea;
	box-shadow: 0 16px 36px rgba(15, 23, 40, 0.1);
}

body.page-id-601 .soryqex-case-card__media {
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	overflow: visible;
	background: #f4f7fa;
}

body.page-id-601 .soryqex-case-card__img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	object-position: center;
}

body.page-id-601 .soryqex-case-card:hover .soryqex-case-card__img {
	transform: none;
}

body.page-id-601 .soryqex-case-card__body {
	position: relative;
	padding: 20px 22px 22px;
}

body.page-id-601 .soryqex-case-card__body h2 {
	margin: 0 0 8px;
	padding-right: 42px;
	color: #19487c;
	font-size: 1.12rem;
	font-weight: 650;
	line-height: 1.35;
	text-transform: none;
}

body.page-id-601 .soryqex-case-card__body p {
	margin: 0;
	color: #5b6778;
	font-size: 0.98rem;
	line-height: 1.65;
}

body.page-id-601 .soryqex-case-card__index {
	position: absolute;
	top: 18px;
	right: 20px;
	color: #94a0b0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

body.page-id-601 .soryqex-cases-empty {
	max-width: 1560px;
	margin: 24px auto;
	padding: 0 24px;
	color: #5b6778;
}

/* Beat old 3-col cases CSS in style.css */
body.page-id-601 .soryqex-cases-page__hero {
	display: none !important;
}

body.soryqex-template-cases.ast-theme-transparent-header #masthead .main-header-menu .menu-link,
body.soryqex-template-cases.ast-theme-transparent-header #masthead .ast-builder-menu .main-header-menu .menu-link,
body.soryqex-template-cases.ast-theme-transparent-header #masthead .site-title a {
	color: #1f2437 !important;
}

@media (max-width: 720px) {
	body.page-id-601 .entry-content > .soryqex-page-hero,
	body.soryqex-template-cases .soryqex-page-hero {
		height: 420px;
		min-height: 420px;
		max-height: 420px;
		padding: 0 16px;
	}

	body.page-id-601 .soryqex-cases-page {
		padding: 16px 16px 48px;
	}

	body.page-id-601 .soryqex-cases-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}
