/*
Theme Name: The Bengal Story
Theme URI: https://thebengalstory.com
Author: The Bengal Story Team
Author URI: https://thebengalstory.com
Description: Modern Bengali news theme built on GeneratePress with Google News, Discover, and Core Web Vitals optimization.
Version: 2.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-bengal-story
Tags: news, magazine, bengali, responsive, rtl-language-support, custom-colors, custom-logo, featured-images
Template: generatepress
*/

/* ============================================================
   CSS VARIABLES — NEW COLOR SYSTEM
   Banglahunt-style white/clean + Republic World accents
============================================================ */
:root {
  /* Primary palette */
  --tbs-primary:      #1a56db;     /* blue for nav/links/headings */
  --tbs-primary-dark:  #1446b5;
  --tbs-red:           #e02020;     /* red for live/breaking/author */
  --tbs-red-dark:      #b81818;

  /* Backgrounds */
  --tbs-bg:            #ffffff;     /* pure white */
  --tbs-bg-gray:       #f5f7fa;     /* light gray for section alternation */
  --tbs-bg-card:       #ffffff;
  --tbs-nav-bg:        #f0f4ff;     /* light blue-tinted nav strip */

  /* Text */
  --tbs-text:          #111111;
  --tbs-text-light:    #444444;
  --tbs-text-muted:    #888888;

  /* Borders */
  --tbs-border:        #e5e7eb;

  /* Typography */
  --tbs-font-bn:       'Hind Siliguri', sans-serif;
  --tbs-font-en:       'DM Sans', sans-serif;

  /* Layout */
  --tbs-radius:        4px;
  --tbs-shadow:        0 1px 4px rgba(0,0,0,0.06);
  --tbs-shadow-lg:     0 4px 20px rgba(0,0,0,0.10);
  --tbs-transition:    0.22s ease;
  --tbs-container:     1240px;
}

/* ============================================================
   DARK MODE
============================================================ */
[data-theme="dark"] {
  --tbs-bg:            #0D1117;
  --tbs-bg-gray:       #161B22;
  --tbs-bg-card:       #161B22;
  --tbs-nav-bg:        #1a2030;
  --tbs-text:          #E6EDF3;
  --tbs-text-light:    #B1BAC4;
  --tbs-text-muted:    #6E7681;
  --tbs-border:        #2D3748;
}

/* ============================================================
   BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--tbs-font-bn);
  background: var(--tbs-bg);
  color: var(--tbs-text);
  margin: 0; padding: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.english-site { font-family: var(--tbs-font-en); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tbs-primary); text-decoration: none; transition: color var(--tbs-transition); }
a:hover { color: var(--tbs-primary-dark); }

/* ============================================================
   GENERATEPRESS OVERRIDES — Clean White Header
============================================================ */
.site-header, #site-header {
  background: var(--tbs-bg) !important;
  box-shadow: 0 1px 0 var(--tbs-border) !important;
  padding: 0 !important;
  position: sticky; top: 0; z-index: 1000;
}
.inside-header {
  max-width: var(--tbs-container) !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 60px !important;
}
.site-branding .main-title a,
.site-branding .main-title a:hover {
  color: var(--tbs-text) !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
}
.site-description {
  color: var(--tbs-text-muted) !important;
  font-size: 0.75rem !important;
  margin: 0 !important;
}

/* Main navigation bar — Banglahunt-style light blue/gray */
.main-navigation, #site-navigation {
  background: var(--tbs-nav-bg) !important;
  border-top: 1px solid var(--tbs-border) !important;
  border-bottom: 1px solid var(--tbs-border) !important;
}
.main-navigation ul li a,
.main-navigation .nav-menu > li > a {
  color: var(--tbs-text) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  padding: 14px 16px !important;
  transition: color var(--tbs-transition) !important;
}
.main-navigation ul li a:hover,
.main-navigation .current-menu-item > a {
  color: var(--tbs-primary) !important;
}
.main-navigation ul ul {
  background: var(--tbs-bg-card) !important;
  border-top: 3px solid var(--tbs-primary) !important;
  border-radius: 0 0 var(--tbs-radius) var(--tbs-radius) !important;
  box-shadow: var(--tbs-shadow-lg) !important;
  min-width: 220px !important;
}
.main-navigation ul ul li a {
  padding: 12px 18px !important;
  font-size: 0.85rem !important;
  border-bottom: 1px solid var(--tbs-border) !important;
}

/* Content & Footer base overrides */
.site-content { padding-top: 0 !important; }
.site-footer {
  background: #1a1a2e !important;
  color: rgba(255,255,255,0.75) !important;
  padding: 50px 0 0 !important;
}
.inside-footer {
  max-width: var(--tbs-container) !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}
.footer-bar {
  background: rgba(0,0,0,0.35) !important;
  color: rgba(255,255,255,0.5) !important;
  font-size: 0.82rem !important;
  padding: 16px 0 !important;
  margin-top: 40px !important;
  text-align: center;
}
.footer-bar a { color: #fbbf24 !important; }
.generate-back-to-top { background: var(--tbs-red) !important; border-radius: 50% !important; }

/* ============================================================
   TOP BAR — White background with social icons
   (Banglahunt-style: logo left, social icons right)
============================================================ */
.tbs-topbar {
  background: var(--tbs-bg);
  border-bottom: 1px solid var(--tbs-border);
  padding: 8px 0;
  font-size: 0.8rem;
}
.tbs-topbar-inner {
  max-width: var(--tbs-container); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.tbs-topbar-date { color: var(--tbs-text-muted); font-weight: 500; }
.tbs-topbar-social { display: flex; align-items: center; gap: 14px; }
.tbs-topbar-social a {
  color: var(--tbs-text-muted); font-size: 1rem;
  transition: color var(--tbs-transition);
}
.tbs-topbar-social a:hover { color: var(--tbs-primary); }
/* WhatsApp green icon */
.tbs-topbar-social a[aria-label="WhatsApp"] { color: #25D366; }
.tbs-topbar-social a[aria-label="YouTube"] { color: #FF0000; }
.tbs-dark-toggle {
  background: none; border: 1px solid var(--tbs-border);
  color: var(--tbs-text-muted); cursor: pointer; padding: 3px 10px;
  border-radius: 20px; font-size: 0.78rem; transition: all var(--tbs-transition);
}
.tbs-dark-toggle:hover { border-color: var(--tbs-primary); color: var(--tbs-primary); }

/* ============================================================
   BREAKING NEWS TICKER — Restyled for white site
   Red ticker that contrasts against white background
============================================================ */
.tbs-ticker {
  background: var(--tbs-red); color: #fff;
  display: flex; align-items: center; overflow: hidden; height: 38px;
}
.tbs-ticker-label {
  background: var(--tbs-red-dark); color: #fff; font-weight: 700;
  font-size: 0.78rem; padding: 0 18px; height: 100%;
  display: flex; align-items: center; white-space: nowrap;
  letter-spacing: 0.5px; flex-shrink: 0; position: relative;
}
.tbs-ticker-wrap { flex: 1; overflow: hidden; padding-left: 20px; }
.tbs-ticker-items {
  display: flex;
  animation: tbs-ticker-scroll 35s linear infinite;
  white-space: nowrap;
}
.tbs-ticker-items:hover { animation-play-state: paused; }
.tbs-ticker-item { font-size: 0.85rem; font-weight: 500; padding-right: 50px; }
.tbs-ticker-item a { color: #fff; }
.tbs-ticker-item a:hover { color: #fbbf24; }
@keyframes tbs-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   LAYOUT HELPERS
============================================================ */
.tbs-container { max-width: var(--tbs-container); margin: 0 auto; padding: 0 20px; }
.tbs-section { padding: 28px 0; }
.tbs-section + .tbs-section { border-top: 1px solid var(--tbs-border); }
.tbs-section-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
}
.tbs-section-title {
  font-size: 1.1rem; font-weight: 800; color: var(--tbs-text); margin: 0;
  position: relative; padding-left: 14px;
}
.tbs-section-title::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 80%; background: var(--tbs-primary); border-radius: 2px;
}
.tbs-section-link {
  margin-left: auto; font-size: 0.78rem;
  color: var(--tbs-primary); font-weight: 600; white-space: nowrap;
}

/* Standard grids */
.tbs-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.tbs-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.tbs-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.tbs-content-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }

/* ============================================================
   HOMEPAGE 3-COLUMN GRID — Banglahunt-style
   LEFT 40% | CENTER 35% | RIGHT 25%
============================================================ */
.tbs-home-grid {
  display: grid;
  grid-template-columns: 40% 35% 25%;
  gap: 24px;
  padding: 28px 0;
}

/* --- Col Headers (shared) --- */
.tbs-col-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--tbs-primary);
}
.tbs-col-header span {
  font-size: 1.05rem; font-weight: 800; color: var(--tbs-text);
}
.tbs-col-header a {
  font-size: 0.78rem; color: var(--tbs-primary); font-weight: 600;
  text-decoration: none;
}
.tbs-col-header a:hover { text-decoration: underline; }

/* --- LEFT COLUMN: Big featured + 3 small horizontal cards --- */
.tbs-featured-big {
  position: relative; border-radius: var(--tbs-radius);
  overflow: hidden; margin-bottom: 16px;
}
.tbs-featured-big img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform 0.4s ease;
}
.tbs-featured-big:hover img { transform: scale(1.03); }
.tbs-featured-big-cat {
  position: absolute; bottom: 10px; left: 10px;
  background: var(--tbs-red); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px;
  border-radius: 3px;
}
.tbs-featured-big-title {
  font-size: 1.05rem; font-weight: 700; margin: 10px 0 0;
  line-height: 1.5;
}
.tbs-featured-big-title a { color: var(--tbs-text); }
.tbs-featured-big-title a:hover { color: var(--tbs-primary); }

/* Horizontal card (image left, title right) */
.tbs-hcard {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--tbs-border);
  transition: background var(--tbs-transition);
}
.tbs-hcard:last-child { border-bottom: none; }
.tbs-hcard:hover { background: var(--tbs-bg-gray); }
.tbs-hcard-img {
  width: 90px; height: 64px; flex-shrink: 0;
  border-radius: 3px; overflow: hidden;
}
.tbs-hcard-img img { width: 100%; height: 100%; object-fit: cover; }
.tbs-hcard-body { flex: 1; min-width: 0; }
.tbs-hcard-title {
  font-size: 0.88rem; font-weight: 700; line-height: 1.45; margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.tbs-hcard-title a { color: var(--tbs-text); }
.tbs-hcard-title a:hover { color: var(--tbs-primary); }
.tbs-hcard-meta { font-size: 0.73rem; color: var(--tbs-text-muted); }

/* Reverse horizontal card (title left, thumbnail right) — for center column */
.tbs-hcard-reverse { flex-direction: row-reverse; }
.tbs-hcard-reverse .tbs-hcard-img { width: 90px; height: 64px; }

/* --- CENTER COLUMN: Live TV + 3 articles --- */
.tbs-live-box {
  border-radius: var(--tbs-radius); overflow: hidden;
  margin-bottom: 16px; border: 1px solid var(--tbs-border);
}
.tbs-live-box-header {
  background: var(--tbs-red); color: #fff;
  padding: 8px 14px; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; gap: 8px;
}
.tbs-live-box-body {
  background: #000; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.85rem;
}
.tbs-live-box-body iframe {
  width: 100%; height: 100%; border: none;
}

/* --- RIGHT COLUMN: Text-only latest news list --- */
.tbs-text-news-list { list-style: none; margin: 0; padding: 0; }
.tbs-text-news-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--tbs-border);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.55;
}
.tbs-text-news-item:last-child { border-bottom: none; }
.tbs-text-news-item a { color: var(--tbs-text); text-decoration: none; }
.tbs-text-news-item a:hover { color: var(--tbs-red); text-decoration: underline; }
.tbs-text-news-item .tbs-text-news-time {
  display: block; font-size: 0.72rem; color: var(--tbs-text-muted);
  font-weight: 400; margin-top: 2px;
}

/* ============================================================
   CATEGORY SECTIONS (below main grid)
   3 equal columns, each: heading + 1 large + 3 small
============================================================ */
.tbs-cat-sections-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; padding: 28px 0;
}
.tbs-cat-section {
  border: 1px solid var(--tbs-border);
  border-radius: var(--tbs-radius);
  padding: 16px;
  background: var(--tbs-bg-card);
}
.tbs-cat-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--tbs-border);
}
.tbs-cat-header-title {
  font-size: 1.05rem; font-weight: 800; color: var(--tbs-text);
  padding-left: 12px;
  border-left: 4px solid var(--tbs-primary);
  margin: 0;
}
.tbs-cat-header a {
  font-size: 0.78rem; color: var(--tbs-primary); font-weight: 600;
}
.tbs-cat-header a:hover { text-decoration: underline; }

/* Category featured (large card) */
.tbs-cat-featured {
  position: relative; border-radius: var(--tbs-radius);
  overflow: hidden; margin-bottom: 12px;
}
.tbs-cat-featured img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  transition: transform 0.3s ease;
}
.tbs-cat-featured:hover img { transform: scale(1.03); }
.tbs-cat-featured-title {
  font-size: 0.95rem; font-weight: 700; line-height: 1.45;
  margin: 8px 0 0;
}
.tbs-cat-featured-title a { color: var(--tbs-text); }
.tbs-cat-featured-title a:hover { color: var(--tbs-primary); }

/* Category small list */
.tbs-cat-small-list { margin: 0; padding: 0; list-style: none; }

/* ============================================================
   STANDARD ARTICLE CARDS (reusable)
============================================================ */
.tbs-card {
  background: var(--tbs-bg-card); border-radius: var(--tbs-radius);
  overflow: hidden; box-shadow: var(--tbs-shadow);
  transition: transform var(--tbs-transition), box-shadow var(--tbs-transition);
  display: flex; flex-direction: column;
}
.tbs-card:hover { transform: translateY(-3px); box-shadow: var(--tbs-shadow-lg); }
.tbs-card-img-wrap {
  position: relative; overflow: hidden; aspect-ratio: 16/9;
}
.tbs-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.tbs-card:hover .tbs-card-img-wrap img { transform: scale(1.04); }
.tbs-card-cat {
  position: absolute; bottom: 10px; left: 10px;
  background: var(--tbs-red); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 3px;
}
.tbs-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.tbs-card-title {
  font-size: 1rem; font-weight: 700; line-height: 1.55;
  margin: 0 0 10px; color: var(--tbs-text);
}
.tbs-card-title a { color: var(--tbs-text); }
.tbs-card-title a:hover { color: var(--tbs-primary); }
.tbs-card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.76rem; color: var(--tbs-text-muted);
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--tbs-border);
}

/* Horizontal card variant */
.tbs-card-h {
  display: flex; gap: 12px; background: var(--tbs-bg-card);
  border-radius: var(--tbs-radius); padding: 12px; box-shadow: var(--tbs-shadow);
  transition: transform var(--tbs-transition);
}
.tbs-card-h:hover { transform: translateX(3px); }
.tbs-card-h-img {
  width: 90px; height: 68px; flex-shrink: 0;
  border-radius: 3px; overflow: hidden;
}
.tbs-card-h-img img { width: 100%; height: 100%; object-fit: cover; }
.tbs-card-h-body { flex: 1; min-width: 0; }
.tbs-card-h-title {
  font-size: 0.88rem; font-weight: 700; line-height: 1.5; margin: 0 0 6px;
  color: var(--tbs-text);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.tbs-card-h-title a { color: var(--tbs-text); }
.tbs-card-h-title a:hover { color: var(--tbs-primary); }
.tbs-card-h-meta { font-size: 0.73rem; color: var(--tbs-text-muted); }

/* ============================================================
   CATEGORY STRIP — Below nav
============================================================ */
.tbs-cat-strip {
  background: var(--tbs-bg-gray); padding: 0;
  position: sticky; top: 60px; z-index: 900;
  border-bottom: 1px solid var(--tbs-border);
}
.tbs-cat-strip-inner {
  max-width: var(--tbs-container); margin: 0 auto; padding: 0 20px;
  display: flex; overflow-x: auto; scrollbar-width: none;
}
.tbs-cat-strip-inner::-webkit-scrollbar { display: none; }
.tbs-cat-strip-link {
  color: var(--tbs-text-light) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 11px 16px !important;
  white-space: nowrap; display: block;
  border-bottom: 3px solid transparent;
  transition: all var(--tbs-transition);
}
.tbs-cat-strip-link:hover,
.tbs-cat-strip-link.active {
  color: var(--tbs-primary) !important;
  border-bottom-color: var(--tbs-primary);
}

/* ============================================================
   OPINION CARDS (kept for compatibility)
============================================================ */
.tbs-opinion-card {
  background: var(--tbs-bg-card); border-radius: var(--tbs-radius);
  padding: 20px; box-shadow: var(--tbs-shadow);
  display: flex; flex-direction: column; gap: 14px;
  border-top: 3px solid var(--tbs-primary);
}
.tbs-opinion-author { display: flex; align-items: center; gap: 10px; }
.tbs-opinion-author-img {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
}
.tbs-opinion-author-img img { width: 100%; height: 100%; object-fit: cover; }
.tbs-opinion-author-name { font-weight: 700; font-size: 0.88rem; }
.tbs-opinion-author-role { font-size: 0.75rem; color: var(--tbs-text-muted); }
.tbs-opinion-title { font-size: 1rem; font-weight: 700; line-height: 1.5; margin: 0; }
.tbs-opinion-title a { color: var(--tbs-text); }
.tbs-opinion-title a:hover { color: var(--tbs-primary); }

/* ============================================================
   SIDEBAR
============================================================ */
.tbs-sidebar { position: sticky; top: 120px; }
.tbs-sidebar-widget {
  background: var(--tbs-bg-card); border-radius: var(--tbs-radius);
  padding: 20px; box-shadow: var(--tbs-shadow); margin-bottom: 24px;
  border: 1px solid var(--tbs-border);
}
.tbs-sidebar-widget-title {
  font-size: 0.95rem; font-weight: 700; margin: 0 0 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--tbs-primary);
}
.tbs-popular-list { list-style: none; margin: 0; padding: 0; }
.tbs-popular-item {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--tbs-border); align-items: flex-start;
}
.tbs-popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.tbs-popular-num {
  font-size: 1.4rem; font-weight: 800;
  color: var(--tbs-border); line-height: 1; flex-shrink: 0; min-width: 28px;
}
.tbs-popular-title { font-size: 0.85rem; font-weight: 600; line-height: 1.45; }
.tbs-popular-title a { color: var(--tbs-text); }
.tbs-popular-title a:hover { color: var(--tbs-primary); }
.tbs-ad-placeholder {
  background: linear-gradient(135deg, #f5f5f5, #eee);
  border: 1px dashed var(--tbs-border); border-radius: var(--tbs-radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--tbs-text-muted); font-size: 0.78rem;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.tbs-ad-300x250 { width: 100%; height: 250px; }
.tbs-ad-728x90  { width: 100%; height: 90px; }
[data-theme="dark"] .tbs-ad-placeholder {
  background: linear-gradient(135deg, #1e2530, #1a2030);
}

/* ============================================================
   NETWORK BAR — Republic World style
   Top mini bar with site links (Bengali | English)
============================================================ */
.tbs-network-bar {
  background: var(--tbs-bg);
  border-bottom: 1px solid var(--tbs-border);
  padding: 6px 0;
  text-align: center;
  font-size: 0.78rem;
}
.tbs-network-bar a {
  color: var(--tbs-red); margin: 0 12px;
  font-weight: 500; text-decoration: none;
}
.tbs-network-bar a.active { font-weight: 700; }
.tbs-network-bar a:hover { text-decoration: underline; }

/* ============================================================
   SINGLE ARTICLE — Republic World style layout
============================================================ */

/* Updated time */
.tbs-updated-time {
  font-size: 0.8rem; color: var(--tbs-text-muted);
  margin: 0 0 12px;
}

/* Article title */
.tbs-article-title {
  font-size: 2rem; font-weight: 800; line-height: 1.4;
  color: var(--tbs-text); margin: 0 0 16px;
}

/* Article excerpt — Republic style (slightly gray, no border-left) */
.tbs-article-excerpt {
  font-size: 1.05rem; color: var(--tbs-text-light); line-height: 1.7;
  margin: 0 0 16px;
}

/* Author name in RED */
.tbs-author-name {
  color: var(--tbs-red) !important; font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
}
.tbs-author-name:hover { text-decoration: underline; }

/* Category badge inline */
.tbs-cat-badge {
  display: inline-block; background: var(--tbs-primary); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 3px;
}

/* Meta row (author + category + reading time + follow + share — all in one row) */
.tbs-article-meta-row {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; padding: 10px 0; margin-bottom: 20px;
  border-bottom: 1px solid var(--tbs-border);
  font-size: 0.82rem;
  color: var(--tbs-text-muted);
}

/* Follow Google News button */
.tbs-follow-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--tbs-border); padding: 5px 12px;
  border-radius: 4px; font-size: 0.78rem; font-weight: 600;
  color: var(--tbs-text) !important; text-decoration: none;
  transition: all var(--tbs-transition);
  background: none;
}
.tbs-follow-btn:hover {
  border-color: var(--tbs-primary); color: var(--tbs-primary) !important;
}
.tbs-follow-btn svg { flex-shrink: 0; }

/* Small share button in meta row */
.tbs-share-btn-sm {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 1px solid var(--tbs-border);
  padding: 5px 12px; border-radius: 4px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  color: var(--tbs-text); transition: all var(--tbs-transition);
}
.tbs-share-btn-sm:hover {
  border-color: var(--tbs-primary); color: var(--tbs-primary);
}

/* Quick Read / AI Summary box */
.tbs-quick-read-box {
  border: 1px solid var(--tbs-border);
  border-radius: 8px;
  margin: 24px 0;
  overflow: hidden;
}
.tbs-quick-read-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; cursor: pointer;
  background: var(--tbs-bg-gray);
  transition: background var(--tbs-transition);
  gap: 12px;
}
.tbs-quick-read-header:hover { background: #eef2f8; }
[data-theme="dark"] .tbs-quick-read-header:hover { background: #1e2a3a; }
.tbs-quick-read-header span:first-child {
  color: var(--tbs-red); font-weight: 600; font-size: 0.92rem;
  white-space: nowrap;
}
.tbs-quick-read-header small {
  color: var(--tbs-text-muted); font-size: 0.75rem;
  flex: 1;
}
.tbs-toggle-arrow {
  font-size: 1.1rem; color: var(--tbs-text-muted);
  transition: transform 0.2s ease;
}
.tbs-quick-read-body {
  padding: 16px 20px; font-size: 0.95rem; line-height: 1.7;
  border-top: 1px solid var(--tbs-border);
  color: var(--tbs-text-light);
}

/* Article body — Republic World style (clean, readable, 18px) */
.tbs-article-body-republic {
  font-size: 18px; line-height: 1.9; max-width: 720px;
}
.tbs-article-body-republic p { margin: 0 0 1.4em; }
.tbs-article-body-republic h2 {
  font-size: 1.35rem; font-weight: 700; margin: 2em 0 0.8em;
}
.tbs-article-body-republic h3 {
  font-size: 1.15rem; font-weight: 700; margin: 1.6em 0 0.6em;
}
.tbs-article-body-republic blockquote {
  border-left: 4px solid var(--tbs-primary); margin: 2em 0; padding: 16px 22px;
  background: var(--tbs-bg-gray); border-radius: 0 var(--tbs-radius) var(--tbs-radius) 0;
  font-size: 1.1rem; color: var(--tbs-text-light);
}

/* Legacy article body class (kept for backwards compatibility) */
.tbs-article-body { font-size: 1.05rem; line-height: 1.9; }
.tbs-article-body p { margin: 0 0 1.4em; }
.tbs-article-body h2 { font-size: 1.35rem; font-weight: 700; margin: 2em 0 0.8em; }
.tbs-article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.6em 0 0.6em; }
.tbs-article-body blockquote {
  border-left: 4px solid var(--tbs-primary); margin: 2em 0; padding: 16px 22px;
  background: var(--tbs-bg-gray); border-radius: 0 var(--tbs-radius) var(--tbs-radius) 0;
  font-size: 1.1rem; color: var(--tbs-text-light);
}

/* Featured image & caption */
.tbs-featured-img {
  width: 100%; border-radius: var(--tbs-radius); overflow: hidden; margin-bottom: 10px;
}
.tbs-featured-img img { width: 100%; height: auto; }
.tbs-featured-caption {
  font-size: 0.78rem; color: var(--tbs-text-muted);
  text-align: center; padding: 6px 0 20px; font-style: italic;
}

/* Tags */
.tbs-article-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0;
  padding-top: 20px; border-top: 1px solid var(--tbs-border);
}
.tbs-tag {
  background: var(--tbs-bg-gray); color: var(--tbs-text-light); padding: 4px 12px;
  border-radius: 20px; font-size: 0.78rem; border: 1px solid var(--tbs-border);
  transition: all var(--tbs-transition);
}
.tbs-tag:hover { background: var(--tbs-primary); color: #fff; border-color: var(--tbs-primary); }

/* Share bar */
.tbs-share-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.tbs-share-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: 4px; font-size: 0.82rem; font-weight: 600; cursor: pointer;
  border: none; transition: opacity var(--tbs-transition); color: #fff; text-decoration: none;
}
.tbs-share-btn:hover { opacity: 0.88; color: #fff; }
.tbs-share-fb { background: #1877F2; }
.tbs-share-tw { background: #1DA1F2; }
.tbs-share-wa { background: #25D366; }
.tbs-share-tg { background: #229ED9; }

/* Floating share bar (desktop) */
.tbs-share-float {
  position: fixed;
  left: max(20px, calc((100vw - var(--tbs-container)) / 2 - 60px));
  top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 500;
}
.tbs-share-float-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff !important; font-size: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform var(--tbs-transition);
}
.tbs-share-float-btn:hover { transform: scale(1.12); color: #fff !important; }

/* ============================================================
   RECOMMENDED SIDEBAR — Republic World style (sticky)
============================================================ */
.tbs-sidebar-republic { position: sticky; top: 100px; }
.tbs-recommended-title {
  font-size: 1.2rem; font-weight: 800; margin: 0 0 20px;
  padding-bottom: 10px; border-bottom: 2px solid var(--tbs-border);
}
.tbs-rec-card {
  display: flex; gap: 12px; margin-bottom: 20px;
  padding-bottom: 20px; border-bottom: 1px solid var(--tbs-border);
}
.tbs-rec-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tbs-rec-card-img {
  width: 100px; height: 70px; flex-shrink: 0;
  border-radius: 4px; overflow: hidden;
}
.tbs-rec-card-img img { width: 100%; height: 100%; object-fit: cover; }
.tbs-rec-card-body { flex: 1; min-width: 0; }
.tbs-rec-card-title {
  font-size: 0.9rem; font-weight: 700; line-height: 1.45; margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.tbs-rec-card-title a { color: var(--tbs-text); }
.tbs-rec-card-title a:hover { color: var(--tbs-primary); }
.tbs-rec-card-cat {
  font-size: 0.72rem; color: var(--tbs-red); font-weight: 600;
}

/* ============================================================
   ARTICLE HEADER — Legacy (kept for compatibility)
============================================================ */
.tbs-article-header { margin-bottom: 28px; }
.tbs-article-cat-badge {
  display: inline-block; background: var(--tbs-red); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 4px 14px;
  border-radius: 3px; margin-bottom: 14px;
}
.tbs-article-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--tbs-text-muted);
  padding: 14px 0; border-top: 1px solid var(--tbs-border);
  border-bottom: 1px solid var(--tbs-border); margin-bottom: 24px;
}
.tbs-article-author-wrap { display: flex; align-items: center; gap: 10px; }
.tbs-article-author-img {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
}
.tbs-article-author-img img { width: 100%; height: 100%; object-fit: cover; }
.tbs-article-author-name { font-weight: 700; color: var(--tbs-text); font-size: 0.88rem; }

/* ============================================================
   BREADCRUMB
============================================================ */
.tbs-breadcrumb {
  font-size: 0.8rem; color: var(--tbs-text-muted);
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 12px 0; margin-bottom: 16px;
}
.tbs-breadcrumb a { color: var(--tbs-text-muted); }
.tbs-breadcrumb a:hover { color: var(--tbs-primary); }
.tbs-breadcrumb .sep { color: var(--tbs-border); }
.tbs-breadcrumb .current { color: var(--tbs-text); }

/* ============================================================
   ARCHIVE
============================================================ */
.tbs-archive-header {
  background: var(--tbs-primary); color: #fff;
  padding: 36px 0; margin-bottom: 32px;
}
.tbs-archive-cat-name { font-size: 2rem; font-weight: 800; margin: 0 0 6px; color: #fff; }
.tbs-archive-cat-desc { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin: 0; }
.tbs-archive-cat-accent {
  display: inline-block; width: 50px; height: 4px;
  background: #fff; border-radius: 2px; margin-bottom: 12px; opacity: 0.6;
}

/* Pagination */
.tbs-pagination {
  display: flex; justify-content: center; gap: 8px;
  margin: 40px 0; flex-wrap: wrap;
}
.tbs-pagination a, .tbs-pagination span {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--tbs-radius); font-size: 0.88rem; font-weight: 600;
  border: 1px solid var(--tbs-border); background: var(--tbs-bg-card);
  color: var(--tbs-text) !important; transition: all var(--tbs-transition);
}
.tbs-pagination a:hover, .tbs-pagination .current {
  background: var(--tbs-primary); border-color: var(--tbs-primary); color: #fff !important;
}

/* ============================================================
   FOOTER
============================================================ */
.tbs-footer-widgets {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tbs-footer-about .tbs-footer-logo {
  font-size: 1.4rem; font-weight: 800; color: #fff;
  margin-bottom: 12px; display: block;
}
.tbs-footer-about p {
  font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.7;
}
.tbs-footer-social { display: flex; gap: 10px; margin-top: 16px; }
.tbs-footer-social a {
  width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7) !important; font-size: 0.9rem;
  transition: all var(--tbs-transition);
}
.tbs-footer-social a:hover { background: var(--tbs-primary); color: #fff !important; }
.tbs-footer-col-title {
  font-size: 0.9rem; font-weight: 700; color: #fff; margin: 0 0 16px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tbs-footer-links { list-style: none; margin: 0; padding: 0; }
.tbs-footer-links li { margin-bottom: 8px; }
.tbs-footer-links a {
  font-size: 0.83rem; color: rgba(255,255,255,0.55) !important;
  transition: color var(--tbs-transition);
}
.tbs-footer-links a:hover { color: #fbbf24 !important; }

/* ============================================================
   MOBILE BOTTOM BAR
============================================================ */
.tbs-mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: #1a1a2e; border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 999; height: 58px;
}
.tbs-mobile-bar-inner { display: flex; height: 100%; }
.tbs-mobile-bar-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; color: rgba(255,255,255,0.6); font-size: 0.65rem;
  gap: 3px; cursor: pointer; background: none; border: none;
  text-decoration: none; transition: color var(--tbs-transition);
}
.tbs-mobile-bar-btn:hover, .tbs-mobile-bar-btn.active { color: #fbbf24; }
.tbs-mobile-bar-btn .tbs-icon { font-size: 1.1rem; line-height: 1; }

/* Back to top */
.tbs-back-top {
  position: fixed; bottom: 80px; right: 24px; width: 42px; height: 42px;
  background: var(--tbs-primary); color: #fff !important; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--tbs-shadow-lg); font-size: 1rem;
  opacity: 0; visibility: hidden; transition: all var(--tbs-transition); z-index: 800;
}
.tbs-back-top.visible { opacity: 1; visibility: visible; }
.tbs-back-top:hover {
  background: var(--tbs-primary-dark); color: #fff !important;
  transform: translateY(-2px);
}

/* Live dot */
.tbs-live-dot {
  width: 8px; height: 8px; background: #fff; border-radius: 50%;
  animation: tbs-blink 1.2s infinite; display: inline-block;
}
@keyframes tbs-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

/* 404 */
.tbs-404 { text-align: center; padding: 80px 20px; }
.tbs-404-num {
  font-size: 8rem; font-weight: 900; color: var(--tbs-primary);
  line-height: 1; margin-bottom: 10px;
}
.tbs-404-msg { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }

/* Hero section (kept for compatibility / archive) */
.tbs-hero { padding: 28px 0 0; }
.tbs-hero-grid {
  display: grid; grid-template-columns: 1fr 340px;
  grid-template-rows: auto auto; gap: 20px;
}
.tbs-hero-main {
  grid-row: 1 / 3; position: relative;
  border-radius: var(--tbs-radius); overflow: hidden; box-shadow: var(--tbs-shadow-lg);
}
.tbs-hero-main-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.tbs-hero-main-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
}
.tbs-hero-main-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 24px; color: #fff; }
.tbs-hero-main-cat {
  display: inline-block; background: var(--tbs-red); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 3px; margin-bottom: 12px;
}
.tbs-hero-main-title { font-size: 1.7rem; font-weight: 800; line-height: 1.4; margin: 0 0 10px; color: #fff; }
.tbs-hero-main-title a { color: #fff; }
.tbs-hero-main-title a:hover { color: #fbbf24; }
.tbs-hero-main-meta { font-size: 0.8rem; color: rgba(255,255,255,0.7); display: flex; gap: 14px; }
.tbs-hero-side { display: flex; flex-direction: column; gap: 16px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .tbs-home-grid { grid-template-columns: 1fr 1fr; }
  .tbs-home-grid .tbs-col-right { grid-column: 1 / -1; }

  .tbs-cat-sections-grid { grid-template-columns: 1fr 1fr; }

  .tbs-hero-grid { grid-template-columns: 1fr 280px; }
  .tbs-grid-4 { grid-template-columns: repeat(2,1fr); }
  .tbs-footer-widgets { grid-template-columns: 1fr 1fr; }
  .tbs-content-sidebar { grid-template-columns: 1fr 280px; }
  .tbs-share-float { display: none; }
}

@media (max-width: 768px) {
  .tbs-home-grid { grid-template-columns: 1fr; }
  .tbs-home-grid .tbs-col-right { grid-column: 1; }

  .tbs-cat-sections-grid { grid-template-columns: 1fr; }

  .tbs-hero-grid { grid-template-columns: 1fr; }
  .tbs-hero-main { grid-row: 1; }
  .tbs-grid-3 { grid-template-columns: 1fr 1fr; }
  .tbs-grid-4 { grid-template-columns: 1fr 1fr; }
  .tbs-grid-2 { grid-template-columns: 1fr; }
  .tbs-content-sidebar { grid-template-columns: 1fr; }
  .tbs-sidebar { position: static; }
  .tbs-sidebar-republic { position: static; }
  .tbs-footer-widgets { grid-template-columns: 1fr 1fr; gap: 28px; }
  .tbs-hero-main-title { font-size: 1.3rem; }
  .tbs-article-title { font-size: 1.5rem; }
  .tbs-mobile-bar { display: block; }
  body { padding-bottom: 58px; }
  .tbs-back-top { bottom: 72px; }
  .inside-header { min-height: 56px !important; }
  .tbs-article-body-republic { font-size: 16px; max-width: 100%; }
}

@media (max-width: 480px) {
  .tbs-grid-3, .tbs-grid-4 { grid-template-columns: 1fr; }
  .tbs-footer-widgets { grid-template-columns: 1fr; }
  .tbs-topbar { display: none; }
  .tbs-article-title { font-size: 1.3rem; }
  .tbs-404-num { font-size: 5rem; }
  .tbs-article-meta-row { gap: 10px; }
}
