/* ================================================================
   BlogDriver AI — Theme Engine CSS v5
   Variable names match what PHP injects via wp_add_inline_style
   ================================================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
img{max-width:100%;display:block}
a{text-decoration:none}
ul,ol{list-style:none}
button{cursor:pointer;font:inherit;border:none;background:none}

/* ── Design tokens ──────────────────────────────────────────── */
:root{
  /* These two are overridden per-niche by PHP wp_add_inline_style */
  --bd-accent:          #3a86ff;
  --bd-accent-dark:     #1a5fd4;
  --bd-font-heading:    'Merriweather', Georgia, serif;
  --bd-font-body:       'Open Sans', system-ui, sans-serif;

  /* Aliases for brevity inside this sheet */
  --acc:    var(--bd-accent);
  --fh:     var(--bd-font-heading);
  --fb:     var(--bd-font-body);

  /* Static tokens */
  --bg:     #f5f5f0;
  --surf:   #fff;
  --s2:     #f0f2f5;
  --text:   #111827;
  --text2:  #374151;
  --muted:  #6b7280;
  --bdr:    #e5e7eb;
  --sh-sm:  0 1px 4px rgba(0,0,0,.07);
  --sh:     0 4px 16px rgba(0,0,0,.10);
  --sh-lg:  0 12px 40px rgba(0,0,0,.15);
  --r:      10px;
  --rsm:    6px;
  --hh:     66px;
  --cw:     1240px;
  --ease:   .22s cubic-bezier(.4,0,.2,1);
}

/* ── Base ──────────────────────────────────────────────────── */
.bd-page{font-family:var(--fb);background:var(--bg);color:var(--text);line-height:1.7;font-size:16px;-webkit-font-smoothing:antialiased}
.bd-site{display:flex;flex-direction:column;min-height:100vh}
body.bd-page>*:not(.bd-site){display:none!important}
.bd-container{max-width:var(--cw);margin:0 auto;padding:0 22px;width:100%}

/* ================================================================
   HEADER  (identical markup in both homepage + single-post)
================================================================ */
.bd-header{
  position:sticky;top:0;z-index:900;
  background:#fff;border-bottom:1px solid var(--bdr);
  transition:box-shadow var(--ease);
}
.bd-header.is-scrolled{box-shadow:0 2px 20px rgba(0,0,0,.09)}

.bd-hdr-wrap{
  display:flex;align-items:center;
  height:var(--hh);
  max-width:var(--cw);margin:0 auto;padding:0 24px;
}

/* Logo */
.bd-logo{display:flex;align-items:center;gap:10px;flex-shrink:0;text-decoration:none}
.bd-logo-img{height:34px;width:auto;object-fit:contain}
.bd-logo-icon{
  width:34px;height:34px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  font-size:17px;flex-shrink:0;color:#fff;
}
.bd-logo-name{
  font-family:var(--fh);font-size:17px;font-weight:800;
  color:var(--text);white-space:nowrap;letter-spacing:-.3px;
}

/* Desktop nav */
.bd-nav{flex:1;margin-left:24px}
.bd-nav>ul{display:flex;align-items:center;gap:0;list-style:none;padding:0;margin:0}

.bd-nav>ul>li>a,
.bd-drop-toggle{
  display:inline-flex;align-items:center;gap:5px;
  padding:8px 13px;border-radius:var(--rsm);
  font-size:13.5px;font-weight:600;color:var(--text2);white-space:nowrap;
  /* Reset every browser button default */
  background:none;border:none;outline:none;
  -webkit-appearance:none;appearance:none;
  cursor:pointer;font-family:inherit;
  text-decoration:none;
  transition:color var(--ease),background var(--ease);
}
.bd-nav>ul>li>a:hover,
.bd-drop-toggle:hover{color:var(--acc);background:rgba(0,0,0,.04)}
.bd-drop-toggle:focus-visible{outline:2px solid var(--acc);outline-offset:2px}

/* Dropdown */
.bd-has-drop{position:relative;list-style:none}
.bd-dropdown{
  position:absolute;top:calc(100% + 4px);left:0;z-index:200;
  background:#fff;border:1px solid var(--bdr);border-radius:var(--r);
  box-shadow:0 8px 32px rgba(0,0,0,.12);min-width:175px;padding:5px;
  list-style:none;
  opacity:0;visibility:hidden;pointer-events:none;
  transform:translateY(-8px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s;
}
.bd-has-drop.is-open .bd-dropdown{
  opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)
}
.bd-dropdown>li>a{
  display:block;padding:9px 14px;border-radius:var(--rsm);
  font-size:13px;font-weight:500;color:var(--text2);
  text-decoration:none;transition:background .14s,color .14s;
}
.bd-dropdown>li>a:hover{background:var(--s2);color:var(--acc)}

/* ── Right-side header actions ── */
.bd-hdr-right{
  display:flex;align-items:center;gap:6px;
  margin-left:auto;padding-left:12px;flex-shrink:0;
}

/* Search icon button — visible on BOTH desktop and mobile */
.bd-search-toggle{
  display:flex !important;
  align-items:center;justify-content:center;
  width:36px !important;height:36px !important;
  border-radius:50%;
  background:transparent !important;
  border:none !important;
  cursor:pointer;
  flex-shrink:0;
  transition:background var(--ease);
}
.bd-search-toggle svg{
  display:block;
  width:18px;height:18px;
  stroke:#444 !important;
  fill:none;
  flex-shrink:0;
}
.bd-search-toggle:hover{background:var(--s2) !important;}
.bd-search-toggle:hover svg{stroke:var(--acc) !important;}

/* Burger — hidden on desktop ≥881px, shown as flex on mobile */
.bd-burger{
  display:none;
  align-items:center;justify-content:center;
  width:38px !important;height:38px !important;
  border-radius:var(--rsm);
  background:#fff !important;
  border:1.5px solid #d1d5db !important;
  cursor:pointer;
  flex-shrink:0;
  transition:background var(--ease),border-color var(--ease);
}
.bd-burger svg{
  display:block;
  width:20px;height:20px;
  stroke:#1f2937 !important;
  fill:none;
  flex-shrink:0;
  pointer-events:none;
}
.bd-burger:hover{background:var(--s2) !important;border-color:#9ca3af !important;}

/* Search dropdown bar */
.bd-search-bar{border-top:1px solid var(--bdr);padding:12px 0;background:#fff}
.bd-search-form{display:flex;gap:8px;align-items:center}
.bd-search-input{
  flex:1;padding:9px 14px;
  border:1.5px solid var(--bdr);border-radius:var(--rsm);
  font-size:14px;font-family:var(--fb);color:var(--text);background:#fff;
}
.bd-search-input:focus{outline:none;border-color:var(--acc)}
.bd-search-btn{
  padding:9px 20px;border-radius:var(--rsm);
  color:#fff;font-size:13.5px;font-weight:700;
  border:none;cursor:pointer;white-space:nowrap;
  transition:filter .15s;
}
.bd-search-btn:hover{filter:brightness(1.1)}

/* ================================================================
   MOBILE DRAWER
================================================================ */
.bd-backdrop{
  position:fixed;inset:0;
  background:rgba(0,0,0,.48);z-index:990;
  opacity:0;pointer-events:none;
  transition:opacity .28s ease;
}
.bd-backdrop.is-on{opacity:1;pointer-events:auto}

.bd-drawer{
  position:fixed;top:0;right:0;bottom:0;
  width:285px;max-width:84vw;
  background:#fff;z-index:991;
  display:flex;flex-direction:column;
  transform:translateX(100%);
  transition:transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow:-4px 0 28px rgba(0,0,0,.14);
}
.bd-drawer.is-open{transform:translateX(0)}

.bd-drawer-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:0 18px;height:60px;
  border-bottom:1px solid var(--bdr);flex-shrink:0;
}
.bd-drawer-brand{display:flex;align-items:center;gap:9px;text-decoration:none}

.bd-drawer-close{
  display:flex;align-items:center;justify-content:center;
  width:30px;height:30px;border-radius:50%;
  color:#555;background:none;
  border:1.5px solid var(--bdr);cursor:pointer;
  transition:background .15s,color .15s;flex-shrink:0;
}
.bd-drawer-close:hover{background:var(--s2);color:#111}

.bd-drawer-nav{flex:1;overflow-y:auto;display:flex;flex-direction:column}

.bd-drawer-nav>a{
  display:flex;align-items:center;
  padding:13px 22px;
  font-size:15px;font-weight:600;color:#1f2937;
  border-bottom:1px solid #f3f4f6;
  text-decoration:none;
  transition:background .14s,color .14s;
}
.bd-drawer-nav>a:hover{background:#f9fafb;color:var(--acc)}

.bd-drawer-label{
  display:block;padding:12px 22px 5px;
  font-size:10px;font-weight:800;text-transform:uppercase;
  letter-spacing:1.4px;color:#9ca3af;
}
.bd-drawer-sub{
  padding:11px 22px 11px 34px!important;
  font-size:14px!important;font-weight:500!important;color:#4b5563!important;
}
.bd-drawer-sub:hover{color:var(--acc)!important}

.bd-drawer-foot{padding:14px 18px;border-top:1px solid var(--bdr);flex-shrink:0}
.bd-drawer-search{display:flex;gap:6px}
.bd-drawer-search input{
  flex:1;padding:9px 12px;
  border:1.5px solid var(--bdr);border-radius:var(--rsm);
  font-size:14px;font-family:var(--fb);color:var(--text);background:#fff;
}
.bd-drawer-search input:focus{outline:none;border-color:var(--acc)}
.bd-drawer-search button{
  display:flex;align-items:center;justify-content:center;
  width:38px;flex-shrink:0;border-radius:var(--rsm);
  border:none;cursor:pointer;
}

/* ================================================================
   HERO  (homepage)
================================================================ */
.bd-hero{
  position:relative;min-height:540px;
  display:flex;align-items:flex-end;
  background:#1a1a2e;background-size:cover;background-position:center;overflow:hidden;
}
.bd-hero-overlay{position:absolute;inset:0;background:linear-gradient(160deg,rgba(0,0,0,.04) 0%,rgba(0,0,0,.76) 100%)}
.bd-hero .bd-container{position:relative;z-index:2;padding-bottom:56px}
.bd-hero-body{max-width:680px}
.bd-hero-cat{display:inline-block;padding:4px 13px;border-radius:30px;font-size:10px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:#fff;margin-bottom:16px}
.bd-hero-title{font-family:var(--fh);font-size:clamp(24px,3.6vw,46px);font-weight:800;line-height:1.18;color:#fff;margin-bottom:12px}
.bd-hero-title a{color:inherit}
.bd-hero-title a:hover{opacity:.88}
.bd-hero-excerpt{font-size:16.5px;color:rgba(255,255,255,.82);line-height:1.65;margin-bottom:20px}
.bd-hero-meta{display:flex;align-items:center;gap:9px;font-size:13px;color:rgba(255,255,255,.65);margin-bottom:24px;flex-wrap:wrap}
.bd-hero-avatar{width:26px;height:26px;border-radius:50%;border:2px solid rgba(255,255,255,.3)}
.bd-dot{opacity:.4}
.bd-hero-cta{
  display:inline-flex;align-items:center;
  padding:12px 24px;border-radius:50px;color:#fff;
  font-weight:700;font-size:14px;letter-spacing:.2px;
  transition:filter var(--ease),transform var(--ease),box-shadow var(--ease);
}
.bd-hero-cta:hover{filter:brightness(1.1);transform:translateY(-2px);box-shadow:0 10px 28px rgba(0,0,0,.28)}

/* ================================================================
   HOMEPAGE LAYOUT
================================================================ */
.bd-main{flex:1;padding:48px 0 64px}

.bd-sec-hd{display:flex;align-items:center;gap:14px;margin-bottom:30px}
.bd-sec-title{font-family:var(--fh);font-size:21px;font-weight:800;color:var(--text);white-space:nowrap}
.bd-sec-bar{flex:1;height:2px;border-radius:2px;opacity:.2}
.bd-sec-all{font-size:13px;font-weight:700;white-space:nowrap;transition:opacity .15s}
.bd-sec-all:hover{opacity:.7}

.bd-layout{display:grid;grid-template-columns:1fr 296px;gap:36px;align-items:start}
.bd-layout-no-sidebar{grid-template-columns:1fr}
.bd-content{min-width:0}

/* ================================================================
   POST CARDS
================================================================ */
.bd-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}

.bd-card{
  background:var(--surf);border-radius:var(--r);overflow:hidden;
  display:flex;flex-direction:column;
  border:1px solid var(--bdr);box-shadow:var(--sh-sm);
  transition:transform var(--ease),box-shadow var(--ease);
}
.bd-card:hover{transform:translateY(-5px);box-shadow:var(--sh-lg)}
.bd-card-thumb{position:relative;display:block;aspect-ratio:16/10;overflow:hidden}
.bd-card-img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.bd-card:hover .bd-card-img{transform:scale(1.06)}
.bd-card-cat-badge{
  position:absolute;top:11px;left:11px;
  padding:3px 10px;border-radius:20px;
  font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#fff;
}
.bd-card-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:9px;flex:1}
.bd-card-title{font-family:var(--fh);font-size:15.5px;font-weight:700;line-height:1.38;color:var(--text)}
.bd-card-title a{color:inherit;transition:color .18s}
.bd-card-title a:hover{color:var(--acc)}
.bd-card-excerpt{font-size:13.5px;color:var(--muted);line-height:1.62;flex:1}
.bd-card-foot{
  display:flex;align-items:center;justify-content:space-between;
  gap:8px;margin-top:auto;padding-top:10px;border-top:1px solid var(--bdr);
}
.bd-card-meta{display:flex;align-items:center;gap:5px;flex-wrap:wrap;line-height:1}
.bd-card-meta span,
.bd-card-meta time{font-size:11.5px;color:var(--muted);line-height:1}
.bd-card-meta .sep{color:var(--bdr)}
.bd-card-read{font-size:12px;font-weight:800;white-space:nowrap;transition:letter-spacing .2s}
.bd-card-read:hover{letter-spacing:.8px}
.bd-empty{grid-column:1/-1;text-align:center;padding:60px;color:var(--muted)}

/* Card style variants */
.bd-grid-rounded .bd-card{border-radius:18px;border:none;box-shadow:0 2px 16px rgba(45,158,122,.1)}
.bd-grid-rounded .bd-card:hover{box-shadow:0 12px 36px rgba(45,158,122,.18)}
.bd-grid-bordered .bd-card{border:2px solid #e8d5a0;border-radius:4px;background:#fffdf5;box-shadow:none}
.bd-grid-bordered .bd-card:hover{border-color:var(--acc);box-shadow:4px 4px 0 var(--acc);transform:translate(-3px,-3px)}
.bd-grid-overlay .bd-card{border:none;border-radius:12px;aspect-ratio:3/4;position:relative}
.bd-grid-overlay .bd-card-thumb{position:absolute;inset:0;aspect-ratio:unset;height:100%}
.bd-grid-overlay .bd-card-body{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(to top,rgba(0,0,0,.88),transparent);padding:20px 16px 16px;color:#fff}
.bd-grid-overlay .bd-card-title,.bd-grid-overlay .bd-card-title a,.bd-grid-overlay .bd-card-excerpt,.bd-grid-overlay .bd-card-meta span,.bd-grid-overlay .bd-card-read{color:#fff}
.bd-grid-overlay .bd-card-excerpt{color:rgba(255,255,255,.75);font-size:12.5px}
.bd-grid-overlay .bd-card-foot{border-top-color:rgba(255,255,255,.15)}
.bd-grid-overlay{grid-auto-rows:310px}
.bd-grid-editorial{grid-template-columns:1fr 1fr;gap:14px}
.bd-grid-editorial .bd-card:first-child{grid-column:1/-1;flex-direction:row;max-height:220px}
.bd-grid-editorial .bd-card:first-child .bd-card-thumb{width:340px;min-width:340px;aspect-ratio:unset;height:100%}
.bd-grid-editorial .bd-card:first-child .bd-card-body{justify-content:center}
.bd-grid-minimal .bd-card{background:transparent;border:none;border-bottom:1px solid var(--bdr);border-radius:0;box-shadow:none;padding-bottom:18px}
.bd-grid-minimal .bd-card:hover{transform:none;box-shadow:none}
.bd-grid-minimal .bd-card-body{padding:12px 0 0}
.bd-grid-minimal .bd-card-foot{border-top:none;padding-top:4px}
.bd-grid-corporate .bd-card{border-radius:4px;border-left:4px solid var(--acc)}
.bd-grid-corporate .bd-card:hover{box-shadow:0 8px 28px rgba(29,78,216,.13)}
.bd-grid-luxury .bd-card{border-radius:0;border:none;box-shadow:none;background:transparent}
.bd-grid-luxury .bd-card-thumb{aspect-ratio:2/3}
.bd-grid-luxury .bd-card-body{padding:12px 0 0}
.bd-grid-luxury .bd-card-title{font-family:'Cormorant Garamond',Georgia,serif;font-size:18px;font-weight:400}
.bd-grid-luxury .bd-card-foot{border-top:none;padding-top:2px}
.bd-grid-luxury .bd-card:hover{transform:none}
.bd-niche-gaming{background:#0d0d16;color:#e2e8f0}
.bd-niche-gaming .bd-main,.bd-niche-gaming .bd-single-main{background:#0d0d16}
.bd-niche-gaming .bd-header{background:rgba(13,13,22,.97);border-bottom-color:#2d2d4a}
.bd-niche-gaming .bd-logo-name,.bd-niche-gaming .bd-nav>ul>li>a{color:#e2e8f0}
.bd-grid-dark-card .bd-card{background:#161625;border-color:#2d2d4a}
.bd-grid-dark-card .bd-card:hover{border-color:var(--acc);box-shadow:0 0 20px rgba(124,58,237,.28)}
.bd-grid-dark-card .bd-card-title,.bd-grid-dark-card .bd-card-title a{color:#f1f5f9}
.bd-grid-dark-card .bd-card-excerpt,.bd-grid-dark-card .bd-card-meta span{color:#64748b}
.bd-grid-dark-card .bd-card-foot{border-top-color:#2d2d4a}
.bd-grid-warm .bd-card{border-radius:16px;background:#fffbf5;border-color:#ffe4c4}
.bd-grid-warm .bd-card:hover{box-shadow:0 10px 32px rgba(247,127,0,.15)}

/* ================================================================
   PAGINATION
================================================================ */
.bd-pages{margin-top:48px}
.bd-pages ul{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;list-style:none;padding:0}
.bd-pages ul li a,
.bd-pages ul li span{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:42px;height:42px;padding:0 14px;
  border-radius:var(--rsm);font-size:14px;font-weight:600;
  color:var(--text2);background:var(--surf);border:1.5px solid var(--bdr);
  transition:all var(--ease);
}
.bd-pages ul li a:hover{border-color:var(--acc);color:var(--acc)}
.bd-pages ul li span.current{background:var(--acc);color:#fff;border-color:var(--acc)}
.bd-pages ul li span.dots{border:none;background:none;pointer-events:none}

/* ================================================================
   SIDEBAR
================================================================ */
.bd-sidebar{position:sticky;top:calc(var(--hh) + 18px);display:flex;flex-direction:column;gap:18px}
.bd-widget{background:var(--surf);border:1px solid var(--bdr);border-radius:var(--r);padding:20px}
.bd-widget-title{font-family:var(--fh);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:1.2px;color:var(--text);margin-bottom:14px;padding-left:10px;border-left:3px solid var(--acc)}
.bd-w-recent{display:flex;flex-direction:column;gap:11px}
.bd-w-recent-item{display:flex;gap:10px;align-items:flex-start}
.bd-w-thumb{width:60px;min-width:60px;height:48px;border-radius:var(--rsm);overflow:hidden;flex-shrink:0}
.bd-w-thumb img{width:100%;height:100%;object-fit:cover}
.bd-w-info{display:flex;flex-direction:column;gap:3px;min-width:0}
.bd-w-link{font-size:12.5px;font-weight:600;color:var(--text);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bd-w-link:hover{color:var(--acc)}
.bd-w-date{font-size:11px;color:var(--muted)}
.bd-w-cats{display:flex;flex-direction:column;gap:1px}
.bd-w-cats li a{display:flex;align-items:center;justify-content:space-between;padding:7px 9px;border-radius:var(--rsm);font-size:13px;font-weight:500;color:var(--text2);transition:background .14s,color .14s}
.bd-w-cats li a:hover{background:var(--s2);color:var(--acc)}
.bd-w-count{font-size:10.5px;font-weight:800;color:#fff;padding:2px 7px;border-radius:20px;min-width:20px;text-align:center}
.bd-w-pop{display:flex;flex-direction:column;gap:11px}
.bd-w-pop li{display:flex;align-items:flex-start;gap:9px}
.bd-w-num{flex-shrink:0;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10.5px;font-weight:800;color:#fff;margin-top:1px}
.bd-w-pop a{font-size:12.5px;font-weight:600;color:var(--text);line-height:1.4}
.bd-w-pop a:hover{color:var(--acc)}
.bd-w-tags{display:flex;flex-wrap:wrap;gap:6px}
.bd-tag{display:inline-block;padding:5px 11px;border-radius:20px;font-size:11.5px;font-weight:600;border:1.5px solid var(--acc);color:var(--acc);transition:background .15s,color .15s}
.bd-tag:hover{background:var(--acc);color:#fff}

/* ================================================================
   FOOTER
================================================================ */
.bd-footer{background:#0e1117;margin-top:auto}
.bd-footer-top{padding:52px 0 38px}
/* 4 cols when newsletter shown, 3 otherwise — newsletter col auto-fills */
.bd-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px}
.bd-footer-grid:has(.bd-fcol-nl){grid-template-columns:2fr 1fr 1fr 1.6fr}

.bd-footer-logo{height:34px;filter:brightness(0) invert(1);opacity:.8;margin-bottom:10px}
.bd-footer-brand{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.bd-footer-brand strong{font-family:var(--fh);font-size:17px;font-weight:800;color:#fff}
.bd-footer-icon{width:30px;height:30px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0}
.bd-footer-tagline{font-size:13px;color:#8b96a8;line-height:1.65}
.bd-fcol-hd{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:1.5px;margin-bottom:14px}
.bd-fcol ul{display:flex;flex-direction:column;gap:9px}
.bd-fcol ul a{font-size:13.5px;color:#9aabb8;transition:color .15s}
.bd-fcol ul a:hover{color:#fff}
.bd-fcol>p,.bd-fcol-nl-desc{font-size:13px;color:#8b96a8;line-height:1.6;margin-bottom:14px}

/* Footer newsletter — input stacked above button, full width, clean */
.bd-footer-nl{display:flex;flex-direction:column;gap:8px}
.bd-fnl-input{
  width:100%;padding:10px 13px;
  background:#1c2030;border:1px solid #2d3348;
  border-radius:var(--rsm);
  color:#e2e8f0;font-size:13.5px;font-family:var(--fb);
  outline:none;transition:border-color .15s;
}
.bd-fnl-input::placeholder{color:#4b5563}
.bd-fnl-input:focus{border-color:var(--acc)}
.bd-fnl-btn{
  width:100%;padding:10px 13px;
  border:none;border-radius:var(--rsm);cursor:pointer;
  color:#fff;font-size:13.5px;font-weight:700;font-family:var(--fb);
  transition:filter .15s;
}
.bd-fnl-btn:hover{filter:brightness(1.12)}
.bd-footer-bar{border-top:1px solid #1c2030;padding:15px 0}
.bd-footer-bar .bd-container{display:flex;align-items:center;justify-content:space-between;gap:12px}
.bd-footer-bar span{font-size:12.5px;color:#6b7a8d}
.bd-footer-bar a{color:inherit;transition:color .15s}

/* ================================================================
   NICHE TINTS
================================================================ */
.bd-niche-health{background:#f0faf6}.bd-niche-health .bd-main,.bd-niche-health .bd-single-main{background:#f0faf6}
.bd-niche-health .bd-header{background:rgba(240,250,246,.97)}
.bd-niche-finance{background:#fdfbf5}.bd-niche-finance .bd-main,.bd-niche-finance .bd-single-main{background:#fdfbf5}
.bd-niche-finance .bd-header{background:rgba(253,251,245,.97);border-bottom-color:#e8d5a0}
.bd-niche-lifestyle{background:#faf8ff}.bd-niche-lifestyle .bd-main,.bd-niche-lifestyle .bd-single-main{background:#faf8ff}
.bd-niche-fashion .bd-nav>ul>li>a{font-size:11.5px;text-transform:uppercase;letter-spacing:1.4px;font-weight:700}
.bd-niche-parenting .bd-main,.bd-niche-parenting .bd-single-main{background:#fffbf5}
.bd-niche-gaming .bd-sidebar .bd-widget{background:#161625;border-color:#2d2d4a}
.bd-niche-gaming .bd-widget-title,.bd-niche-gaming .bd-w-link,.bd-niche-gaming .bd-w-pop a,.bd-niche-gaming .bd-w-cats li a{color:#94a3b8}

/* ================================================================
   CATEGORY / ARCHIVE BANNER
================================================================ */
.bd-cat-banner{
  background:var(--surf);padding:28px 0;
}
.bd-cat-banner-inner{
  display:flex;align-items:center;gap:16px;
}
.bd-cat-banner-icon{
  width:52px;height:52px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-size:24px;flex-shrink:0;
}
.bd-cat-banner-title{
  font-family:var(--fh);font-size:clamp(22px,3vw,32px);
  font-weight:800;color:var(--text);line-height:1.2;
}
.bd-cat-banner-desc{
  font-size:14px;color:var(--muted);margin-top:5px;line-height:1.5;
}

/* ================================================================
   SINGLE POST
================================================================ */
.bd-single-main{flex:1;padding:36px 0 64px}
.bd-single-layout{display:grid;grid-template-columns:1fr 296px;gap:44px;align-items:start}

.bd-read-progress{position:absolute;bottom:0;left:0;height:3px;width:0;z-index:10;transition:width .1s linear}

.bd-post-hero{height:460px;background-size:cover;background-position:center;position:relative}
.bd-post-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,.05),rgba(0,0,0,.28))}

.bd-breadcrumb{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--muted);margin-bottom:22px;flex-wrap:wrap}
.bd-breadcrumb a{color:var(--muted)}.bd-breadcrumb a:hover{color:var(--acc)}
.bd-bc-sep{color:var(--bdr)}
.bd-bc-cur{color:var(--text);font-weight:500}

.bd-post-hd{margin-bottom:28px}
.bd-post-badge{display:inline-block;padding:4px 13px;border-radius:20px;font-size:10px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:#fff;margin-bottom:14px}
.bd-post-title{font-family:var(--fh);font-size:clamp(24px,3.2vw,40px);font-weight:800;line-height:1.2;color:var(--text);margin-bottom:18px}
.bd-post-meta{display:flex;align-items:center;gap:12px;padding-bottom:20px;border-bottom:1px solid var(--bdr)}
.bd-post-avatar{width:42px;height:42px;border-radius:50%;border:2px solid var(--bdr);flex-shrink:0}
.bd-post-meta-text{display:flex;flex-direction:column;gap:3px}
.bd-post-author{font-size:14px;font-weight:700;color:var(--text)}
.bd-post-dets{font-size:12.5px;color:var(--muted)}

/* Article content */
.bd-post-content{font-size:17px;line-height:1.82;color:var(--text2)}
.bd-post-content h2{font-family:var(--fh);font-size:clamp(24px,3vw,34px);font-weight:800;line-height:1.2;color:var(--text);margin:2.6em 0 .75em;padding-bottom:.5em;border-bottom:2px solid var(--bdr)}
.bd-post-content h3{font-family:var(--fh);font-size:clamp(19px,2.3vw,26px);font-weight:700;line-height:1.3;color:var(--text);margin:2.2em 0 .65em}
.bd-post-content h4{font-family:var(--fh);font-size:clamp(16px,1.8vw,20px);font-weight:700;line-height:1.3;color:var(--text);margin:1.8em 0 .55em}
.bd-post-content h5{font-family:var(--fh);font-size:16px;font-weight:700;line-height:1.3;color:var(--text);margin:1.6em 0 .5em}
.bd-post-content h6{font-family:var(--fh);font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:1.6em 0 .5em}
.bd-post-content p{margin-bottom:1.4em}
.bd-post-content a{color:var(--acc);text-decoration:underline;text-underline-offset:3px}
.bd-post-content a:hover{opacity:.8}
.bd-post-content ul,.bd-post-content ol{margin:0 0 1.4em 1.5em}
.bd-post-content li{margin-bottom:.5em}
.bd-post-content blockquote{border-left:4px solid var(--acc);padding:14px 20px;background:var(--s2);border-radius:0 var(--rsm) var(--rsm) 0;margin:1.6em 0;font-style:italic;color:var(--text2)}
.bd-post-content img{border-radius:var(--r);margin:1.6em 0;box-shadow:var(--sh)}
.bd-post-content pre{background:#1e293b;color:#e2e8f0;padding:18px;border-radius:var(--r);overflow-x:auto;margin:1.6em 0;font-size:14px;line-height:1.6}
.bd-post-content code{background:#f1f5f9;padding:2px 5px;border-radius:3px;font-size:.88em}
.bd-post-content pre code{background:none;padding:0}

/* Tags */
.bd-post-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:32px;padding-top:22px;border-top:1px solid var(--bdr)}

/* ── Author box ── */
.bd-author-box{
  display:flex;gap:20px;align-items:flex-start;
  padding:24px;margin-top:36px;
  background:var(--surf);
  border:1px solid var(--bdr);border-radius:var(--r);
  border-top:3px solid var(--acc);
}
.bd-author-ava{
  width:72px;height:72px;border-radius:50%;
  border:3px solid var(--bdr);flex-shrink:0;
  object-fit:cover;
}
.bd-author-info{display:flex;flex-direction:column;gap:4px;min-width:0}
.bd-author-label{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:1.2px;color:var(--muted)}
.bd-author-name{font-family:var(--fh);font-size:16px;font-weight:800;color:var(--text)}
.bd-author-bio{font-size:13.5px;color:var(--muted);line-height:1.65;margin-top:2px}

/* ── Inline Newsletter ── */
.bd-inline-nl{
  margin-top:40px;
  padding:36px 32px;
  border-radius:16px;
  text-align:center;
  color:#fff;
}
.bd-inline-nl-icon{font-size:36px;margin-bottom:12px;display:block}
.bd-inline-nl-title{
  font-family:var(--fh);font-size:22px;font-weight:800;
  color:#fff;margin-bottom:8px;
}
.bd-inline-nl-sub{
  font-size:14.5px;color:rgba(255,255,255,.85);
  margin-bottom:24px;line-height:1.6;
}
.bd-inline-nl-form{
  display:flex;gap:10px;max-width:460px;margin:0 auto;
}
.bd-inline-nl-input{
  flex:1;padding:12px 16px;
  border:none;border-radius:50px;
  font-size:14px;font-family:var(--fb);
  background:rgba(255,255,255,.92);
  color:var(--text);
}
.bd-inline-nl-input:focus{outline:none;background:#fff}
.bd-inline-nl-input::placeholder{color:#9ca3af}
.bd-inline-nl-btn{
  padding:12px 22px;
  border-radius:50px;
  background:rgba(0,0,0,.25);
  color:#fff;font-size:14px;font-weight:700;
  border:2px solid rgba(255,255,255,.5);
  cursor:pointer;white-space:nowrap;
  transition:background .18s,border-color .18s;
}
.bd-inline-nl-btn:hover{background:rgba(0,0,0,.4);border-color:rgba(255,255,255,.8)}

/* ── Prev / Next nav ── */
.bd-post-nav{
  display:grid;grid-template-columns:1fr 1fr;gap:14px;
  margin-top:36px;
}
.bd-pnav-item{
  display:flex;align-items:center;gap:12px;
  padding:16px;
  background:var(--surf);border:1px solid var(--bdr);
  border-radius:var(--r);text-decoration:none;
  transition:border-color var(--ease),box-shadow var(--ease),transform var(--ease);
  overflow:hidden;
}
.bd-pnav-item:hover{border-color:var(--acc);box-shadow:var(--sh);transform:translateY(-2px)}
.bd-pnav-next{flex-direction:row-reverse;text-align:right}
.bd-pnav-thumb{
  width:56px;height:56px;border-radius:var(--rsm);
  object-fit:cover;flex-shrink:0;
}
.bd-pnav-text{display:flex;flex-direction:column;gap:5px;min-width:0}
.bd-pnav-label{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:1px}
.bd-pnav-title{font-size:13px;font-weight:700;color:var(--text);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ── Comments — full override of WP default ── */
.bd-comments-wrap{margin-top:44px}
.bd-comments-wrap .comments-title,
.bd-comments-wrap #reply-title{
  font-family:var(--fh);font-size:20px;font-weight:800;
  color:var(--text);margin-bottom:24px;
  padding-bottom:12px;border-bottom:2px solid var(--bdr);
}
/* Individual comments */
.bd-comments-wrap .comment-list{list-style:none;padding:0;margin:0 0 36px}
.bd-comments-wrap .comment-list .comment{
  display:flex;gap:14px;padding:20px 0;
  border-bottom:1px solid var(--bdr);
}
.bd-comments-wrap .comment-list .comment:last-child{border-bottom:none}
.bd-comments-wrap .comment-list .comment .avatar{
  width:44px;height:44px;border-radius:50%;flex-shrink:0;border:2px solid var(--bdr);
}
.bd-comments-wrap .comment-list .comment-body{flex:1;min-width:0}
.bd-comments-wrap .comment-list .comment-meta{margin-bottom:8px}
.bd-comments-wrap .comment-list .comment-author b,.bd-comments-wrap .comment-list .fn{
  font-size:14px;font-weight:700;color:var(--text);font-style:normal;
}
.bd-comments-wrap .comment-list .comment-metadata,
.bd-comments-wrap .comment-list .comment-metadata a{
  font-size:11.5px;color:var(--muted);text-decoration:none;
}
.bd-comments-wrap .comment-list .comment-content p{
  font-size:15px;color:var(--text2);line-height:1.7;margin:0;
}
.bd-comments-wrap .comment-list .reply a{
  display:inline-block;margin-top:8px;
  font-size:12px;font-weight:700;color:var(--acc);
}
/* Comment form */
.bd-comments-wrap #respond{
  background:var(--surf);border:1px solid var(--bdr);
  border-radius:var(--r);padding:28px;
}
.bd-comments-wrap #respond .comment-reply-title{
  font-family:var(--fh);font-size:18px;font-weight:800;
  color:var(--text);margin-bottom:20px;
  border-bottom:none;padding-bottom:0;
}
.bd-comments-wrap .comment-form label{
  display:block;font-size:12px;font-weight:700;
  text-transform:uppercase;letter-spacing:.8px;
  color:var(--text);margin-bottom:6px;
}
.bd-comments-wrap .comment-form input[type="text"],
.bd-comments-wrap .comment-form input[type="email"],
.bd-comments-wrap .comment-form input[type="url"],
.bd-comments-wrap .comment-form textarea{
  width:100%;padding:10px 14px;
  border:1.5px solid var(--bdr);border-radius:var(--rsm);
  font-size:14px;font-family:var(--fb);color:var(--text);
  background:#fff;transition:border-color .15s;
  margin-bottom:16px;
}
.bd-comments-wrap .comment-form input:focus,
.bd-comments-wrap .comment-form textarea:focus{
  outline:none;border-color:var(--acc);
}
.bd-comments-wrap .comment-form textarea{
  min-height:130px;resize:vertical;
}
.bd-comments-wrap .comment-form .comment-form-cookies-consent{
  display:flex;align-items:flex-start;gap:9px;margin-bottom:16px;
}
.bd-comments-wrap .comment-form .comment-form-cookies-consent label{
  text-transform:none;letter-spacing:0;font-size:13px;font-weight:400;color:var(--muted);margin-bottom:0;
}
.bd-comments-wrap .form-submit .submit,
.bd-comments-wrap input[type="submit"]{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 28px;
  background:var(--acc);color:#fff;
  font-size:14px;font-weight:700;font-family:var(--fb);
  border:none;border-radius:50px;cursor:pointer;
  transition:filter .15s,transform .15s;
  -webkit-appearance:none;appearance:none;
}
.bd-comments-wrap .form-submit .submit:hover,
.bd-comments-wrap input[type="submit"]:hover{
  filter:brightness(1.1);transform:translateY(-1px);
}
.bd-comments-wrap .must-log-in,
.bd-comments-wrap .logged-in-as{font-size:13.5px;color:var(--muted);margin-bottom:16px}
.bd-comments-wrap .must-log-in a,
.bd-comments-wrap .logged-in-as a{color:var(--acc)}
.bd-comments-wrap .comment-notes{font-size:13px;color:var(--muted);margin-bottom:18px}
.bd-comments-wrap .comment-form-url{display:none} /* hide website field */
.bd-comments-wrap .comment-list .children{
  list-style:none;padding-left:32px;margin-top:0;
}

/* Comments */
.bd-comments-wrap{margin-top:44px}

/* ================================================================
   AD SLOTS
================================================================ */
.bd-ad-unit{
  position:relative;text-align:center;
  background:#fafafa;border:1px solid #f0f0f0;border-radius:var(--r);
  padding:8px 12px 12px;overflow:hidden;
  margin:24px 0;
}
.bd-ad-label{
  display:block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;
  color:#c0c0c0;margin-bottom:6px;font-weight:600;
}
.bd-ad-label::before{content:'';display:inline-block;width:16px;height:1px;background:#d4d4d4;vertical-align:middle;margin-right:5px}
.bd-ad-label::after {content:'';display:inline-block;width:16px;height:1px;background:#d4d4d4;vertical-align:middle;margin-left:5px}

/* Header banner — full bleed below nav */
.bd-ad-header-wrap{
  background:#f8f8f8;border-bottom:1px solid #eeeeee;
  padding:6px 0;
}
.bd-ad-header{border:none;background:transparent;border-radius:0;margin:0;padding:4px 0}

/* Footer banner */
.bd-ad-footer{
  background:#1c2030;border:none;border-radius:0;padding:16px 0;margin:0;
}
.bd-ad-footer .bd-ad-label{color:#4a5068}
.bd-ad-footer .bd-container{display:flex;flex-direction:column;align-items:center;gap:6px}

/* Sidebar ads */
.bd-ad-sidebar{
  margin:0 0 20px;background:#f9f9f9;
}

/* Mid-article ad — visually distinct from content */
.bd-ad-mid{
  border-left:3px solid var(--acc);border-radius:0 var(--r) var(--r) 0;
  background:linear-gradient(to right,rgba(var(--acc-rgb,.06)),transparent);
  margin:2em 0;
}

/* Between-posts card ad */
.bd-ad-between{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:#f8f9fa;border:1px dashed #e5e7eb;border-radius:var(--r);
  min-height:160px;padding:16px;
}

/* Load More button */
.bd-loadmore-wrap{text-align:center;padding:32px 0 16px}
.bd-loadmore-btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:13px 36px;border:2px solid var(--acc);border-radius:50px;
  background:#fff;color:var(--acc);font-size:14px;font-weight:700;
  cursor:pointer;transition:all var(--ease);
}
.bd-loadmore-btn:hover{background:var(--acc);color:#fff}
.bd-loadmore-btn:disabled{opacity:.6;cursor:not-allowed}
.bd-lm-spinner{
  width:16px;height:16px;border-radius:50%;
  border:2px solid currentColor;border-top-color:transparent;
  animation:bd-spin .6s linear infinite;
  display:inline-block;
}

/* ================================================================
   ALL ARTICLES PAGE
================================================================ */
.bd-all-banner{
  background:var(--surf);padding:28px 0 24px;
}
.bd-all-banner-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;flex-wrap:wrap;
}
.bd-all-title{
  font-family:var(--fh);font-size:clamp(22px,3vw,32px);
  font-weight:800;color:var(--text);line-height:1.2;
}
.bd-all-sub{font-size:13.5px;color:var(--muted);margin-top:4px}

.bd-all-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bd-filter-pill{
  display:inline-flex;align-items:center;
  padding:6px 15px;border-radius:50px;
  font-size:12.5px;font-weight:600;
  color:var(--text2);background:var(--surf);
  border:1.5px solid var(--bdr);
  text-decoration:none;
  transition:border-color var(--ease),color var(--ease),background var(--ease);
  white-space:nowrap;
}
.bd-filter-pill:hover{border-color:var(--acc);color:var(--acc)}
.bd-filter-active{color:#fff !important;border-color:transparent !important}

.bd-all-main{flex:1;padding:40px 0 64px}

/* Full-width 4-col grid (no sidebar) */
.bd-all-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

/* Loader */
.bd-scroll-sentinel{height:1px;margin-top:40px}
.bd-loader{
  display:flex;align-items:center;justify-content:center;
  gap:12px;padding:36px 0;
  font-size:14px;color:var(--muted);
}
.bd-loader-spinner{
  width:26px;height:26px;border-radius:50%;
  border:3px solid var(--bdr);
  border-top-color:var(--acc);
  animation:bd-spin .7s linear infinite;
}
@keyframes bd-spin{to{transform:rotate(360deg)}}

.bd-all-end{
  text-align:center;padding:40px 0;
  font-size:14px;color:var(--muted);
}
.bd-all-end span{
  display:inline-block;padding:10px 24px;
  border:1.5px solid var(--bdr);border-radius:50px;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width:880px){
  .bd-nav{display:none !important}
  .bd-burger{display:flex !important}
  .bd-hdr-wrap{padding:0 16px}
  .bd-logo-name{font-size:15px}
  .bd-layout,.bd-single-layout{grid-template-columns:1fr}
  .bd-sidebar{position:static;display:grid;grid-template-columns:1fr 1fr;gap:14px}
  .bd-grid{grid-template-columns:repeat(2,1fr)}
  .bd-all-grid{grid-template-columns:repeat(2,1fr) !important}
  .bd-all-banner-inner{flex-direction:column;align-items:flex-start;gap:14px}
  .bd-grid-overlay{grid-auto-rows:280px}
  .bd-grid-editorial{grid-template-columns:1fr}
  .bd-grid-editorial .bd-card:first-child{flex-direction:column;max-height:none}
  .bd-grid-editorial .bd-card:first-child .bd-card-thumb{width:100%;min-width:unset;aspect-ratio:16/9;height:auto}
  .bd-footer-grid,.bd-footer-grid:has(.bd-fcol-nl){grid-template-columns:1fr 1fr}
  .bd-hero{min-height:400px}
}

@media (max-width:580px){
  .bd-hdr-wrap{padding:0 14px}
  .bd-grid{grid-template-columns:1fr}
  .bd-all-grid{grid-template-columns:1fr !important}
  .bd-grid-overlay{grid-auto-rows:260px}
  .bd-sidebar{grid-template-columns:1fr}
  .bd-footer-grid,.bd-footer-grid:has(.bd-fcol-nl){grid-template-columns:1fr}
  .bd-footer-bar .bd-container{flex-direction:column;text-align:center}
  .bd-hero{min-height:340px}
  .bd-hero-title{font-size:22px}
  .bd-hero-excerpt{display:none}
  .bd-post-hero{height:230px}
  .bd-author-box{flex-direction:column;align-items:center;text-align:center}
  .bd-post-nav{grid-template-columns:1fr}
  .bd-pnav-next{flex-direction:column}
  .bd-inline-nl-form{flex-direction:column}
  .bd-inline-nl-input,.bd-inline-nl-btn{width:100%;border-radius:var(--rsm)}
  .bd-pages ul li a,.bd-pages ul li span{min-width:36px;height:36px;padding:0 10px;font-size:13px}
  .bd-cat-banner-inner{flex-direction:column;text-align:center}
  .bd-all-filters{gap:6px}
  .bd-filter-pill{font-size:11.5px;padding:5px 12px}
}

/* ================================================================
   NEW LAYOUT TYPES — v6
================================================================ */

/* ── CENTERED GRID (no sidebar, constrained width, centred) ─── */
.bd-layout-centered-grid{
  grid-template-columns:1fr;
}
.bd-layout-centered-grid .bd-content{
  max-width:var(--cw);
  margin:0 auto;
  width:100%;
}
/* Wider column counts on centered grid — controlled via inline grid-template-columns set by PHP */
.bd-grid-centered{
  display:grid;
  gap:22px;
  /* default 3 col; PHP overrides via inline style for 2/4 variants */
  grid-template-columns:repeat(3,1fr);
}

/* ── SINGLE POST — CENTERED (no sidebar, readable column) ────── */
.bd-single-layout-centered{
  grid-template-columns:1fr;
}
.bd-single-layout-centered .bd-article-wrap{
  max-width:760px;
  margin:0 auto;
  width:100%;
}
/* Sidebar hidden in centered post mode */
.bd-single-layout-centered + .bd-sidebar,
.bd-single-layout-centered .bd-sidebar{display:none}

/* ── NEWS LIST LAYOUT ────────────────────────────────────────
   Matches the screenshot: full hero image top, then compact rows
   with small square thumbnail left + category + bold title right
   ─────────────────────────────────────────────────────────── */
.bd-news-list{
  display:flex;
  flex-direction:column;
  background:var(--surf);
  border-radius:var(--r);
  overflow:hidden;
  border:1px solid var(--bdr);
}

/* Hero item — first card, full-width image + title below */
.bd-news-list .bd-nl-hero{
  display:block;
  text-decoration:none;
  border-bottom:3px solid var(--bdr);
}
.bd-news-list .bd-nl-hero-img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
}
.bd-news-list .bd-nl-hero-body{
  padding:14px 18px 18px;
}
.bd-news-list .bd-nl-hero-cats{
  display:flex;
  align-items:center;
  gap:0;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.bd-news-list .bd-nl-hero-cat{
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.9px;
  color:var(--acc);
  text-decoration:none;
}
.bd-news-list .bd-nl-hero-cat-sep{
  font-size:11px;
  font-weight:700;
  color:var(--bdr);
  margin:0 6px;
}
.bd-news-list .bd-nl-hero-meta{
  font-size:12px;
  color:var(--muted);
  margin-left:auto;
}
.bd-news-list .bd-nl-hero-title{
  font-family:var(--fh);
  font-size:clamp(18px,2.4vw,26px);
  font-weight:800;
  line-height:1.25;
  color:var(--text);
  text-decoration:none;
  display:block;
}
.bd-news-list .bd-nl-hero:hover .bd-nl-hero-title{color:var(--acc)}
.bd-news-list .bd-nl-hero-title-bar{
  width:54px;height:3px;
  background:var(--acc);
  border-radius:2px;
  margin-top:10px;
}

/* Row items — compact list rows below hero */
.bd-news-list .bd-nl-row{
  display:flex;
  align-items:center;
  gap:0;
  padding:0;
  border-bottom:1px solid var(--bdr);
  text-decoration:none;
  background:transparent;
  transition:background .15s;
}
.bd-news-list .bd-nl-row:last-child{border-bottom:none}
.bd-news-list .bd-nl-row:hover{background:var(--s2)}

.bd-news-list .bd-nl-row-thumb{
  width:88px;
  min-width:88px;
  height:72px;
  object-fit:cover;
  display:block;
  flex-shrink:0;
  border-radius:0;
}
/* Placeholder when no image */
.bd-news-list .bd-nl-row-thumb-ph{
  width:88px;
  min-width:88px;
  height:72px;
  flex-shrink:0;
  background:var(--s2);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
}

.bd-news-list .bd-nl-row-body{
  flex:1;
  padding:12px 14px 12px 14px;
  min-width:0;
}
.bd-news-list .bd-nl-row-cat{
  font-size:10.5px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.8px;
  color:var(--acc);
  display:block;
  margin-bottom:4px;
  text-decoration:none;
}
.bd-news-list .bd-nl-row-title{
  font-family:var(--fh);
  font-size:14.5px;
  font-weight:700;
  line-height:1.35;
  color:var(--text);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.bd-news-list .bd-nl-row:hover .bd-nl-row-title{color:var(--acc)}

.bd-news-list .bd-nl-row-meta{
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:5px;
  font-size:11px;
  color:var(--muted);
}

.bd-news-list .bd-nl-row-bm{
  flex-shrink:0;
  padding:0 14px;
  color:var(--bdr);
  transition:color .15s;
  align-self:center;
}
.bd-news-list .bd-nl-row:hover .bd-nl-row-bm{color:var(--acc)}

/* List in columns (desktop: 2/3/4 cols) — set inline by PHP */
.bd-list-cols{
  display:grid;
  gap:0;
}
.bd-list-cols .bd-card{
  flex-direction:column;
  border:1px solid var(--bdr);
  border-radius:var(--r);
  box-shadow:var(--sh-sm);
  background:var(--surf);
  margin:0;
}
.bd-list-cols .bd-card-thumb{
  width:100%;min-width:unset;height:auto;
  aspect-ratio:16/10;
  margin:0;
  border-radius:0;
}
.bd-list-cols .bd-card:hover{transform:translateY(-4px);box-shadow:var(--sh-lg)}

/* ── MAGAZINE LAYOUT ─────────────────────────────────────────── */
.bd-magazine{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:18px;
}
.bd-magazine .bd-card:nth-child(1){
  grid-row:1/3;
}
.bd-magazine .bd-card:nth-child(1) .bd-card-thumb{
  aspect-ratio:4/5;
}
.bd-magazine .bd-card:nth-child(1) .bd-card-title{font-size:20px}
/* 4th+ cards go to 2 col */
.bd-magazine .bd-card:nth-child(n+4){
  grid-column:1/-1;
  flex-direction:row;
  border-radius:0;border:none;border-bottom:1px solid var(--bdr);box-shadow:none;background:transparent;
}
.bd-magazine .bd-card:nth-child(n+4):hover{transform:none;background:var(--s2)}
.bd-magazine .bd-card:nth-child(n+4) .bd-card-thumb{
  width:180px;min-width:180px;height:120px;
  aspect-ratio:unset;flex-shrink:0;
  border-radius:var(--rsm);margin:14px 0 14px 14px;
}

/* ── MASONRY-STYLE GRID ──────────────────────────────────────── */
/* CSS columns masonry — no JS required */
.bd-masonry{
  columns:3;
  column-gap:20px;
}
.bd-masonry .bd-card{
  break-inside:avoid;
  margin-bottom:20px;
  display:block; /* override flex for column flow */
}
.bd-masonry .bd-card-body{display:flex;flex-direction:column;gap:9px;padding:16px 18px 18px;flex:1}
.bd-masonry .bd-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:10px;border-top:1px solid var(--bdr)}

/* ── FEATURED STRIP ──────────────────────────────────────────── */
/* First post full-width hero strip, rest in grid below */
.bd-featured-strip .bd-card:first-child{
  grid-column:1/-1;
  flex-direction:row;
  min-height:280px;
  border-radius:var(--r);
}
.bd-featured-strip .bd-card:first-child .bd-card-thumb{
  width:45%;min-width:45%;aspect-ratio:unset;
}
.bd-featured-strip .bd-card:first-child .bd-card-body{justify-content:center;padding:28px 32px}
.bd-featured-strip .bd-card:first-child .bd-card-title{font-size:22px;line-height:1.28}
.bd-featured-strip .bd-card:first-child .bd-card-excerpt{-webkit-line-clamp:3;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}

/* ================================================================
   SEO & PERFORMANCE HELPERS
================================================================ */

/* Table of Contents — rendered by PHP in post template */
.bd-toc{
  background:var(--s2);border:1px solid var(--bdr);
  border-radius:var(--r);padding:20px 24px;
  margin:2em 0;
}
.bd-toc-title{
  font-family:var(--fh);font-size:13px;font-weight:800;
  text-transform:uppercase;letter-spacing:.9px;color:var(--text);
  margin-bottom:12px;cursor:pointer;
  display:flex;align-items:center;gap:8px;
}
.bd-toc-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:3px}
.bd-toc-list a{font-size:14px;color:var(--text2);padding:4px 0;display:block;transition:color .15s;text-decoration:none}
.bd-toc-list a:hover{color:var(--acc);padding-left:4px}
.bd-toc-list li.bd-toc-h3{padding-left:16px}
.bd-toc-list li.bd-toc-h3 a{font-size:13px}
/* Collapse */
.bd-toc.is-collapsed .bd-toc-list{display:none}

/* Reading time bar — below breadcrumb */
.bd-reading-time{
  display:inline-flex;align-items:center;gap:6px;
  font-size:12px;color:var(--muted);margin-bottom:0;
}

/* Share bar */
.bd-share-bar{
  display:flex;align-items:center;gap:10px;
  margin:28px 0;padding:18px 20px;
  background:var(--s2);border-radius:var(--r);
  flex-wrap:wrap;
}
.bd-share-label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.8px;color:var(--muted)}
.bd-share-btn{
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 14px;border-radius:50px;
  font-size:12.5px;font-weight:700;color:#fff;
  border:none;cursor:pointer;text-decoration:none;
  transition:filter .15s,transform .15s;
  white-space:nowrap;
}
.bd-share-btn:hover{filter:brightness(1.1);transform:translateY(-1px)}
.bd-share-twitter{background:#000}
.bd-share-facebook{background:#1877f2}
.bd-share-linkedin{background:#0a66c2}
.bd-share-copy{background:var(--text2)}

/* Related posts section */
.bd-related{margin-top:44px;padding-top:32px;border-top:2px solid var(--bdr)}
.bd-related-title{font-family:var(--fh);font-size:18px;font-weight:800;color:var(--text);margin-bottom:18px}
.bd-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.bd-related .bd-card{border-radius:var(--rsm)}
.bd-related .bd-card-title{font-size:13.5px}
.bd-related .bd-card-excerpt{display:none}

/* Breadcrumb with schema */
.bd-breadcrumb{contain:layout style}

/* Skip link for accessibility / Core Web Vitals */
.bd-skip-link{
  position:absolute;top:-60px;left:14px;
  background:var(--acc);color:#fff;
  padding:9px 18px;border-radius:0 0 var(--rsm) var(--rsm);
  font-weight:700;font-size:13px;
  transition:top .15s;z-index:9999;
  text-decoration:none;
}
.bd-skip-link:focus{top:0}

/* ================================================================
   RESPONSIVE — new layouts
================================================================ */
@media(max-width:1024px){
  .bd-masonry{columns:2}
  .bd-magazine{grid-template-columns:1fr 1fr}
  .bd-magazine .bd-card:nth-child(1){grid-row:auto}
  .bd-magazine .bd-card:nth-child(1) .bd-card-thumb{aspect-ratio:16/10}
  .bd-related-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:880px){
  /* news list rows stay the same but slightly smaller thumb */
  .bd-news-list .bd-nl-row-thumb,
  .bd-news-list .bd-nl-row-thumb-ph{width:74px;min-width:74px;height:62px}
  .bd-news-list .bd-nl-row-title{font-size:13.5px}
  /* List-cols → falls to single layout defined in media */
  .bd-list-cols{grid-template-columns:1fr !important}
  .bd-list-cols .bd-card{flex-direction:row}
  .bd-list-cols .bd-card-thumb{width:130px;min-width:130px;height:90px;aspect-ratio:unset;margin:12px 0 12px 12px;border-radius:var(--rsm)}
  .bd-magazine{grid-template-columns:1fr}
  .bd-magazine .bd-card:nth-child(n+4){flex-direction:column}
  .bd-magazine .bd-card:nth-child(n+4) .bd-card-thumb{width:100%;min-width:unset;height:auto;aspect-ratio:16/10;margin:0;border-radius:0}
  .bd-featured-strip .bd-card:first-child{flex-direction:column;min-height:auto}
  .bd-featured-strip .bd-card:first-child .bd-card-thumb{width:100%;min-width:unset;aspect-ratio:16/9}
  .bd-related-grid{grid-template-columns:1fr 1fr}
  .bd-single-layout-centered .bd-article-wrap{max-width:100%}
  .bd-share-bar{gap:7px}
}
@media(max-width:580px){
  .bd-masonry{columns:1}
  /* news list: hero image taller, rows stay compact */
  .bd-news-list .bd-nl-hero-title{font-size:18px}
  .bd-news-list .bd-nl-row-thumb,
  .bd-news-list .bd-nl-row-thumb-ph{width:76px;min-width:76px;height:64px}
  .bd-list-cols .bd-card{flex-direction:column}
  .bd-list-cols .bd-card-thumb{width:100%;min-width:unset;height:auto;aspect-ratio:16/10;margin:0;border-radius:0}
  .bd-magazine .bd-card:nth-child(n+4) .bd-card-thumb{display:none}
  .bd-related-grid{grid-template-columns:1fr}
  .bd-toc{padding:14px 16px}
  .bd-share-bar{flex-direction:column;align-items:flex-start;gap:8px}
  .bd-grid-centered{grid-template-columns:1fr !important}
}
