/* Стили страницы новостей */

.news {
	margin-bottom: 180px !important;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 580px));
	gap: 20px;
	justify-content: center;
}

/* Максимум 2 колонки на широких экранах */
@media (min-width: 681px) {
	.news-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.news-card {
	background: #ffffff;
	border: 1px solid #e2e4e8;
	border-radius: 24px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
	transition: all 0.3s ease;
	cursor: pointer;
	height: 370px;
	width: 100%;
	max-width: 580px;
}

.news-card:hover .news-card__overlay {
	background-color: var(--accent-primary);
}

.news-card:hover .news-card__title {
	color: white;
}

.news-card:hover .news-card__date {
	background-color: white;
}

.news-card img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	transition: transform 0.5s ease;
}

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

/* Оверлей для текста */
.news-card__overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: #ffffff;
	padding: 30px;
	border-radius: 24px 24px 0 0;
	transition: all 0.3s ease;
}

.news-card__date {
	margin: 0 0 15px;
	padding: 8px 16px;
	background: #f0f3f8;
	border-radius: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 14px;
	color: black;
	font-weight: 600;
	width: 100%;
}

.news-card__date svg {
	min-width: 24px;
	height: 24px;
}

.news-card__title {
	font-size: clamp(16px, 2vw, 18px);
	line-height: clamp(20px, 2vw, 23px);
	font-weight: 400;
	text-transform: uppercase;
	color: #000000;
	margin: 0;
	min-height: 69px;
}

@media (max-width: 480px) {
	.news-card__overlay {
		padding: 20px;
	}
	.news-card__date {
		margin: 0 0 10px;
		padding: 6px 12px;
	}
}
