/*
Theme Name: Bichitro Biggan
Theme URI: https://bichitrobiggan.com
Author: Raisul Sohan
Description: Bichitro Biggan is a modern, super-fast, and completely zero-plugin classic WordPress theme built for a Bengali science magazine and digital publication. Custom-made and developed from scratch by Raisul Sohan, it is designed with a world-class reading experience, built-in SEO, live search, and comprehensive customizer controls.
Version: 7.3.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Update URI: https://github.com/raisulsohan/BichitroBiggan
Update Branch: main
Text Domain: bichitro-biggan
Tags: blog, news, magazine, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   1. RESET / BASE
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.bb-body {
  margin: 0;
  font-family: 'Noto Sans Bengali', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.bb-noscroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button { background: none; border: 0; cursor: pointer; padding: 0; }

h1, h2, h3, h4, h5, h6, p, ol, ul, figure { margin: 0; }

ol, ul { padding: 0; list-style: none; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.screen-reader-text,
.bb-screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.bb-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 400;
  background: #1a1a1a;
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
}
.bb-skip-link:focus { left: 8px; top: 8px; }

/* =========================================================
   2. LAYOUT HELPERS
   ========================================================= */
.bb-container {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* The header band, the nav and the page content all share this column so
   their left and right edges line up. */
.bb-container-wide {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.bb-section { padding-top: 24px; padding-bottom: 24px; }
.bb-section--bordered { border-top: 1px solid #f3.6.0; }

.bb-hide-desktop { display: block; }
.bb-hide-mobile  { display: none; }

@media (min-width: 768px) {
  .bb-hide-desktop { display: none; }
  .bb-hide-mobile  { display: block; }
}

.bb-clamp-1,
.bb-clamp-2,
.bb-clamp-3,
.bb-clamp-4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bb-clamp-1 { -webkit-line-clamp: 1; line-clamp: 1; }
.bb-clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.bb-clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }
.bb-clamp-4 { -webkit-line-clamp: 4; line-clamp: 4; }

/* =========================================================
   3. BRAND COLORS & LOGO
   ========================================================= */
:root {
  /* Brand Color Palette (from Logo) */
  --bb-brand-blue: #0080ff;
  --bb-brand-blue-hover: #0066cc;
  --bb-brand-blue-light: #e6f2ff;
  --bb-brand-gold: #ffb703;
  --bb-brand-gold-hover: #e0a100;
  --bb-brand-navy: #0b1e3d;
  --bb-brand-dark: #111827;

  --bb-logo-h: 70px;
  --bb-logo-h-sticky: 34px;
  --bb-logo-h-footer: 44px;
  --bb-logo-text: 38px;
  --bb-tagline-font: 12px;
  --bb-tagline-max-w: 520px;
  --bb-yt-icon-sz: 24px;
  --bb-yt-font-sz: 12px;
}

/* Text logo (used when no image logo is set) */
.bb-logo {
  display: inline-block;
  line-height: 1;
  user-select: none;
  font-family: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
  font-weight: 900;
  font-size: var(--bb-logo-text);
  white-space: nowrap;
}
.bb-logo__text {
  background: linear-gradient(90deg, #e53935, #e65100, #f9a825, #43a047, #1e88e5, #8e24aa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.bb-logo--sm { font-size: calc(var(--bb-logo-text) * 0.75); }
.bb-logo--md { font-size: calc(var(--bb-logo-text) * 0.84); }

@media (max-width: 420px) {
  .bb-logo { font-size: calc(var(--bb-logo-text) * 0.8); }
}

/* Image logo — WordPress outputs <a class="custom-logo-link"><img class="custom-logo"> */
.custom-logo-link {
  display: inline-block;
  line-height: 0;
  max-width: 100%;
}
.custom-logo {
  height: var(--bb-logo-h);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.bb-nav__stickybar .custom-logo { height: var(--bb-logo-h-sticky); }
.bb-footer .custom-logo { height: var(--bb-logo-h-footer); }

@media (max-width: 420px) {
  .custom-logo { height: calc(var(--bb-logo-h) * 0.8); }
}

/* =========================================================
   4. TOP BAR
   ========================================================= */
.bb-topbar {
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  padding: 6px 0;
}
.bb-topbar__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bb-topbar__date { font-family: Arial, Helvetica, sans-serif; }
.bb-topbar__mail {
  color: #fff;
  transition: color .15s ease;
  font-size: 13px;
}
.bb-topbar__mail:hover { color: #d1d5db; }

/* =========================================================
   5. MASTHEAD
   ========================================================= */
.bb-masthead {
  background: #f0f0f0;
  padding: 14px 0;
  position: relative;
  z-index: 45;
  border-bottom: 0;
  margin-bottom: 0;
}
.bb-masthead__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.bb-masthead__logo {
  flex-shrink: 0;
}
.bb-masthead__tagline {
  display: none;
  flex: 1;
  min-width: 0;
  color: #6b7280;
  font-size: var(--bb-tagline-font);
  line-height: 1.6;
  font-style: italic;
  text-align: justify;
  text-align-last: center;
  max-width: var(--bb-tagline-max-w);
  margin: 0 auto;
}
.bb-masthead__social {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.bb-masthead__yt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: transparent;
  color: #1a1a1a;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.bb-masthead__yt:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.03);
  box-shadow: 0 3px 8px rgba(255, 0, 0, 0.12);
  border-color: #fca5a5;
}
.bb-masthead__yt-icon {
  width: var(--bb-yt-icon-sz);
  height: auto;
  flex-shrink: 0;
}
.bb-masthead__yt-text {
  font-size: var(--bb-yt-font-sz);
  font-weight: 600;
  color: #1f2937;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  line-height: 1.2;
  white-space: nowrap;
}

/* Desktop layout (1024px+): 3 columns with Tagline */
@media (min-width: 1024px) {
  .bb-masthead { padding: 16px 0; }
  .bb-masthead__inner {
    justify-content: flex-start;
    gap: 28px;
  }
  .bb-masthead__tagline { display: block; }
}

/* Tablet layout (640px - 1023px): Logo on Left, YouTube on Right, Tagline hidden */
@media (min-width: 640px) and (max-width: 1023px) {
  .bb-masthead { padding: 14px 0; }
  .bb-masthead__inner {
    justify-content: space-between;
    gap: 20px;
  }
}

/* Mobile layout (< 640px): Centered Logo, Compact & Responsive */
@media (max-width: 639px) {
  .bb-masthead { padding: 12px 0; }
  .bb-masthead__inner {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
  }
  .bb-masthead__logo {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
  }
  .bb-masthead__logo .custom-logo {
    max-width: 100%;
    height: auto;
    max-height: min(var(--bb-logo-h), 56px);
    object-fit: contain;
  }
  .bb-masthead__social {
    margin: 0 auto;
  }
  .bb-masthead__yt {
    padding: 4px 10px;
    gap: 5px;
  }
  .bb-masthead__yt-icon {
    width: 20px;
  }
  .bb-masthead__yt-text {
    font-size: 11px;
  }
}

/* Extra small mobile (< 380px) */
@media (max-width: 380px) {
  .bb-masthead__logo .custom-logo {
    max-height: 46px;
  }
  .bb-masthead__yt-text {
    font-size: 10px;
  }
}

/* =========================================================
   6. NAVIGATION
   ========================================================= */
.bb-nav {
  background: #f0f0f0;
  border-top: 0;
  margin-top: 0;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.09);
  position: relative;
  z-index: 40;
}
.bb-nav.is-stuck {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: #f0f0f0;
}

.bb-nav__stickybar {
  display: none;
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
  border-bottom: 0;
  gap: 12px;
}
.bb-nav__stickybar .custom-logo-link {
  display: flex;
  align-items: center;
  max-width: 55%;
  flex-shrink: 1;
}
.bb-nav__stickybar .custom-logo {
  height: var(--bb-logo-h-sticky);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.bb-nav__sticky-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.bb-nav-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.bb-nav-action-btn:hover {
  transform: translateY(-1.5px);
  border-color: var(--bb-brand-blue);
  color: var(--bb-brand-blue);
  box-shadow: 0 3px 8px rgba(0, 128, 255, 0.2);
}
.bb-nav-action-btn--yt:hover {
  border-color: #fca5a5;
  box-shadow: 0 3px 8px rgba(255, 0, 0, 0.2);
}
.bb-nav-action-btn svg {
  display: block;
}
.bb-nav.is-stuck .bb-nav__stickybar { display: flex; }

@media (min-width: 1024px) {
  .bb-nav__stickybar {
    justify-content: center;
  }
  .bb-nav__stickybar .custom-logo-link {
    max-width: none;
  }
  .bb-nav__sticky-actions {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 380px) {
  .bb-nav__sticky-actions {
    gap: 6px;
  }
  .bb-nav-action-btn {
    width: 30px;
    height: 30px;
  }
}

.bb-nav__list {
  display: none;
  align-items: center;
  overflow-x: auto;
  padding: 0 16px;
  gap: 4px;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE and Edge */
}
.bb-nav__list::-webkit-scrollbar {
  display: none;                /* Chrome, Opera, Safari */
}
.bb-nav__item { display: block; }
.bb-nav__link {
  display: block;
  padding: 10px 14px;
  margin: 3px 0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: #333;
  background: transparent;
  border-radius: 6px;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-nav__link:hover {
  background: var(--bb-brand-blue-light);
  color: var(--bb-brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 128, 255, 0.15);
}
.bb-nav__item.is-active > .bb-nav__link,
.bb-nav__item.current-menu-item > .bb-nav__link,
.bb-nav__item.current-menu-parent > .bb-nav__link,
.bb-nav__item.current-menu-ancestor > .bb-nav__link {
  background: var(--bb-brand-blue);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 128, 255, 0.3);
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-nav__item.is-active > .bb-nav__link:hover,
.bb-nav__item.current-menu-item > .bb-nav__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 128, 255, 0.45);
}

.bb-nav__mobilebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
}
.bb-nav.is-stuck .bb-nav__mobilebar { display: none; }
.bb-nav__current {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}
.bb-hamburger {
  padding: 6px;
  color: #374151;
  font-size: 18px;
  line-height: 1;
  border-radius: 6px;
}

.bb-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  z-index: 50;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 8px 8px;
  max-height: 70vh;
  overflow-y: auto;
}
.bb-mobile-menu.is-open { display: block; }
.bb-mobile-menu .bb-nav__link {
  width: 100%;
  text-align: left;
  padding: 12px 20px;
  margin: 0;
  font-size: 14px;
  border-radius: 0;
  border-bottom: 1px solid #f3.6.0;
}
.bb-mobile-menu .bb-nav__item:last-child > .bb-nav__link { border-bottom: 0; }

/* sub menus */
.bb-nav__item { position: relative; }
.bb-nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
  z-index: 60;
}
.bb-nav__item:hover > .bb-nav__sub { display: block; }
.bb-nav__sub .bb-nav__link {
  border-bottom: 1px solid #f3.6.0;
  padding: 10px 14px;
  margin: 0;
  border-radius: 0;
}
.bb-mobile-menu .bb-nav__sub {
  display: block;
  position: static;
  box-shadow: none;
  min-width: 0;
}
.bb-mobile-menu .bb-nav__sub .bb-nav__link { padding-left: 36px; }

@media (min-width: 1024px) {
  .bb-nav__list { display: flex; }
  .bb-nav__mobilebar { display: none; }
  .bb-mobile-menu { display: none !important; }
}

/* body offset when nav is fixed */
body.bb-nav-stuck { padding-top: 0; }

/* =========================================================
   7. TICKER
   ========================================================= */
.bb-ticker {
  background: #fff;
  padding: 8px 0;
  overflow: hidden;
}
.bb-ticker__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.bb-ticker__label {
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  flex-shrink: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  user-select: none;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-ticker__label:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  background: var(--bb-brand-navy);
}
.bb-ticker__track {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.bb-ticker__title {
  display: block;
  font-size: 13.5px;
  color: #1f2937;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .15s ease, opacity .3s ease;
}
.bb-ticker__title:hover { color: var(--bb-brand-blue); }
.bb-ticker__nav {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

@media (min-width: 640px) {
  .bb-ticker__inner { gap: 12px; }
  .bb-ticker__label { padding: 4px 12px; font-size: 13.5px; }
  .bb-ticker__title { font-size: 15px; }
}

@media (max-width: 639px) {
  .bb-ticker { padding: 6px 0; }
  .bb-ticker__inner { gap: 6px; padding: 0 12px; }
  .bb-ticker__label { font-size: 11.5px; padding: 3px 8px; }
  .bb-ticker__title { font-size: 12.5px; }
  .bb-arrow-btn { width: 24px; height: 24px; font-size: 11px; }
}

.bb-arrow-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 12px;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-arrow-btn:hover {
  background: #f3.6.0;
  color: #111827;
  transform: translateY(-1.5px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-color: #9ca3af;
}
.bb-arrow-btn--lg { font-size: 14px; }
.bb-arrow-group { display: flex; gap: 4px; margin-top: 12px; }

/* =========================================================
   8. SEARCH
   ========================================================= */
.bb-searchbar {
  background: #fff;
  padding: 12px 0;
  border-bottom: 0;
}
.bb-searchform {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bb-searchform:focus-within {
  border-color: var(--bb-brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.15);
}
.bb-searchform__input {
  flex: 1 1 0%;
  min-width: 0;
  padding: 8px 12px;
  font-size: 14px;
  border: 0;
  outline: none;
  background: #fff;
}
.bb-searchform__submit {
  background: var(--bb-brand-navy);
  color: #fff;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  border-radius: 0 6px 6px 0;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-searchform__submit:hover {
  background: var(--bb-brand-blue);
  transform: translateY(-1px);
  box-shadow: -2px 0 10px rgba(0, 128, 255, 0.3);
}

@media (min-width: 640px) {
  .bb-searchform__submit { padding: 8px 32px; }
}

/* =========================================================
   9. YEAR TABS
   ========================================================= */
.bb-years {
  background: #fff;
  padding: 8px 0 16px;
}
.bb-years__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bb-years__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.2;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.bb-years__link:hover {
  background: var(--bb-brand-blue-light);
  color: var(--bb-brand-blue);
  border-color: var(--bb-brand-blue);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 128, 255, 0.15);
}
.bb-years__link.is-active {
  background: var(--bb-brand-blue-light);
  color: var(--bb-brand-blue);
  border-color: var(--bb-brand-blue);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 0 2px rgba(0, 128, 255, 0.18);
}

@media (min-width: 640px) {
  .bb-years__inner { gap: 10px; }
  .bb-years__link {
    font-size: 13.5px;
    padding: 6px 16px;
  }
}

/* =========================================================
   10. BADGES & SECTION HEADINGS
   ========================================================= */
.bb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  background: #2e7d32;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 8px 3px;
  border-radius: 6px;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  line-height: 1.2;
  text-decoration: none;
  vertical-align: middle;
  box-sizing: border-box;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-badge:hover,
a.bb-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.bb-badge--xs {
  font-size: 10px;
  padding: 2px 6px 3px;
  border-radius: 4px;
  line-height: 1.2;
}

.bb-sechead {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.bb-sechead__label {
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  flex-shrink: 0;
  font-family: 'Hind Siliguri', sans-serif;
  background: #1a1a1a;
  color: #fff;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-sechead__label:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.bb-sechead__label--upper {
  font-size: 12px;
  padding: 6px 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.bb-sechead__rule {
  flex: 1 1 0%;
  height: 2px;
  background: #1a1a1a;
}

/* =========================================================
   11. CARDS (shared)
   ========================================================= */
.bb-card { display: block; cursor: pointer; }

.bb-thumb {
  position: relative;
  overflow: hidden;
  display: block;
  background: #e5e7eb;
  border-radius: 8px;
}
.bb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 8px;
  transition: transform .5s ease;
}
.bb-card:hover .bb-thumb img,
.bb-thumb:hover img { transform: scale(1.05); }
.bb-thumb__badge {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 6px;
  border-radius: 6px;
}
.bb-thumb__badge--tight { padding: 4px; }

.bb-card__title {
  margin-top: 8px;
  font-family: 'Noto Sans Bengali', sans-serif;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.42;
  letter-spacing: 0.15px;
  transition: color .15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-card__title--lg { font-size: 22px; }
.bb-card__title--md { font-size: 19px; }
.bb-card__title--sm { font-size: 17px; }
@media (min-width: 640px) {
  .bb-card__title--lg { font-size: 24px; }
  .bb-card__title--md { font-size: 20px; }
  .bb-card__title--sm { font-size: 18px; }
}
.bb-card:hover .bb-card__title { color: var(--bb-brand-blue); }

.bb-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.bb-card__byline {
  font-size: 13.5px;
  color: #6b7280;
}
.bb-card__byline strong { color: #374151; font-weight: 600; }
.bb-count {
  font-size: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #6b7280;
  padding: 2px 6px;
  line-height: 1.2;
}
.bb-card__excerpt {
  margin-top: 8px;
  font-size: 15.5px;
  color: #374151;
  line-height: 1.7;
  font-family: 'Noto Sans Bengali', sans-serif;
  letter-spacing: 0.1px;
}

/* small list item (thumb + title + date) */
.bb-listitem {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
}
.bb-listitem__thumb {
  flex-shrink: 0;
  width: var(--bb-list-thumb-w, 80px);
  height: var(--bb-list-thumb-h, 56px);
  overflow: hidden;
  position: relative;
  background: #e5e7eb;
  border-radius: 6px;
}
.bb-listitem__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 6px;
  transition: transform .5s ease;
}
.bb-listitem:hover .bb-listitem__thumb img { transform: scale(1.05); }
.bb-listitem__body { flex: 1 1 0%; min-width: 0; }
.bb-listitem__title {
  font-size: 16.5px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.45;
  letter-spacing: 0.15px;
  font-family: 'Noto Sans Bengali', sans-serif;
  transition: color .15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-listitem:hover .bb-listitem__title { color: var(--bb-brand-blue); }
.bb-listitem__date {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 4px;
}

.bb-divide-y > * + * { border-top: 1px solid #f3.6.0; }

/* The first row of a list sits level with the top of the neighbouring
   column's image — without this its own padding pushes it down. */
.bb-feature__list > .bb-listitem:first-child,
.bb-divide-y > .bb-listitem:first-child,
.bb-divide-y > .bb-wide-row:first-child,
.bb-divide-y > .bb-titleonly:first-child,
.bb-divide-y > *:first-child > .bb-listitem {
  padding-top: 0;
}

/* overlay card */
.bb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,0) 100%);
}
.bb-overlay--deep {
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,0) 100%);
}
.bb-overlay--sm { padding: 8px; }
.bb-overlay--md { padding: 12px; }
.bb-overlay__title {
  color: #fff;
  font-weight: 600;
  line-height: 1.375;
  letter-spacing: 0.15px;
  font-family: 'Noto Sans Bengali', sans-serif;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-overlay__byline {
  font-size: 12px;
  color: #d1d5db;
  margin-top: 4px;
}
.bb-overlay__byline strong { color: #fff; font-weight: 600; }

/* =========================================================
   12. HERO MOSAIC (front page)
   ========================================================= */
.bb-hero { padding: 16px 16px; max-width: 1220px; margin: 0 auto; }
.bb-hero__grid { display: flex; flex-direction: column; gap: 4px; }
.bb-hero__col { display: flex; flex-direction: column; gap: 4px; }
.bb-hero__main {
  position: relative;
  overflow: hidden;
  height: 224px;
  border-radius: 8px;
}
.bb-hero__main .bb-overlay { padding: 16px; }
.bb-hero__main .bb-overlay__title { font-size: 20px; line-height: 1.35; margin-top: 8px; }
.bb-hero__top {
  position: relative;
  overflow: hidden;
  height: 180px;
  border-radius: 8px;
}
.bb-hero__top .bb-overlay { padding: 12px; }
.bb-hero__top .bb-overlay__title { font-size: 17px; line-height: 1.35; }
.bb-hero__row {
  display: flex;
  gap: 4px;
  height: 180px;
}
.bb-hero__tile {
  flex: 1 1 0%;
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: 8px;
}
.bb-hero__tile .bb-overlay { padding: 8px; }
.bb-hero__tile .bb-overlay__title { font-size: 13px; line-height: 1.35; margin-top: 4px; }
.bb-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .7s ease; }
.bb-hero a:hover img { transform: scale(1.05); }

.bb-hero__podcast {
  background: #000000;
  position: relative;
  overflow: hidden;
}

.bb-hero__podcast .bb-hero__podcast-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(16px) brightness(0.4);
  transform: scale(1.2);
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

.bb-hero__podcast .bb-hero__podcast-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  z-index: 2;
  transition: transform 0.5s ease;
  display: block;
}

.bb-hero a:hover .bb-hero__podcast-img {
  transform: scale(1.03);
}

.bb-hero__podcast-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  z-index: 4;
  pointer-events: none;
}

.bb-hero__podcast-chip {
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 4px 8px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.bb-hero__podcast-chip .l1 { font-size: 9px; font-weight: 700; line-height: 1; color: #f5a623; }
.bb-hero__podcast-chip .l1--logo { display: flex; justify-content: flex-start; align-items: center; }
.bb-hero__podcast-logo {
  display: block;
  max-height: 20px;
  max-width: 90px;
  width: auto;
  margin: 0 0 2px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.bb-hero__podcast-chip .l2 { font-size: 8px; line-height: 1; color: #fff; margin-top: 2px; }
.bb-hero__podcast-chip .l3 { font-size: 13px; color: #fff; margin-top: 2px; }

/* Direct Video Playback on Hero Card */
.bb-hero__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5722, #e65100);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(230, 81, 0, 0.5), 0 0 0 0 rgba(255, 87, 34, 0.6);
  z-index: 12;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease;
  cursor: pointer;
  animation: bbPulsePlay 2.5s infinite;
}

.bb-hero__play-btn svg {
  margin-left: 3px;
  transition: transform 0.2s ease;
}

.bb-hero a:hover .bb-hero__play-btn,
.bb-hero__play-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 12px 30px rgba(230, 81, 0, 0.7);
  background: linear-gradient(135deg, #ff7043, #f4511e);
}

@keyframes bbPulsePlay {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7), 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(255, 87, 34, 0), 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 87, 34, 0), 0 8px 20px rgba(0, 0, 0, 0.3);
  }
}

.bb-hero__video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 30;
  border-radius: 8px;
  overflow: hidden;
  animation: bbFadeIn 0.25s ease forwards;
}

.bb-hero__video-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.bb-hero__video-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 35;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bb-hero__video-close:hover {
  background: #d63638;
  transform: scale(1.1);
}

@media (min-width: 640px) {
  .bb-hero { padding: 20px 16px; }
  .bb-hero__main .bb-overlay { padding: 20px; }
  .bb-hero__main .bb-overlay__title { font-size: 26px; line-height: 1.35; margin-top: 12px; }
  .bb-hero__top .bb-overlay { padding: 16px; }
  .bb-hero__top .bb-overlay__title { font-size: 21px; line-height: 1.35; }
  .bb-hero__tile .bb-overlay { padding: 12px; }
  .bb-hero__tile .bb-overlay__title { font-size: 15px; line-height: 1.35; }
  .bb-hero__podcast-inner { padding: 12px; }
  .bb-hero__podcast-chip .l1 { font-size: 10px; }
  .bb-hero__podcast-chip .l2 { font-size: 9px; }
  .bb-hero__podcast-chip .l3 { font-size: 18px; }

  .bb-hero__main.bb-hero__podcast .bb-hero__podcast-inner { padding: 20px; }
  .bb-hero__main.bb-hero__podcast .bb-hero__podcast-chip { padding: 10px 16px; }
  .bb-hero__main.bb-hero__podcast .bb-hero__podcast-chip .l1 { font-size: 13px; }
  .bb-hero__main.bb-hero__podcast .bb-hero__podcast-chip .l2 { font-size: 11px; }
  .bb-hero__main.bb-hero__podcast .bb-hero__podcast-chip .l3 { font-size: 24px; }
  .bb-hero__main.bb-hero__podcast .bb-overlay__title { font-size: 26px; line-height: 1.35; margin-top: 12px; }

  .bb-hero__top.bb-hero__podcast .bb-hero__podcast-inner { padding: 16px; }
  .bb-hero__top.bb-hero__podcast .bb-hero__podcast-chip { padding: 8px 14px; }
  .bb-hero__top.bb-hero__podcast .bb-hero__podcast-chip .l1 { font-size: 12px; }
  .bb-hero__top.bb-hero__podcast .bb-hero__podcast-chip .l2 { font-size: 10px; }
  .bb-hero__top.bb-hero__podcast .bb-hero__podcast-chip .l3 { font-size: 20px; }
  .bb-hero__top.bb-hero__podcast .bb-overlay__title { font-size: 21px; line-height: 1.35; }
}

@media (min-width: 1024px) {
  .bb-hero__grid {
    flex-direction: row;
    height: var(--bb-hero-h, 520px);
  }
  .bb-hero__col {
    min-width: 0;
  }
  .bb-hero__col--left {
    flex: 0 0 var(--bb-hero-left-w, 56%);
    max-width: var(--bb-hero-left-w, 56%);
  }
  .bb-hero__col--right {
    flex: 1 1 0%;
  }
  .bb-hero__main {
    flex: 1 1 0%;
    height: 100%;
    min-height: 0;
  }
  .bb-hero__top {
    flex: 0 0 var(--bb-hero-top-h, 50%);
    height: var(--bb-hero-top-h, 50%);
    min-height: 0;
  }
  .bb-hero__row {
    flex: 1 1 0%;
    height: calc(100% - var(--bb-hero-top-h, 50%) - 4px);
    min-height: 0;
  }
  .bb-hero__tile {
    height: 100%;
    min-height: 0;
  }
  .bb-hero__tile--left {
    flex: 0 0 var(--bb-hero-bot-left-w, 50%);
    max-width: var(--bb-hero-bot-left-w, 50%);
  }
  .bb-hero__tile--right {
    flex: 1 1 0%;
  }
}

/* =========================================================
   13. TWO-COLUMN SECTION LAYOUT
   ========================================================= */
.bb-cols {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.bb-cols--stretch { align-items: stretch; }
.bb-col-main { min-width: 0; }
.bb-col-side { min-width: 0; width: 100%; }

@media (min-width: 1024px) {
  .bb-cols { flex-direction: row; }
  .bb-col-main { flex: 2 1 0%; }
  .bb-col-side { flex: 1 1 0%; width: auto; }
  /* flex-basis must be set explicitly — .bb-col-side sets basis to 0. */
  .bb-col-side--fixed { flex: 0 0 256px; width: 256px; }
  .bb-col-side--sidebar { flex: 0 0 240px; width: 240px; }
}

/* grids */
.bb-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.bb-grid--gap-sm { gap: 16px; }
.bb-grid--gap-xs { gap: 12px; }
.bb-grid--gap-1  { gap: 4px; }
.bb-grid--gap-lg { gap: var(--bb-grid-gap, 24px); }
.bb-grid--gap-8  { gap: 32px; }

@media (min-width: 640px) {
  .bb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-grid--2-always { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bb-grid--2-always { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .bb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.bb-span-2 { grid-column: auto; }
@media (min-width: 640px) {
  .bb-span-2 { grid-column: span 2 / span 2; }
}
@media (min-width: 768px) {
  .bb-span-2 { grid-column: auto; }
}

/* featured (image + side list) block */
.bb-feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bb-feature__main { width: 100%; }
.bb-feature__list { flex: 1 1 0%; min-width: 0; }

@media (min-width: 640px) {
  .bb-feature { flex-direction: row; }
  .bb-feature__main {
    width: var(--bb-feature-w, 208px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
  }
  .bb-feature__main > .bb-arrow-group {
    margin-top: auto;
    padding-top: 10px;
  }
}

.bb-ratio-44 { height: var(--bb-card-img-h, 176px); }
.bb-feature__main .bb-ratio-44 { height: var(--bb-feature-img-h, 116px); }
[data-bb-list="all"] .bb-ratio-44 { height: var(--bb-all-img-h, 176px); }
.bb-ratio-40 { height: var(--bb-archive-img-h, 160px); }
.bb-ratio-52 { height: var(--bb-side-img-h, 208px); }
.bb-ratio-24 { height: 96px; }
@media (min-width: 640px) {
  .bb-ratio-24 { height: var(--bb-grid-card-h, 116px); }
  .bb-grid--2-always .bb-ratio-24 { height: 116px; }
}

/* Block 1 (Quantum & Nobel) alignment */
.bb-feature__list .bb-listitem {
  padding: 16.4px 0;
}
.bb-feature__list .bb-listitem__thumb {
  width: 90px;
  height: 64px;
}
.bb-grid--2-always {
  row-gap: 10px;
}
.bb-col-side .bb-arrow-group {
  margin-top: 6px;
}

/* Block 2 right side list spacing to align with left slider bottom */
.bb-block2-side-list .bb-listitem {
  padding: 19px 0;
}
.bb-block2-side-list .bb-listitem__thumb {
  width: 90px;
  height: 64px;
}

/* wide list rows (বিবিধ বিজ্ঞান) */
.bb-wide-row {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
}
.bb-wide-row__thumb {
  flex-shrink: 0;
  width: 96px;
  height: 80px;
  overflow: hidden;
  position: relative;
  background: #e5e7eb;
  border-radius: 8px;
}
.bb-wide-row__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 8px;
  transition: transform .5s ease;
}
.bb-wide-row:hover .bb-wide-row__thumb img { transform: scale(1.05); }
.bb-wide-row__body { flex: 1 1 0%; min-width: 0; }
.bb-wide-row__title {
  font-size: 17px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  letter-spacing: 0.15px;
  font-family: 'Noto Sans Bengali', sans-serif;
  transition: color .15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-wide-row:hover .bb-wide-row__title { color: #4b5563; }

@media (min-width: 640px) {
  .bb-wide-row { gap: 16px; }
  .bb-wide-row__thumb { width: var(--bb-wide-thumb-w, 192px); height: var(--bb-wide-thumb-h, 128px); }
  .bb-wide-row__title { font-size: 19px; }
}

/* centred title-only list (আরও পড়ুন) */
.bb-titleonly {
  padding: 16px 0;
  display: block;
  text-align: center;
  cursor: pointer;
}
.bb-titleonly__title {
  font-size: 16.5px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  letter-spacing: 0.15px;
  font-family: 'Noto Sans Bengali', sans-serif;
  transition: color .15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.bb-titleonly:hover .bb-titleonly__title { color: #2563eb; }
.bb-titleonly__meta { font-size: 13px; color: #9ca3af; margin-top: 6px; }
.bb-titleonly__meta strong { color: #4b5563; font-weight: 600; }

/* centred dark cards row */
.bb-darkcard {
  position: relative;
  overflow: hidden;
  height: 208px;
  display: block;
  border-radius: 8px;
}
.bb-darkcard img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; border-radius: 8px; transition: transform .7s ease; }
.bb-darkcard:hover img { transform: scale(1.05); }
.bb-darkcard__inner {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
}
.bb-darkcard__title {
  margin-top: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.15px;
  font-family: 'Noto Sans Bengali', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
}
.bb-darkcard__meta { font-size: 13px; color: #d1d5db; margin-top: 8px; }
.bb-darkcard__meta strong { color: #fff; font-weight: 600; }

@media (min-width: 640px) {
  .bb-darkcard { height: var(--bb-dark-h, 256px); }
}

/* tall overlay column card (বিবর্তন / ভূ রাজনীতি) */
.bb-tallcard {
  position: relative;
  overflow: hidden;
  height: var(--bb-tall-h, 208px);
  display: block;
  border-radius: 8px;
}
.bb-tallcard img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; border-radius: 8px; transition: transform .5s ease; }
.bb-tallcard .bb-overlay__title { font-size: 16.5px; font-weight: 600; font-family: 'Noto Sans Bengali', sans-serif; letter-spacing: 0.15px; line-height: 1.4; margin-top: 0; display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }

/* =========================================================
   14. ARCHIVE / CATEGORY PAGE
   ========================================================= */
.bb-archive { background: #fff; min-height: 100vh; }
.bb-archive__inner { max-width: 1220px; margin: 0 auto; padding: 24px 16px; }

.bb-breadcrumb {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}
.bb-breadcrumb a:hover { color: var(--bb-brand-blue); }
.bb-breadcrumb .current { color: #374151; }

.bb-archive__title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
  letter-spacing: 0.15px;
  font-family: 'Noto Sans Bengali', sans-serif;
}
.bb-archive__desc {
  font-size: 14px;
  color: #4b5563;
  margin: -12px 0 20px;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .bb-archive__title { font-size: 24px; }
}

/* featured mosaic on archive */
.bb-mosaic {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}
.bb-mosaic__big {
  position: relative;
  overflow: hidden;
  height: 208px;
  display: block;
  border-radius: 8px;
}
.bb-mosaic__big img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; border-radius: 8px; transition: transform .7s ease; }
.bb-mosaic__big:hover img { transform: scale(1.05); }
.bb-mosaic__big .bb-overlay__title { font-size: 18px; }
.bb-mosaic__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  height: 160px;
}
.bb-mosaic__cell {
  position: relative;
  overflow: hidden;
  display: block;
  min-width: 0;
  border-radius: 8px;
}
.bb-mosaic__cell img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; border-radius: 8px; transition: transform .5s ease; }
.bb-mosaic__cell:hover img { transform: scale(1.05); }
.bb-mosaic__cell .bb-overlay { padding: 8px; }
.bb-mosaic__cell .bb-overlay__title { font-size: 10px; font-weight: 600; margin-top: 4px; }

@media (min-width: 640px) {
  .bb-mosaic__big .bb-overlay__title { font-size: 20px; }
  .bb-mosaic__cell .bb-overlay__title { font-size: 12px; }
}

@media (min-width: 768px) {
  .bb-mosaic { flex-direction: row; height: 340px; }
  .bb-mosaic__big  { flex: 3 1 0%; height: auto; min-width: 0; }
  .bb-mosaic__grid { flex: 2 1 0%; height: auto; min-width: 0; }
}

/* =========================================================
   15. PAGINATION
   ========================================================= */
.bb-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  gap: 8px;
}
.bb-pagination__list { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.bb-pagination .page-numbers {
  width: 32px;
  height: 32px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-pagination .page-numbers:hover {
  background: #f3.6.0;
  transform: translateY(-1.5px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-color: #9ca3af;
}
.bb-pagination .page-numbers.current {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.bb-pagination .page-numbers.dots {
  border-color: transparent;
  color: #9ca3af;
}
.bb-pagination__info { font-size: 12px; color: #9ca3af; }

@media (min-width: 640px) {
  .bb-pagination { flex-direction: row; }
}

.bb-loadmore {
  margin-top: 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 12px;
  color: #4b5563;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background-color .15s ease;
}
.bb-loadmore:hover { background: #f9fafb; }

/* =========================================================
   16. SIDEBAR
   ========================================================= */
.bb-sidebar-block { margin-bottom: 24px; }

.bb-accordion { }
.bb-accordion__item {
  border-radius: 6px;
  transition: background-color 0.2s ease;
}
.bb-accordion__item + .bb-accordion__item {
  border-top: 1px solid #f3.6.0;
}
.bb-accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: #374151;
  border-radius: 6px;
  background: transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.bb-accordion__head:hover {
  color: var(--bb-brand-blue);
  background: #f0f9ff;
  transform: translateX(4px);
  box-shadow: 0 1px 4px rgba(0, 128, 255, 0.08);
}
.bb-accordion__caret {
  color: #9ca3af;
  font-size: 11px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.bb-accordion__head:hover .bb-accordion__caret {
  color: var(--bb-brand-blue);
}
.bb-accordion__item.is-open .bb-accordion__head {
  color: var(--bb-brand-blue);
  background: #f0f9ff;
  font-weight: 700;
}
.bb-accordion__item.is-open .bb-accordion__caret {
  transform: rotate(180deg);
  color: var(--bb-brand-blue);
}
.bb-accordion__panel {
  display: none;
  padding: 4px 6px 8px 14px;
  flex-direction: column;
  gap: 3px;
}
.bb-accordion__item.is-open .bb-accordion__panel { display: flex; }
.bb-accordion__link {
  text-align: left;
  font-size: 13px;
  color: #6b7280;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bb-accordion__link:hover {
  color: var(--bb-brand-blue);
  background: #f8fafc;
  transform: translateX(4px);
}

/* Category Active Date Filter Pill */
.bb-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f0f9ff;
  border: 1px solid #bae0f2;
  color: var(--bb-brand-blue);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.bb-filter-pill__reset {
  color: #ef4444;
  text-decoration: none;
  font-size: 12px;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid #bae0f2;
  transition: opacity 0.15s ease;
}
.bb-filter-pill__reset:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.bb-widget { margin-bottom: 24px; }
.bb-widget ul li { padding: 6px 0; border-bottom: 1px solid #f3.6.0; font-size: 14px; }
.bb-widget ul li a:hover { color: var(--bb-brand-blue); }

/* =========================================================
   17. SINGLE POST
   ========================================================= */
.bb-single {
  background: #fff;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid #f3.6.0;
  padding: 20px 16px 28px;
  position: relative;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

.bb-single__title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  letter-spacing: 0.15px;
  margin-bottom: 16px;
  font-family: 'Noto Sans Bengali', sans-serif;
}

.bb-single .bb-breadcrumb { margin-bottom: 12px; }
.bb-single__badge {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}
.bb-single__badge .bb-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px 5px;
  border-radius: 6px;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.bb-single__badge .bb-badge:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.bb-authorrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.bb-authorrow__avatar {
  width: 36px; height: 36px;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e7eb;
}
.bb-authorrow__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 9999px; }
.bb-authorrow__name { font-size: 14px; font-weight: 600; color: #1f2937; }
.bb-authorrow__name a { color: var(--bb-brand-blue); }
.bb-authorrow__date { font-size: 12px; color: #6b7280; font-family: Arial, Helvetica, sans-serif; }
.bb-authorrow__stats {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #9ca3af;
  font-family: Arial, Helvetica, sans-serif;
}

.bb-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.bb-share__label { font-size: 12px; color: #6b7280; margin-right: 4px; }
.bb-share__btn {
  width: 28px; height: 28px;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bb-share__btn:hover { opacity: .85; }

/* Sticky Floating Actions Bar (TOC + Read Later Bookmark) */
.bb-floating-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  position: sticky;
  top: 12px;
  z-index: 25;
  width: fit-content;
  max-width: 100%;
}
body.bb-nav-stuck .bb-floating-bar,
.bb-nav.is-stuck ~ * .bb-floating-bar {
  top: 56px;
}

.bb-floating-bar .bb-toc-container {
  margin-bottom: 0;
  position: relative;
  top: 0;
  z-index: auto;
}

.bb-floating-bookmark-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(243, 244, 246, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1f2937;
  border: 1px solid #e5e7eb;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  font-family: inherit;
}
.bb-floating-bookmark-btn:hover {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}
.bb-floating-bookmark-btn.is-bookmarked {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}


/* TOC Inline Sticky Floating Container */
.bb-toc-container {
  margin-bottom: 20px;
  position: sticky;
  top: 12px;
  z-index: 25;
  width: fit-content;
}

.bb-toc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 244, 246, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1f2937;
  border: 1px solid #e5e7eb;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  font-family: inherit;
}

.bb-toc-toggle:hover {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.bb-toc-toggle svg {
  color: #4b5563;
  flex-shrink: 0;
}

.bb-toc-container.is-open .bb-toc-toggle {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.bb-toc-container.is-open .bb-toc-toggle svg {
  color: #38bdf8;
}

.bb-toc-caret {
  font-size: 10px;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.bb-toc-container.is-open .bb-toc-caret {
  transform: rotate(180deg);
  color: #ffffff;
}

.bb-toc {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: 320px;
  max-width: min(320px, calc(100vw - 48px));
  max-height: 65vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 20px;
  display: none;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 35;
}

.bb-toc-container.is-open .bb-toc {
  display: block;
  animation: bbTocSlideDown 0.2s ease forwards;
}

@keyframes bbTocSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.bb-toc__title { font-size: 14px; font-weight: 700; color: #1f2937; margin-bottom: 8px; }
.bb-toc__list { list-style: none; padding-left: 0; }
.bb-toc__list li { margin-bottom: 6px; padding-left: 14px; position: relative; }
.bb-toc__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bb-brand-blue);
}
.bb-toc__list a { font-size: 12px; color: var(--bb-brand-blue); }
.bb-toc__list a:hover { text-decoration: underline; }
.bb-toc__list .bb-toc__sub { margin-left: 16px; }
.bb-toc__list .bb-toc__sub::before {
  background: transparent;
  border: 1px solid #9ca3af;
}
.bb-toc__list .bb-toc__sub a { color: #4b5563; }

.bb-single__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  letter-spacing: 0.15px;
  margin: 10px 0 16px;
  font-family: 'Noto Sans Bengali', sans-serif;
}

.bb-single__hero {
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 8px;
}
.bb-single__hero img { width: 100%; height: auto; display: block; }

@media (min-width: 640px) {
  .bb-single { padding: 32px 36px; }
  .bb-single__title { font-size: 32px; font-weight: 700; margin: 12px 0 20px; }
  
  .bb-content .bb-single__hero {
    float: left;
    max-width: 48%;
    margin: 0 26px 18px 0 !important;
  }
}

/* post content */
.bb-content {
  font-size: 18px;
  color: #1f2421;
  line-height: 1.85;
  font-family: 'Noto Sans Bengali', sans-serif;
  letter-spacing: 0.1px;
}
.bb-content > * + * { margin-top: 18px; }
.bb-content p { margin: 0 0 22px; text-align: justify; }
@media (min-width: 640px) {
  .bb-content {
    font-size: 20px;
    line-height: 1.9;
  }
}
.bb-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 36px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e7eb;
  letter-spacing: 0.15px;
  font-family: 'Noto Sans Bengali', sans-serif;
  scroll-margin-top: 80px;
  line-height: 1.4;
}
.bb-content h3 {
  font-size: 21px;
  font-weight: 700;
  color: #1f2937;
  margin: 28px 0 10px;
  letter-spacing: 0.15px;
  font-family: 'Noto Sans Bengali', sans-serif;
  scroll-margin-top: 80px;
  line-height: 1.4;
}
.bb-content a { color: var(--bb-brand-blue); }
.bb-content a:hover { text-decoration: underline; }
.bb-content ul { list-style: disc; padding-left: 24px; margin-bottom: 20px; }
.bb-content ol { list-style: decimal; padding-left: 24px; margin-bottom: 20px; }
.bb-content li { margin-bottom: 8px; font-size: 19px; line-height: 1.85; }
.bb-content blockquote {
  border-left: 4px solid var(--bb-brand-blue);
  padding: 6px 0 6px 18px;
  color: #374151;
  font-size: 20px;
  line-height: 1.85;
  font-style: italic;
  margin: 24px 0;
}
.bb-content img { border-radius: 8px; margin: 16px 0; }
.bb-content figure { margin: 20px 0; border-radius: 8px; overflow: hidden; }
.bb-content figcaption { font-size: 14px; color: #6b7280; text-align: center; margin-top: 8px; }
.bb-content table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 20px 0; border-radius: 8px; overflow: hidden; }
.bb-content th, .bb-content td { border: 1px solid #e5e7eb; padding: 10px 12px; }
.bb-content pre {
  background: #f3.6.0;
  padding: 14px;
  overflow-x: auto;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.bb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid #f3.6.0;
}
.bb-tags__item {
  font-size: 12px;
  border: 1px solid #d1d5db;
  color: #4b5563;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-tags__item:hover {
  background: var(--bb-brand-blue-light);
  color: var(--bb-brand-blue);
  border-color: var(--bb-brand-blue);
  transform: translateY(-1.5px);
  box-shadow: 0 3px 8px rgba(0, 128, 255, 0.15);
}

.bb-prevnext {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--bb-brand-blue);
  border-top: 1px solid #f3.6.0;
  padding: 16px 0;
  margin-bottom: 20px;
}
.bb-prevnext a:hover { text-decoration: underline; }
.bb-prevnext__prev { text-align: left; }
.bb-prevnext__next { text-align: right; margin-left: auto; }

.bb-authorbio {
  display: flex;
  gap: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 28px;
  background: #f9fafb;
}
.bb-authorbio img {
  width: 56px; height: 56px;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}
.bb-authorbio__name { font-weight: 700; color: #111827; font-size: 14px; }
.bb-authorbio__site { font-size: 12px; color: var(--bb-brand-blue); margin-bottom: 4px; }
.bb-authorbio__text { font-size: 12px; color: #4b5563; line-height: 1.625; }

.bb-related { margin-bottom: 24px; }
.bb-related__heading {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  letter-spacing: normal;
  margin-bottom: 16px;
  border-bottom: 2px solid #f3.6.0;
  padding-bottom: 8px;
}
.bb-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.bb-related__item {
  display: block;
  text-decoration: none;
}
.bb-related__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 8px;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
}
.bb-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 8px;
  display: block;
  transition: transform .4s ease;
}
.bb-related__item:hover img { transform: scale(1.05); }
.bb-related__badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  pointer-events: none;
}
.bb-related__badge .bb-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 8px 8px 3px;
  border-radius: 4px;
  line-height: 1.2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bb-related__title {
  font-size: 14.5px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.45;
  letter-spacing: 0.15px;
  font-family: 'Noto Sans Bengali', sans-serif;
  transition: color .15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bb-related__item:hover .bb-related__title { color: var(--bb-brand-blue); }

@media (min-width: 640px) {
  .bb-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* comments */
.bb-comments { border-top: 1px solid #f3.6.0; padding-top: 20px; }
.bb-comments__title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.bb-comments ol.comment-list { list-style: none; }
.bb-comments .comment-body { border-bottom: 1px solid #f3.6.0; padding: 12px 0; font-size: 14px; }
.bb-comments .children { padding-left: 24px; }
.bb-comments input[type="text"],
.bb-comments input[type="email"],
.bb-comments input[type="url"],
.bb-comments textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  margin-bottom: 12px;
  background: #fff;
}
.bb-comments .submit {
  background: #1a1a1a;
  color: #fff;
  padding: 8px 24px;
  font-size: 14px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.bb-comments .submit:hover { background: #374151; }

/* page template */
.bb-page { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; }
.bb-page__title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
  letter-spacing: 0.15px;
  font-family: 'Noto Sans Bengali', sans-serif;
}

/* 404 / empty */
.bb-empty { text-align: center; padding: 60px 16px; }
.bb-empty__code { font-size: 64px; font-weight: 900; color: #e5e7eb; line-height: 1; }
.bb-empty__title { font-size: 20px; font-weight: 700; color: #111827; margin: 12px 0 8px; }
.bb-empty__text { font-size: 14px; color: #6b7280; margin-bottom: 20px; }
.bb-empty .bb-searchform { max-width: 420px; margin: 0 auto; }

/* =========================================================
   18. FOOTER
   ========================================================= */
.bb-footer { background: #f0f0f0; margin-top: 16px; }
.bb-footer__top { max-width: 1220px; margin: 0 auto; padding: 32px 16px; }
.bb-footer__heading {
  font-size: 15px;
  font-weight: 900;
  color: #111827;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.bb-footer__heading-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
}
.bb-footer__heading-wrap .bb-footer__heading {
  margin-bottom: 0;
}
.bb-popular-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.bb-popular-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 3px 22px 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 4px center;
  background-repeat: no-repeat;
  background-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.bb-popular-select:hover,
.bb-popular-select:focus {
  border-color: var(--bb-brand-blue);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 128, 255, 0.15);
}
#bb-popular-list.is-loading {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.bb-footer__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bb-footer__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-footer__item:last-child {
  border-bottom: none;
}
.bb-footer__item:hover {
  background: #ffffff;
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-bottom-color: transparent;
}
.bb-footer__item-thumb {
  flex-shrink: 0;
  width: 68px;
  height: 48px;
  overflow: hidden;
  background: #e5e7eb;
  border-radius: 6px;
}
.bb-footer__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.4s ease;
}
.bb-footer__item:hover .bb-footer__item-thumb img {
  transform: scale(1.06);
}
.bb-footer__item-content {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bb-footer__item-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.45;
  font-family: 'Noto Sans Bengali', sans-serif;
  letter-spacing: 0.15px;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-footer__item:hover .bb-footer__item-title {
  color: var(--bb-brand-blue, #2563eb);
}
.bb-footer__item-meta {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.bb-footer__item-meta strong {
  color: #374151;
  font-weight: 600;
}

.bb-catcount {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bb-catcount__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-catcount__row:last-child {
  border-bottom: none;
}
.bb-catcount__row:hover {
  background: #ffffff;
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-bottom-color: transparent;
}
.bb-catcount__name {
  font-size: 14.5px;
  font-weight: 500;
  color: #374151;
  font-family: 'Hind Siliguri', sans-serif;
  transition: all 0.2s ease;
}
.bb-catcount__row:hover .bb-catcount__name {
  color: var(--bb-brand-blue, #2563eb);
  font-weight: 600;
}
.bb-catcount__num {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bb-brand-blue, #2563eb);
  background: rgba(37, 99, 235, 0.08);
  padding: 2px 9px;
  border-radius: 9999px;
  line-height: 1.3;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-catcount__row:hover .bb-catcount__num {
  background: var(--bb-brand-blue, #2563eb);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.bb-footer__mid { border-top: 1px solid #d1d5db; }
.bb-footer__mid-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 32px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
.bb-footer__about-head {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
}
.bb-footer__about-label {
  border: 1.5px solid #6b7280;
  border-radius: 6px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: #fff;
  display: inline-flex;
  align-items: center;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.bb-footer__about-head:hover .bb-footer__about-label,
.bb-footer__about-label:hover {
  border-color: var(--bb-brand-blue);
  color: var(--bb-brand-blue);
  background: var(--bb-brand-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 128, 255, 0.18);
}
.bb-footer__about-rule { flex: 1 1 0%; height: 1px; background: #9ca3af; }
.bb-footer__about-text { font-size: 14.5px; color: #4b5563; line-height: 1.65; }

.bb-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bb-footer__contact-item,
.bb-footer__subscribe {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bb-footer__contact-title,
.bb-footer__subscribe-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  user-select: none;
}
.bb-footer__contact-title:hover,
.bb-footer__subscribe-title:hover {
  color: var(--bb-brand-blue);
  transform: translateY(-1.5px);
}
.bb-footer__contact-mail {
  color: #4b5563;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 6px;
  background: #fff;
  border: 1.5px solid #d1d5db;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.bb-footer__contact-mail:hover {
  color: var(--bb-brand-blue);
  border-color: var(--bb-brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 128, 255, 0.2);
}
.bb-footer__yt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 10px;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.bb-footer__yt-link:hover {
  transform: translateY(-2px);
  border-color: #fca5a5;
  box-shadow: 0 3px 8px rgba(255, 0, 0, 0.15);
}
.bb-footer__yt-icon {
  width: 18px;
  height: auto;
  flex-shrink: 0;
}
.bb-footer__yt-text {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  line-height: 1.2;
}

.bb-footer__bottom { background: #1a1a1a; padding: 14px 0; }
.bb-footer__bottom-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 13px;
  text-align: center;
  color: #9ca3af;
}
.bb-footer__bottom-inner .hl { color: #ffffff; font-weight: 600; transition: color 0.2s; }
.bb-footer__bottom-inner .hl:hover { color: var(--bb-brand-gold); }

@media (min-width: 640px) {
  .bb-footer__top { padding: 40px 16px; }
  .bb-footer__mid-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .bb-footer__contact {
    align-items: flex-end;
  }
  .bb-footer__contact-item,
  .bb-footer__subscribe {
    justify-content: flex-end;
  }
  .bb-footer__bottom-inner { flex-direction: row; }
}

/* =========================================================
   19. ARTICLE MODAL
   Mirrors the popup from the prototype: bottom sheet on
   mobile, centred card from 640px up.
   ========================================================= */
.bb-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, .6);
  padding: 0;
  padding-top: 80px;
  padding-top: max(80px, env(safe-area-inset-top, 80px));
}

.bb-modal[hidden] { display: none; }

@media (min-width: 640px) {
  .bb-modal {
    align-items: center;
    padding-top: 0;
  }
}

/* Reading progress line */
.bb-reading-progress {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.bb-reading-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--bb-brand-gold), var(--bb-brand-blue));
  box-shadow: 0 0 8px rgba(0, 128, 255, 0.4);
  transition: width 0.1s ease;
}

.bb-modal__dialog {
  position: relative;
  background: #fff;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  overscroll-behavior: contain;
  width: 100%;
  max-width: 760px;
  max-height: 82vh;
  max-height: calc(100dvh - 85px);
  max-height: calc(100vh - 85px);
  height: auto;
  margin: 0 auto;
  border-radius: 20px 20px 0 0;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

@media (min-width: 640px) {
  .bb-modal__dialog {
    border-radius: 12px;
    max-height: var(--bb-modal-max-h, 90vh);
    max-width: var(--bb-modal-max-w, 860px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
  }
}

.bb-modal__close {
  position: sticky;
  top: 14px;
  z-index: 60;
  float: right;
  margin-right: 14px;
  margin-bottom: -40px;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: #111827;
  color: #fff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
  touch-action: manipulation;
}
.bb-modal__close:hover {
  background: #1f2937;
  transform: scale(1.05);
}

.bb-modal__top {
  position: sticky;
  bottom: 20px;
  z-index: 20;
  margin-left: auto;
  margin-right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: #111827;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .2);
  font-size: 14px;
  transition: background-color .15s ease;
}
.bb-modal__top[hidden] { display: none; }
.bb-modal__top:hover { background: #374151; }

/* Hide homepage back-to-top button when popup modal is open */
.bb-noscroll #bb-backtop {
  display: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Reading Time Pill (placed below title in meta line) */
.bb-readtime-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}

.bb-overlay__byline .bb-readtime-pill,
.bb-readtime-pill--overlay {
  color: #d1d5db;
}

.bb-darkcard__meta .bb-readtime-pill,
.bb-readtime-pill--dark {
  color: #d1d5db;
}

/* Continue Reading Banner */
.bb-resume-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  max-width: calc(100vw - 32px);
  width: 540px;
  animation: bbSlideUp 0.3s ease forwards;
}

.bb-resume-bar[hidden] {
  display: none;
}

.bb-resume-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111827;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bb-resume-bar__icon {
  font-size: 18px;
  flex-shrink: 0;
}

.bb-resume-bar__text {
  flex: 1 1 0%;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
}

.bb-resume-bar__label {
  display: block;
  font-size: 11px;
  color: #9ca3af;
}

.bb-resume-bar__title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f3.6.0;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s ease;
  cursor: pointer;
}
.bb-resume-bar__title:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.bb-resume-bar__btn {
  flex-shrink: 0;
  background: var(--bb-brand-blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.bb-resume-bar__btn:hover {
  background: #1670a3;
  color: #ffffff;
}

.bb-resume-bar__close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

.bb-resume-bar__close:hover {
  color: #ffffff;
}

@keyframes bbSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* The article template fills the dialog instead of centring itself. */
.bb-modal .bb-single {
  max-width: none;
  margin: 0;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 20px 18px 28px;
}

@media (min-width: 640px) {
  .bb-modal .bb-single {
    padding: 28px 32px 36px;
  }
}

.bb-modal__body { min-height: 160px; }

.bb-modal__state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 64px 24px;
  color: #6b7280;
  font-size: 14px;
}

.bb-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--bb-brand-blue);
  border-radius: 9999px;
  animation: bb-spin .7s linear infinite;
}

@keyframes bb-spin {
  to { transform: rotate(360deg); }
}

/* =========================================================
   LIVE SEARCH OVERLAY
   ========================================================= */
.bb-search-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(2px);
  padding: 12vh 16px 16px;
}
.bb-search-modal[hidden] { display: none; }

.bb-search-modal__panel {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .05);
  overflow: hidden;
  max-height: 76vh;
  display: flex;
  flex-direction: column;
}

.bb-search-modal__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  flex-shrink: 0;
}
.bb-search-modal__icon { color: #6b7280; display: flex; flex-shrink: 0; }

.bb-search-modal__input {
  flex: 1 1 0%;
  min-width: 0;
  border: 0;
  outline: none;
  font-size: 16px;
  color: #111827;
  background: transparent;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}
.bb-search-modal__input::-webkit-search-cancel-button { display: none; }

.bb-search-modal__btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--bb-brand-blue);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color .15s ease;
}
.bb-search-modal__btn:hover { background: #f3.6.0; }
.bb-search-modal__btn[hidden] { display: none; }
.bb-search-modal__btn--close { color: #4b5563; }
.bb-search-modal__sep { width: 1px; height: 20px; background: #e5e7eb; flex-shrink: 0; }

.bb-search-modal__results {
  overflow-y: auto;
  border-top: 1px solid #f3.6.0;
}
.bb-search-modal__results:empty { border-top: 0; }

.bb-search-modal__state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 16px;
  color: #6b7280;
  font-size: 14px;
}

.bb-search-hit {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid #f3.6.0;
  transition: background-color .15s ease;
}
.bb-search-hit:last-child { border-bottom: 0; }
.bb-search-hit:hover { background: #f9fafb; }

.bb-search-hit__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.bb-search-hit__title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  font-family: 'Noto Sans Bengali', sans-serif;
  letter-spacing: 0.15px;
}
.bb-search-hit__date {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
  flex-shrink: 0;
}
.bb-search-hit__excerpt {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}
.bb-search-hit__excerpt mark {
  background: #fef08a;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

.bb-search-modal__foot {
  padding: 10px 16px;
  border-top: 1px solid #f3.6.0;
  font-size: 12px;
  color: #6b7280;
  background: #fafafa;
  flex-shrink: 0;
}
.bb-search-modal__foot[hidden] { display: none; }

@media (max-width: 640px) {
  .bb-search-modal { padding: 6vh 12px 12px; }
  .bb-search-modal__panel { max-height: 86vh; }
}

/* Edit link inside the article popup / single post */
.bb-editlink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--bb-brand-blue);
  border: 1px solid #bae0f2;
  background: #f0f9ff;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Hind Siliguri', sans-serif;
  transition: background-color .15s ease;
}
.bb-editlink:hover { background: #e0f2fe; }

/* Category sliders — the ‹ › controls page through more of the category */
.bb-slider__slide[hidden] { display: none; }
.bb-slider__slide.is-in { animation: bb-slide-in .28s ease both; }

@keyframes bb-slide-in {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: none; }
}

.bb-arrow-btn[disabled] { opacity: .3; cursor: default; }
.bb-arrow-btn[disabled]:hover { background: transparent; }

.bb-arrow-btn--reset {
  width: 24px;
  height: 24px;
  align-self: center;
  margin-left: 2px;
  font-size: 12px;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .bb-slider__slide.is-in { animation: none; }
}

/* AJAX list swapping */
[data-bb-list] { position: relative; transition: opacity .15s ease; }
[data-bb-list].is-loading { opacity: .45; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .bb-spinner { animation-duration: 2s; }
  [data-bb-list] { transition: none; }
}

/* =========================================================
   20. FLOATING UI
   ========================================================= */
.bb-backtop {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 250;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bb-brand-navy);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -3px rgba(0, 0, 0, 0.35);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, bottom 0.2s ease;
}
.bb-backtop.is-visible { display: flex; }
.bb-backtop:hover {
  background: var(--bb-brand-blue);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -4px rgba(0, 128, 255, 0.4);
}

/* When the resume bar is visible, push the back-to-top button up so they never overlap */
body.bb-has-resume-bar .bb-backtop {
  bottom: 84px;
}

@media (min-width: 640px) {
  .bb-backtop { right: 24px; }
  body.bb-has-resume-bar .bb-backtop { bottom: 88px; }
}

@media (min-width: 1280px) {
  /* Positioned right outside the 1220px container edge */
  .bb-backtop {
    right: max(20px, calc((100vw - 1220px) / 2 - 58px));
  }
}



/* =========================================================
   21. INLINE-ELEMENT FIXES
   Cards are anchors wrapping spans, so the text pieces need
   to behave as blocks.
   ========================================================= */
.bb-listitem__date,
.bb-listitem__body,
.bb-wide-row__body,
.bb-footer__item-date,
.bb-overlay__byline,
.bb-titleonly__meta,
.bb-darkcard__meta,
.bb-hero__podcast-chip .l1,
.bb-hero__podcast-chip .l2,
.bb-hero__podcast-chip .l3 {
  display: block;
}

.bb-clamp-1,
.bb-clamp-2,
.bb-clamp-3,
.bb-clamp-4 { display: -webkit-box; }

.bb-hero__podcast-inner > span:last-child { display: block; }

/* The two tall category cards show the title only, as in the design. */
.bb-tallcard .bb-badge { display: none; }

/* =========================================================
   22. WORDPRESS CORE CLASSES
   ========================================================= */
.alignnone { margin: 8px 0; }
.aligncenter { display: block; margin: 12px auto; }
.alignleft { float: left; margin: 8px 16px 8px 0; }
.alignright { float: right; margin: 8px 0 8px 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: #6b7280; text-align: center; margin-top: 6px; }
.sticky .bb-card__title::before { content: '★ '; color: #f5a623; }
.bypostauthor > .comment-body { }

.bb-admin-bar-offset { }
body.admin-bar .bb-nav.is-stuck { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .bb-nav.is-stuck { top: 46px; }
}
@media screen and (max-width: 600px) {
  body.admin-bar .bb-nav.is-stuck { top: 0; }
}

/* =========================================================
   23. ACTION CONTROLS (Theme & Bookmarks)
   ========================================================= */
.bb-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bb-topbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-topbar__btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #60a5fa;
  transform: translateY(-1px);
}


.bb-nav-action-btn { position: relative; }
.bb-nav-badge,
.bb-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9999px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  line-height: 1;
}
.bb-nav-action-btn .bb-nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
}
.bb-nav__mobile-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Bookmarks Button on Cards & Single */
.bb-bookmark-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #f3.6.0;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-bookmark-btn:hover {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
  transform: translateY(-1.5px);
  box-shadow: 0 3px 8px rgba(0, 128, 255, 0.15);
}
.bb-bookmark-btn.is-bookmarked {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

/* Bookmarks Drawer Modal */
.bb-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.bb-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.bb-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  background: #fff;
  z-index: 1001;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bb-drawer.is-open {
  transform: translateX(0);
}
.bb-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}
.bb-drawer__title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bb-drawer__title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
.bb-drawer__close {
  font-size: 18px;
  color: #64748b;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: color .2s ease;
}
.bb-drawer__close:hover { color: #0f172a; }
.bb-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 20px;
}
.bb-drawer__empty {
  text-align: center;
  padding: 48px 16px;
}
.bb-drawer__empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}
.bb-drawer__empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.bb-drawer__empty-desc {
  font-size: 13px;
  color: #64748b;
}
.bb-drawer__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bb-drawer__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  position: relative;
  transition: all .2s ease;
}
.bb-drawer__item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.bb-drawer__thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.bb-drawer__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bb-drawer__content {
  flex: 1 1 auto;
  min-width: 0;
}
.bb-drawer__item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin-bottom: 4px;
}
.bb-drawer__item-title:hover { color: var(--bb-brand-blue); }
.bb-drawer__item-meta {
  font-size: 11.5px;
  color: #64748b;
}
.bb-drawer__remove {
  color: #94a3b8;
  padding: 4px 8px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: color .2s ease;
}
.bb-drawer__remove:hover { color: #ef4444; }
.bb-drawer__footer {
  padding: 12px 20px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}
.bb-drawer__clear-btn {
  width: 100%;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ef4444;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s ease;
}
.bb-drawer__clear-btn:hover {
  background: #fef2f2;
}

/* Toast Snackbar */
.bb-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  background: #1e293b;
  color: #fff;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 1050;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  white-space: nowrap;
}
.bb-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Text-to-Speech (Listen to Article) Player Widget */
.bb-tts-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 10px 16px;
  margin: 16px 0 20px;
  transition: all .3s ease;
}
.bb-tts-player.is-playing {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.15);
}
.bb-tts-player__left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bb-tts-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bb-brand-blue);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 128, 255, 0.35);
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.bb-tts-play-btn:hover {
  transform: scale(1.06);
  background: #0066cc;
  box-shadow: 0 4px 12px rgba(0, 128, 255, 0.45);
}
.bb-tts-player__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bb-tts-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #0369a1;
}
.bb-tts-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 12px;
}
.bb-tts-wave span {
  width: 3px;
  height: 4px;
  background: #0284c7;
  border-radius: 2px;
  transition: height .2s ease;
}
.bb-tts-wave.is-active span:nth-child(1) { animation: bbWave 0.8s ease-in-out infinite alternate; }
.bb-tts-wave.is-active span:nth-child(2) { animation: bbWave 0.9s ease-in-out infinite alternate 0.2s; }
.bb-tts-wave.is-active span:nth-child(3) { animation: bbWave 0.7s ease-in-out infinite alternate 0.4s; }
.bb-tts-wave.is-active span:nth-child(4) { animation: bbWave 0.85s ease-in-out infinite alternate 0.1s; }
.bb-tts-wave.is-active span:nth-child(5) { animation: bbWave 0.75s ease-in-out infinite alternate 0.3s; }
@keyframes bbWave {
  0% { height: 3px; }
  100% { height: 14px; }
}
.bb-tts-player__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bb-tts-speed-btn,
.bb-tts-stop-btn {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
  transition: all .2s ease;
}
.bb-tts-speed-btn:hover,
.bb-tts-stop-btn:hover {
  border-color: var(--bb-brand-blue);
  color: var(--bb-brand-blue);
}



/* =========================================================
   25. QUOTE HIGHLIGHT & SHARE TOOLTIP
   ========================================================= */
.bb-quote-tooltip {
  position: absolute;
  z-index: 1200;
  background: #111827;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 4px 10px -2px rgba(0, 0, 0, 0.2);
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: bbTooltipPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  user-select: none;
}
.bb-quote-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #111827;
}
.bb-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #f3.6.0;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  border: 0;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.bb-quote-btn--copy:hover {
  background: var(--bb-brand-blue);
  color: #fff;
}
.bb-quote-btn--fb:hover {
  background: #1877f2;
  color: #fff;
}
@keyframes bbTooltipPop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}




/* ==========================================================================
 * Podcast Category Grid & Video Modal
 * ========================================================================== */
.bb-podcast-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 24px 16px;
}
.bb-pod-item {
	display: flex;
	flex-direction: column;
}
.bb-pod-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	background: #111;
	display: block;
	margin-bottom: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transition: transform 0.2s ease;
}
.bb-pod-thumb:hover {
	transform: translateY(-4px);
}
.bb-pod-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.2s;
}
.bb-pod-thumb:hover img {
	opacity: 0.8;
}
.bb-pod-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.8);
	width: 48px;
	height: 48px;
	background: #f5a623;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: all 0.2s ease;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.bb-pod-thumb:hover .bb-pod-play {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}
.bb-pod-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 4px 0;
}
.bb-pod-title a {
	color: inherit;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.bb-pod-title a:hover {
	color: #1a8cca;
}
.bb-pod-meta {
	font-size: 13px;
	color: #666;
}
@media (max-width: 600px) {
	.bb-podcast-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px 12px;
	}
	.bb-pod-play {
		opacity: 1;
		transform: translate(-50%, -50%) scale(0.9);
	}
}

/* Video Modal */
.bb-video-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.9);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease;
}
.bb-video-modal.is-active {
	opacity: 1;
	visibility: visible;
}
.bb-video-modal__inner {
	position: relative;
	width: 100%;
	max-height: 85vh;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
	transform: translateY(20px);
	transition: transform 0.3s ease;
}
.bb-video-modal.is-active .bb-video-modal__inner {
	transform: translateY(0);
}
.bb-video-modal iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}
.bb-video-modal__close {
	position: absolute;
	top: -40px;
	right: 0;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}
@media (max-width: 900px) {
	.bb-video-modal__close {
		top: 10px;
		right: 10px;
		z-index: 10;
		background: rgba(0,0,0,0.5);
		border-radius: 50%;
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
}

