/*
 * Darko Clean native integration for Deltawy Services.
 * The theme owns typography, colors, cards, buttons and responsive foundations.
 * These rules only cover service-specific compositions that do not exist in the
 * theme itself, while consuming the theme CSS custom properties throughout.
 */

.dsv-darko-service-intro .split {
	align-items: center;
}

.dsv-darko-split-no-media {
	grid-template-columns: minmax(0, 860px);
	justify-content: center;
}

.dsv-darko-service-media {
	position: relative;
}

.dsv-darko-service-media > img {
	aspect-ratio: 4 / 3.15;
	object-fit: cover;
}

.dsv-darko-media-badge {
	position: absolute;
	inset-inline-start: 22px;
	bottom: 22px;
	display: inline-flex;
	align-items: center;
	gap: 11px;
	max-width: calc(100% - 44px);
	padding: 10px 16px 10px 11px;
	border: 1px solid rgba(255,255,255,.72);
	border-radius: 18px;
	background: rgba(255,255,255,.93);
	box-shadow: var(--shadow-md);
	color: var(--marine);
	font-family: var(--disp);
	font-weight: 600;
	font-size: .9rem;
	backdrop-filter: blur(8px);
}

.dsv-darko-media-badge .wi-ic {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	box-shadow: none;
}

.dsv-darko-media-badge .wi-ic svg {
	width: 19px;
	height: 19px;
}

.dsv-darko-entry-content {
	margin-top: 20px;
	font-size: 1rem;
}

.dsv-darko-entry-content > *:first-child {
	margin-top: 0;
}

.dsv-darko-intro-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.dsv-darko-service-stats {
	margin-top: 48px;
}

.dsv-darko-service-stats .logo-item svg {
	width: 17px;
	height: 17px;
}

.dsv-darko-featured-grid {
	display: grid;
	gap: 26px;
	max-width: 980px;
	margin-inline: auto;
}

.dsv-darko-featured-grid.is-two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dsv-darko-featured-grid.is-one {
	grid-template-columns: minmax(0, 520px);
	justify-content: center;
}

.dsv-darko-featured-grid > .post {
	min-width: 0;
}

.dsv-darko-video-card .post-thumb {
	isolation: isolate;
}

.dsv-darko-video-card .post-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 48%, rgba(4,32,47,.22));
	z-index: 1;
	pointer-events: none;
}

.dsv-darko-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(255,255,255,.94);
	color: var(--azure-dk);
	box-shadow: 0 10px 28px rgba(6,42,64,.22);
	transform: translate(-50%, -50%);
	transition: transform .25s ease, background .25s ease, color .25s ease;
}

.dsv-darko-play::before {
	content: "";
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-inline-start: 13px solid currentColor;
	margin-inline-start: 3px;
}

.dsv-darko-video-card:hover .dsv-darko-play {
	background: var(--lime);
	color: #123449;
	transform: translate(-50%, -50%) scale(1.08);
}

.dsv-darko-service-cta {
	background: #fff;
}

/* Archive no-image state. */
.dsv-darko-service-placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: var(--foam, #f4fafc);
	color: var(--azure, #12a5e3);
}

.dsv-darko-service-placeholder svg {
	width: 64px;
	height: 64px;
}

/* Custom DSV query pagination adopts the theme pager visual language. */
.dsv-pagination {
	display: flex;
	justify-content: center;
	gap: 9px;
	margin-top: 52px;
	flex-wrap: wrap;
}

.dsv-pagination .page-numbers {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	border: 1.5px solid var(--line);
	background: #fff;
	display: grid;
	place-items: center;
	font-family: var(--disp);
	font-weight: 600;
	transition: .22s;
}

.dsv-pagination .page-numbers:hover {
	border-color: var(--azure);
	color: var(--azure-dk);
}

.dsv-pagination .page-numbers.current {
	background: var(--azure);
	border-color: var(--azure);
	color: #fff;
}

.dsv-pagination .page-numbers svg {
	width: 17px;
	height: 17px;
}

@media (max-width: 860px) {
	.dsv-darko-featured-grid.is-two {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 620px) {
	.dsv-darko-media-badge {
		inset-inline: 14px;
		bottom: 14px;
		max-width: calc(100% - 28px);
	}

	.dsv-darko-intro-actions .btn {
		flex: 1 1 100%;
	}
}

/* The theme card helper uses anchors as media wrappers; force block layout on
 * service singles so aspect-ratio behaves consistently in every browser. */
.single-service .post-thumb {
	display: block;
}

/* Archive: child services come directly from the hierarchical service CPT. */
.dsv-service-archive-children .dsv-service-child-card {
	text-decoration: none;
	color: inherit;
}

.dsv-service-child-parent {
	margin: 2px 0 0;
	font-size: .88rem;
	color: var(--muted, #667b88);
}

.dsv-service-archive-children .c-more {
	margin-top: auto;
}
