/* Blogs listing (frontend/pages/blogs) and article (blogDetails) pages, client's design. Everything is scoped under #blogsPage. */
#blogsPage {
    --bl-green: #004238;
    --bl-deep: #01372f;
    --bl-hero: #173f33;
    --bl-leaf: #4E7A5A;
    --bl-accent: #DDE48A;
    --bl-accent-2: #D5D52B;
    --bl-cream: #F6F5EE;
    --bl-sage: #EEF0EA;
    --bl-mint: #E6EBE1;
    --bl-ink: #0c1f1a;
    --bl-muted: #5B6760;
    --bl-line: #E3E1D6;
    background: #fff;
    color: var(--bl-ink);
    font-size: 16px;
    line-height: 1.5;
}
#blogsPage *, #blogsPage *::before, #blogsPage *::after { box-sizing: border-box; }
#blogsPage section { scroll-margin-top: calc(var(--site-header-h, 76px) + 72px); }
:where(#blogsPage) h1, :where(#blogsPage) h2, :where(#blogsPage) h3 { margin: 0; color: var(--bl-green); font-weight: 500; }
:where(#blogsPage) p { margin: 0; }
:where(#blogsPage) a { text-decoration: none; color: inherit; }
#blogsPage img { display: block; max-width: 100%; }
#blogsPage svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.bl-wrap { max-width: 1240px; margin: 0 auto; padding: 72px 32px; }
.bl-cream { background: var(--bl-cream); }
.bl-sage { background: var(--bl-sage); }
.bl-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bl-muted); margin-bottom: 14px !important; }
.bl-h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.02em; }
.bl-h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; margin-bottom: 26px !important; }
.bl-muted { color: var(--bl-muted); font-size: 13.5px; }
.bl-sub { color: var(--bl-muted); font-size: 14px; margin-top: 8px !important; }
.bl-empty { color: var(--bl-muted); font-size: 15px; }
.bl-empty a { color: var(--bl-green); text-decoration: underline; }
.bl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bl-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.bl-head > .bl-muted { padding-bottom: 8px; min-width: 0; flex: 0 1 34%; }
.bl-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--bl-green); padding-bottom: 8px; white-space: nowrap; }
.bl-link:hover { text-decoration: underline; }

.bl-btn { display: inline-flex; align-items: center; gap: 16px; font-weight: 600; font-size: 14px; padding: 13px 18px; border-radius: 6px; transition: transform .1s ease-out, background-color .15s; }
.bl-btn:active { transform: scale(.97); }
.bl-btn-dark { background: var(--bl-hero); color: #fff !important; }
.bl-btn-dark:hover { background: var(--bl-deep); }

/* hero */
.bl-hero { background: var(--bl-mint); }
.bl-hero .bl-wrap { padding-top: 18px; padding-bottom: 40px; }
.bl-crumbs { display: flex; gap: 10px; font-size: 12.5px; color: var(--bl-muted); margin-bottom: 26px; }
.bl-crumbs a:hover { color: var(--bl-green); text-decoration: underline; }
.bl-crumbs span:last-child { color: var(--bl-ink); }
.bl-hero-grid { display: grid; grid-template-columns: 1.75fr 1fr; gap: 48px; align-items: center; }
.bl-chip { display: inline-block; background: var(--bl-accent); color: var(--bl-deep); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 26px !important; }
.bl-hero h1 { font-size: clamp(38px, 3.9vw, 56px); line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 24px; }
.bl-hero h1 span { color: var(--bl-leaf); }
.bl-lead { color: var(--bl-muted); font-size: 16px; line-height: 1.65; max-width: 46ch; margin-bottom: 30px !important; }
.bl-hero-art { position: relative; background: #F4F7F6; border-radius: 18px; padding: 28px 28px 0; max-width: 400px; justify-self: end; width: 100%; }
.bl-hero-art img { width: 100%; height: auto; }
.bl-hero-note { position: absolute; left: -36px; bottom: 26px; background: var(--bl-accent); color: var(--bl-deep); font-size: 13px; font-weight: 500; border-radius: 8px; padding: 16px 20px; box-shadow: 0 12px 30px -16px rgba(12, 31, 26, .4); }

/* category tabs + search */
.bl-bar { position: sticky; top: var(--site-header-h, 76px); z-index: 20; background: #fff; border-top: 1px solid var(--bl-line); border-bottom: 1px solid var(--bl-line); }
.bl-bar .bl-wrap { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bl-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.bl-tabs::-webkit-scrollbar { display: none; }
.bl-tabs a { flex: none; font-size: 13px; font-weight: 500; color: var(--bl-green); padding: 10px 18px; border-radius: 999px; transition: background-color .15s; }
.bl-tabs a:hover { background: var(--bl-sage); }
.bl-tabs a.is-on { background: var(--bl-hero); color: #fff; }
.bl-search { display: flex; align-items: center; flex: 0 0 290px; border: 1px solid var(--bl-line); border-radius: 999px; padding: 3px 3px 3px 16px; background: #fff; }
.bl-search:focus-within { border-color: var(--bl-green); }
.bl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 13px; color: var(--bl-ink); padding: 8px 0; }
.bl-search button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--bl-green); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.bl-search button:hover { background: var(--bl-sage); }

/* shared bits of the cards */
.bl-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bl-meta small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--bl-muted); }
.bl-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--bl-line); padding-top: 16px; margin-top: auto; }
.bl-foot small, .bl-by { font-size: 12px; color: var(--bl-muted); }

/* featured: one lead card and two smaller ones */
.bl-featured { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
.bl-fcard { display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(12, 31, 26, .06); transition: box-shadow .2s, transform .2s; }
.bl-fcard:hover, .bl-card:hover, .bl-tcard:hover, .bl-pcard:hover { box-shadow: 0 18px 36px -22px rgba(12, 31, 26, .45); transform: translateY(-2px); }
.bl-fcard-img { display: block; aspect-ratio: 4 / 3; background: #E4E1D2; overflow: hidden; }
.bl-fcard-img img { width: 100%; height: 100%; object-fit: cover; }
.bl-fcard-body { display: flex; flex-direction: column; flex: 1; padding: 20px 18px 18px; }
.bl-fcard-body b { font-weight: 400; font-size: 18px; line-height: 1.3; color: var(--bl-green); margin: 16px 0 34px; }
.bl-fcard.is-lead { background: var(--bl-hero); }
.bl-fcard.is-lead .bl-fcard-img { aspect-ratio: 5 / 2; }
.bl-fcard.is-lead .bl-fcard-body { padding: 22px 26px 20px; }
.bl-fcard.is-lead .bl-meta small { color: rgba(255, 255, 255, .72); }
.bl-fcard.is-lead .bl-meta small:first-child { color: var(--bl-accent); }
.bl-fcard.is-lead b { color: #fff; font-size: 26px; line-height: 1.25; max-width: 24ch; }
.bl-fcard.is-lead .bl-foot { border-top-color: rgba(255, 255, 255, .16); }
.bl-fcard.is-lead .bl-foot small { color: rgba(255, 255, 255, .72); }
.bl-fcard.is-lead .bl-foot svg { color: var(--bl-accent); }
.bl-fcard .bl-foot svg { color: var(--bl-green); }

/* category sections: picture cards, then text cards */
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bl-line); border-radius: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.bl-card-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 6; background: #E4E1D2; overflow: hidden; }
.bl-card-img img { width: 100%; height: 100%; object-fit: cover; }
.bl-card-img em { font-style: normal; font-size: 13px; color: var(--bl-muted); }
.bl-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.bl-card-body .bl-meta svg { color: var(--bl-green); }
.bl-card-body b { font-weight: 400; font-size: 16px; line-height: 1.35; color: var(--bl-green); margin: 4px 0 30px; }
.bl-by { margin-top: auto; }
.bl-more { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
.bl-tcard { display: flex; flex-direction: column; background: var(--bl-mint); border: 1px solid #DCE2D6; border-radius: 10px; padding: 16px 18px 18px; transition: box-shadow .2s, transform .2s; }
.bl-tcard .bl-meta svg { color: var(--bl-green); }
.bl-tcard b { font-weight: 400; font-size: 17px; line-height: 1.35; color: var(--bl-green); margin: 12px 0 18px; }
.bl-tcard > small { font-size: 12px; color: var(--bl-muted); }

/* put your curiosity into practice */
.bl-practice { background: var(--bl-cream); }
.bl-practice .bl-wrap { padding-top: 44px; padding-bottom: 56px; }
.bl-practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bl-pcard { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; background: #fff; border-radius: 8px; padding: 16px 16px 20px; transition: box-shadow .2s, transform .2s; }
.bl-pcard b { display: block; font-weight: 500; font-size: 14.5px; color: var(--bl-ink); margin-bottom: 6px; }
.bl-pcard small { font-size: 12px; color: var(--bl-muted); }
.bl-pcard svg { color: var(--bl-green); }

@media (max-width: 991px) {
    .bl-wrap { padding: 56px 20px; }
    .bl-hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .bl-hero-art { justify-self: start; }
    .bl-hero-note { left: 12px; }
    .bl-bar .bl-wrap { flex-direction: column; align-items: stretch; gap: 12px; }
    .bl-search { flex-basis: auto; }
    .bl-featured { grid-template-columns: 1fr 1fr; }
    .bl-fcard.is-lead { grid-column: 1 / -1; }
    .bl-grid { grid-template-columns: 1fr 1fr; }
    .bl-practice-grid { grid-template-columns: 1fr 1fr; }
    .bl-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .bl-head > .bl-muted { flex-basis: auto; }
}
@media (max-width: 600px) {
    .bl-wrap { padding: 44px 16px; }
    .bl-bar { position: static; }
    .bl-featured, .bl-grid, .bl-more, .bl-practice-grid { grid-template-columns: 1fr; }
    .bl-fcard.is-lead b { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .bl-fcard, .bl-card, .bl-tcard, .bl-pcard, .bl-btn { transition: none; }
    .bl-fcard:hover, .bl-card:hover, .bl-tcard:hover, .bl-pcard:hover { transform: none; }
}

/* ---------- article page (blogDetails) ---------- */
.bd-hero .bl-wrap { padding-bottom: 0; }
.bd-tags { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.bd-tags .bl-chip { margin-bottom: 0 !important; text-transform: none; letter-spacing: 0; font-size: 11.5px; font-weight: 600; padding: 6px 18px; }
.bd-tags .bl-eyebrow { margin-bottom: 0 !important; }
.bd-hero h1 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.14; letter-spacing: -0.02em; max-width: 22ch; margin-bottom: 34px; }
.bd-byline { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid #D6DCD0; }
.bd-byline p { border-left: 2px solid var(--bl-green); padding: 2px 0 2px 12px; }
.bd-byline b { display: block; font-weight: 600; font-size: 14px; color: var(--bl-ink); }
.bd-byline small { display: block; font-size: 12px; color: var(--bl-muted); margin-top: 4px; }
.bd-byline .bl-link { padding: 0 52px 0 0; font-weight: 500; font-size: 12.5px; }

.bd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; align-items: start; padding-top: 40px; }
.bd-cover { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 12px; }
.bd-cat { margin: 26px 0 0 !important; padding-bottom: 18px; border-bottom: 1px solid var(--bl-line); }
.bd-body { padding: 30px 32px 10px; font-size: 16px; line-height: 1.95; color: #3B4842; overflow-wrap: anywhere; }
.bd-body p { margin: 0 0 24px; }
.bd-body h2, .bd-body h3, .bd-body h4 { color: var(--bl-green); font-weight: 500; line-height: 1.3; margin: 30px 0 12px; }
.bd-body h2 { font-size: 26px; }
.bd-body h3 { font-size: 21px; }
.bd-body ul, .bd-body ol { margin: 0 0 24px; padding-left: 22px; }
.bd-body li { margin-bottom: 8px; }
.bd-body a { color: var(--bl-green); text-decoration: underline; }
.bd-body img { max-width: 100%; height: auto; border-radius: 10px; }
.bd-body blockquote { margin: 0 0 24px; padding: 6px 20px; border-left: 3px solid var(--bl-green); color: var(--bl-ink); font-style: italic; }
.bd-body strong, .bd-body b { color: var(--bl-ink); }
.bd-share { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--bl-line); padding: 22px 0; margin-top: 12px; }
.bd-share > b { font-size: 13px; font-weight: 600; color: var(--bl-ink); }
.bd-share span { display: flex; gap: 18px; padding-right: 96px; }
.bd-share a, .bd-share button { font: inherit; font-size: 13px; color: var(--bl-green); background: none; border: 0; padding: 0; cursor: pointer; }
.bd-share a:hover, .bd-share button:hover { text-decoration: underline; }
.bd-author { background: var(--bl-cream); border-radius: 10px; padding: 18px 22px 20px; }
.bd-author b { display: block; font-weight: 500; font-size: 15px; color: var(--bl-ink); margin-bottom: 6px; }
.bd-author small { font-size: 12px; color: var(--bl-muted); }
.bd-author small span { margin: 0 4px; }

.bd-side { position: sticky; top: calc(var(--site-header-h, 76px) + 24px); display: flex; flex-direction: column; gap: 30px; }
.bd-side-h { font-size: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--bl-line); margin-bottom: 4px; }
.bd-related { display: flex; flex-direction: column; gap: 16px; }
.bd-kicker { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--bl-muted); }
.bd-line { display: block; font-size: 11.5px; color: var(--bl-muted); margin-top: auto; }
.bd-rcard { display: flex; flex-direction: column; background: var(--bl-cream); border-radius: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.bd-rcard:hover, .bd-next:hover { box-shadow: 0 18px 36px -22px rgba(12, 31, 26, .45); transform: translateY(-2px); }
.bd-rcard-img { display: block; aspect-ratio: 9 / 4; background: #E4E1D2; overflow: hidden; }
.bd-rcard-img img { width: 100%; height: 100%; object-fit: cover; }
.bd-rcard-body { display: flex; flex-direction: column; padding: 16px 20px 18px; min-height: 150px; }
.bd-rcard-body b { font-weight: 400; font-size: 17px; line-height: 1.32; color: var(--bl-green); margin: 10px 0 24px; }
.bd-promo { background: var(--bl-mint); border-radius: 10px; overflow: hidden; }
.bd-promo .bd-kicker { padding: 18px 20px 14px; }
.bd-promo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bd-promo-body { display: flex; flex-direction: column; padding: 16px 20px 20px; }
.bd-promo-body b { font-weight: 400; font-size: 18px; line-height: 1.3; color: var(--bl-green); }
.bd-promo-body small { font-size: 13px; color: var(--bl-muted); margin-top: 6px; }
.bd-promo-body .bl-btn { margin-top: 18px; justify-content: flex-start; padding: 12px 16px; font-size: 13px; }

.bd-explore .bl-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.bd-explore .bl-h3 { margin-bottom: 30px !important; }
.bd-explore .bl-link { padding-bottom: 0; }
.bd-next { display: grid; grid-template-columns: 180px 1fr; background: var(--bl-cream); border-radius: 10px; overflow: hidden; min-height: 172px; transition: box-shadow .2s, transform .2s; }
.bd-next-img { background: #E4E1D2; }
.bd-next-img img { width: 100%; height: 100%; object-fit: cover; }
.bd-next-body { display: flex; flex-direction: column; padding: 18px 22px 20px; }
.bd-next-body b { font-weight: 400; font-size: 17px; line-height: 1.32; color: var(--bl-green); margin: 12px 0 18px; }

@media (max-width: 991px) {
    .bd-layout, .bd-explore .bl-wrap { grid-template-columns: 1fr; gap: 40px; }
    .bd-side { position: static; }
    .bd-byline .bl-link, .bd-share span { padding-right: 0; }
    .bd-body { padding: 26px 0 6px; }
}
@media (max-width: 600px) {
    .bd-byline { flex-direction: column; align-items: flex-start; }
    .bd-next { grid-template-columns: 120px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .bd-rcard, .bd-next { transition: none; }
    .bd-rcard:hover, .bd-next:hover { transform: none; }
}
