/* Карусель записей блога: [emmet_news] / [ec_blog_carousel] */
.ec-news-section {
	background-color: #ffffff;
	padding: 80px 0 100px 0;
	font-family: 'Inter', 'Montserrat', sans-serif;
	color: #111;
	overflow: hidden;
}

.ec-news-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

.ec-news-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 40px;
	gap: 16px;
	flex-wrap: wrap;
}

.ec-news-title-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.ec-news-title {
	font-size: 42px;
	font-weight: 800;
	margin: 0;
	color: #111;
	position: relative;
	display: inline-block;
}

.ec-news-title::after {
	content: '';
	position: absolute;
	bottom: 8px;
	right: -15px;
	width: 10px;
	height: 10px;
	background-color: #e53935;
	border-radius: 50%;
}

.ec-news-more-link {
	font-size: 15px;
	font-weight: 700;
	color: #e53935;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.ec-news-more-link:hover {
	opacity: 0.85;
	text-decoration: underline;
}

.ec-news-nav {
	display: flex;
	gap: 12px;
}

.ec-news-nav-btn {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #eef0f2;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #111;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.ec-news-nav-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	transition: transform 0.3s ease;
}

.ec-news-nav-btn:hover {
	background: #e53935;
	border-color: #e53935;
	color: #fff;
	box-shadow: 0 6px 15px rgba(229, 57, 53, 0.3);
}

.ec-news-nav-btn.prev:hover svg {
	transform: translateX(-3px);
}

.ec-news-nav-btn.next:hover svg {
	transform: translateX(3px);
}

.ec-news-track-wrapper {
	position: relative;
	width: 100%;
}

.ec-news-track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 30px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.ec-news-track::-webkit-scrollbar {
	display: none;
}

.ec-news-track.ec-grabbing {
	scroll-behavior: auto;
	cursor: grabbing !important;
}

.ec-news-card {
	flex: 0 0 calc(33.333% - 16px);
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	text-decoration: none;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
	scroll-snap-align: start;
	transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	user-select: none;
	-webkit-user-drag: none;
	border: 1px solid #f4f5f7;
}

.ec-news-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
	border-color: #fff;
}

.ec-news-img-wrap {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f4f5f7;
	position: relative;
}

.ec-news-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
	pointer-events: none;
}

.ec-news-card:hover .ec-news-img-wrap img {
	transform: scale(1.08);
}

.ec-news-img-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
	color: #aaa;
	font-weight: 600;
	font-size: 14px;
	text-align: center;
	padding: 12px;
	box-sizing: border-box;
}

.ec-news-date {
	position: absolute;
	top: 15px;
	left: 15px;
	background: #fff;
	color: #111;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	z-index: 2;
}

.ec-news-content {
	padding: 24px 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: space-between;
}

.ec-news-card-title {
	font-size: 20px;
	font-weight: 700;
	color: #111;
	margin: 0 0 20px 0;
	line-height: 1.4;
	transition: color 0.3s ease;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ec-news-card:hover .ec-news-card-title {
	color: #e53935;
}

.ec-news-more {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: color 0.3s ease;
	margin-top: auto;
}

.ec-news-more svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	transition: transform 0.3s ease;
}

.ec-news-card:hover .ec-news-more {
	color: #e53935;
}

.ec-news-card:hover .ec-news-more svg {
	transform: translateX(4px);
}

@media (max-width: 1024px) {
	.ec-news-card {
		flex: 0 0 calc(50% - 12px);
	}
}

@media (max-width: 768px) {
	.ec-news-section {
		padding: 60px 0;
	}

	.ec-news-header {
		margin-bottom: 30px;
		align-items: center;
	}

	.ec-news-title {
		font-size: 32px;
	}
}

@media (max-width: 480px) {
	.ec-news-title {
		font-size: 28px;
	}

	.ec-news-card {
		flex: 0 0 calc(85% - 10px);
	}

	.ec-news-nav {
		display: none;
	}

	.ec-news-content {
		padding: 20px;
	}

	.ec-news-card-title {
		font-size: 18px;
	}
}
