/* Blog only: preserve editor content and the theme's working search/pagination. */
body.bfi-blog {
	--bfb-ink: #10282c;
	--bfb-slate: #2b4448;
	--bfb-muted: #5c6b6d;
	--bfb-green: #127a71;
	--bfb-line: #e9e5de;
	--bfb-cream: #faf9f7;
}
body.bfi-blog #page-content { font-family: Poppins, sans-serif; color: var(--bfb-slate); }
body.bfi-blog #page-content :is(h1,h2,h3,h4) { color: var(--bfb-ink); font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
body.bfi-blog #page-content :is(a,button,input):focus-visible { outline: 3px solid #e3ad20; outline-offset: 4px; }
/* The existing announcement strip, in the current brand palette. */
/* Listing hero: calmer text size, bounded artwork, no spacer-driven gaps. */
body.bfi-blog-index #page-content .home-top-banner { padding-block: 64px !important; background: radial-gradient(1000px 520px at 85% 10%, rgba(191,229,225,.5), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(245,243,240,.95), transparent 60%), #fff !important; position: relative; }
body.bfi-blog-index #page-content .home-top-banner .g-cols { align-items: center; }
body.bfi-blog-index #page-content .home-top-banner .w-separator { display: none; }
body.bfi-blog-index #page-content .home-top-banner h2 { font-size: clamp(30px,3.5vw,46px); line-height: 1.2; margin: 0 0 24px; overflow-wrap: anywhere; }
body.bfi-blog-index #page-content .home-top-banner h5 { font-size: 16px; line-height: 1.85; font-weight: 400; color: var(--bfb-slate); margin: 0; }
body.bfi-blog-index #page-content .home-top-banner .w-image { height: auto !important; max-width: 360px; margin: 0 auto; }
body.bfi-blog-index #page-content .home-top-banner :is(.w-image-h,img) { height: auto !important; width: 100%; }
/* Search stays in normal flow on small screens. */
body.bfi-blog-index #page-content .l-section:has(.w-search.blog-search) { padding-block: 28px !important; background: #f5f3ef !important; border-block: 1px solid var(--bfb-line); }
body.bfi-blog-index #page-content .w-search.blog-search { margin: 0 auto !important; transform: none !important; top: auto !important; width: 100%; max-width: 660px; }
body.bfi-blog-index #page-content .w-search.blog-search form { display: flex; gap: 8px; align-items: center; padding: 6px; border: 1px solid var(--bfb-line); border-radius: 100px; background: #fff; box-shadow: 0 6px 20px #10282c06; }
body.bfi-blog-index #page-content .w-search .w-form-row-field { flex: 1; min-width: 0; }
body.bfi-blog-index #page-content .w-search input[type=text] { font-size: 16px; border: 0; box-shadow: none; background: transparent; padding-left: 20px; }
body.bfi-blog-index #page-content .w-search-form-btn { position: static; flex: none; min-height: 46px; min-width: 96px; border-radius: 100px; background: #f8c83e; color: #242820; }
/* Existing post grid: one readable card per item, image above the title. */
body.bfi-blog-index #page-content .l-section:has(.w-grid article.type-post) { padding-top: 20px !important; padding-bottom: 32px !important; }
body.bfi-blog-index #page-content .w-grid:has(article.type-post) { --gap: 28px !important; }
body.bfi-blog-index #page-content article.type-post .w-grid-item-h { height: 100%; border: 1px solid var(--bfb-line); border-radius: 20px; overflow: hidden; background: #fff; transition: box-shadow .2s ease; }
body.bfi-blog-index #page-content article.type-post .w-grid-item-h:hover { box-shadow: 0 12px 30px #10282c0c; }
body.bfi-blog-index #page-content article.type-post .w-grid-item-h > .w-hwrapper { display: flex; flex-direction: column; align-items: stretch; gap: 0; height: 100%; }
body.bfi-blog-index #page-content article.type-post .w-grid-item-h > .w-hwrapper > .w-vwrapper { order: 2; width: 100% !important; padding: 26px; gap: 14px; }
body.bfi-blog-index #page-content article.type-post .post_image { order: 1; width: 100% !important; margin: 0 !important; aspect-ratio: 16/9; overflow: hidden; }
body.bfi-blog-index #page-content article.type-post .post_image > div { display: none; }
body.bfi-blog-index #page-content article.type-post .post_image a { display: block; position: relative; height: 100%; }
body.bfi-blog-index #page-content article.type-post .post_image img { position: static; width: 100%; height: 100%; object-fit: cover; }
body.bfi-blog-index #page-content article.type-post .post_title { font-size: 24px !important; line-height: 1.35 !important; margin: 0 !important; padding: 0 !important; background: transparent !important; color: var(--bfb-ink) !important; }
body.bfi-blog-index #page-content article.type-post .post_title a:hover { color: var(--bfb-green); }
body.bfi-blog-index #page-content article.type-post .post_content { padding: 0 !important; font-size: 14px !important; line-height: 1.8 !important; color: var(--bfb-muted); }
body.bfi-blog-index #page-content article.type-post .post_taxonomy { font-size: 11px; line-height: 1.6; letter-spacing: .035em; color: var(--bfb-green); }
body.bfi-blog-index #page-content article.type-post .post_date { font-size: 12px; color: var(--bfb-muted); }
body.bfi-blog-index #page-content .pagination { margin-top: 40px; }
body.bfi-blog-index #page-content .pagination .page-numbers { min-width: 44px; min-height: 44px; border-radius: 50%; }
body.bfi-blog-index #page-content .pagination .current { background: var(--bfb-green); color: #fff; }
/* Shared editorial promotions. Existing form fields, text and handlers stay intact. */
body.bfi-blog #page-content :is(.banner-blog,.l-section:has(> .l-section-h > .g-cols > .wpb_column > .vc_column-inner > .wpb_wrapper > .bfi-lead-form--newsletter)) { background: #2b634d !important; color: #fff !important; border-radius: 20px; padding: 32px !important; }
body.bfi-blog #page-content :is(.banner-blog,.l-section:has(> .l-section-h > .g-cols > .wpb_column > .vc_column-inner > .wpb_wrapper > .bfi-lead-form--newsletter)) :is(h3,h3 span) { color: #fff !important; font-size: 26px; line-height: 1.45; }
body.bfi-blog #page-content :is(.banner-blog,.l-section:has(> .l-section-h > .g-cols > .wpb_column > .vc_column-inner > .wpb_wrapper > .bfi-lead-form--newsletter)) .yellow-text { color: #f8c83e !important; }
body.bfi-blog #page-content .banner-blog .w-separator { height: 20px; }
/* Article reading column, featured image and metadata. */
body.bfi-blog-post #page-content > .l-section { padding-block: 64px !important; }
body.bfi-blog-post #page-content > .l-section > .l-section-h { max-width: 1210px; }
body.bfi-blog-post #page-content > .l-section > .l-section-h > .g-cols { margin: 0; gap: 48px; }
body.bfi-blog-post #page-content > .l-section > .l-section-h > .g-cols > .vc_col-sm-9 { width: calc(100% - 318px); min-width: 0; }
body.bfi-blog-post #page-content > .l-section > .l-section-h > .g-cols > .vc_col-sm-3 { width: 270px; min-width: 0; }
body.bfi-blog-post #page-content > .l-section > .l-section-h > .g-cols > .wpb_column > .vc_column-inner { padding: 0; }
body.bfi-blog-post #page-content :is(h1,h2).post_title { font-size: clamp(30px,3.2vw,44px); line-height: 1.22; margin-bottom: 24px; overflow-wrap: anywhere; }
body.bfi-blog-post #page-content .post_title + .w-hwrapper { flex-wrap: wrap; gap: 8px 16px; color: var(--bfb-muted); font-size: 13px; }
body.bfi-blog-post #page-content .post_title + .w-hwrapper .wpb_text_column:has(.wtr-time-wrap) { margin: 0; }
body.bfi-blog-post #page-content .post_title + .w-hwrapper .post_taxonomy a { color: var(--bfb-green); }
body.bfi-blog-post #page-content .post_image.stretched { margin: 0; border-radius: 18px; overflow: hidden; }
body.bfi-blog-post #page-content .post_image.stretched img { display: block; width: 100%; height: auto; }
body.bfi-blog-post #page-content .post_content { color: var(--bfb-slate); font-size: 17px; line-height: 1.85; overflow-wrap: break-word; }
body.bfi-blog-post #page-content .post_content :is(p,ul,ol,blockquote) { margin-bottom: 24px; }
body.bfi-blog-post #page-content .post_content :is(h2,h3,h4,h5) { margin: 36px 0 18px; color: var(--bfb-ink); font-weight: 600; line-height: 1.35; }
body.bfi-blog-post #page-content .post_content h2 { font-size: 30px; }
body.bfi-blog-post #page-content .post_content h3 { font-size: 26px; }
body.bfi-blog-post #page-content .post_content :is(h4,h5) { font-size: 23px; }
body.bfi-blog-post #page-content .post_content li { margin-bottom: 8px; }
body.bfi-blog-post #page-content .post_content a:not(.w-btn):not(.bfi-lead-form__button) { color: var(--bfb-green); text-decoration: underline; text-underline-offset: 3px; }
body.bfi-blog-post #page-content .post_content :is(img,video,iframe) { max-width: 100%; }
body.bfi-blog-post #page-content .post_content img { height: auto; }
body.bfi-blog-post #page-content .post_content blockquote { border-left: 3px solid #28bdb1; background: #eef8f7; padding: 22px 26px; border-radius: 0 12px 12px 0; font-size: inherit; }
body.bfi-blog-post #page-content .post_content table { display: block; max-width: 100%; overflow-x: auto; font-size: 14px; line-height: 1.6; border: 1px solid var(--bfb-line); border-radius: 12px; }
body.bfi-blog-post #page-content .post_content :is(th,td) { padding: 12px 16px; }
body.bfi-blog-post #page-content .post_content .banner-blog { margin: 32px 0; width: 100%; box-sizing: border-box; }
body.bfi-blog-post #page-content .post_content .banner-blog h3 { margin: 0; }
body.bfi-blog-post #page-content .post_content .banner-blog .l-section-h { padding: 0; }
body.bfi-blog-post #page-content .post_author { border: 1px solid var(--bfb-line); background: var(--bfb-cream); border-radius: 18px; padding: 24px; margin-top: 36px; font-size: 14px; line-height: 1.75; }
/* Product sidebar stays useful, compact and separate from the article copy. */
body.bfi-blog-post #page-content .vc_col-sm-3 .widget { background: var(--bfb-cream); border: 1px solid var(--bfb-line); border-radius: 18px; padding: 24px; }
body.bfi-blog-post #page-content .vc_col-sm-3 h4 { font-size: 20px; margin-bottom: 18px; }
body.bfi-blog-post #page-content #menu-sidebar-products a { color: var(--bfb-slate); font-size: 13px; line-height: 1.6; }
body.bfi-blog-post #page-content #menu-sidebar-products a:hover { color: var(--bfb-green); }
@media (max-width: 1024px) {
	body.bfi-blog-post #page-content > .l-section > .l-section-h > .g-cols { gap: 32px; }
	body.bfi-blog-post #page-content > .l-section > .l-section-h > .g-cols > .vc_col-sm-9 { width: calc(100% - 272px); }
	body.bfi-blog-post #page-content > .l-section > .l-section-h > .g-cols > .vc_col-sm-3 { width: 240px; }
}
@media (max-width: 767px) {
	body.bfi-blog #page-content > .l-section > .l-section-h { padding-inline: 22px !important; }
					body.bfi-blog-index #page-content .home-top-banner { padding-block: 40px !important; }
	body.bfi-blog-index #page-content .home-top-banner .g-cols { margin: 0; gap: 24px; }
	body.bfi-blog-index #page-content .home-top-banner .wpb_column { margin: 0; }
	body.bfi-blog-index #page-content .home-top-banner .vc_column-inner { padding: 0; }
	body.bfi-blog-index #page-content .home-top-banner h2 { font-size: 30px; }
	body.bfi-blog-index #page-content .home-top-banner h5 { font-size: 15px; line-height: 1.8; }
	body.bfi-blog-index #page-content .home-top-banner .w-image { max-width: 210px; }
	body.bfi-blog-index #page-content .l-section:has(.w-search.blog-search) { padding-block: 22px !important; }
	body.bfi-blog-index #page-content .w-search input[type=text] { font-size: 16px; padding-left: 10px; }
	body.bfi-blog-index #page-content .w-search-form-btn { min-width: 78px; padding-inline: 14px; }
	body.bfi-blog-index #page-content .w-grid:has(article.type-post) { --columns: 1 !important; --gap: 22px !important; }
	body.bfi-blog-index #page-content article.type-post .w-grid-item-h > .w-hwrapper > .w-vwrapper { padding: 22px; }
	body.bfi-blog-index #page-content article.type-post .post_title { font-size: 21px !important; }
	body.bfi-blog #page-content :is(.banner-blog,.l-section:has(> .l-section-h > .g-cols > .wpb_column > .vc_column-inner > .wpb_wrapper > .bfi-lead-form--newsletter)) { padding: 24px 20px !important; }
	body.bfi-blog #page-content :is(.banner-blog,.l-section:has(> .l-section-h > .g-cols > .wpb_column > .vc_column-inner > .wpb_wrapper > .bfi-lead-form--newsletter)) :is(h3,h3 span) { font-size: 22px; }
	body.bfi-blog-post #page-content > .l-section { padding-block: 36px !important; }
	body.bfi-blog-post #page-content > .l-section > .l-section-h > .g-cols { gap: 36px; }
	body.bfi-blog-post #page-content > .l-section > .l-section-h > .g-cols > :is(.vc_col-sm-9,.vc_col-sm-3) { width: 100%; margin: 0; }
	body.bfi-blog-post #page-content .post_content { font-size: 16px; line-height: 1.8; }
	body.bfi-blog-post #page-content .post_content h2 { font-size: 27px; }
	body.bfi-blog-post #page-content .post_content :is(h3,h4,h5) { font-size: 23px; }
	body.bfi-blog-post #page-content .post_content .banner-blog .g-cols { margin: 0; }
	body.bfi-blog-post #page-content .post_content .banner-blog .vc_column-inner { padding: 0; }
	body.bfi-blog-post #page-content .post_author { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	body.bfi-blog #page-content * { scroll-behavior: auto !important; transition: none !important; }
}

/* Contain legacy icon pseudo-elements instead of letting them float into the next row. */
body.bfi-blog-post #page-content #menu-sidebar-products { display: grid; gap: 10px; margin: 0; padding: 0; }
body.bfi-blog-post #page-content #menu-sidebar-products a { display: flex; align-items: center; gap: 10px; }
body.bfi-blog-post #page-content #menu-sidebar-products a::before { position: static; float: none; flex: 0 0 24px; width: 24px; height: 24px; margin: 0; transform: none; }
body.bfi-blog-index #page-content .w-search-form-btn { transform: none !important; margin: 0 !important; top: auto !important; bottom: auto !important; align-self: center; }
@media(max-width: 767px) {
 body.bfi-blog-index #page-content .l-section:has(.w-grid article.type-post) .g-cols,
 body.bfi-blog-index #page-content .l-section:has(.w-search.blog-search) .g-cols { margin: 0; }
 body.bfi-blog-index #page-content .l-section:has(.w-grid article.type-post) .vc_column-inner,
 body.bfi-blog-index #page-content .l-section:has(.w-search.blog-search) .vc_column-inner { padding: 0; }
 body.bfi-blog-index #page-content .w-search-form-btn { width: auto !important; min-width: 78px !important; padding-inline: 14px !important; }
}
@media(max-width: 767px) {
 /* Theme sections already have side gutters: use one 22px inset, not two. */
 body.bfi-blog #page-content > .l-section { padding-inline: 0 !important; }
 body.bfi-blog-post #page-content :is(h1,h2).post_title { font-size: 30px !important; line-height: 1.25 !important; }
}
/* Keep article artwork (including embedded headlines) fully visible. */
body.bfi-blog-index #page-content article.type-post .post_image { background: var(--bfb-cream); }
body.bfi-blog-index #page-content article.type-post .post_image img { object-fit: contain; }
body.bfi-blog-index #page-content > .l-section.width_full > .l-section-h > .g-cols { margin-inline: 0; }

/* Blog refresh: the same two-button closing CTA used on other pages. */
body.bfi-blog-index #page-content .l-section:has(> .l-section-h .bfi-cta) { background: #fff !important; padding-block: 16px 24px !important; }
body.bfi-blog-index #page-content .bfi-cta .bfi-cta__title { color: #fff; }
body.bfi-blog-index #page-content .bfi-blog-band .g-cols { align-items: center; }
body.bfi-blog-index #page-content .bfi-blog-band .wpb_text_column { font-size: 14px; text-align: left; }
/* Neutral page buttons, with a single green current page. */
body.bfi-blog-index #page-content .pagination .nav-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; }
body.bfi-blog-index #page-content .pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 44px; height: 44px; margin: 0; padding: 0 14px; border: 1px solid var(--bfb-line); border-radius: 12px; background: #fff; color: var(--bfb-slate); font-size: 14px; font-weight: 500; box-shadow: none; }
body.bfi-blog-index #page-content .pagination a.page-numbers:hover { border-color: var(--bfb-green); background: #eef8f7; color: var(--bfb-green); }
body.bfi-blog-index #page-content .pagination .page-numbers.current { border-color: var(--bfb-green); background: var(--bfb-green); color: #fff; }
body.bfi-blog-index #page-content .pagination .page-numbers.dots { min-width: 24px; padding: 0 4px; border: 0; background: transparent; }
/* Preserve the complete image at its native proportions; undo the legacy grid crop. */
body.bfi-blog-index #page-content article.type-post .post_image { aspect-ratio: auto !important; height: auto !important; background: transparent; }
body.bfi-blog-index #page-content article.type-post .post_image a { height: auto !important; }
body.bfi-blog-index #page-content article.type-post .post_image img { position: static !important; display: block; width: 100% !important; height: auto !important; max-height: none; transform: none !important; margin: 0 !important; object-fit: contain; }
@media(max-width: 767px) {
 body.bfi-blog-index #page-content .bfi-blog-band .g-cols { gap: 12px; }
 body.bfi-blog-index #page-content .bfi-blog-band .wpb_text_column { text-align: center; }
 body.bfi-blog-index #page-content .bfi-blog-band .w-btn-wrapper { text-align: center; }
 body.bfi-blog-index #page-content .pagination .page-numbers { min-width: 40px; height: 42px; padding-inline: 10px; }
}
body.bfi-blog-index #page-content .pagination .page-numbers span { color: inherit !important; }
body.bfi-blog-index #page-content .pagination .nav-links .page-numbers { color: var(--bfb-slate) !important; }
body.bfi-blog-index #page-content .pagination .nav-links .page-numbers.current { color: #fff !important; }
body.bfi-blog-index #page-content .pagination .nav-links a.page-numbers:hover { color: var(--bfb-green) !important; }
/* The shared CTA supplies its own gutters; avoid nesting them inside theme gutters. */
body.bfi-blog-index #page-content > .l-section:has(.bfi-cta) > .l-section-h { padding-inline: 0 !important; }
body.bfi-blog-index #page-content > .l-section:has(.bfi-cta) > .l-section-h > .g-cols { margin: 0; }
body.bfi-blog-index #page-content > .l-section:has(.bfi-cta) .vc_column-inner { padding: 0; }
@media(max-width: 767px) {
 body.bfi-blog-index #page-content .bfi-cta__hl { white-space: normal; }
 body.bfi-blog-index #page-content .bfi-cta .bfi-cta__title { font-size: 28px; overflow-wrap: break-word; }
}

/* Compact the closing section without changing the shared CTA on other pages. */
body.bfi-blog-index #page-content .bfi-cta { padding-block: 24px 32px; }
/* Match the homepage yellow button, with a compact 54px search control. */
body.bfi-blog-index #page-content .w-search.blog-search form { padding: 4px; }
body.bfi-blog-index #page-content .w-search .w-form-row-field { height: auto; }
body.bfi-blog-index #page-content .w-search input[type=text] { height: 44px !important; min-height: 44px; padding-block: 0 !important; line-height: normal; }
body.bfi-blog-index #page-content .w-search-form-btn { height: 44px !important; min-height: 44px !important; padding-block: 0 !important; background: #f8c83e !important; color: #242820 !important; font-weight: 600; transition: background .18s ease, border-color .18s ease; }
body.bfi-blog-index #page-content .w-search-form-btn:hover { background: #f0bc28 !important; border-color: #f0bc28 !important; color: #242820 !important; }

/* Same subtle dot texture as the homepage hero. */
body.bfi-blog-index #page-content .home-top-banner::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(16,40,44,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg,transparent,#000 30%,#000 70%,transparent); -webkit-mask-image: linear-gradient(180deg,transparent,#000 30%,#000 70%,transparent); pointer-events: none; }
body.bfi-blog-index #page-content .home-top-banner > .l-section-h { position: relative; }
body.bfi-blog-index .bfi-blog-intro-rest[hidden],
body.bfi-blog-index .bfi-blog-intro-toggle[hidden] { display: none !important; }
@media (max-width: 767px) {
 body.bfi-blog-index #page-content .home-top-banner .wpb_column:has(.w-image) { display: none; }
 body.bfi-blog-index #page-content .home-top-banner .g-cols { gap: 0; }
 body.bfi-blog-index #page-content .home-top-banner .bfi-blog-intro-toggle {
  display: inline-block; appearance: none; background: none; border: 0; border-radius: 0;
  padding: 4px 0; margin-top: 6px; min-height: 32px; color: #127a71;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.5;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
 }
 body.bfi-blog-index #page-content .home-top-banner .bfi-blog-intro-toggle:focus-visible { outline: 2px solid #127a71; outline-offset: 3px; }
}

/* A slim, editable article CTA; the company-page component supplies the artwork. */
body.bfi-blog-post #page-content .post_content .bfi-blog-inline-cta {
 display: grid; grid-template-columns: minmax(0,1fr) 190px; align-items: center; gap: 20px;
 margin: 28px 0; padding: 26px 28px; border-radius: 18px; color: #fff;
 background: radial-gradient(circle,rgba(255,255,255,.08) 1px,transparent 1.3px) 0 0/22px 22px,linear-gradient(135deg,#2f6e4c,#2a6445);
}
body.bfi-blog-post #page-content .post_content .bfi-blog-inline-cta .bfi-company-cta__title { color: #fff; font-size: 23px; line-height: 1.3; margin: 0 0 8px; }
body.bfi-blog-post #page-content .post_content .bfi-blog-inline-cta .bfi-company-cta__text { color: #e3eee7; font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
body.bfi-blog-post #page-content .post_content .bfi-blog-inline-cta .bfi-company-cta__note { color: #d1e3d7; font-size: 11px; line-height: 1.5; margin: 10px 0 0; }
body.bfi-blog-post #page-content .post_content .bfi-blog-inline-cta a.bfi-company-cta__button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 20px; border-radius: 100px; background: #f8c83e; color: #242820; font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background .18s ease; }
body.bfi-blog-post #page-content .post_content .bfi-blog-inline-cta a.bfi-company-cta__button:hover { background: #f0bc28; }
body.bfi-blog-post #page-content .post_content .bfi-blog-inline-cta .bfi-company-cta__art svg { display: block; width: 100%; height: auto; }
@media(max-width:1024px) {
 body.bfi-blog-post #page-content .post_content .bfi-blog-inline-cta { grid-template-columns: minmax(0,1fr) 140px; padding: 24px; gap: 16px; }
}
@media(max-width:600px) {
 body.bfi-blog-post #page-content .post_content .bfi-blog-inline-cta { grid-template-columns: 1fr; padding: 22px; }
 body.bfi-blog-post #page-content .post_content .bfi-blog-inline-cta .bfi-company-cta__art { display: none; }
 body.bfi-blog-post #page-content .post_content .bfi-blog-inline-cta .bfi-company-cta__title { font-size: 21px; }
}
