/**
 * Hír és támogatás kártyák: kép, átfedés, gomb.
 *
 * @package duna_group_web
 */

.section-news .news-grid {
	margin-top: 25px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
}

.news-card {
	position: relative;
	min-height: 300px;
	overflow: hidden;
	background: #dbe3ea;
}

.news-card-link {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	color: #fff;
	isolation: isolate;
}

.news-media-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.news-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.8s ease;
}

.news-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(8, 18, 32, 0.25) 0%,
		rgba(8, 18, 32, 0.40) 100%
	);
	transition: background 0.45s ease;
	z-index: 1;
}

.news-overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(47, 111, 213, 0.78);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.45s ease;
	z-index: 0;
}

.support-card .news-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(8, 18, 32, 0.25) 0%,
		rgba(8, 18, 32, 0.40) 100%
	);
	transition: background 0.45s ease;
	z-index: 1;
}

.support-card .news-overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(47, 111, 213, 0.78);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.45s ease;
	z-index: 0;
}

.support-card:hover .news-overlay {
	background: linear-gradient(
		180deg,
		rgba(8, 18, 32, 0.18) 0%,
		rgba(8, 18, 32, 0.38) 100%
	);
}

.support-card:hover .news-overlay::before {
	transform: scaleX(1);
}

.support-card .support-content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	gap: 14px;
	color: #fff;
}

.support-card .support-content h3 {
	font-size: 1.3rem;
	line-height: 1.35;
	font-weight: 400;
	text-transform: uppercase;
	max-width: 90%;
	transition: transform 0.4s ease, opacity 0.4s ease;
}

.support-card:hover .support-content h3 {
	transform: translateY(-8px);
}

.support-card .card-button {
	display: none !important;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 5px;
	background: #0f2547;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	margin: 0 auto;
	opacity: 0;
	visibility: hidden;
	transform: translateY(18px);
	transition:
		opacity 0.35s ease,
		transform 0.35s ease,
		visibility 0.35s ease,
		background 0.35s ease;
}

.support-card:hover .card-button {
	display: inline-flex !important;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	background: #0f2547;
}

.support-card .card-button:hover {
	background: #09162b;
}

.support-card:hover img {
	transform: scale(1.06);
}

.news-content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	gap: 14px;
}

.news-content h3 {
	font-size: 1.3rem;
	line-height: 1.35;
	font-weight: 400;
	text-transform: uppercase;
	max-width: 90%;
	transition: transform 0.4s ease, opacity 0.4s ease;
}

.news-card .card-button {
	display: none !important;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 5px;
	background: #0f2547;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	margin: 0 auto;
	opacity: 0;
	visibility: hidden;
	transform: translateY(18px);
	transition:
		opacity 0.35s ease,
		transform 0.35s ease,
		visibility 0.35s ease,
		background 0.35s ease;
}

.news-card:hover img {
	transform: scale(1.06);
}

.news-card:hover .news-overlay {
	background: linear-gradient(
		180deg,
		rgba(8, 18, 32, 0.18) 0%,
		rgba(8, 18, 32, 0.38) 100%
	);
}

.news-card:hover .news-overlay:before {
	transform: scaleX(1);
}

.news-card:hover .news-content h3 {
	transform: translateY(-8px);
}

.news-card:hover .card-button {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	display: inline-flex !important;
}

.news-card .card-button:hover {
	background: #09162b;
}
