/* ===========================================================
   Prelistajte knjigo — Figma 215:5697
   =========================================================== */

.kw-flip {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}

/* ---------- Heading ---------- */

.kw-flip__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
}

.kw-flip__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--kw-ink, #111827);
}

.kw-flip__count {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--kw-ink-muted, #6b7280);
	font-variant-numeric: tabular-nums;
}

/* ---------- Stage ---------- */

.kw-flip__stage {
	position: relative;
	display: flex;
	justify-content: center;
	width: 100%;
	/* Card width plus room for an arrow and a gap on either side. */
	max-width: 584px;
}

/* The card, not the container, carries the look — with the cards effect every
   slide is a page in the stack, so each one needs the border, radius and
   shadow. */
.kw-flip__swiper {
	/*
	 * The page images are uploaded at 600x800, so past this the card is
	 * upscaling them on a 2x screen. The 78% cap holds the card to the same
	 * share of the stage at every width, so phones are unaffected.
	 */
	width: 456px;
	max-width: 78%;
	/* Swiper's own .swiper-cards sets overflow: visible so the fanned pages
	   behind the top one are not clipped; nothing here may override that. */
	aspect-ratio: 266 / 339;
}

.kw-flip__swiper .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #fff;
	border: 1.8px solid #cdcdcd;
	border-radius: 25px;
	box-shadow: 0 4px 60.5px -10.5px rgba(13, 40, 54, .32);
}

.kw-flip__page {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Arrows ---------- */

.kw-flip__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--kw-accent, #34aeeb);
	box-shadow: 0 4px 14.25px rgba(44, 127, 168, .32);
	cursor: pointer;
	transition: transform 150ms ease-out;
}

.kw-flip__arrow svg {
	display: block;
	width: 24px;
	height: 24px;
}

.kw-flip__next { right: 0; }

/* One exported arrow, mirrored — the two directions are the same mark. */
.kw-flip__prev {
	left: 0;
	transform: translateY(-50%) rotate(180deg);
}

.kw-flip__arrow:hover {
	transform: translateY(-50%) scale(1.06);
}

.kw-flip__prev:hover {
	transform: translateY(-50%) rotate(180deg) scale(1.06);
}

.kw-flip__arrow:focus-visible {
	outline: 3px solid var(--kw-accent-dark, #2a8bbc);
	outline-offset: 3px;
}

/* ---------- Features ---------- */

.kw-flip__features {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	gap: 5.5px 18.5px;
	margin: 0;
	padding: 0 0 21.5px;
	/* Matches the card, so the checklist reads as belonging to it. */
	list-style: none;
	max-width: 456px;
}

.kw-flip__feature {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--kw-ink-muted, #6b7280);
}

.kw-flip__check {
	display: inline-flex;
	width: 17px;
	height: 17px;
	flex-shrink: 0;
}

.kw-flip__check svg {
	display: block;
	width: 100%;
	height: 100%;
}

@media (prefers-reduced-motion: reduce) {
	.kw-flip__arrow { transition: none; }
	.kw-flip__arrow:hover { transform: translateY(-50%); }
	.kw-flip__prev:hover { transform: translateY(-50%) rotate(180deg); }
}
