/* Блок "Полезные статьи" на главной странице */
/* Используется такой же дизайн как у "Похожих статей" */

.blog-related.container-bg {
	position: relative;
	margin: 0 auto 60px;
	max-width: 1820px;
	min-height: 500px;
	padding: 80px 16px 60px;
}

.blog-related.container-bg::before {
	position: absolute;
	content: '';
	width: 100%;
	height: 100%;
	top: 0;
	bottom: 0;
	background: url(/local/templates/moskitok/components/bitrix/news.list/slider2/image/purple-bg.webp) no-repeat center;
	border-radius: 50%;
}

.blog-related__wrapper {
	position: relative;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

.blog-related__head {
	margin-bottom: 45px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.blog-related__title {
	font-family: 'Golos Text', sans-serif;
	font-size: 50px;
	font-weight: 600;
	line-height: 110%;
	letter-spacing: 0;
	color: #2C2F37;
	margin: 0;
}

.blog-related__all-link a:link,
.blog-related__all-link a:visited {
	padding: 10.5px 30px;
	font-size: 16px;
	font-weight: 500;
	line-height: 135%;
	background: transparent;
	color: #2C2F37;
	border: 1px solid #C9CCCC;
	border-radius: 100px;
	transition: background .2s ease-in-out, color .2s ease-in-out, border-color .2s ease-in-out;
	text-decoration: none;
	display: inline-block;
}

.blog-related__all-link a:hover,
.blog-related__all-link a:active {
	background: #8639F1;
	border-color: #8639F1;
	color: #fff;
}

.blog-related .swiper-container {
	overflow: hidden;
}

.blog-related .swiper-pagination-blog-index {
	padding-top: 35px;
	text-align: center;
}

.blog-related .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #C9CCCC;
	opacity: 1;
	margin: 0 5px;
}

.blog-related .swiper-pagination-bullet-active {
	background: #8639F1;
}

.blog-related .swiper-button-next-blog-index,
.blog-related .swiper-button-prev-blog-index {
	top: 45%;
}

.blog-related .swiper-button-prev-blog-index {
	left: -70px;
}

.blog-related .swiper-button-next-blog-index {
	right: -70px;
}

.blog-related .swiper-slide {
	width: 350px;
	height: auto;
}

.blog-related__item {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	height: 460px;
}

.blog-related__image {
	height: 220px;
	overflow: hidden;
	flex-shrink: 0;
}

.blog-related__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-related__content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.blog-related__read-more {
	margin-top: auto;
	font-family: 'Golos Text', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 110%;
	letter-spacing: 0;
	vertical-align: middle;
	color: #8639F1;
	text-decoration: none;
	transition: color 0.2s ease;
}

.blog-related__read-more:hover {
	color: #6b2dc7;
}

.blog-related__item-title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: #2C2F37;
	margin: 0 0 8px;
}

.blog-related__item-title a {
	color: inherit;
	text-decoration: none;
}

.blog-related__item-text {
	font-size: 14px;
	line-height: 1.5;
	color: #6B7280;
	margin: 0 0 12px;
}

/* Адаптивные стили */
@media (max-width: 1240px) {
	.blog-related__title {
		font-size: 32px;
	}
}

@media (max-width: 768px) {
	.blog-related.container-bg {
		margin: 0 auto 40px;
		padding: 40px 16px;
		min-height: auto;
	}
	
	.blog-related.container-bg::before {
		border-radius: 0;
	}
	
	.blog-related__head {
		margin-bottom: 20px;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	
	.blog-related__title {
		font-size: 26px;
		margin: 0;
		width: 100%;
		text-align: center;
	}
	
	.blog-related__all-link {
		position: absolute;
		bottom: -65px;
		left: 50%;
		transform: translateX(-50%);
	}
	
	.blog-related__all-link a:link,
	.blog-related__all-link a:visited {
		padding: 10px 15px;
		font-size: 14px;
	}
	
	.blog-related .swiper-button-next-blog-index,
	.blog-related .swiper-button-prev-blog-index {
		display: none;
	}
	
	.blog-related .swiper-slide {
		width: 280px;
		height: auto;
	}
	
	.blog-related__item {
		height: auto;
		min-height: 400px;
	}
	
	.blog-related__image {
		height: 180px;
	}
	
	.blog-related__content {
		padding: 16px;
	}
	
	.blog-related__item-title {
		font-size: 16px;
	}
	
	.blog-related__read-more {
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.blog-related__title {
		font-size: 22px;
	}
}
