/* Стили страницы статей */
.page-title {
	margin-bottom: 50px;
}

.articles-layout {
	margin-bottom: 180px !important;
	display: flex;
	gap: 30px;
}

/* Правая колонка с контентом */
.articles-container {
	flex: 1;
}

.articles-flex {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* Карточка статьи */
.article-card:not(:has(a)),
.article-card a {
	display: flex;
	background: #ffffff;
	border: 1px solid #e2e4e8;
	border-radius: 24px;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	position: relative;
	min-height: 320px;
	max-height: 320px;
}

.article-card a:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-5px);
}

.article-card:not(:has(a)):hover .article-card__image img,
.article-card a:hover .article-card__image img {
	transform: scale(1.05);
}

/* Изображение статьи */
.article-card__image {
	width: 380px;
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
}

.article-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

/* Контент статьи */
.article-card__content {
	max-width: 560px;
	width: 100%;
	padding: 30px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin-left: -30px;
	z-index: 2;
	background-color: #ffffff;
	border-radius: 24px 0 0 24px;
	box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
	width: 60%;
}

/* Кнопка с именем автора */
.article-card__author {
	margin-bottom: 15px;
}

.author-btn {
	background: #326ccd;
	color: #ffffff;
	border: none;
	border-radius: 100px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.author-btn:hover {
	background: #2758a7;
}

/* Заголовок статьи */
.article-card__title {
	font-size: 18px;
	font-weight: 400;
	line-height: 23px;
	margin: 0 0 10px;
	color: #000000;
	text-transform: uppercase;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* Описание статьи */
.article-card__description {
	font-size: 16px;
	line-height: 20px;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	max-height: 4.5em;
}

.articles-not-found {
	display: none;
	text-align: center;
	margin-top: 20px;
	width: 100%;
	text-align: center;
	padding: 10px 0;
	height: max-content;
	background-color: #efefef;
	border-radius: 30px;
}

.articles-not-found.active {
	display: block;
}

@media (max-width: 1038px) {
	.articles-layout {
		flex-direction: column;
	}

	.filters-sidebar {
		width: 100%;
	}
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
	.article-card:not(:has(a)),
	.article-card a {
		flex-direction: column;
		max-height: none;
	}

	.article-card__title {
		margin-bottom: 5px;
	}

	.article-card__image {
		width: 100%;
		height: 200px;
	}

	.article-card__content {
		margin-left: 0;
		width: 100%;
		border-radius: 0;
	}
}

@media (max-width: 480px) {
	.article-card__content {
		padding: 20px;
	}

	.article-card__title {
		font-size: 18px;
	}
}
