/**
 * Homepage news strip — scoped to #naujienos-home / .hoptrans-home-news only.
 * Matches Hoptrans cream + green label language; no resting card borders/shadows.
 */

#naujienos-home.hoptrans-home-news {
	--ht-hn-ink: #1c2e20;
	--ht-hn-muted: rgba(28, 46, 32, 0.55);
	--ht-hn-cream: #f4f2eb;
	--ht-hn-accent: #409c61;
	--ht-hn-btn: #1a5c30;
	--ht-hn-panel: #dae4e1;
	box-sizing: border-box;
	width: 100%;
	padding: 64px clamp(20px, 5vw, 48px) 72px;
	background: var(--ht-hn-cream);
	color: var(--ht-hn-ink);
	font-family: "Outfit", sans-serif;
}

#naujienos-home.hoptrans-home-news *,
#naujienos-home.hoptrans-home-news *::before,
#naujienos-home.hoptrans-home-news *::after {
	box-sizing: border-box;
}

#naujienos-home .hoptrans-home-news__legacy-anchor {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

#naujienos-home .hoptrans-home-news__inner {
	max-width: 1200px;
	margin: 0 auto;
}

#naujienos-home .hoptrans-home-news__label {
	margin: 0 0 20px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ht-hn-accent);
	display: flex;
	align-items: center;
	gap: 9px;
}

#naujienos-home .hoptrans-home-news__label::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 1.5px;
	background: var(--ht-hn-accent);
	flex-shrink: 0;
}

#naujienos-home .hoptrans-home-news__heading {
	margin: 0 0 14px;
	font-family: "Outfit", sans-serif;
	font-size: clamp(36px, 4.5vw, 58px);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--ht-hn-ink);
}

#naujienos-home .hoptrans-home-news__lead {
	margin: 0 0 36px;
	max-width: 36rem;
	font-size: 1.02rem;
	line-height: 1.55;
	color: var(--ht-hn-muted);
}

#naujienos-home .hoptrans-home-news__empty {
	margin: 0 0 28px;
	color: var(--ht-hn-muted);
	font-size: 1rem;
	line-height: 1.5;
}

#naujienos-home .hoptrans-home-news__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2.2vw, 28px);
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
	align-items: stretch;
}

#naujienos-home .hoptrans-home-news__card {
	min-width: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

#naujienos-home .hoptrans-home-news__card-link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

#naujienos-home .hoptrans-home-news__card-link:hover .hoptrans-home-news__title,
#naujienos-home .hoptrans-home-news__card-link:focus-visible .hoptrans-home-news__title {
	color: var(--ht-hn-accent);
}

#naujienos-home .hoptrans-home-news__media {
	margin: 0;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	position: relative;
	background: var(--ht-hn-panel);
	border: none;
	border-radius: 0;
	box-shadow: none;
}

#naujienos-home .hoptrans-home-news__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

#naujienos-home .hoptrans-home-news__meta {
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ht-hn-muted);
	font-weight: 600;
}

#naujienos-home .hoptrans-home-news__title {
	margin: 0;
	font-size: 1.08rem;
	font-weight: 650;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--ht-hn-ink);
	transition: color 0.18s ease;
}

#naujienos-home .hoptrans-home-news__cta-wrap {
	display: flex;
	justify-content: flex-start;
}

#naujienos-home .hoptrans-home-news__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	text-decoration: none;
	background: var(--ht-hn-btn);
	color: #fff;
	padding: 12px 22px;
	border-radius: 50px;
	transition: background 0.18s ease, transform 0.18s ease;
}

#naujienos-home .hoptrans-home-news__cta:hover,
#naujienos-home .hoptrans-home-news__cta:focus-visible {
	background: #144826;
	color: #fff;
}

@media (max-width: 900px) {
	#naujienos-home .hoptrans-home-news__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

@media (min-width: 601px) and (max-width: 900px) {
	#naujienos-home .hoptrans-home-news__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#naujienos-home .hoptrans-home-news__card:last-child:nth-child(3) {
		grid-column: 1 / -1;
		max-width: 50%;
	}
}
