@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

:root { --atfh-accent: #C43A2F; }

/* ============================================================
   Blog uses the REAL Leitmotif header + footer. Below: paint the
   content area white + override dark-theme colours. Body classes:
   .post-type-archive-blog / .single-blog / .tax-blog_category
   ============================================================ */

.post-type-archive-blog .edgtf-title-holder, .single-blog .edgtf-title-holder, .tax-blog_category .edgtf-title-holder,
.post-type-archive-blog .edgtf-title, .single-blog .edgtf-title, .tax-blog_category .edgtf-title { display: none !important; }

.post-type-archive-blog .edgtf-content, .single-blog .edgtf-content, .tax-blog_category .edgtf-content,
.post-type-archive-blog .edgtf-content .edgtf-content-inner, .single-blog .edgtf-content .edgtf-content-inner, .tax-blog_category .edgtf-content .edgtf-content-inner,
.post-type-archive-blog .edgtf-container, .single-blog .edgtf-container, .tax-blog_category .edgtf-container,
.post-type-archive-blog .edgtf-container-inner, .single-blog .edgtf-container-inner, .tax-blog_category .edgtf-container-inner {
	background: #ffffff !important; padding: 0 !important; max-width: none !important; width: auto !important;
}

.atfh-blog { background: #ffffff !important; color: #191817; font-family: 'Archivo','Helvetica Neue',Helvetica,Arial,sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; }
.atfh-blog, .atfh-blog *, .atfh-blog *::before, .atfh-blog *::after { box-sizing: border-box; }
.atfh-blog img { max-width: 100%; height: auto; }
.atfh-blog ::selection { background: #111111; color: #ffffff; }
.atfh-blog a { color: inherit; text-decoration: none; }
.atfh-blog h1, .atfh-blog h2, .atfh-blog h3, .atfh-blog h4, .atfh-blog p, .atfh-blog span, .atfh-blog div, .atfh-blog li { font-family: 'Archivo','Helvetica Neue',Helvetica,Arial,sans-serif; }

/* ---- Layout wrapper ---- */
.atfh-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---- Hero ---- */
.atfh-hero { padding: 64px 0 34px; border-bottom: 1px solid #ebe9e6; }
.atfh-title { margin: 0; font-size: clamp(40px,6.4vw,74px); font-weight: 900; letter-spacing: -.03em; line-height: 1.02; color: #111111; }
.atfh-title .atfh-accent { color: var(--atfh-accent); }
.atfh-sub { margin: 18px 0 0; max-width: 560px; font-size: 19px; line-height: 1.6; color: #55534f; }
.atfh-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.atfh-chip { font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px; border: 1px solid #d8d5d0; background: #fff; color: #55534f; transition: all .15s ease; }
.atfh-chip:hover { border-color: #111111; color: #111111; }
.atfh-chip.is-active { border-color: #111111; background: #111111; color: #ffffff; }

/* ---- Small uppercase label ---- */
.atfh-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a09d97; }

/* ---- Highlight + Recomandate ---- */
.atfh-feature { padding: 44px 0; border-bottom: 1px solid #ebe9e6; }
.atfh-feature .atfh-eyebrow { margin-bottom: 22px; }
.atfh-feature-cols { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(0,1fr); gap: 40px; align-items: start; }

.atfh-highlight { display: block; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 30px rgba(17,17,17,.10); transition: transform .25s ease, box-shadow .25s ease; }
.atfh-highlight:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(17,17,17,.16); }
.atfh-hl-imgwrap { width: 100%; aspect-ratio: 16/9; background: #f2f1ee; overflow: hidden; }
.atfh-hl-body { padding: 26px 30px 30px; display: flex; flex-direction: column; gap: 14px; }
.atfh-highlight h2 { margin: 0; font-size: clamp(24px,2.6vw,32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: #111111; }
.atfh-highlight p { margin: 0; font-size: 16px; line-height: 1.6; color: #55534f; }

.atfh-side .atfh-eyebrow { margin-bottom: 18px; }
.atfh-side-list { display: flex; flex-direction: column; gap: 14px; }
.atfh-side-card { display: block; background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: 0 4px 20px rgba(17,17,17,.07); border-left: 3px solid var(--atfh-accent); transition: transform .18s ease, box-shadow .18s ease; }
.atfh-side-card:hover { transform: translateX(3px); box-shadow: 0 8px 26px rgba(17,17,17,.12); }
.atfh-side-card h4 { margin: 8px 0 6px; font-size: 16px; font-weight: 700; line-height: 1.25; color: #111111; }
.atfh-side-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #8a877f; }

/* ---- Latest / grid ---- */
.atfh-latest { padding: 46px 0 88px; }
.atfh-section-title { margin: 0 0 30px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: #111111; }
.atfh-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 34px 30px; }

/* ---- Card (raised white card + dropshadow) ---- */
.atfh-card { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 22px rgba(17,17,17,.08); transition: transform .25s ease, box-shadow .25s ease; }
.atfh-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(17,17,17,.14); }
.atfh-card-imgwrap { width: 100%; aspect-ratio: 16/10; background: #f2f1ee; overflow: hidden; }
.atfh-card-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform .5s cubic-bezier(.2,.6,.2,1); }
.atfh-card:hover .atfh-card-img, .atfh-highlight:hover .atfh-card-img { transform: scale(1.04); }
.atfh-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.atfh-card h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.015em; line-height: 1.22; color: #111111; transition: color .18s ease; }
.atfh-card:hover h3 { color: var(--atfh-accent); }
.atfh-excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: #55534f; }
.atfh-card-foot { margin-top: auto; }

/* ---- Category label + meta ---- */
.atfh-cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--atfh-accent); }
.atfh-meta { display: flex; align-items: center; gap: 8px; color: #8a877f; font-weight: 500; flex-wrap: wrap; }
.atfh-meta .atfh-author { color: #33322f; font-weight: 600; }
.atfh-readmore { display: inline-block; font-size: 15px; font-weight: 700; color: #111111; transition: transform .2s ease; }
.atfh-highlight:hover .atfh-readmore { transform: translateX(4px); }

/* ---- Pagination + empty ---- */
.atfh-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 52px; }
.atfh-pagination a, .atfh-pagination span { font-size: 14px; font-weight: 600; padding: 9px 15px; border-radius: 8px; text-decoration: none; border: 1px solid #d8d5d0; color: #55534f; }
.atfh-pagination .current { background: #111; color: #fff; border-color: #111; }
.atfh-empty { border: 1px dashed #d8d5d0; border-radius: 8px; padding: 56px 32px; text-align: center; }
.atfh-empty-title { font-size: 20px; font-weight: 700; color: #111111; }
.atfh-empty p { margin: 10px 0 0; font-size: 15px; color: #8a877f; }

/* ---- Single article ---- */
.atfh-article-body { font-size: 18px; line-height: 1.75; color: #2a2926 !important; }
.atfh-article-body > *:first-child { margin-top: 0; }
.atfh-article-body p { margin: 0 0 1.4em; color: #2a2926 !important; }
/* NOTE: no !important on font-size — the migrated content sets per-heading sizes inline
   (section titles 40px, steps 30px); we must NOT flatten that. We only enforce weight/
   colour/spacing. Plain headings (no inline size) fall back to these defaults. */
.atfh-article-body h2 { font-size: 34px; font-weight: 800 !important; letter-spacing: -.02em; line-height: 1.2 !important; margin: 1.7em 0 .5em !important; color: #111111 !important; }
.atfh-article-body h3 { font-size: 24px; font-weight: 700 !important; line-height: 1.3 !important; margin: 1.5em 0 .45em !important; color: #111111 !important; }
/* Sub-level headings (author's 30px "step" h2s) get a touch more air above for rhythm */
.atfh-article-body h2[style*="30px"] { margin-top: 2.1em !important; color: #1a1a1a !important; }
.atfh-article-body h2[style*="40px"] { margin-top: 1.9em !important; }
.atfh-article-body a { color: var(--atfh-accent) !important; text-decoration: underline; text-underline-offset: 2px; }
.atfh-article-body img, .atfh-article-body figure img { border-radius: 4px; display: block; }
.atfh-article-body figure { margin: 2.2em 0; }
.atfh-article-body figcaption, .atfh-article-body .wp-element-caption { font-size: 14px; color: #8a877f; margin-top: 10px; text-align: center; }
.atfh-article-body blockquote { margin: 1.9em 0; padding: 4px 0 4px 26px !important; border-left: 3px solid var(--atfh-accent) !important; font-size: clamp(21px,2.6vw,24px); line-height: 1.5; font-weight: 600; color: #111111 !important; font-style: normal; background: none !important; }
.atfh-article-body ul, .atfh-article-body ol { margin: 0 0 1.4em; padding-left: 1.3em; color: #2a2926 !important; }
.atfh-article-body li { margin: .4em 0; }
.atfh-article-body iframe, .atfh-article-body .wp-block-embed__wrapper iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 4px; }
.atfh-article-body .wp-block-image { margin: 2.2em 0; }
.atfh-article-body hr { border: 0; border-top: 1px solid #ebe9e6; margin: 2.4em 0; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.atfh-feature-cols { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 680px) {
	.atfh-wrap { padding: 0 18px; }
	.atfh-hero { padding: 44px 0 28px; }
	.atfh-grid { grid-template-columns: 1fr; }
}
