/* USP-slider — Figma "Wat maakt ons anders?" (Variant7). Tokens only; Swiper base is shared vendor. */

.ppc-usp-slider {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(2.5rem, 5vw, 4.5rem);
	/* Figma pattern fill, 1:1 (see tokens.css for the derivation from the Figma settings). */
	background: var(--ppc-texture-scheme5) repeat left top / 54.95px 109.9px, var(--ppc-color-scheme5-bg);
	background-blend-mode: overlay, normal;
	color: var(--ppc-color-scheme5-text);
	padding-block: var(--ppc-section-pad-y);
	padding-inline: var(--ppc-section-inset-x);
	overflow: hidden;
}

/* Heading + rating stay in the centred container; the slider spans the full section width. */
.ppc-usp-slider__container {
	width: 100%;
	max-width: var(--ppc-container-width);
}

/* Heading */
.ppc-usp-slider__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
}

.ppc-usp-slider__eyebrow {
	margin: 0;
	font-family: var(--ppc-font-open-sans);
	font-weight: var(--ppc-font-weight-semibold);
	font-size: var(--ppc-font-size-tagline);
	line-height: var(--ppc-line-height-tagline);
}

.ppc-usp-slider__title-block {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: var(--ppc-measure);
}

.ppc-usp-slider__title {
	margin: 0;
	font-family: var(--ppc-font-heading);
	font-weight: var(--ppc-font-weight-bold);
	font-size: var(--ppc-font-size-h2);
	line-height: var(--ppc-line-height-heading);
	letter-spacing: var(--ppc-letter-spacing-heading);
}

.ppc-usp-slider__subtitle {
	margin: 0;
	font-family: var(--ppc-font-open-sans);
	font-weight: 400;
	font-size: var(--ppc-font-size-lead);
	line-height: var(--ppc-line-height-body);
}

/* Slider. overflow:visible lets the tilted cards bleed past the slider edges; the section's
   own overflow:hidden clips the bleed at the viewport so there is no horizontal page scroll.
   (overflow-x:visible alone would be forced to `auto` by the hidden y-axis and add a scrollbar.) */
.ppc-usp-slider__slider {
	width: 100%;
	overflow: visible;
	/* Reveals just after the heading (shared .ppc-reveal utility in base.css). */
	--ppc-reveal-delay: 0.15s;
}

.ppc-usp-slider__slide {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(33rem, 85vw);
	height: auto;
	/* room so the ±2deg tilt is not clipped by Swiper's overflow */
	padding-block: 1.25rem;
}

.ppc-usp-slider__card {
	position: relative;
	display: flex;
	width: 100%;
	/* min-height (not height): the card grows to fit its text so nothing is ever clipped. */
	min-height: 16.3rem;
	border-radius: var(--ppc-radius-card);
	overflow: hidden;
	background: var(--ppc-color-card-surface);
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.16);
}

/* Glossy inset highlight (Figma): as an overlay because inset box-shadow on the card itself
   would paint underneath the image panel. */
.ppc-usp-slider__card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	box-shadow:
		inset -3px -3px 4px rgba(0, 0, 0, 0.25),
		inset 3px 3px 3px rgba(255, 255, 255, 0.25);
}

.ppc-usp-slider__slide:nth-child(odd) .ppc-usp-slider__card {
	transform: rotate(2deg);
}
.ppc-usp-slider__slide:nth-child(even) .ppc-usp-slider__card {
	transform: rotate(-2deg);
}

.ppc-usp-slider__card-media {
	flex: 0 0 38%;
	align-self: stretch;
}

.ppc-usp-slider__card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ppc-usp-slider__card-body {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.5rem;
	padding: 2.5rem 2.5rem 1.5rem 2rem;
	/* No overflow clip here: text must stay fully visible. Overlap of the decorative sparkle
	   is clipped by the card's own overflow:hidden instead. */
	min-width: 0;
	overflow-wrap: break-word;
}

.ppc-usp-slider__card-sparkle {
	position: absolute;
	top: -2.25rem;
	right: -2.5rem;
	width: 10.375rem;
	height: auto;
	pointer-events: none;
}

.ppc-usp-slider__card-eyebrow {
	margin: 0;
	font-family: var(--ppc-font-open-sans);
	font-weight: var(--ppc-font-weight-semibold);
	font-size: 0.875rem;
	line-height: var(--ppc-line-height-tagline);
	color: var(--ppc-color-picton-blue-darker);
}

.ppc-usp-slider__card-title {
	margin: 0;
	font-family: var(--ppc-font-heading);
	font-weight: var(--ppc-font-weight-bold);
	font-size: var(--ppc-font-size-h5);
	line-height: var(--ppc-line-height-h5);
	letter-spacing: var(--ppc-letter-spacing-heading);
	color: var(--ppc-color-picton-blue-dark);
}

.ppc-usp-slider__card-text {
	margin: 0;
	font-family: var(--ppc-font-open-sans);
	font-weight: 400;
	font-size: var(--ppc-font-size-body);
	line-height: var(--ppc-line-height-body);
	color: var(--ppc-color-picton-blue-darker);
}

/* Pagination */
.ppc-usp-slider__pagination {
	position: static;
	margin-top: 1.5rem;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.ppc-usp-slider .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: var(--ppc-color-scheme5-text);
	opacity: 0.4;
	transition: opacity 0.2s ease;
}

.ppc-usp-slider .swiper-pagination-bullet-active {
	opacity: 1;
}

/* Rating placeholder (to be replaced by the Trustindex widget) */
.ppc-usp-slider__rating {
	display: flex;
	justify-content: center;
	width: 100%;
}

.ppc-usp-slider__rating-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--ppc-color-scheme5-text);
	font-size: 0.875rem;
	line-height: var(--ppc-line-height-tight);
}

.ppc-usp-slider__rating-label {
	font-family: var(--ppc-font-sans);
	font-weight: var(--ppc-font-weight-semibold);
}

.ppc-usp-slider__rating-score {
	font-family: var(--ppc-font-sans);
	font-weight: 400;
}

.ppc-usp-slider__rating-mark {
	display: inline-flex;
}

.ppc-usp-slider__rating-name {
	font-family: var(--ppc-font-sans);
	font-weight: var(--ppc-font-weight-semibold);
}

/* Below 690px: drop the card image so the text has the full card width and never gets cramped.
   The card then sizes to its text (min-height released) so nothing overflows. */
@media (max-width: 43.125rem) {
	.ppc-usp-slider__card-media {
		display: none;
	}
	.ppc-usp-slider__card {
		min-height: 0;
	}
	.ppc-usp-slider__card-body {
		padding: 2rem;
	}
}
