/**
 * Wappbiz Media Spotlight — "Wappbiz in the News".
 *
 * Left-aligned text block with a newspaper illustration to its right, above a
 * single row of logo cards with captions.
 */

.wappbiz-news {
	position: relative;
	max-width: 2171px;
	margin: 0 auto;
	padding: 70px 72px;
	background: #fbfdfc;
	overflow: hidden;
	isolation: isolate;
}

.wappbiz-news__inner {
	position: relative;
	z-index: 2;
}

/* Background artwork / CSS blobs */

.wappbiz-news__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	pointer-events: none;
	user-select: none;
}

.wappbiz-news__blob {
	position: absolute;
	border-radius: 50%;
	background: #fdf1e0;
	opacity: 0.2;
	z-index: 0;
	pointer-events: none;
}

.wappbiz-news__blob--tr {
	width: 26%;
	aspect-ratio: 1;
	top: -22%;
	right: -6%;
}

.wappbiz-news__blob--bl {
	width: 22%;
	aspect-ratio: 1;
	bottom: -30%;
	left: -8%;
}

/*
 * Head: text block + illustration, side by side. Flex (not absolute
 * positioning) so the row's height comes from its actual tallest child
 * instead of a guessed min-height — that guess was leaving a large gap
 * whenever the illustration was shorter than the reserved space.
 */

.wappbiz-news__head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 28px;
}

.wappbiz-news__text {
	display: flex;
	flex-direction: column;
	max-width: 52%;
}

/*
 * text-align (set per-instance via the widget's Alignment control) covers
 * the plain text nodes. The badge and title+logo row size to their own
 * content though (inline-flex / flex, auto width) — text-align has no
 * effect on where a flex/inline-flex child sits within a flex parent, so
 * their position instead comes from align-items on this flex column,
 * driven by the same alignment class.
 */
.wappbiz-news__text--align-left {
	align-items: flex-start;
}

.wappbiz-news__text--align-center {
	align-items: center;
}

.wappbiz-news__text--align-right {
	align-items: flex-end;
}

.wappbiz-news__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.7em 1.35em;
	margin-bottom: 1.5em;
	border-radius: 999px;
	background: #d9f5e6;
	color: #12283c;
	font-size: clamp(12px, 0.85vw, 17px);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
}

.wappbiz-news__badge i,
.wappbiz-news__badge svg {
	width: 1.15em;
	height: 1.15em;
	font-size: 1.15em;
	color: #25b06a;
	fill: #25b06a;
}

.wappbiz-news__title-row {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 18px;
}

.wappbiz-news__title-logo img {
	display: block;
	height: 44px;
	width: auto;
	object-fit: contain;
}

.wappbiz-news__title {
	margin: 0;
	font-size: clamp(30px, 3.5vw, 68px);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #0e2a44;
}

.wappbiz-news__title-accent {
	color: #25b06a;
}

.wappbiz-news__subtitle {
	margin: 0;
	max-width: 78%;
	font-size: clamp(14px, 1.15vw, 22px);
	line-height: 1.5;
	color: #51677a;
}

/*
 * In flow (not absolutely positioned) so it contributes its real height to
 * the head row — that's what keeps the gap above the cards proportional to
 * the illustration's actual size instead of a fixed guess.
 */
.wappbiz-news__illustration {
	--wappbiz-news-illustration-x: 0px;
	--wappbiz-news-illustration-y: 0px;

	flex: 0 0 auto;
	width: 30%;
	max-width: 420px;
	height: auto;
	z-index: 1;
	pointer-events: none;
	user-select: none;
	transform: translate(var(--wappbiz-news-illustration-x), var(--wappbiz-news-illustration-y));
}

/*
 * Button — rightmost item in the head row, in line with the title. flex:
 * 0 0 auto so it keeps its own natural size regardless of how much room the
 * text block/illustration take; margin-left: auto pushes it to the row's
 * right edge even when there's no illustration to naturally leave room for it.
 */
.wappbiz-news__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex: 0 0 auto;
	margin-left: auto;
	padding: 14px 26px;
	border-radius: 999px;
	background: #25b06a;
	color: #ffffff;
	font-size: clamp(13px, 0.95vw, 16px);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wappbiz-news__button:hover {
	background: #1c8c55;
	color: #ffffff;
}

.wappbiz-news__button i,
.wappbiz-news__button svg {
	width: 0.9em;
	height: 0.9em;
	font-size: 0.9em;
}

/* Cards row */

.wappbiz-news__cards {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 22px;
}

.wappbiz-news__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 34px 24px 28px;
	background: #fff;
	border: 1px solid #eef2f0;
	border-radius: 16px;
	box-shadow: 0 6px 20px rgba(14, 42, 68, 0.04);
	text-align: center;
	text-decoration: none;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

a.wappbiz-news__card:hover {
	box-shadow: 0 14px 32px rgba(14, 42, 68, 0.1);
}

.wappbiz-news__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 62px;
}

.wappbiz-news__logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.wappbiz-news__caption {
	margin-top: 22px;
	font-size: clamp(12px, 0.95vw, 18px);
	line-height: 1.4;
	color: #51677a;
}

/* ------------------------------------------------------------------------
 * Responsive
 *
 * Card COLUMN COUNT is intentionally not set here — it comes from the
 * widget's own "Columns" responsive control (Style → Logo Cards), which
 * Elementor emits with defaults of 5 / 3 / 2 for desktop / tablet / mobile.
 * A hardcoded grid-template-columns at these same breakpoints would only
 * ever be dead weight: Elementor's per-instance CSS loads after this
 * stylesheet and targets the identical selector, so it always wins anyway.
 * --------------------------------------------------------------------- */

@media (max-width: 900px) {
	.wappbiz-news {
		padding: 48px 24px;
	}

	.wappbiz-news__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		margin-bottom: 32px;
	}

	.wappbiz-news__text {
		max-width: 100%;
	}

	.wappbiz-news__subtitle {
		max-width: 100%;
	}

	/*
	 * Below this width the illustration would crowd the text, so it stacks
	 * under it instead, centred, at a fixed offset-free size.
	 */
	.wappbiz-news__illustration {
		width: 62%;
		max-width: 320px;
		margin: 28px auto 0;
		transform: none;
	}

	.wappbiz-news__button {
		margin: 20px 0 0;
		align-self: flex-start;
	}

	.wappbiz-news__title {
		font-size: clamp(26px, 6vw, 40px);
	}

	.wappbiz-news__subtitle {
		font-size: clamp(14px, 3.6vw, 17px);
	}

	.wappbiz-news__cards {
		gap: 14px;
	}

	.wappbiz-news__card {
		padding: 20px 12px 18px;
	}

	.wappbiz-news__logo {
		height: 40px;
	}

	.wappbiz-news__caption {
		margin-top: 12px;
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.wappbiz-news {
		padding: 36px 18px;
	}

	.wappbiz-news__badge {
		font-size: 11px;
		padding: 0.55em 1.1em;
	}

	.wappbiz-news__title {
		font-size: clamp(24px, 7vw, 32px);
	}
}
