/* ==========================================================================
   Blog Grid Light page
   ========================================================================== */

body.mf-page-blog-light {
	background: #fff;
	color: #030303;
	--mf-container-max: 1343px;
	--mf-container-pad: 15px;
}

body.mf-page-blog-light .mf-container {
	max-width: var(--mf-container-max);
	margin-inline: auto;
	padding-inline: var(--mf-container-pad);
	width: 100%;
}

.mf-bg-pretitle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	color: #030303;
}

.mf-bg-pretitle__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #030303;
	flex-shrink: 0;
}

/* Hero */
.mf-bg-hero {
	position: relative;
	background: #fff;
	padding: clamp(140px, 16vw, 220px) 0 0;
	overflow: hidden;
}

.mf-bg-hero__shape {
	position: absolute;
	right: -8%;
	bottom: 0;
	width: min(520px, 42vw);
	pointer-events: none;
}

.mf-bg-hero__shape svg {
	display: block;
	width: 100%;
	height: auto;
}

.mf-bg-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 40px 48px;
	align-items: end;
}

.mf-bg-hero__title-wrap {
	position: relative;
	display: inline-block;
	max-width: 100%;
	padding-top: 12px;
	padding-right: clamp(56px, 8vw, 88px);
}

.mf-bg-hero__title {
	font-family: var(--mf-font-heading);
	font-size: clamp(40px, 5.2vw, 70px);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #030303;
	margin: 0;
}

.mf-bg-hero__spin {
	position: absolute;
	right: 0;
	top: 0;
	width: clamp(48px, 5.5vw, 72px);
	height: auto;
	pointer-events: none;
	z-index: 1;
	animation: mf-bg-spin 12s linear infinite;
}

.mf-bg-hero__scribble {
	position: absolute;
	right: clamp(8px, 2vw, 24px);
	bottom: -28px;
	pointer-events: none;
	animation: mfshake 3s ease-in-out infinite;
}

.mf-bg-hero__lead {
	font-family: var(--mf-font-heading);
	font-size: clamp(16px, 1.6vw, 22px);
	font-weight: 500;
	line-height: 1.55;
	color: #525252;
	margin: 0;
	max-width: 520px;
}

.mf-bg-hero__crumb {
	grid-column: 1 / -1;
	border-top: 1px solid rgba(17, 17, 18, 0.1);
	padding: 22px 0 40px;
	margin-top: 20px;
}

.mf-bg-hero__crumb-list {
	display: flex;
	align-items: center;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 15px;
	color: #525252;
}

.mf-bg-hero__crumb-list a {
	color: #525252;
	text-decoration: none;
}

.mf-bg-hero__crumb-list a:hover,
.mf-bg-hero__crumb-list a:focus-visible {
	color: #030303;
}

.mf-bg-hero__crumb-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #525252;
}

@keyframes mf-bg-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Banner */
.mf-bg-banner {
	position: relative;
	height: clamp(360px, 55vw, 780px);
	overflow: hidden;
}

.mf-bg-banner__media,
.mf-bg-banner__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Grid section */
.mf-bg-grid {
	padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 130px);
	background: #fff;
}

.mf-bg-grid__intro {
	display: grid;
	grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
	gap: 28px 40px;
	align-items: start;
	margin-bottom: clamp(48px, 6vw, 80px);
}

.mf-bg-grid__heading {
	font-family: var(--mf-font-heading);
	font-size: clamp(40px, 5vw, 70px);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #030303;
	margin: 0 0 28px;
}

.mf-bg-grid__desc {
	display: flex;
	align-items: flex-start;
	gap: 28px;
}

.mf-bg-grid__shape {
	width: 64px;
	height: auto;
	flex-shrink: 0;
	margin-top: 4px;
}

.mf-bg-grid__desc p {
	font-family: var(--mf-font-heading);
	font-size: clamp(18px, 1.8vw, 25px);
	font-weight: 500;
	line-height: 1.45;
	color: #525252;
	margin: 0;
}

.mf-bg-grid__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 30px;
}

.mf-bg-card {
	margin-bottom: 60px;
}

.mf-bg-card__thumb {
	display: block;
	overflow: hidden;
	margin-bottom: 28px;
	aspect-ratio: 16 / 10;
	background: #f3f3f3;
}

.mf-bg-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

.mf-bg-card:hover .mf-bg-card__thumb img {
	transform: scale(1.06);
}

.mf-bg-card__body {
	text-align: center;
}

.mf-bg-card__meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 14px;
	font-size: 15px;
	font-weight: 500;
	color: #525252;
}

.mf-bg-card__meta-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #525252;
}

.mf-bg-card__title {
	font-family: var(--mf-font-heading);
	font-size: clamp(20px, 1.8vw, 25px);
	font-weight: 500;
	line-height: 1.35;
	margin: 0;
}

.mf-bg-card__title a {
	color: #030303;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 1px;
	transition: background-size 0.35s ease;
}

.mf-bg-card__title a:hover,
.mf-bg-card__title a:focus-visible {
	background-size: 100% 1px;
}

.mf-bg-grid__empty {
	text-align: center;
	color: #525252;
	font-size: 18px;
}

/* Pagination */
.mf-bg-pagination {
	padding-top: 20px;
}

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

.mf-bg-pagination .page-numbers li {
	margin: 0;
}

.mf-bg-pagination a.page-numbers,
.mf-bg-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--mf-font-heading);
	font-size: 16px;
	font-weight: 500;
	color: #525252;
	text-decoration: none;
	line-height: 1;
}

.mf-bg-pagination a.page-numbers:hover,
.mf-bg-pagination a.page-numbers:focus-visible,
.mf-bg-pagination span.page-numbers.current {
	color: #030303;
}

.mf-bg-pagination .next.page-numbers {
	margin-left: 8px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.mf-bg-pagination__arrow {
	display: block;
}

/* Filters + search */
.mf-bg-filters {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0 0 40px;
}

.mf-bg-filters__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mf-bg-filters__chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border: 1px solid #e5e5e5;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	color: #525252;
	text-decoration: none;
	transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.mf-bg-filters__chip:hover,
.mf-bg-filters__chip.is-active {
	background: var(--mf-accent, #fcc610);
	border-color: var(--mf-accent, #fcc610);
	color: #030303;
}

.mf-bg-filters__search {
	display: flex;
	align-items: center;
	max-width: 420px;
	border: 1px solid #e5e5e5;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}

.mf-bg-filters__search input {
	flex: 1;
	border: 0;
	padding: 12px 18px;
	font-size: 15px;
	outline: none;
	background: transparent;
}

.mf-bg-filters__search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 44px;
	border: 0;
	background: transparent;
	color: #030303;
	cursor: pointer;
}

.mf-bg-card__excerpt {
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.55;
	color: #666;
}

/* Responsive */
@media (max-width: 991px) {
	.mf-bg-hero__grid,
	.mf-bg-grid__intro {
		grid-template-columns: 1fr;
	}

	.mf-bg-hero__scribble {
		display: none;
	}

	.mf-bg-hero__title-wrap {
		padding-right: 64px;
	}

	.mf-bg-hero__spin {
		width: 48px;
		top: 4px;
	}

	.mf-bg-grid__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.mf-bg-grid__list {
		grid-template-columns: 1fr;
	}

	.mf-bg-grid__desc {
		gap: 18px;
	}

	.mf-bg-card {
		margin-bottom: 40px;
	}
}
