/* ===== Ward Service Detail — صفحة الخدمة الداخلية ===== */

/* إلغاء الحاوية المزدوجة من page.php / قالب الـ CPT */
.ward-page-content:has(.ward-service-detail),
.ward-service-single {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.ward-service-single .ward-service-detail {
	margin: 0;
}

.ward-service-detail {
	--sd-accent: #1e9e81;
	background: #fff;
	direction: rtl;
	text-align: right;
}

/* ── Intro ── */
.ward-sd-intro {
	padding: 72px 0 64px;
	background:
		radial-gradient(ellipse 80% 60% at 100% 0%, color-mix(in srgb, var(--sd-accent) 10%, transparent), transparent 70%),
		#fff;
}

.ward-sd-intro-inner {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 48px;
	align-items: center;
}

.ward-sd-badge {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	color: #9a7b2e;
	background: #f3e8c8;
	padding: 6px 16px;
	border-radius: 20px;
	margin-bottom: 14px;
}

.ward-service-detail-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #c9a24b;
	margin-bottom: 10px;
}

.ward-service-detail-title {
	margin: 0 0 18px;
	font-size: clamp(26px, 3.2vw, 36px);
	font-weight: 800;
	line-height: 1.4;
	color: #091037;
}

.ward-sd-intro-text {
	color: #6b7089;
	font-size: 15px;
	line-height: 1.9;
}

.ward-sd-intro-text p {
	margin: 0 0 14px;
}

.ward-sd-intro-text p:last-child {
	margin-bottom: 0;
}

.ward-sd-intro-media {
	position: relative;
	padding-bottom: 36px;
	padding-right: 28px;
}

.ward-sd-image {
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 16px 40px rgba(16, 26, 74, .12);
	background: #e8eaf2;
	aspect-ratio: 4 / 3;
}

.ward-sd-img,
.ward-sd-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

.ward-sd-stat {
	position: absolute;
	bottom: 0;
	right: 0;
	min-width: 110px;
	padding: 16px 18px;
	border-radius: 14px;
	background: var(--sd-accent);
	color: #fff;
	text-align: center;
	box-shadow: 0 10px 24px rgba(16, 26, 74, .18);
}

.ward-sd-stat-num {
	display: block;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
}

.ward-sd-stat-label {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 600;
	opacity: .95;
}

/* ── Shared block head ── */
.ward-sd-block-head {
	text-align: center;
	margin-bottom: 36px;
}

.ward-sd-block-title {
	margin: 0 0 10px;
	font-size: clamp(24px, 2.8vw, 32px);
	font-weight: 800;
	color: #091037;
}

.ward-sd-block-sub {
	margin: 0 auto;
	max-width: 520px;
	font-size: 14.5px;
	line-height: 1.75;
	color: #9aa0b5;
}

/* ── Features ── */
.ward-sd-features {
	padding: 64px 0;
	background: #f7f7fb;
}

.ward-sd-features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.ward-sd-feature-card {
	background: #fff;
	border-radius: 18px;
	padding: 28px 24px;
	box-shadow: 0 8px 24px rgba(16, 26, 74, .06);
	border-top: 4px solid var(--sd-accent);
	transition: transform .25s ease, box-shadow .25s ease;
}

.ward-sd-feature-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(16, 26, 74, .1);
}

.ward-sd-feature-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--sd-accent);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	margin-bottom: 16px;
}

.ward-sd-feature-icon i,
.ward-sd-feature-icon svg {
	width: 22px;
	height: 22px;
	display: block;
	color: #fff;
	fill: #fff;
}

.ward-sd-feature-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 800;
	color: #091037;
}

.ward-sd-feature-desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.8;
	color: #6b7089;
}

/* ── Steps ── */
.ward-sd-steps {
	padding: 72px 0;
	background: #fff;
}

.ward-sd-steps-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.ward-sd-step {
	position: relative;
	padding: 24px 20px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(16, 26, 74, .06);
	border: 1px solid #eef0f6;
}

.ward-sd-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--sd-accent) 14%, #fff);
	color: var(--sd-accent);
	font-size: 16px;
	font-weight: 800;
	margin-bottom: 14px;
}

.ward-sd-step-title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 800;
	color: #091037;
}

.ward-sd-step-desc {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.75;
	color: #6b7089;
}

/* ── CTA ── */
.ward-sd-cta {
	padding: 72px 0 90px;
	text-align: center;
	background:
		radial-gradient(ellipse 70% 80% at 50% 100%, color-mix(in srgb, var(--sd-accent) 8%, transparent), transparent 65%),
		#fff;
}

.ward-sd-cta-badge {
	margin-bottom: 14px;
}

.ward-sd-cta-title {
	margin: 0 0 12px;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 800;
	color: #091037;
}

.ward-sd-cta-desc {
	margin: 0 auto 28px;
	max-width: 540px;
	font-size: 15px;
	line-height: 1.85;
	color: #6b7089;
}

.ward-sd-cta-btns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.ward-sd-btn-solid,
.ward-sd-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 26px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: all .25s ease;
	white-space: nowrap;
}

.ward-sd-btn-solid {
	background: #091037;
	color: #fff;
	border: 2px solid #091037;
}

.ward-sd-btn-solid:hover {
	background: #1b2a6b;
	border-color: #1b2a6b;
	color: #fff;
}

.ward-sd-btn-outline {
	background: #fff;
	color: #091037;
	border: 2px solid #091037;
}

.ward-sd-btn-outline:hover {
	background: #091037;
	color: #fff;
}

/* Fallback بدون color-mix */
@supports not (background: color-mix(in srgb, red 10%, white)) {
	.ward-sd-intro {
		background: #fff;
	}
	.ward-sd-step-num {
		background: #eef0f6;
		color: #091037;
	}
	.ward-sd-cta {
		background: #f7f7fb;
	}
}

@media (max-width: 1000px) {
	.ward-sd-intro-inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.ward-sd-features-grid {
		grid-template-columns: 1fr 1fr;
	}

	.ward-sd-steps-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.ward-sd-intro,
	.ward-sd-features,
	.ward-sd-steps {
		padding: 48px 0;
	}

	.ward-sd-cta {
		padding: 48px 0 64px;
	}

	.ward-sd-features-grid,
	.ward-sd-steps-grid {
		grid-template-columns: 1fr;
	}

	.ward-sd-intro-media {
		padding-right: 16px;
	}
}
