/*
Theme Name: ColorMag AIKEA
Theme URI: https://aikea.by/blog/
Description: AIKEA blog customizations for the ColorMag theme.
Author: AIKEA
Template: colormag
Version: 1.0.0
Text Domain: colormag-aikea
*/

.cm-footer-builder #custom_html-5 h5 {
	color: #fff;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.45;
	margin: 0 0 22px;
}

.cm-footer-builder #custom_html-4 .fa,
.cm-footer-builder #custom_html-5 .fa {
	color: #fff;
}

.cm-footer-builder {
	--aikea-footer-bg: #22262e;
	--aikea-footer-bottom-bg: #1a1d24;
	--aikea-footer-blue: #004fa3;
	--aikea-footer-blue-bright: #0057d9;
	--aikea-footer-text: #b8bdc8;
	--aikea-footer-white: #fff;
	--aikea-footer-border: #353942;
	background: #111820;
	color: var(--aikea-footer-text);
}

.cm-footer-builder .cm-footer-main-row {
	padding: 48px 0 32px;
	background: var(--aikea-footer-bg);
}

.cm-footer-builder .cm-main-row {
	display: grid;
	grid-template-columns: 1.05fr 1fr 1fr 1fr;
	gap: 34px;
	align-items: stretch;
}

.cm-footer-builder .cm-footer-main-row .cm-footer-col {
	padding: 0 28px 0 0;
	border-right: 1px solid var(--aikea-footer-border);
}

.cm-footer-builder .cm-footer-main-row .cm-footer-col:last-child {
	border-right: 0;
	padding-right: 0;
}

.cm-footer-builder .widget {
	margin: 0;
	color: var(--aikea-footer-text);
}

.cm-footer-builder .cm-widget-title {
	position: relative;
	display: inline-block;
	margin: 0 0 24px;
	padding: 9px 15px;
	background: var(--aikea-footer-blue);
	color: var(--aikea-footer-white);
	border: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0;
}

.cm-footer-builder .cm-widget-title span {
	position: relative;
	display: inline-block;
	padding: 9px 15px;
	background: var(--aikea-footer-blue);
	color: var(--aikea-footer-white);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0;
}

.cm-footer-builder .cm-widget-title::after,
.cm-footer-builder .cm-widget-title span::after {
	display: none;
	content: none;
}

.cm-footer-builder #custom_html-2 .custom-html-widget {
	color: var(--aikea-footer-text);
	font-size: 17px;
	line-height: 1.85;
}

.cm-footer-builder #custom_html-3 .custom-html-widget {
	display: block;
}

.cm-footer-builder #custom_html-3 .one_half,
.cm-footer-builder #custom_html-3 .one_half.last {
	float: none;
	width: auto;
	margin: 0;
	overflow: visible;
}

.cm-footer-builder #custom_html-3 ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cm-footer-builder #custom_html-3 li {
	position: relative;
	margin: 0;
	padding: 10px 24px 10px 0;
	border-bottom: 1px solid var(--aikea-footer-border);
	font-size: 16px;
	line-height: 1.35;
}

.cm-footer-builder #custom_html-3 li::after {
	content: "\203A";
	position: absolute;
	top: 50%;
	right: 3px;
	color: var(--aikea-footer-white);
	font-size: 23px;
	line-height: 1;
	transform: translateY(-50%);
	opacity: 0.9;
}

.cm-footer-builder a {
	color: var(--aikea-footer-text);
	text-decoration: none;
}

.cm-footer-builder a:hover {
	color: var(--aikea-footer-white);
	text-decoration: none;
}

.cm-footer-builder .aikea-footer-hours {
	color: var(--aikea-footer-text);
	font-size: 16px;
	line-height: 1.35;
}

.cm-footer-builder .aikea-footer-hour {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 14px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--aikea-footer-border);
}

.cm-footer-builder .aikea-footer-hour:last-child {
	border-bottom: 0;
}

.cm-footer-builder .aikea-footer-hour .fa {
	color: var(--aikea-footer-white);
	font-size: 24px;
	line-height: 1;
	text-align: center;
}

.cm-footer-builder .aikea-footer-contacts {
	color: var(--aikea-footer-text);
	font-size: 17px;
	line-height: 1.55;
}

.cm-footer-builder .aikea-footer-contact {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 18px;
	align-items: center;
	margin-bottom: 20px;
}

.cm-footer-builder .aikea-footer-contact .fa {
	color: var(--aikea-footer-blue-bright);
	font-size: 27px;
	line-height: 1;
	text-align: center;
}

.cm-footer-builder .aikea-footer-contact-phone a {
	color: var(--aikea-footer-white);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
}

.cm-footer-builder .aikea-footer-contact-shop {
	margin-top: 8px;
	padding-top: 26px;
	border-top: 1px solid var(--aikea-footer-border);
}

.cm-footer-builder .aikea-footer-contact-shop .fa {
	color: var(--aikea-footer-white);
}

.cm-footer-builder .cm-footer-bottom-row {
	padding: 24px 0;
	background: var(--aikea-footer-bottom-bg);
	color: #8c92a0;
}

.cm-footer-builder .cm-footer-bottom-row .cm-bottom-row {
	align-items: center;
}

.cm-footer-builder .cm-copyright {
	position: relative;
	padding-left: 62px;
	color: #8c92a0;
	font-size: 16px;
	line-height: 1.55;
}

.cm-footer-builder .cm-copyright::before {
	content: "\f132";
	position: absolute;
	top: 2px;
	left: 0;
	color: var(--aikea-footer-white);
	font-family: FontAwesome;
	font-size: 36px;
	font-weight: normal;
	line-height: 1;
	opacity: 0.42;
}

.cm-728x90-advertisemen-widget {
	margin: 0;
	padding: 38px 0 64px;
	background: linear-gradient(180deg, #fff 0%, #f5f7fb 100%);
}

.aikea-blog-banner-rotator {
	width: min(970px, calc(100vw - 96px));
	margin: 0 auto;
	aspect-ratio: 970 / 180;
}

.aikea-blog-banner-rotator__link {
	display: block;
	overflow: hidden;
	width: 100%;
	height: 100%;
	border-radius: 8px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
	line-height: 0;
	background: #f4f6f8;
}

.aikea-blog-banner-rotator__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.single-post .cm-entry-summary {
	color: #334155;
	font-size: 17px;
	line-height: 1.78;
}

.single-post .cm-entry-summary p {
	margin-bottom: 1.35em;
	font-size: inherit;
	line-height: inherit;
}

.single-post .cm-entry-summary > h2,
.single-post .cm-entry-summary .wp-block-heading:is(h2) {
	position: relative;
	margin: 46px 0 18px;
	padding: 0 0 13px;
	border-bottom: 1px solid #dbe3ee;
	color: #111827;
	font-size: 29px;
	font-weight: 800;
	line-height: 1.24;
	letter-spacing: 0;
}

.single-post .cm-entry-summary > h2:first-child,
.single-post .cm-entry-summary > p:first-child + h2 {
	margin-top: 22px;
}

.single-post .cm-entry-summary > h2::after,
.single-post .cm-entry-summary .wp-block-heading:is(h2)::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 72px;
	height: 3px;
	border-radius: 999px;
	background: var(--cm-color-1, #207daf);
}

.single-post .cm-entry-summary > h3,
.single-post .cm-entry-summary .wp-block-heading:is(h3) {
	margin: 31px 0 13px;
	padding-left: 15px;
	border-left: 4px solid var(--cm-color-1, #207daf);
	color: #1f2937;
	font-size: 21px;
	font-weight: 750;
	line-height: 1.34;
	letter-spacing: 0;
}

.single-post .cm-entry-summary > h4,
.single-post .cm-entry-summary .wp-block-heading:is(h4) {
	margin: 26px 0 10px;
	color: #334155;
	font-size: 18px;
	font-weight: 750;
	line-height: 1.38;
	letter-spacing: 0;
}

.single-post .cm-entry-summary ul,
.single-post .cm-entry-summary ol {
	margin: 0 0 28px;
	padding-left: 28px;
	font-size: inherit;
	line-height: 1.72;
}

.single-post .cm-entry-summary li {
	margin-bottom: 8px;
}

.single-post .cm-entry-summary li::marker {
	color: var(--cm-color-1, #207daf);
	font-weight: 700;
}

@media (max-width: 980px) {
	.cm-footer-builder .cm-main-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cm-footer-builder .cm-footer-main-row .cm-footer-col:nth-child(2n) {
		border-right: 0;
		padding-right: 0;
	}
}

@media (max-width: 640px) {
	.cm-728x90-advertisemen-widget {
		padding: 24px 0 42px;
	}

	.aikea-blog-banner-rotator {
		width: calc(100vw - 32px);
		aspect-ratio: 358 / 88;
	}

	.aikea-blog-banner-rotator__link {
		border-radius: 6px;
		box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
	}

	.single-post .cm-entry-summary {
		font-size: 16px;
		line-height: 1.72;
	}

	.single-post .cm-entry-summary > h2,
	.single-post .cm-entry-summary .wp-block-heading:is(h2) {
		margin-top: 36px;
		font-size: 24px;
		line-height: 1.28;
	}

	.single-post .cm-entry-summary > h3,
	.single-post .cm-entry-summary .wp-block-heading:is(h3) {
		margin-top: 26px;
		font-size: 19px;
		line-height: 1.34;
	}

	.cm-footer-builder .cm-footer-main-row {
		padding: 32px 0 22px;
	}

	.cm-footer-builder .cm-main-row {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.cm-footer-builder .cm-footer-main-row .cm-footer-col {
		padding: 0 0 28px;
		border-right: 0;
		border-bottom: 1px solid var(--aikea-footer-border);
	}

	.cm-footer-builder .cm-footer-main-row .cm-footer-col:last-child {
		padding-bottom: 0;
		border-bottom: 0;
	}

	.cm-footer-builder .cm-copyright {
		padding-left: 0;
	}

	.cm-footer-builder .cm-copyright::before {
		display: none;
	}
}
