/* ─── Card shell ─────────────────────────────── */

.wp-block-fusio-nesc-our-work-link {
	display: flex;
	align-items: stretch;
	min-height: 300px;
	max-width: 900px;
	background: #fff;
	border-radius: 0.75rem;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 2px 20px rgb(111 116 125);
	transition: box-shadow 0.2s ease;
}

a.wp-block-fusio-nesc-our-work-link:hover,
a.wp-block-fusio-nesc-our-work-link:focus {
	box-shadow: 0 2px 20px rgb(111 116 125);
	text-decoration: none;
	color: inherit;
	transform: scale(1.02);
	transition: transform 0.2s ease;
}

/* ─── Image side toggle ──────────────────────── */

.wp-block-fusio-nesc-our-work-link.image-right {
	flex-direction: row;
}

.wp-block-fusio-nesc-our-work-link.image-left {
	flex-direction: row-reverse;
}

/* ─── Text area ──────────────────────────────── */

.nesc-owlink__text {
	flex: 1 1 50%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2rem 2.5rem;
	min-width: 0;
}

.nesc-owlink__title {
	font-family: "Figtree", "Roboto", sans-serif;
	font-size: 2.1rem;
	font-weight: 900;
	color: #012155;
	text-decoration: none;
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
	margin: 0 0 0.6rem;
	line-height: 1.3;
}

a.wp-block-fusio-nesc-our-work-link:hover .nesc-owlink__title {
	color: #19bade;
}

.nesc-owlink__subtitle {
	font-family: "Manrope", sans-serif;
	font-size: 1.2rem;
	font-weight: 400;
	color: #444;
	line-height: 1.55;
	margin: 0;
}

/* ─── Image area ─────────────────────────────── */

.nesc-owlink__image {
	flex: 0 0 45%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.nesc-owlink__image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef1f4;
	color: #999;
	font-family: "Roboto", sans-serif;
	font-size: 0.85rem;
	font-style: italic;
}

/* ─── Responsive ─────────────────────────────── */

@media (max-width: 600px) {
	.wp-block-fusio-nesc-our-work-link,
	.wp-block-fusio-nesc-our-work-link.image-left {
		flex-direction: column-reverse;
	}

	.nesc-owlink__text {
		padding: 1.25rem 1.5rem;
	}

	.nesc-owlink__image {
		flex: 0 0 auto;
		min-height: 200px;
	}
}
