/* MAF Experience: Blog */

.mafb {
	--maf-hf: var(--e-global-typography-primary-font-family, var(--wp--preset--font-family--heading, Montserrat)), "Helvetica Neue", Arial, sans-serif;
	--maf-bf: var(--e-global-typography-text-font-family, var(--wp--preset--font-family--body, Figtree)), "Helvetica Neue", Arial, sans-serif;
	--maf-text: var(--e-global-color-text, #3D3D45);
	--maf-head: #20202a;
	--ink: var(--maf-head, #20202a); --body: var(--maf-text, #3D3D45); --muted: #6b6470; --soft: #978B87;
	--line: #ece9e7; --wash: #FAF7F5; --plum: #870F54; --berry: #B21E5A;
	font-family: var(--maf-bf);
	color: var(--body);
}
.mafb *, .mafb *::before, .mafb *::after { box-sizing: border-box; }
.mafb h1, .mafb h2, .mafb p { text-transform: none; }
.mafb a { text-decoration: none; }

.mafb-in { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* ---- Header ---- */
.mafb-head { background: var(--wash); border-bottom: 1px solid var(--line); }
.mafb-headgrid { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; padding-top: 56px; padding-bottom: 46px; }
.mafb-headtitle { flex: 1 1 420px; min-width: 0; }
.mafb-bar { display: block; width: 52px; height: 5px; border-radius: 3px; background: var(--berry); margin: 0 0 20px; }
.mafb .mafb-eyebrow { font: 700 12px/1.4 var(--maf-hf) !important; letter-spacing: .12em !important; text-transform: uppercase !important; color: var(--soft) !important; margin: 0 0 12px !important; }
.mafb .mafb-h1 { font: 800 52px/1.08 var(--maf-hf) !important; letter-spacing: -.02em !important; color: var(--ink) !important; margin: 0 !important; }
.mafb .mafb-headintro { flex: 1 1 320px; min-width: 0; max-width: 420px; font: 400 17px/1.65 var(--maf-bf) !important; color: #4a4a52 !important; margin: 0 0 6px !important; }

/* ---- Layout ---- */
.mafb-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 88px; }
.mafb-wrap.is-noside { grid-template-columns: minmax(0, 1fr); }
.mafb-main { min-width: 0; }
.mafb-mob { display: none; flex-direction: column; gap: 12px; margin-bottom: 28px; }

/* ---- Search + select ---- */
.mafb-search { position: relative; display: flex; align-items: center; margin: 0; color: var(--soft); }
.mafb-searchicon { position: absolute; left: 16px; display: flex; pointer-events: none; }
.mafb .mafb-search input[type="search"], .mafb .mafb-select {
	width: 100% !important; margin: 0 !important; border: 1px solid #ddd8d5 !important; border-radius: 999px !important;
	padding: 12px 18px 12px 42px !important; font: 400 15px/1.2 var(--maf-bf) !important; color: var(--ink) !important;
	background: #fff !important; box-shadow: none !important; outline: none !important; height: auto !important; -webkit-appearance: none;
}
.mafb .mafb-select { padding-left: 18px !important; font-weight: 500 !important; -webkit-appearance: menulist; appearance: auto; }
.mafb .mafb-search input[type="search"]:focus, .mafb .mafb-select:focus { border-color: var(--ink) !important; }

/* ---- Active filter ---- */
.mafb-active { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline; margin: 0 0 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mafb-activek { font: 700 11px/1 var(--maf-hf); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.mafb-activev { font: 800 24px/1.2 var(--maf-hf); color: var(--ink); }
.mafb a.mafb-clear { font: 600 14px/1 var(--maf-hf); color: var(--muted) !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* ---- Shared bits ---- */
.mafb-cat { display: block; font: 700 11px/1.3 var(--maf-hf); letter-spacing: .12em; text-transform: uppercase; color: var(--berry) !important; }
.mafb-date { display: block; font: 500 13px/1.4 var(--maf-bf); color: var(--soft); }
.mafb-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #f3efed, #e9e4e1); }
.mafb img { display: block; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; max-width: none; }

/* ---- Latest card ---- */
.mafb a.mafb-feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; margin-bottom: 40px; color: inherit; transition: border-color .18s ease, box-shadow .18s ease; }
.mafb a.mafb-feat:hover { border-color: #d8d3d0; box-shadow: 0 16px 34px rgba(32,32,42,.08); }
.mafb-featimg { display: block; min-height: 300px; background: #eceae8; overflow: hidden; }
.mafb-featimg img { width: 100% !important; height: 100% !important; object-fit: cover; }
.mafb-featbody { display: flex; flex-direction: column; justify-content: center; padding: 32px 32px 30px; min-width: 0; }
.mafb-featmeta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.mafb-latest { background: var(--berry); color: #fff; border-radius: 999px; padding: 6px 11px; font: 700 10px/1 var(--maf-hf); letter-spacing: .1em; text-transform: uppercase; }
.mafb-feattitle { display: block; font: 800 26px/1.22 var(--maf-hf); letter-spacing: -.015em; color: var(--ink); margin: 16px 0 0; text-wrap: balance; }
.mafb-featex { display: block; font: 400 16px/1.65 var(--maf-bf); color: #4a4a52; margin: 14px 0 0; }
.mafb-featbody .mafb-date { font-size: 14px; margin-top: 20px; }

/* ---- Grid ---- */
.mafb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 26px; }
.mafb a.mafb-card { display: flex; flex-direction: column; min-width: 0; color: inherit; }
.mafb-cardimg { display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #eceae8; border: 1px solid var(--line); }
.mafb-cardimg img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .4s ease; }
.mafb a.mafb-card:hover .mafb-cardimg img { transform: scale(1.03); }
.mafb-card .mafb-cat { margin-top: 18px; }
.mafb-cardtitle { display: block; font: 700 20px/1.3 var(--maf-hf); color: var(--ink); margin: 10px 0 0; text-wrap: pretty; transition: color .15s ease; }
.mafb a.mafb-card:hover .mafb-cardtitle { color: var(--plum); }
.mafb-cardtitle.is-sm { font-size: 18px; }
.mafb-cardex { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font: 400 15px/1.6 var(--maf-bf); color: #4a4a52; margin: 10px 0 0; }
.mafb-card .mafb-date { margin-top: 14px; }

.mafb .mafb-empty { font: 400 17px/1.6 var(--maf-bf) !important; color: var(--muted) !important; text-align: center; padding: 48px 0; margin: 0 !important; }

/* ---- Pagination ---- */
.mafb-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 56px; }
.mafb-pages .page-numbers { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink) !important; font: 700 14px/1 var(--maf-hf); padding: 0 14px; text-decoration: none !important; }
.mafb-pages a.page-numbers:hover { border-color: var(--ink); }
.mafb-pages .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.mafb-pages .page-numbers.dots { border-color: transparent; }

/* ---- Sidebar ---- */
.mafb-side { min-width: 0; }
.mafb-side .mafb-search { margin-bottom: 32px; }
.mafb-cats { border-top: 4px solid var(--berry); border-radius: 4px 4px 0 0; padding-top: 20px; display: flex; flex-direction: column; gap: 1px; }
.mafb .mafb-catshead { font: 800 15px/1 var(--maf-hf) !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: var(--ink) !important; margin: 0 0 14px !important; }
.mafb a.mafb-catlink { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 10px; border-radius: 7px; font: 400 14px/1.35 var(--maf-bf); color: #4a4a52 !important; transition: background .12s ease, color .12s ease; }
.mafb a.mafb-catlink:hover { background: var(--wash); color: var(--ink) !important; }
.mafb a.mafb-catlink.is-on { background: var(--wash); color: var(--ink) !important; font-weight: 700; }
.mafb-count { flex: 0 0 auto; font: 500 12px/1.35 var(--maf-bf); color: var(--soft); }

/* ---- Single ---- */
.mafb-shead { background: var(--wash); border-bottom: 1px solid var(--line); }
.mafb-narrow { max-width: 900px; padding-top: 40px; padding-bottom: 48px; }
.mafb a.mafb-back { display: inline-flex; gap: 8px; font: 600 14px/1 var(--maf-hf); color: var(--muted) !important; margin-bottom: 30px; }
.mafb a.mafb-back:hover { color: var(--ink) !important; }
.mafb .mafb-cat.is-big { font-size: 12px; letter-spacing: .14em; display: inline-block; }
.mafb .mafb-stitle { font: 800 46px/1.12 var(--maf-hf) !important; letter-spacing: -.02em !important; color: var(--ink) !important; margin: 16px 0 0 !important; text-wrap: balance; }
.mafb .mafb-date.is-big { font-size: 15px; margin: 20px 0 0; }

.mafb-wide { max-width: 1100px; padding-top: 44px; }
.mafb-hero { aspect-ratio: 16 / 8; border-radius: 18px; overflow: hidden; background: #eceae8; border: 1px solid var(--line); }
.mafb-hero img { width: 100% !important; height: 100% !important; object-fit: cover; }

.mafb-read { max-width: calc(68ch + 64px); padding-top: 48px; }

.mafb-content { font: 400 18px/1.75 var(--maf-bf); color: var(--body); }
.mafb-content > *:first-child { margin-top: 0 !important; }
.mafb-content p { font: 400 18px/1.75 var(--maf-bf) !important; color: var(--body) !important; margin: 0 0 24px !important; }
.mafb-content > p:first-of-type { font-size: 21px !important; line-height: 1.6 !important; color: var(--ink) !important; font-weight: 500 !important; }
.mafb-content h2 { font: 800 26px/1.3 var(--maf-hf) !important; color: var(--ink) !important; margin: 44px 0 16px !important; }
.mafb-content h3 { font: 700 21px/1.35 var(--maf-hf) !important; color: var(--ink) !important; margin: 36px 0 12px !important; }
.mafb-content h4 { font: 700 17px/1.4 var(--maf-hf) !important; color: var(--ink) !important; margin: 28px 0 10px !important; }
.mafb-content a { color: var(--plum) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.mafb-content ul, .mafb-content ol { margin: 0 0 24px 1.3em !important; padding: 0 !important; }
.mafb-content li { margin: 0 0 10px; line-height: 1.7; }
.mafb-content ul li::marker { color: var(--berry); }
.mafb-content blockquote, .mafb-content .wp-block-quote, .mafb-content .wp-block-pullquote { margin: 36px 0 !important; padding: 26px 30px !important; background: var(--wash) !important; border: 0 !important; border-left: 4px solid var(--berry) !important; border-radius: 0 12px 12px 0; text-align: left !important; }
.mafb-content blockquote p { font-size: 21px !important; line-height: 1.55 !important; font-style: italic; color: var(--ink) !important; margin: 0 0 10px !important; }
.mafb-content blockquote p:last-child { margin-bottom: 0 !important; }
.mafb-content blockquote cite { display: block; margin-top: 12px; font: 600 14px/1.4 var(--maf-hf); font-style: normal; color: var(--soft); }
.mafb-content img { max-width: 100% !important; height: auto !important; border-radius: 12px !important; }
.mafb-content figure { margin: 32px 0 !important; max-width: 100%; }
.mafb-content figcaption { font: 400 14px/1.5 var(--maf-bf); color: var(--muted); margin-top: 10px; text-align: center; }
.mafb-content iframe, .mafb-content video { max-width: 100%; border-radius: 12px; }
.mafb-content hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.mafb-endbar { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mafb-share { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.mafb-sharek { font: 700 11px/1 var(--maf-hf); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-right: 4px; }
.mafb a.mafb-pill, .mafb button.mafb-pill { display: inline-block; border: 1px solid var(--line) !important; border-radius: 999px !important; padding: 9px 15px !important; font: 600 13px/1 var(--maf-hf) !important; color: var(--ink) !important; background: #fff !important; box-shadow: none !important; text-transform: none !important; letter-spacing: normal !important; cursor: pointer; text-decoration: none !important; }
.mafb a.mafb-pill:hover, .mafb button.mafb-pill:hover { border-color: var(--ink) !important; }
.mafb a.mafb-btn, .mafb a.mafb-btn:visited, .mafb a.mafb-btn:hover { display: inline-block; background: var(--plum) !important; color: #fff !important; border: 0 !important; padding: 14px 26px !important; border-radius: 999px !important; font: 700 12px/1 var(--maf-hf) !important; letter-spacing: .08em !important; text-transform: uppercase !important; text-decoration: none !important; }
.mafb a.mafb-btn:hover { filter: brightness(.94); }

.mafb-related { background: var(--wash); border-top: 1px solid var(--line); margin-top: 72px; }
.mafb-related .mafb-in { padding-top: 56px; padding-bottom: 80px; }
.mafb .mafb-relhead { font: 800 26px/1.2 var(--maf-hf) !important; color: var(--ink) !important; margin: 0 0 28px !important; }
.mafb-relgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mafb a.mafb-relcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: inherit; transition: border-color .18s ease; }
.mafb a.mafb-relcard:hover { border-color: #d8d3d0; }
.mafb-relcard .mafb-cardimg { border: 0; border-radius: 0; }
.mafb-relbody { display: block; padding: 18px 20px 22px; }
.mafb-relbody .mafb-date { margin-top: 12px; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
	.mafb-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.mafb-side { display: none; }
	.mafb-mob { display: flex; }
	.mafb a.mafb-feat { grid-template-columns: minmax(0, 1fr); }
	.mafb-featimg { min-height: 0; aspect-ratio: 16 / 10; }
	.mafb-relgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	.mafb-in { padding-left: 20px; padding-right: 20px; }
	.mafb-headgrid { padding-top: 36px; padding-bottom: 30px; gap: 14px; }
	.mafb .mafb-h1 { font-size: 38px !important; }
	.mafb-wrap { padding-top: 32px; padding-bottom: 56px; }
	.mafb-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.mafb-featbody { padding: 24px 22px 26px; }
	.mafb-feattitle { font-size: 23px; }
	.mafb-narrow { padding-top: 28px; padding-bottom: 34px; }
	.mafb .mafb-stitle { font-size: 32px !important; }
	.mafb-wide { padding-top: 24px; }
	.mafb-hero { aspect-ratio: 4 / 3; border-radius: 14px; }
	.mafb-read { padding-top: 32px; }
	.mafb-content p { font-size: 17px !important; }
	.mafb-content > p:first-of-type { font-size: 19px !important; }
	.mafb-content h2 { font-size: 23px !important; }
	.mafb-endbar { flex-direction: column; align-items: stretch; }
	.mafb a.mafb-btn { text-align: center; }
	.mafb-related { margin-top: 48px; }
	.mafb-related .mafb-in { padding-top: 40px; padding-bottom: 56px; }
	.mafb-relgrid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Site fonts (v2.1) ---- */
.mafb p, .mafb input, .mafb select, .mafb button { font-family: var(--maf-bf); }
.mafb h1, .mafb h2, .mafb h3, .mafb h4 { font-family: var(--maf-hf); }

/* ---- Theme-proof link states (v2.3.1): themes/Elementor kits can enlarge links on hover ---- */
.mafb a.mafb-catlink, .mafb a.mafb-catlink:hover, .mafb a.mafb-catlink:focus, .mafb a.mafb-catlink:active, .mafb a.mafb-catlink:visited {
	font-family: var(--maf-bf) !important; font-size: 14px !important; line-height: 1.35 !important; font-weight: 400 !important;
	letter-spacing: normal !important; text-transform: none !important; text-decoration: none !important;
	transform: none !important; padding-top: 7px !important; padding-bottom: 7px !important; box-shadow: none !important; outline-offset: 2px;
}
.mafb a.mafb-catlink.is-on, .mafb a.mafb-catlink.is-on:hover { font-weight: 700 !important; }
.mafb a.mafb-catlink .mafb-count { font-size: 12px !important; }
.mafb a.mafb-catlink:hover { background: var(--wash) !important; color: var(--ink) !important; }
.mafb a.mafb-back:hover, .mafb a.mafb-back:focus { font-size: 14px !important; line-height: 1 !important; }
.mafb a.mafb-clear:hover, .mafb a.mafb-clear:focus { font-size: 14px !important; line-height: 1 !important; }
.mafb .mafb-pages .page-numbers:hover, .mafb .mafb-pages .page-numbers:focus { font-size: 14px !important; line-height: 1 !important; }
.mafb a.mafb-card:hover .mafb-cardtitle, .mafb a.mafb-card:focus .mafb-cardtitle { font-size: 20px; }
.mafb a.mafb-relcard:hover .mafb-cardtitle.is-sm { font-size: 18px; }
.mafb a.mafb-card, .mafb a.mafb-card:hover, .mafb a.mafb-feat, .mafb a.mafb-feat:hover, .mafb a.mafb-relcard, .mafb a.mafb-relcard:hover { font-size: inherit !important; text-decoration: none !important; }
