/* Service Details widget */
.aes-service {
	width: 100%;
	box-sizing: border-box;
	padding: 24px 20px 60px;
}

.aes-service *,
.aes-service *::before,
.aes-service *::after {
	box-sizing: border-box;
}

.aes-inner {
	max-width: 1260px;
	margin: 0 auto;
}

/* Banner */
.aes-banner {
	margin-bottom: 32px;
	overflow: hidden;
	border-radius: 50px;
	line-height: 0;
}

.aes-banner img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 50px;
}

/* Title & intro */
.aes-title {
	margin: 0 0 20px;
	color: #000;
	font-size: clamp(28px, 3.4vw, 48px);
	font-weight: 500;
	line-height: 1.2;
}

.aes-intro {
	margin: 0 0 28px;
	color: #555;
	font-weight: 700;
	line-height: 1.6;
}

/* Rich content */
.aes-content {
	color: #666;
	line-height: 1.8;
}

.aes-content > :first-child {
	margin-top: 0;
}

.aes-content p,
.aes-content ul,
.aes-content ol {
	margin: 0 0 24px;
}

.aes-content h1,
.aes-content h2,
.aes-content h3,
.aes-content h4,
.aes-content h5,
.aes-content h6 {
	margin: 32px 0 14px;
	color: #000;
	font-weight: 500;
	line-height: 1.3;
}

.aes-content h2 {
	font-size: clamp(22px, 2.4vw, 32px);
}

.aes-content h3 {
	font-size: clamp(19px, 2vw, 26px);
}

.aes-content ul,
.aes-content ol {
	padding-left: 24px;
}

.aes-content li {
	margin-bottom: 8px;
}

.aes-content a {
	color: #B5179E;
	text-decoration: none;
}

.aes-content a:hover {
	text-decoration: underline;
}

.aes-content img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
}

.aes-content table {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 0 28px;
	overflow-x: auto;
	border-collapse: collapse;
}

.aes-content th,
.aes-content td {
	padding: 12px 16px;
	border: 1px solid #E2E8F0;
	text-align: left;
	vertical-align: top;
}

.aes-content th {
	background: #3B0A45;
	color: #fff;
	font-weight: 600;
}

/* CTA band */
.aes-cta {
	margin-top: 56px;
	padding: 56px 32px;
	text-align: center;
	border-radius: 30px;
	background: radial-gradient(ellipse at top left, #FFFFFF 0%, #F5D0FE 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.aes-cta-heading {
	margin: 0 0 14px;
	color: #0F172A;
	line-height: 1.3;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.aes-cta-text {
	max-width: 680px;
	margin: 0 auto 28px;
	color: #334155;
	line-height: 1.6;
}

.aes-cta-heading:last-child,
.aes-cta-text:last-child {
	margin-bottom: 0;
}

.aes-cta-btn {
	display: inline-block;
	padding: 14px 36px;
	border-radius: 999px;
	background: #B5179E;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(181, 23, 158, 0.25);
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.aes-cta-btn:hover,
.aes-cta-btn:focus {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(181, 23, 158, 0.35);
}

/* Tablet */
@media (max-width: 1024px) {
	.aes-banner,
	.aes-banner img {
		border-radius: 36px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.aes-service {
		padding: 16px 16px 40px;
	}

	.aes-banner {
		margin-bottom: 22px;
	}

	.aes-banner,
	.aes-banner img {
		border-radius: 24px;
	}

	.aes-cta {
		margin-top: 36px;
		padding: 36px 20px;
		border-radius: 22px;
	}

	.aes-cta-btn {
		width: 100%;
		text-align: center;
	}
}

/* ---------- Single case study page ---------- */
.ag-single-case .ag-single-nobanner {
	background: linear-gradient(135deg, #3b0944, #71116f);
}

.ag-single-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
	color: rgba(255, 255, 255, .55);
}

.ag-single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
}

.ag-single-pill {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: #fbe6f3;
	color: #8a1478;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.ag-single-pill:hover {
	background: #b3179c;
	color: #fff;
}

.ag-single-kicker {
	color: #b3179c;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ag-single-tags {
	margin: -8px 0 24px;
	color: #967b9c;
	font-size: 13px;
}

.ag-single-case .ag-related {
	padding: 64px 0 0;
}

.ag-single-case .ag-related .ag-grid {
	--ag-min: 260px;
	gap: 22px;
}

@media (max-width: 767px) {
	.ag-single-case .ag-related {
		padding-top: 44px;
	}

	.ag-single-fallback {
		min-height: 160px;
	}
}
