/**
 * Blog archive styles.
 *
 * @package Truck24
 */

/* ---------- СТРАНИЦА БЛОГ ---------- */
.blog-posts .page-title {
	background: linear-gradient(135deg, #f0f5fa 0%, #e9f0f5 100%);
	padding: 50px 0 40px;
	text-align: center;
}

.blog-posts .page-title h1 {
	font-size: 38px;
	font-weight: 800;
	color: #12222d;
	margin-bottom: 12px;
}

.blog-posts .page-title p {
	font-size: 16px;
	color: #4a6272;
	max-width: 700px;
	margin: 0 auto;
}

.blog-posts .blog-section {
	padding: 60px 0;
}

.blog-posts .blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.blog-posts .blog-card {
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid #eef2f8;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.blog-posts .blog-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
	border-color: #e2e8f0;
}

.blog-posts .blog-image-link {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background-color: #f0f5fa;
}

.blog-posts .blog-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.blog-posts .blog-card:hover .blog-image {
	transform: scale(1.05);
}

.blog-posts .blog-content {
	padding: 24px;
}

.blog-posts .blog-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	font-size: 13px;
}

.blog-posts .blog-date {
	color: #2c7be5;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 6px;
}

.blog-posts .blog-date i {
	font-size: 12px;
}

.blog-posts .blog-category {
	background: #eef3fc;
	color: #2c7be5;
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.blog-posts .blog-title {
	font-size: 20px;
	font-weight: 700;
	color: #12222d;
	margin-bottom: 12px;
	line-height: 1.4;
}

.blog-posts .blog-title a {
	color: #12222d;
	transition: color 0.2s;
}

.blog-posts .blog-title a:hover {
	color: #2c7be5;
}

.blog-posts .blog-excerpt {
	font-size: 14px;
	color: #5a6e7c;
	line-height: 1.5;
	margin-bottom: 20px;
}

.blog-posts .blog-link {
	font-weight: 600;
	font-size: 14px;
	color: #2c7be5;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: gap 0.2s;
}

.blog-posts .blog-link:hover {
	gap: 12px;
	color: #1a66c9;
}

.blog-posts .blog-with-sidebar {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 50px;
}

.blog-posts .sidebar {
	align-self: start;
}

.blog-posts .sidebar-widget {
	background: #f9fafc;
	border-radius: 20px;
	padding: 24px;
	margin-bottom: 30px;
	border: 1px solid #eef2f8;
}

.blog-posts .sidebar-widget:last-child {
	margin-bottom: 0;
}

.blog-posts .sidebar-widget h3,
.blog-posts .sidebar-widget .h3 {
	font-size: 18px;
	font-weight: 700;
	color: #12222d;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #2c7be5;
	display: inline-block;
}

.blog-posts .sidebar-categories {
	list-style: none;
}

.blog-posts .sidebar-categories li {
	margin-bottom: 12px;
}

.blog-posts .sidebar-categories a {
	color: #5a6e7c;
	font-size: 14px;
	display: flex;
	justify-content: space-between;
	transition: color 0.2s;
}
.sidebar-categories .current-cat a {
	color: #2c7be5;
	font-weight: 600;
}
.blog-posts .sidebar-categories a:hover {
	color: #2c7be5;
}

.blog-posts .sidebar-categories span {
	color: #8aa5b9;
	font-size: 12px;
}

.blog-posts .sidebar-posts {
	list-style: none;
}

.blog-posts .sidebar-posts li {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #eef2f8;
}

.blog-posts .sidebar-posts li:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.blog-posts .sidebar-post-image {
	width: 70px;
	height: 70px;
	border-radius: 12px;
	overflow: hidden;
	flex-shrink: 0;
}

.blog-posts .sidebar-post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-posts .sidebar-post-content {
	flex: 1;
}

.blog-posts .sidebar-post-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 6px;
}

.blog-posts .sidebar-post-title a {
	color: #12222d;
}

.blog-posts .sidebar-post-title a:hover {
	color: #2c7be5;
}

.blog-posts .sidebar-post-date {
	font-size: 11px;
	color: #8aa5b9;
}

.blog-posts .pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 50px;
	flex-wrap: wrap;
}

.blog-posts .pagination a,
.blog-posts .pagination .current-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s;
}

.blog-posts .pagination a {
	color: #5a6e7c;
	background: #f9fafc;
	border: 1px solid #eef2f8;
}

.blog-posts .pagination a:hover {
	background: #2c7be5;
	color: white;
	border-color: #2c7be5;
}

.blog-posts .pagination .current-page {
	background: #2c7be5;
	color: white;
	border: 1px solid #2c7be5;
	cursor: default;
}

.blog-posts .pagination .prev-next {
	font-weight: 600;
}

.blog-posts .pagination .disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

@media (max-width: 1000px) {
	.blog-posts .blog-with-sidebar {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.blog-posts .sidebar {
		order: 2;
	}
}

@media (max-width: 900px) {
	.blog-posts .blog-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 25px;
	}

	.blog-posts .page-title h1 {
		font-size: 30px;
	}
}

@media (max-width: 580px) {
	.blog-posts .blog-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.blog-posts .blog-content {
		padding: 20px;
	}

	.blog-posts .blog-title {
		font-size: 18px;
	}

	.blog-posts .pagination {
		gap: 6px;
	}

	.blog-posts .pagination a,
	.blog-posts .pagination .current-page {
		min-width: 36px;
		height: 36px;
		font-size: 13px;
	}
}

/* SEO-текст рубрики в нижней части */
.blog-posts .category-seo-text {
	margin-top: 60px;
	padding: 40px;
	background: #f9fafc;
	border-radius: 24px;
	border: 1px solid #eef2f8;
}

.blog-posts .category-seo-text h2 {
	font-size: 24px;
	font-weight: 700;
	color: #12222d;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #2c7be5;
	display: inline-block;
}

.blog-posts .category-seo-text h3 {
	font-size: 20px;
	font-weight: 700;
	color: #12222d;
	margin: 25px 0 15px;
}

.blog-posts .category-seo-text p {
	color: #4a6272;
	line-height: 1.7;
	margin-bottom: 16px;
}

.blog-posts .category-seo-text ul {
	margin: 20px 0 20px 25px;
}

.blog-posts .category-seo-text li {
	color: #4a6272;
	margin-bottom: 8px;
	line-height: 1.6;
}

.blog-posts .category-seo-text strong {
	color: #12222d;
}

.blog-posts .category-seo-text a {
	color: #2c7be5;
	text-decoration: underline;
}

.blog-posts .category-seo-text a:hover {
	color: #1a66c9;
}