/**
 * Pipe News — landing kartice (ispod story sekcije).
 * Pozadina: ista slika i slojevi kao testimonials-section, tamniji overlay + vignette.
 */

.ipn-landing-news {
	--ipn-landing-news-bg-image: none;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background-color: #060708;
	background-image:
		linear-gradient(
			180deg,
			rgba(5, 4, 4, 0.62) 0%,
			transparent 24%,
			transparent 76%,
			rgba(4, 3, 3, 0.68) 100%
		),
		radial-gradient(
			ellipse 140% 100% at 50% 0%,
			rgba(12, 10, 8, 0.97) 0%,
			rgba(16, 13, 10, 0.82) 15%,
			rgba(20, 15, 12, 0.52) 35%,
			transparent 55%
		),
		linear-gradient(
			180deg,
			rgba(12, 10, 8, 0.94) 0%,
			rgba(16, 13, 10, 0.82) 10%,
			rgba(22, 17, 13, 0.58) 25%,
			rgba(26, 20, 16, 0.32) 40%,
			transparent 60%
		),
		linear-gradient(180deg, rgba(8, 9, 10, 0.12), rgba(8, 9, 10, 0.12)),
		radial-gradient(1100px 600px at 20% 15%, rgba(176, 141, 87, 0.1), transparent 60%),
		var(--ipn-landing-news-bg-image);
	background-size:
		100% 100%,
		100% 220px,
		100% 220px,
		cover,
		cover,
		cover;
	background-position: center, center top, center top, center, 20% 15%, center;
	background-repeat: no-repeat;
	padding-top: clamp(2.5rem, 5vw, 4rem);
	padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

/* Donji vignette (paritet s .testimonials-section::before, malo jači) */
.ipn-landing-news::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 250px;
	background:
		radial-gradient(
			ellipse 140% 100% at 50% 100%,
			rgba(10, 8, 7, 0.94) 0%,
			rgba(14, 11, 9, 0.76) 35%,
			rgba(18, 14, 11, 0.42) 60%,
			transparent 85%
		),
		linear-gradient(
			180deg,
			transparent 0%,
			rgba(22, 17, 13, 0.1) 5%,
			rgba(18, 14, 11, 0.22) 15%,
			rgba(14, 11, 9, 0.42) 35%,
			rgba(11, 9, 7, 0.68) 55%,
			rgba(9, 7, 6, 0.86) 75%,
			rgba(8, 6, 5, 0.94) 88%,
			rgba(7, 5, 4, 0.98) 94%,
			rgba(6, 5, 4, 1) 100%
		);
	z-index: 0;
	pointer-events: none;
}

/* Zlatni separator na vrhu sekcije (isti oblik kao .testimonials-section::after) */
.ipn-landing-news::after {
	content: "•  •  •";
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(200, 154, 75, 0.9);
	font-size: 8px;
	line-height: 1;
	text-shadow: 0 0 5px rgba(200, 154, 75, 0.6);
	background: linear-gradient(
		90deg,
		transparent 0%,
		transparent 15%,
		rgba(200, 154, 75, 0.3) 20%,
		rgba(200, 154, 75, 0.5) 30%,
		rgba(200, 154, 75, 0.5) 45%,
		transparent 48%,
		transparent 52%,
		rgba(200, 154, 75, 0.5) 55%,
		rgba(200, 154, 75, 0.5) 70%,
		rgba(200, 154, 75, 0.3) 80%,
		transparent 85%,
		transparent 100%
	);
	background-position: center center;
	background-size: 100% 2px;
	background-repeat: no-repeat;
	pointer-events: none;
	z-index: 10;
	opacity: 0.6;
}

.ipn-landing-news .lula-container {
	position: relative;
	z-index: 1;
}

/* Naslov landa — bez .section-title (nema bočnih linija kao u #kolekcija) */
.ipn-landing-news__heading {
	margin: 0 0 1.75rem;
	text-align: center;
	font-size: clamp(1.65rem, 3.5vw, 2.125rem);
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.25;
	font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
	color: var(--text, rgba(255, 255, 255, 0.92));
}

.ipn-landing-news__viewport {
	position: relative;
}

.ipn-landing-news__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 1.35rem;
	list-style: none;
	margin: 0;
	padding: 0 3.15rem;
}

.ipn-landing-news__nav {
	position: absolute;
	top: 50%;
	z-index: 4;
	width: 2.45rem;
	height: 4.35rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(200, 154, 75, 0.22);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.12);
	color: rgba(216, 192, 168, 0.78);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	appearance: none;
	-webkit-appearance: none;
	transform: translateY(-50%);
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.ipn-landing-news__nav--prev {
	left: 0.15rem;
}

.ipn-landing-news__nav--next {
	right: 0.15rem;
}

.ipn-landing-news__nav span {
	display: block;
	font-size: 2.35rem;
	font-weight: 300;
	line-height: 1;
	transform: translateY(-0.08rem);
}

.ipn-landing-news__nav:hover,
.ipn-landing-news__nav:focus,
.ipn-landing-news__nav:focus-visible,
.ipn-landing-news__nav:active {
	border-color: rgba(225, 188, 116, 0.52);
	background: rgba(225, 188, 116, 0.12);
	color: rgba(238, 214, 166, 0.96);
	outline: none;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.ipn-landing-news__nav:disabled {
	opacity: 0.22;
	cursor: default;
	pointer-events: none;
}

.ipn-landing-news__item {
	display: flex;
	justify-content: center;
	flex: 0 0 auto;
}

.ipn-landing-news__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 21.75rem;
	max-width: min(21.75rem, 100%);
	min-height: calc(11.5rem * 0.9);
	padding: 1.35rem 1.4rem 1.15rem;
	text-decoration: none;
	color: inherit;
	text-align: left;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(176, 141, 87, 0.42);
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
		rgba(12, 12, 14, 0.22);
	backdrop-filter: blur(14px) saturate(118%);
	-webkit-backdrop-filter: blur(14px) saturate(118%);
	box-shadow:
		0 18px 44px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ipn-landing-news__card::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(
		120% 90% at 90% 0%,
		rgba(210, 170, 100, 0.06),
		transparent 55%
	);
	opacity: 1;
}

.ipn-landing-news__card:hover,
.ipn-landing-news__card:focus-visible {
	transform: translateY(-2px);
	border-color: rgba(200, 165, 100, 0.62);
	box-shadow:
		0 22px 50px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(176, 141, 87, 0.15),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	outline: none;
}

.ipn-landing-news__card.ipn-card--pillar {
	border-color: rgba(210, 170, 100, 0.7);
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(210, 170, 100, 0.1) 0%, transparent 48%),
		linear-gradient(180deg, rgba(93, 55, 32, 0.24), rgba(28, 18, 14, 0.24)),
		rgba(18, 12, 10, 0.36);
	box-shadow:
		0 18px 46px rgba(0, 0, 0, 0.48),
		0 0 0 1px rgba(210, 170, 100, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ipn-landing-news__card.ipn-card--pillar:hover,
.ipn-landing-news__card.ipn-card--pillar:focus-visible {
	border-color: rgba(225, 188, 116, 0.82);
	box-shadow:
		0 22px 52px rgba(0, 0, 0, 0.52),
		0 0 0 1px rgba(210, 170, 100, 0.16),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ipn-landing-news__card-title {
	position: relative;
	z-index: 1;
	margin: 0 0 1.05rem;
	padding-right: 0;
	text-align: center;
	font-size: 1.12rem;
	line-height: 1.35;
	font-weight: 700;
	font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.96);
}

.ipn-landing-news__card-excerpt {
	position: relative;
	z-index: 1;
	margin: 0;
	flex: 1 1 auto;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 0.92rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.72);
}

.ipn-landing-news__card-arrow {
	position: relative;
	z-index: 1;
	align-self: flex-end;
	margin-top: auto;
	padding-top: 1rem;
	color: rgba(200, 165, 100, 0.92);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	line-height: 0;
	transition: color 0.2s ease, transform 0.2s ease;
}

.ipn-landing-news__card-arrow svg {
	display: block;
}

.ipn-landing-news__card:hover .ipn-landing-news__card-arrow,
.ipn-landing-news__card:focus-visible .ipn-landing-news__card-arrow {
	color: rgba(230, 195, 130, 0.98);
	transform: translateX(3px);
}

@media (max-width: 640px) {
	.ipn-landing-news__grid {
		padding: 0 2.35rem;
	}

	.ipn-landing-news__item {
		width: 100%;
		max-width: 100%;
	}

	.ipn-landing-news__card {
		width: 100%;
		max-width: 100%;
	}

	.ipn-landing-news__nav {
		width: 2rem;
		height: 3.75rem;
	}

	.ipn-landing-news__nav--prev {
		left: 0;
	}

	.ipn-landing-news__nav--next {
		right: 0;
	}

	.ipn-landing-news__nav span {
		font-size: 2rem;
	}
}
