/**
 * Other Services — dark glassmorphic strip below Related Services (listing_category archives).
 */

body.tax-listing_category .appsinsight-other-services {
	--aos-accent: var(--appsinsight-accent, var(--primary-color, #f91942));
	--aos-glass: rgba(255, 255, 255, 0.07);
	--aos-glass-hover: rgba(255, 255, 255, 0.11);
	--aos-edge: rgba(255, 255, 255, 0.14);
	--aos-edge-hover: rgba(255, 255, 255, 0.22);
	--aos-text: rgba(255, 255, 255, 0.94);
	--aos-muted: rgba(255, 255, 255, 0.52);
	position: relative;
	overflow: hidden;
	padding: clamp(2.75rem, 5vw, 4rem) 0 clamp(2.5rem, 4vw, 3.25rem);
	margin-top: 0;
	background: radial-gradient(120% 80% at 50% 0%, #1e293b 0%, #0f172a 42%, #020617 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.tax-listing_category .appsinsight-other-services__glow {
	position: absolute;
	inset: -40% -20% auto -20%;
	height: 70%;
	pointer-events: none;
	background:
		radial-gradient(closest-side, rgba(249, 25, 66, 0.18) 0%, transparent 75%),
		radial-gradient(closest-side at 80% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
	opacity: 0.9;
}

body.tax-listing_category .appsinsight-other-services__inner.container {
	position: relative;
	z-index: 1;
	max-width: 1140px;
}

body.tax-listing_category .appsinsight-other-services__header {
	text-align: center;
	margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
}

body.tax-listing_category .appsinsight-other-services__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.5rem, 2.85vw, 1.85rem);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0.02em;
	color: var(--aos-text);
	text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}

body.tax-listing_category .appsinsight-other-services__title::after {
	content: '';
	display: block;
	width: 56px;
	height: 2px;
	margin: 1rem auto 0;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, var(--aos-accent), transparent);
	opacity: 0.85;
}

body.tax-listing_category .appsinsight-other-services__subtitle {
	margin: 0;
	font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
	line-height: 1.55;
	font-weight: 500;
	letter-spacing: 0.03em;
	color: var(--aos-muted);
}

body.tax-listing_category .appsinsight-other-services__nav {
	margin: 0;
}

body.tax-listing_category .appsinsight-other-services__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	align-items: stretch;
	gap: clamp(0.85rem, 2vw, 1.15rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

body.tax-listing_category .appsinsight-other-services__item {
	margin: 0;
	padding: 0;
	display: flex;
	min-height: 0;
	align-self: stretch;
}

body.tax-listing_category .appsinsight-other-services__link {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 0.75rem 1rem;
	flex: 1 1 auto;
	width: 100%;
	min-height: 100%;
	box-sizing: border-box;
	padding: 1.15rem 1.15rem 1.15rem 1.35rem;
	border-radius: 18px;
	text-decoration: none;
	color: var(--aos-text);
	background: var(--aos-glass);
	border: 1px solid var(--aos-edge);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.06) inset,
		0 18px 44px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	transition:
		transform 0.28s ease,
		box-shadow 0.28s ease,
		border-color 0.28s ease,
		background 0.28s ease;
}

body.tax-listing_category .appsinsight-other-services__link:hover,
body.tax-listing_category .appsinsight-other-services__link:focus-visible {
	transform: translateY(-3px);
	background: var(--aos-glass-hover);
	border-color: var(--aos-edge-hover);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.1) inset,
		0 0 0 1px rgba(249, 25, 66, 0.15),
		0 22px 50px rgba(0, 0, 0, 0.45);
	outline: none;
}

body.tax-listing_category .appsinsight-other-services__link:focus-visible {
	outline: 2px solid var(--aos-accent);
	outline-offset: 3px;
}

body.tax-listing_category .appsinsight-other-services__link-main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.3rem;
	min-width: 0;
}

body.tax-listing_category .appsinsight-other-services__link-title {
	font-size: 1.28rem;
	line-height: 1.72;
	letter-spacing: 0.01em;
	font-weight: 500;
	color: var(--aos-text);
}

body.tax-listing_category .appsinsight-other-services__link-meta {
	font-size: clamp(0.875rem, 1vw, 0.9375rem);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.045em;
	color: var(--aos-muted);
}

body.tax-listing_category .appsinsight-other-services__link-arrow {
	display: block;
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	position: relative;
	transition: background 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

body.tax-listing_category .appsinsight-other-services__link-arrow::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0.4rem;
	height: 0.4rem;
	margin: -0.2rem 0 0 -0.28rem;
	border-right: 2px solid rgba(255, 255, 255, 0.75);
	border-bottom: 2px solid rgba(255, 255, 255, 0.75);
	transform: rotate(-45deg);
}

body.tax-listing_category .appsinsight-other-services__link:hover .appsinsight-other-services__link-arrow,
body.tax-listing_category .appsinsight-other-services__link:focus-visible .appsinsight-other-services__link-arrow {
	background: rgba(249, 25, 66, 0.2);
	border-color: rgba(249, 25, 66, 0.35);
	transform: translateX(2px);
}

@media (max-width: 575px) {
	body.tax-listing_category .appsinsight-other-services__list {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.tax-listing_category .appsinsight-other-services__link,
	body.tax-listing_category .appsinsight-other-services__link-arrow {
		transition: none;
	}

	body.tax-listing_category .appsinsight-other-services__link:hover,
	body.tax-listing_category .appsinsight-other-services__link:focus-visible {
		transform: none;
	}

	body.tax-listing_category .appsinsight-other-services__link:hover .appsinsight-other-services__link-arrow,
	body.tax-listing_category .appsinsight-other-services__link:focus-visible .appsinsight-other-services__link-arrow {
		transform: none;
	}
}
