/*
Theme Name:   BetterBulletins
Theme URI:    https://betterbulletins.com
Description:  Premium news & lifestyle magazine theme for BetterBulletins.com. Built for speed, SEO, Google AdSense policy compliance, and editorial excellence.
Author:       BetterBulletins Team
Author URI:   https://betterbulletins.com
Version:      2.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  betterbulletins
Tags:         news, magazine, blog, seo, adsense, responsive, custom-logo
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors */
  --bb-primary:      #0A2342;  /* Deep navy — authority, trust */
  --bb-accent:       #E8483A;  /* Bold red — energy, urgency */
  --bb-accent-2:     #F4A428;  /* Amber — warmth, highlights */
  --bb-surface:      #FAFAF8;  /* Off-white — paper feel */
  --bb-surface-2:    #F0EEE9;  /* Warm grey — sections */
  --bb-border:       #E2DDD6;  /* Warm border */
  --bb-text:         #1C1C1C;  /* Near black body */
  --bb-text-muted:   #6B6560;  /* Muted grey */
  --bb-text-light:   #9E9791;  /* Light grey */

  /* Category Colors */
  --cat-tech:        #0066CC;
  --cat-health:      #2E8B57;
  --cat-celebrity:   #9B2335;
  --cat-business:    #1A5276;
  --cat-news:        #C0392B;
  --cat-travel:      #117A65;

  /* Typography Scale */
  --font-display:    'Playfair Display', 'Georgia', serif;
  --font-sans:       'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:       'JetBrains Mono', 'Courier New', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Layout */
  --max-width:      1200px;
  --content-width:  760px;
  --sidebar-width:  300px;
  --header-height:  64px;
  --radius-sm:      4px;
  --radius:         8px;
  --radius-lg:      12px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.14);

  /* Transitions */
  --transition: 0.2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--bb-text);
  background: var(--bb-surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bb-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--bb-accent); }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--bb-primary);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

.entry-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bb-border);
}
.entry-content h3 { margin-top: 2rem; margin-bottom: 0.6rem; }
.entry-content p  { margin-bottom: 1.4rem; }
.entry-content ul, .entry-content ol {
  padding-left: 1.8rem;
  margin-bottom: 1.4rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content strong { font-weight: 700; color: var(--bb-primary); }
.entry-content blockquote {
  border-left: 4px solid var(--bb-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: #fff8f7;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: var(--text-xl);
  color: #333;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: var(--text-sm);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.entry-content th {
  background: var(--bb-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 600;
}
.entry-content td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--bb-border);
}
.entry-content tr:last-child td { border-bottom: none; }
.entry-content tr:nth-child(even) td { background: var(--bb-surface-2); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.grid-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-10);
  align-items: start;
}
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#bb-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bb-accent), var(--bb-accent-2));
  width: 0%;
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.bb-ticker {
  background: var(--bb-accent);
  color: #fff;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
}
.bb-ticker__label {
  background: #c0392b;
  padding: 0 var(--space-4);
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.bb-ticker__track {
  display: flex;
  gap: var(--space-8);
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
  padding-left: var(--space-6);
}
.bb-ticker__track a { color: #fff; }
.bb-ticker__track a:hover { text-decoration: underline; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bb-primary);
  box-shadow: var(--shadow);
}
.site-header__top {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-3) 0;
}
.site-header__top .container { justify-content: space-between; align-items: center; display: flex; }
.site-branding { display: flex; align-items: center; gap: var(--space-3); }
.site-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}
.site-title span { color: var(--bb-accent); }
.site-tagline {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--font-sans);
}
.header-date {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
}

/* Main Nav */
.site-nav {
  background: rgba(255,255,255,0.05);
}
.site-nav .container { display: flex; align-items: center; }
.site-nav__menu {
  display: flex;
  gap: 0;
  list-style: none;
}
.site-nav__menu a {
  display: block;
  padding: var(--space-4) var(--space-5);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}
.site-nav__menu a:hover,
.site-nav__menu .current-menu-item a {
  color: #fff;
  border-bottom-color: var(--bb-accent);
}
.nav-search { margin-left: auto; }
.nav-search input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: 20px;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  width: 200px;
  outline: none;
  transition: all var(--transition);
}
.nav-search input::placeholder { color: rgba(255,255,255,0.5); }
.nav-search input:focus {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  width: 240px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: var(--space-3);
  font-size: 1.5rem;
}

/* ============================================================
   HERO / FEATURED POSTS
   ============================================================ */
.bb-hero {
  background: var(--bb-primary);
  padding: var(--space-8) 0;
}
.bb-hero__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.bb-hero__main {
  grid-row: 1 / 3;
  position: relative;
  min-height: 420px;
  background: #0e1e30;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.bb-hero__main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.bb-hero__main-content {
  position: relative;
  z-index: 2;
  padding: var(--space-8);
  background: linear-gradient(transparent, rgba(0,0,0,0.85) 60%);
  width: 100%;
}
.bb-hero__side {
  position: relative;
  min-height: 200px;
  background: #0e1e30;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.bb-hero__side img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.bb-hero__side-content {
  position: relative;
  z-index: 2;
  padding: var(--space-5);
  background: linear-gradient(transparent, rgba(0,0,0,0.8) 60%);
  width: 100%;
}

/* ============================================================
   CATEGORY BADGE
   ============================================================ */
.cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bb-accent);
}
.cat-badge--technology  { background: var(--cat-tech); }
.cat-badge--health      { background: var(--cat-health); }
.cat-badge--celebrity   { background: var(--cat-celebrity); }
.cat-badge--business    { background: var(--cat-business); }
.cat-badge--news        { background: var(--cat-news); }
.cat-badge--travel      { background: var(--cat-travel); }

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.article-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bb-surface-2);
}
.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .article-card__img img { transform: scale(1.04); }
.article-card__body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }
.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.article-card__date {
  font-size: var(--text-xs);
  color: var(--bb-text-muted);
  font-family: var(--font-sans);
}
.article-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.3;
  margin-bottom: var(--space-3);
  color: var(--bb-primary);
  flex: 1;
}
.article-card__title a { color: inherit; }
.article-card__title a:hover { color: var(--bb-accent); }
.article-card__excerpt {
  font-size: var(--text-sm);
  color: var(--bb-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--bb-border);
  font-size: var(--text-xs);
  color: var(--bb-text-muted);
}
.read-more {
  color: var(--bb-accent);
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}

/* Horizontal card variant */
.article-card--horizontal {
  flex-direction: row;
}
.article-card--horizontal .article-card__img {
  width: 140px;
  flex-shrink: 0;
  aspect-ratio: auto;
}
.article-card--horizontal .article-card__title { font-size: var(--text-base); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 3px solid var(--bb-primary);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--bb-primary);
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -19px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--bb-accent);
}
.section-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--bb-accent);
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.section-link:hover { color: var(--bb-primary); }

/* ============================================================
   HOME PAGE SECTIONS
   ============================================================ */
.bb-section { padding: var(--space-12) 0; }
.bb-section--alt { background: var(--bb-surface-2); }

/* Category strip */
.bb-cat-strip {
  background: var(--bb-primary);
  padding: var(--space-4) 0;
}
.bb-cat-strip .container { display: flex; gap: var(--space-6); overflow-x: auto; }
.bb-cat-strip a {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: var(--space-2) var(--space-4);
  border-radius: 20px;
  transition: all var(--transition);
}
.bb-cat-strip a:hover { color: #fff; background: rgba(255,255,255,0.15); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-header {
  background: var(--bb-primary);
  padding: var(--space-12) 0 var(--space-10);
  color: #fff;
}
.post-header .cat-badge { margin-bottom: var(--space-4); }
.post-header h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 800px;
  line-height: 1.2;
  margin-bottom: var(--space-5);
}
.post-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-sans);
}
.post-header__meta span { display: flex; align-items: center; gap: var(--space-2); }

.post-featured-img {
  margin-top: calc(-1 * var(--space-6));
  margin-bottom: var(--space-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 500px;
}
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; }

/* Article body */
.entry-content {
  font-size: var(--text-lg);
  line-height: 1.8;
  max-width: 720px;
}

/* TOC */
.bb-toc {
  background: var(--bb-surface-2);
  border: 1px solid var(--bb-border);
  border-left: 4px solid var(--bb-primary);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0;
}
.bb-toc__title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bb-text-muted);
  margin-bottom: var(--space-3);
  font-weight: 700;
}
.bb-toc ol { list-style: decimal; padding-left: 1.2rem; }
.bb-toc li { margin-bottom: var(--space-2); font-size: var(--text-sm); }
.bb-toc a { color: var(--bb-primary); font-weight: 500; }
.bb-toc a:hover { color: var(--bb-accent); }

/* Related articles */
.bb-related {
  background: var(--bb-surface-2);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-8) 0;
  border: 1px solid var(--bb-border);
}
.bb-related h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bb-text-muted);
  margin-bottom: var(--space-4);
  font-family: var(--font-sans);
  font-weight: 700;
}
.bb-related ul { list-style: none; }
.bb-related li { margin-bottom: var(--space-2); }
.bb-related a { color: var(--bb-primary); font-size: var(--text-sm); font-weight: 500; }
.bb-related a:hover { color: var(--bb-accent); }
.bb-related a::before { content: '→ '; color: var(--bb-accent); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: calc(var(--header-height) + 20px); }
.widget {
  background: #fff;
  border-radius: var(--radius);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--bb-border);
}
.widget-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--bb-text-muted);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--bb-accent);
}

/* Ad placeholder */
.bb-ad {
  background: var(--bb-surface-2);
  border: 1px dashed var(--bb-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--bb-text-light);
  font-family: var(--font-sans);
  text-align: center;
  padding: var(--space-4);
}
.bb-ad--banner { min-height: 90px; }
.bb-ad--rectangle { min-height: 250px; }
.bb-ad--leaderboard { min-height: 90px; max-width: 728px; margin: 0 auto; }
.bb-ad--adsense { min-height: 280px; width: 100%; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.bb-newsletter {
  background: linear-gradient(135deg, var(--bb-primary) 0%, #1a3a5c 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-12);
  text-align: center;
  color: #fff;
}
.bb-newsletter h2 { color: #fff; margin-bottom: var(--space-3); }
.bb-newsletter p { color: rgba(255,255,255,0.75); margin-bottom: var(--space-6); }
.bb-newsletter__form {
  display: flex;
  gap: var(--space-3);
  max-width: 420px;
  margin: 0 auto;
}
.bb-newsletter input {
  flex: 1;
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: 30px;
  font-size: var(--text-base);
  font-family: var(--font-sans);
  outline: none;
  background: rgba(255,255,255,0.95);
}
.bb-newsletter button {
  background: var(--bb-accent);
  color: #fff;
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: 30px;
  font-weight: 700;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.bb-newsletter button:hover { background: #c0392b; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.bb-breadcrumbs {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-4);
  font-family: var(--font-sans);
}
.bb-breadcrumbs a { color: rgba(255,255,255,0.7); }
.bb-breadcrumbs a:hover { color: #fff; }
.bb-breadcrumbs span { margin: 0 var(--space-2); opacity: 0.5; }

/* ============================================================
   PAGINATION
   ============================================================ */
.bb-pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-12) 0;
}
.bb-pagination a, .bb-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid var(--bb-border);
  color: var(--bb-text);
  transition: all var(--transition);
}
.bb-pagination a:hover, .bb-pagination .current {
  background: var(--bb-primary);
  color: #fff;
  border-color: var(--bb-primary);
}

/* ============================================================
   STATIC PAGES (About, Privacy, Contact, etc.)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--bb-primary) 0%, #1a3a5c 100%);
  padding: var(--space-16) 0 var(--space-12);
  color: #fff;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: var(--space-4); }
.page-hero p { color: rgba(255,255,255,0.75); font-size: var(--text-xl); max-width: 600px; margin: 0 auto; }
.page-content { padding: var(--space-16) 0; }
.page-content .container--narrow {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-12);
  box-shadow: var(--shadow);
  border: 1px solid var(--bb-border);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.bb-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--bb-primary);
  margin-bottom: var(--space-2);
  font-family: var(--font-sans);
}
.bb-form input, .bb-form textarea, .bb-form select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--bb-border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  color: var(--bb-text);
  background: #fff;
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: var(--space-5);
}
.bb-form input:focus, .bb-form textarea:focus {
  border-color: var(--bb-primary);
}
.bb-form textarea { min-height: 140px; resize: vertical; }
.bb-form button {
  background: var(--bb-primary);
  color: #fff;
  border: none;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--transition);
}
.bb-form button:hover { background: var(--bb-accent); }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
#bb-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 3px solid var(--bb-accent);
  padding: var(--space-5) var(--space-6);
  z-index: 9998;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  display: none;
}
#bb-cookie-banner.visible { display: block; }
.bb-cookie__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.bb-cookie__text { font-size: var(--text-sm); color: var(--bb-text-muted); flex: 1; }
.bb-cookie__text a { color: var(--bb-primary); font-weight: 600; }
.bb-cookie__buttons { display: flex; gap: var(--space-3); flex-shrink: 0; }
.bb-cookie__accept {
  background: var(--bb-primary);
  color: #fff;
  border: none;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  cursor: pointer;
}
.bb-cookie__decline {
  background: none;
  border: 1px solid var(--bb-border);
  color: var(--bb-text-muted);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  cursor: pointer;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0a1929;
  color: rgba(255,255,255,0.7);
  padding: var(--space-16) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}
.footer-brand .site-title { font-size: var(--text-xl); margin-bottom: var(--space-4); display: block; color: #fff; }
.footer-brand p { font-size: var(--text-sm); line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-5);
  font-weight: 700;
}
.footer-col ul li { margin-bottom: var(--space-3); }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: var(--space-5); }
.back-to-top {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition);
}
.back-to-top:hover { background: var(--bb-accent); }

/* ============================================================
   SPONSORED / ADVERTORIAL LABEL
   ============================================================ */
.bb-sponsored-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bb-hero__grid { grid-template-columns: 1fr; }
  .bb-hero__main { grid-row: auto; min-height: 300px; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .bb-newsletter__form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .site-nav__menu { display: none; flex-direction: column; }
  .site-nav__menu.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--bb-primary); z-index: 100; padding: var(--space-4); }
  .menu-toggle { display: block; }
  .article-card--horizontal { flex-direction: column; }
  .article-card--horizontal .article-card__img { width: 100%; }
  .page-content .container--narrow { padding: var(--space-6); }
  .post-header { padding: var(--space-8) 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .bb-hero__main-content { padding: var(--space-5); }
  .bb-newsletter { padding: var(--space-8) var(--space-5); }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header, .site-footer, .sidebar, #bb-cookie-banner,
  #bb-progress, .bb-newsletter, .bb-ad { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .entry-content { max-width: 100%; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--bb-accent);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--bb-primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus { top: var(--space-3); }
