.mkl-section.mkl-blog {
	background: #faf9f7;
	color: #333;
}

.mkl-blog__inner {
	padding: 0 0 40px;
}

.mkl-blog__title {
	margin: 0 0 16px;
	font-family: 'TTNorms Medium', sans-serif;
	font-size: 36px;
	font-weight: 800;
	line-height: 1.2;
	color: #231971;
}

body.single-post .mkl-blog--single .mkl-blog__title,
body.mkl-page--blog .mkl-blog--single .mkl-blog__title {
	font-weight: 800;
}

.mkl-blog__intro {
	margin: 0 0 28px;
	font-family: 'TTNorms Regular', sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: #555;
}

.mkl-blog__filters {
	margin: 0 0 28px;
}

.mkl-blog__filters .mkl-home-articles__filter {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.mkl-blog__item[hidden] {
	display: none !important;
}

.mkl-blog__list {
	display: grid;
	gap: 24px;
}

.mkl-blog__item {
	display: grid;
	grid-template-columns: 1fr;
	padding: 0;
	overflow: hidden;
	border: 1px solid #ece8e3;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
	transition: transform .18s ease, box-shadow .18s ease;
}

.mkl-blog__item:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(35, 25, 113, 0.1);
}

.mkl-blog__item--has-thumb {
	grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
}

.mkl-blog__thumb {
	display: block;
	min-height: 100%;
	background: #ebe6f8;
	overflow: hidden;
}

.mkl-blog__thumb-img,
.mkl-blog__item img.mkl-blog__thumb-img,
body.mkl-page--blog .mkl-blog__thumb-img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 220px;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
}

.mkl-blog__body {
	padding: 22px 24px;
	min-width: 0;
}

.mkl-blog__item-title {
	margin: 0 0 8px;
	font-family: 'TTNorms Medium', sans-serif;
	font-size: 22px;
	line-height: 1.35;
}

.mkl-blog__item-title a {
	color: #631080;
	text-decoration: none;
}

.mkl-blog__item-title a:hover {
	color: #231971;
}

.mkl-blog__date {
	display: block;
	margin: 0 0 12px;
	font-family: 'TTNorms Regular', sans-serif;
	font-size: 13px;
	color: #888;
}

.mkl-blog__excerpt {
	font-family: 'TTNorms Regular', sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: #444;
}

.mkl-blog__excerpt p {
	margin: 0;
}

.mkl-blog__empty {
	margin: 0;
	font-family: 'TTNorms Regular', sans-serif;
	font-size: 16px;
	color: #666;
}

.mkl-blog__pagination {
	margin-top: 32px;
	padding-top: 8px;
}

.mkl-blog__pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mkl-blog__pagination .page-numbers li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mkl-blog__pagination a.page-numbers,
.mkl-blog__pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid rgba(35, 25, 113, 0.14);
	border-radius: 10px;
	background: #fff;
	font-family: 'TTNorms Medium', sans-serif;
	font-size: 15px;
	line-height: 1;
	color: #631080;
	text-decoration: none;
	box-sizing: border-box;
	transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.mkl-blog__pagination a.page-numbers:hover {
	border-color: rgba(100, 81, 230, 0.35);
	background: #f5f3ff;
	color: #231971;
}

.mkl-blog__pagination span.page-numbers.current {
	border-color: #6451e6;
	background: #6451e6;
	color: #fff;
	box-shadow: 0 8px 20px rgba(100, 81, 230, 0.22);
}

.mkl-blog__pagination .page-numbers .dots {
	min-width: auto;
	padding: 0 6px;
	border: none;
	background: transparent;
	color: #888;
}

.mkl-blog__back {
	margin: 0 0 12px;
}

.mkl-blog__back a {
	font-family: 'TTNorms Regular', sans-serif;
	font-size: 14px;
	color: #631080;
	text-decoration: none;
}

.mkl-blog__back a:hover {
	text-decoration: underline;
}

.mkl-blog__content {
	font-family: 'TTNorms Regular', sans-serif;
	font-size: 18px;
	line-height: 1.7;
	color: #333;
}

.mkl-blog__content h2,
.mkl-blog__content h3 {
	font-family: 'TTNorms Medium', sans-serif;
	color: #231971;
}

.mkl-blog__content a {
	color: #631080;
}

/* Article body — larger readable text (headings stay as Elementor sets) */
.mkl-blog--single .mkl-blog__content,
.mkl-blog--single .elementor-widget-text-editor,
.mkl-blog--single .elementor-widget-text-editor .elementor-widget-container {
	font-size: 18px !important;
	line-height: 1.7 !important;
	color: #2a2742;
}

.mkl-blog--single .elementor-widget-text-editor p,
.mkl-blog--single .elementor-widget-text-editor li,
.mkl-blog--single .elementor-widget-text-editor td,
.mkl-blog--single .elementor-widget-text-editor th,
.mkl-blog--single .elementor-widget-text-editor span {
	font-size: 18px !important;
	line-height: 1.7 !important;
}

.mkl-blog--single .elementor-widget-text-editor em,
.mkl-blog--single .elementor-widget-text-editor i {
	font-size: 19px !important;
	line-height: 1.65 !important;
}

.mkl-blog--single .elementor-widget-text-editor table {
	font-size: 17px !important;
}

/* Quote blocks (Elementor / classic blockquote) */
.mkl-blog--single blockquote,
.mkl-blog--single .elementor-widget-text-editor blockquote,
.mkl-blog--single .mkl-blog__content blockquote,
body.single-post .mkl-blog--single blockquote,
body.mkl-page--blog .mkl-blog--single blockquote {
	background: #f5f3ff;
	border-left: 4px solid rgba(124, 58, 237, 0.35);
	border-radius: 10px;
	padding: 16px 20px;
	margin: 0 0 20px;
	box-sizing: border-box;
}

.mkl-blog--single blockquote p:last-child,
.mkl-blog--single .elementor-widget-text-editor blockquote p:last-child {
	margin-bottom: 0;
}

.mkl-blog--single .elementor-widget-html .mkl-blog-author__text {
	font-size: 16px !important;
	line-height: 1.65 !important;
}

/* Статья уже внутри .container — не вычитать ещё 40px у boxed-секций Elementor */
body.mkl-page--blog .elementor-section.elementor-section-boxed > .elementor-container,
.mkl-blog--single .elementor-section.elementor-section-boxed > .elementor-container,
body.mkl-page--blog .e-con-boxed > .e-con-inner,
.mkl-blog--single .e-con-boxed > .e-con-inner {
	max-width: 100% !important;
	width: 100% !important;
}

.mkl-blog-author__avatar {
	flex-shrink: 0;
	width: 104px !important;
	height: 104px !important;
	overflow: hidden;
	padding: 0;
	background: #7c3aed;
}

.mkl-blog-author__avatar img,
.mkl-expert-hero__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.mkl-expert-hero__avatar {
	overflow: hidden;
	padding: 0;
}

@media (max-width: 768px) {
	.mkl-blog__title {
		font-size: clamp(22px, 6.4vw, 28px);
		line-height: 1.25;
	}

	.mkl-blog__item--has-thumb {
		grid-template-columns: 1fr;
	}

	.mkl-blog__thumb-img,
	.mkl-blog__item img.mkl-blog__thumb-img,
	body.mkl-page--blog .mkl-blog__thumb-img {
		min-height: 180px;
		max-height: 220px;
	}

	.mkl-blog__body {
		padding: 18px 16px;
	}

	.mkl-blog__pagination a.page-numbers,
	.mkl-blog__pagination span.page-numbers {
		min-width: 38px;
		height: 38px;
		padding: 0 10px;
		font-size: 14px;
	}

	/* Деталка поста: только gutter сайта (~16px), без padding секций/колонок Elementor */
	body.mkl-page--blog .mkl-blog--single .container,
	body.single-post .mkl-blog--single .container {
		width: 100% !important;
		max-width: calc(100% - 32px) !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		box-sizing: border-box !important;
	}

	body.mkl-page--blog .elementor-section,
	body.mkl-page--blog .elementor-section.elementor-element,
	.mkl-blog--single .elementor-section,
	.mkl-blog--single .elementor-section.elementor-element,
	body.mkl-page--blog .e-con,
	.mkl-blog--single .e-con {
		padding-left: 0 !important;
		padding-right: 0 !important;
		--padding-left: 0px !important;
		--padding-right: 0px !important;
	}

	body.mkl-page--blog .elementor-column,
	body.mkl-page--blog .elementor-column-wrap,
	body.mkl-page--blog .elementor-widget-wrap,
	body.mkl-page--blog .elementor-element-populated,
	.mkl-blog--single .elementor-column,
	.mkl-blog--single .elementor-column-wrap,
	.mkl-blog--single .elementor-widget-wrap,
	.mkl-blog--single .elementor-element-populated {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.mkl-page--blog .elementor-widget:not(:last-child),
	.mkl-blog--single .elementor-widget:not(:last-child) {
		margin-bottom: 0;
	}

	body.mkl-page--blog .elementor-widget-image img,
	.mkl-blog--single .elementor-widget-image img,
	.mkl-blog--single .mkl-blog__content img {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
	}

	body.mkl-page--blog .mkl-blog-author,
	.mkl-blog--single .mkl-blog-author {
		padding: 16px !important;
		gap: 14px !important;
	}

	.mkl-blog--single .elementor-widget-text-editor table,
	body.mkl-page--blog .elementor-widget-text-editor table {
		display: block;
		width: 100% !important;
		max-width: 100%;
		overflow-x: auto;
	}
}
