/*
Theme Name: TNUpdate News Theme
Theme URI: https://tnupdate.in
Author: TNUpdate
Author URI: https://tnupdate.in
Description: A professional Tamil Nadu news portal theme built on GeneratePress architecture. Inspired by OneIndia layout with dynamic category pages, breaking news ticker, and full sidebar support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tnupdate
Tags: news, blog, custom-menu, featured-images, threaded-comments, responsive-layout, right-sidebar
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --color-primary: #c0392b;
  --color-primary-dark: #a93226;
  --color-dark: #1a1a1a;
  --color-mid: #555555;
  --color-light-bg: #f4f1eb;
  --color-white: #ffffff;
  --color-border: #e0ddd4;
  --color-border-light: #f0ede5;
  --color-text: #333333;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-light-bg);
  color: var(--color-text);
  line-height: 1.7;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: #111; margin: 0 0 0.5rem; line-height: 1.3; }
p { margin: 0 0 1rem; }

/* =============================================
   TOP UTILITY BAR
   ============================================= */
#tnupdate-topbar {
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  padding: 5px 0;
}
#tnupdate-topbar .topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  gap: 10px;
}
.topbar-links a {
  color: #ffcdd2;
  margin-right: 10px;
  font-size: 11px;
}
.topbar-links a:hover { color: #fff; }
.breaking-ticker {
  display: flex;
  align-items: center;
  overflow: hidden;
  flex: 1;
  gap: 8px;
}
.breaking-label {
  background: #fff;
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-scroll {
  overflow: hidden;
  flex: 1;
}
.ticker-inner {
  display: flex;
  animation: ticker-move 30s linear infinite;
  white-space: nowrap;
}
.ticker-inner span {
  padding: 0 30px;
  font-size: 11px;
  color: #fff;
}
@keyframes ticker-move {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.topbar-date { font-size: 10px; color: #ffcdd2; white-space: nowrap; }

/* =============================================
   SITE HEADER
   ============================================= */
#site-header {
  background: var(--color-white);
  border-bottom: 3px solid var(--color-primary);
  padding: 10px 0;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-branding .site-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -1px;
  line-height: 1;
  display: block;
}
.site-branding .site-tagline {
  font-size: 11px;
  color: #888;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}
.header-ad-zone {
  flex: 1;
  text-align: center;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-search-form {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 3px;
  overflow: hidden;
}
.header-search-form input {
  border: none;
  padding: 7px 12px;
  font-size: 12px;
  width: 200px;
  outline: none;
}
.header-search-form button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 12px;
}
.btn-subscribe {
  background: var(--color-primary);
  color: #fff !important;
  border: none;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.5px;
}

/* =============================================
   PRIMARY NAVIGATION
   ============================================= */
#primary-navigation {
  background: var(--color-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
}
#primary-navigation .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: stretch;
}
#primary-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
#primary-navigation ul li { position: relative; }
#primary-navigation ul li a {
  display: block;
  color: #ccc;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
#primary-navigation ul li a:hover,
#primary-navigation ul li.current-menu-item > a,
#primary-navigation ul li.current-menu-ancestor > a {
  background: var(--color-primary);
  color: #fff;
}
/* Dropdown */
#primary-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #222;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 999;
  flex-direction: column;
}
#primary-navigation ul li:hover > ul { display: flex; }
#primary-navigation ul ul li a {
  padding: 9px 16px;
  border-bottom: 1px solid #333;
  font-size: 11px;
}
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 11px 14px;
  margin-left: auto;
}

/* =============================================
   SECONDARY NAV (TOPIC TAGS)
   ============================================= */
#secondary-nav {
  background: #f8f3e8;
  border-bottom: 1px solid #ddd;
  padding: 6px 0;
  overflow: hidden;
}
#secondary-nav .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
#secondary-nav a {
  color: #555;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
#secondary-nav a:hover {
  background: var(--color-primary);
  color: #fff;
}

/* =============================================
   PAGE WRAPPER / LAYOUT
   ============================================= */
#page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
}
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
}
#main-content { min-width: 0; }
#sidebar { min-width: 0; }

/* =============================================
   SECTION HEADER
   ============================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 12px;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 8px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 1px;
}
.see-all-link {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* =============================================
   HERO / FEATURED NEWS SECTION
   ============================================= */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  margin-bottom: 20px;
}
.hero-main-post {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #222;
  cursor: pointer;
}
.hero-main-post .post-thumbnail {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.hero-main-post:hover .post-thumbnail { transform: scale(1.02); }
.hero-main-post .post-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  padding: 20px 16px 14px;
}
.hero-side-post {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.hero-side-post:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.hero-side-post .post-thumbnail {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.hero-side-post .post-body { padding: 10px; flex: 1; }

/* =============================================
   POST CATEGORY BADGE
   ============================================= */
.cat-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 1px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-family: Arial, sans-serif;
}
.cat-badge.cat-sports { background: #1565c0; }
.cat-badge.cat-entertainment { background: #880e4f; }
.cat-badge.cat-technology { background: #00695c; }
.cat-badge.cat-business { background: #e65100; }
.cat-badge.cat-weather { background: #1b5e20; }
.cat-badge.cat-health { background: #4a148c; }
.cat-badge.cat-education { background: #bf360c; }
.cat-badge.cat-politics { background: #c0392b; }

/* =============================================
   POST TITLES (HERO)
   ============================================= */
.hero-post-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 6px;
}
.hero-side-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  margin: 0 0 4px;
}
.post-meta {
  font-size: 10px;
  color: #999;
  font-family: Arial, sans-serif;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.post-meta.light { color: #ccc; }

/* =============================================
   NEWS CARD LIST (horizontal)
   ============================================= */
.news-card {
  display: flex;
  gap: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.news-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.news-card .card-thumb {
  width: 90px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 3px;
  object-fit: cover;
  background: #ddd;
}
.news-card .card-body { flex: 1; min-width: 0; }
.news-card .card-title {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  margin: 0 0 4px;
}
.news-card .card-title:hover { color: var(--color-primary); }

/* =============================================
   NEWS GRID (2-col category cards)
   ============================================= */
.news-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.grid-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.grid-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.grid-card .card-thumb {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: #ccc;
}
.grid-card .card-body { padding: 10px; }
.grid-card .card-title {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  margin: 4px 0;
}

/* =============================================
   SINGLE ARTICLE PAGE
   ============================================= */
.single-article {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}
.article-breadcrumb {
  font-size: 11px;
  color: #888;
  padding: 10px 20px;
  border-bottom: 1px solid var(--color-border-light);
  font-family: Arial, sans-serif;
}
.article-breadcrumb a { color: var(--color-primary); }
.article-header { padding: 20px 20px 0; }
.article-title {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.article-subtitle {
  font-size: 15px;
  color: #555;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 14px;
}
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: #888;
}
.author-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #ddd;
}
.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f9f7f2;
  border-bottom: 1px solid var(--color-border-light);
}
.share-btn {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  color: #fff;
  font-family: Arial, sans-serif;
}
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #229ed9; }
.share-count { margin-left: auto; font-size: 11px; color: #888; font-family: Arial, sans-serif; }
.featured-image-wrap { margin: 0; }
.featured-image-wrap img { width: 100%; max-height: 420px; object-fit: cover; }
.image-caption {
  font-size: 11px;
  color: #888;
  padding: 6px 20px;
  background: #f9f7f2;
  border-bottom: 1px solid var(--color-border-light);
  font-style: italic;
}
.article-content {
  padding: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}
.article-content p { margin-bottom: 1.2rem; }
.article-content h2 {
  font-size: 20px;
  margin: 1.8rem 0 0.8rem;
  border-left: 4px solid var(--color-primary);
  padding-left: 10px;
}
.article-content h3 { font-size: 17px; margin: 1.5rem 0 0.6rem; }
.article-content blockquote {
  background: #fdf8f0;
  border-left: 4px solid var(--color-primary);
  padding: 14px 18px;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 17px;
  color: #444;
  border-radius: 0 4px 4px 0;
}
.article-tags-wrap {
  padding: 14px 20px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tag-label { font-size: 11px; font-weight: 700; color: #888; font-family: Arial, sans-serif; }
.article-tag {
  background: var(--color-light-bg);
  color: #555;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  border: 1px solid var(--color-border);
  transition: background 0.2s;
}
.article-tag:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* =============================================
   RELATED POSTS
   ============================================= */
.related-posts {
  padding: 16px 20px;
  border-top: 2px solid var(--color-primary);
}
.related-posts h3 {
  font-size: 15px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.related-card {
  border: 1px solid var(--color-border);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.related-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.related-card img { width: 100%; height: 80px; object-fit: cover; background: #ddd; }
.related-card .rc-body { padding: 8px; }
.related-card .rc-title {
  font-size: 12px;
  font-weight: 600;
  color: #111;
  line-height: 1.35;
}

/* =============================================
   COMMENTS
   ============================================= */
.comments-section {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 20px;
  margin-top: 15px;
}
.comments-title {
  font-size: 16px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.comment-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.comment-author { font-size: 13px; font-weight: 700; color: #222; }
.comment-date { font-size: 11px; color: #999; margin-left: 8px; }
.comment-text { font-size: 13px; color: #444; margin-top: 4px; line-height: 1.6; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--font-body);
  margin-bottom: 10px;
  outline: none;
  transition: border 0.2s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--color-primary); }
.comment-form textarea { height: 80px; resize: vertical; }
.comment-submit {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.comment-submit:hover { background: var(--color-primary-dark); }

/* =============================================
   SIDEBAR WIDGETS
   ============================================= */
.widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}
.widget-title {
  background: var(--color-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  font-family: Arial, sans-serif;
}
.widget-body { padding: 10px 12px; }
.widget-post-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
  cursor: pointer;
}
.widget-post-item:last-child { border-bottom: none; }
.widget-post-thumb {
  width: 64px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 3px;
  object-fit: cover;
  background: #ddd;
}
.widget-post-title {
  font-size: 12px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
}
.widget-post-title:hover { color: var(--color-primary); }
.widget-post-meta {
  font-size: 10px;
  color: #999;
  margin-top: 3px;
  font-family: Arial, sans-serif;
}
/* Weather Widget */
.weather-widget {
  background: #1565c0;
  border-radius: 4px;
  padding: 16px;
  color: #fff;
  text-align: center;
  margin-bottom: 16px;
}
.weather-city { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #90caf9; }
.weather-temp { font-size: 44px; font-weight: 700; color: #fff; line-height: 1; margin: 8px 0 4px; }
.weather-condition { font-size: 13px; color: #bbdefb; }
.weather-details { display: flex; justify-content: center; gap: 16px; margin-top: 12px; font-size: 11px; color: #90caf9; }
/* Tag Cloud Widget */
.tag-cloud-wrap { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
.tag-cloud-tag {
  background: var(--color-light-bg);
  color: #555;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  font-weight: 700;
  transition: background 0.2s;
}
.tag-cloud-tag:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
/* Category List Widget */
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li {
  border-bottom: 1px solid var(--color-border-light);
  padding: 7px 12px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a { color: #333; }
.cat-list a:hover { color: var(--color-primary); }
.cat-count-badge {
  background: var(--color-light-bg);
  color: #888;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  font-family: Arial, sans-serif;
}
/* Social Buttons */
.social-follow { padding: 10px 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.social-btn {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  color: #fff;
  font-family: Arial, sans-serif;
}
.social-btn.fb { background: #1877f2; }
.social-btn.tw { background: #1da1f2; }
.social-btn.yt { background: #ff0000; }
.social-btn.tg { background: #229ed9; }
/* Ad Widget */
.ad-placeholder {
  background: #f0ede5;
  border: 1px dashed #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #bbb;
  font-family: Arial, sans-serif;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

/* =============================================
   CATEGORY PAGE BANNER
   ============================================= */
.category-banner {
  background: linear-gradient(135deg, #1a1a1a, #c0392b);
  color: #fff;
  padding: 24px 15px;
  margin-bottom: 0;
}
.category-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.category-eyebrow {
  font-size: 11px;
  color: #ffcdd2;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 4px;
  font-family: Arial, sans-serif;
}
.category-name-big {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 900;
}
.category-description { font-size: 12px; color: #ffcdd2; margin-top: 6px; max-width: 500px; line-height: 1.5; }
.category-count { text-align: right; }
.category-count-num { font-size: 30px; font-weight: 900; }
.category-count-label { font-size: 11px; color: #ffcdd2; }

/* =============================================
   FILTER BAR
   ============================================= */
.filter-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.filter-label { font-size: 11px; color: #888; font-weight: 700; text-transform: uppercase; }
.filter-btn {
  padding: 4px 12px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
  background: #fff;
  color: #555;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 20px 0;
}
.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  transition: background 0.2s;
}
.page-numbers.current,
.page-numbers:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--color-dark);
  color: #888;
  margin-top: 30px;
}
.footer-widgets {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 15px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: var(--color-primary);
}
.footer-tagline { font-size: 11px; color: #666; margin: 4px 0 12px; line-height: 1.6; }
.footer-col-title {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-family: Arial, sans-serif;
}
.footer-col a {
  display: block;
  color: #888;
  font-size: 12px;
  margin-bottom: 7px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #666;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 30px;
  height: 30px;
  background: #333;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-size: 13px;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--color-primary); color: #fff; }

/* =============================================
   BREAKING NEWS BAND
   ============================================= */
.breaking-band {
  background: var(--color-primary);
  color: #fff;
  padding: 7px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
}
.breaking-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.breaking-tag-band {
  background: #fff;
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 2px;
  flex-shrink: 0;
  letter-spacing: 1px;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.3} }

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .hero-section { grid-template-columns: 1fr; }
  .hero-main-post { grid-row: auto; }
  .news-grid-2col { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .header-inner { flex-wrap: wrap; }
  .header-ad-zone { display: none; }
  .header-search-form input { width: 140px; }
  #primary-navigation ul { display: none; flex-direction: column; }
  #primary-navigation ul.open { display: flex; }
  .nav-mobile-toggle { display: block; }
  .article-title { font-size: 22px; }
  .category-name-big { font-size: 24px; }
  .hero-main-post .post-thumbnail { height: 220px; }
}
@media (max-width: 480px) {
  .footer-widgets { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .share-bar { flex-wrap: wrap; }
  .share-count { width: 100%; margin-left: 0; }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-primary { color: var(--color-primary) !important; }
.bg-primary { background: var(--color-primary) !important; }
.font-heading { font-family: var(--font-heading); }
.no-margin { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-10 { margin-top: 10px; }
.clearfix::after { content: ''; display: table; clear: both; }
.screen-reader-text {
  position: absolute;
  left: -9999em;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
