/*
Theme Name: BaazaarNews
Theme URI: https://baazaarnews.com
Author: BaazaarNews
Author URI: https://baazaarnews.com
Description: A modern, fast-loading news theme for BaazaarNews with breaking news ticker, category sections, and editorial layout.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baazaarnews
Tags: news, magazine, blog, grid, featured-images, custom-colors, custom-menu, editor-style, rtl-language-support, translation-ready
*/

/* ===========================
   CSS VARIABLES / TOKENS
=========================== */
:root {
  --color-primary: #C0392B;      /* Deep red - brand accent */
  --color-primary-dark: #96281B;
  --color-primary-light: #E74C3C;
  --color-secondary: #1A1A2E;    /* Dark navy - headlines */
  --color-bg: #F5F5F0;           /* Off-white newsprint */
  --color-surface: #FFFFFF;
  --color-surface-alt: #F0EFE9;
  --color-text: #2C2C2C;
  --color-text-muted: #6B6B6B;
  --color-border: #E0DED8;
  --color-ticker-bg: #C0392B;
  --color-ticker-label: #FFFFFF;

  --font-headline: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --font-ui: 'Source Sans 3', Arial, sans-serif;
  --font-mono: 'Courier New', monospace;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.12);

  --container-max: 1200px;
  --sidebar-width: 300px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  color: var(--color-secondary);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

.section-title {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--color-primary);
  margin-bottom: var(--space-lg);
  display: inline-block;
}

/* ===========================
   LAYOUT
=========================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.site-main {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

.content-area { min-width: 0; }

@media (max-width: 900px) {
  .site-main { grid-template-columns: 1fr; }
  .widget-sidebar { order: 2; }
}

/* ===========================
   TOP BAR
=========================== */
.top-bar {
  background: var(--color-secondary);
  color: #ccc;
  font-size: 0.78rem;
  font-family: var(--font-ui);
  padding: 6px 0;
  border-bottom: 2px solid var(--color-primary);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.top-bar-date { color: #aaa; }
.top-bar-links a { color: #ccc; margin-left: var(--space-md); font-size: 0.75rem; }
.top-bar-links a:hover { color: #fff; }

/* ===========================
   HEADER
=========================== */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.site-branding { display: flex; align-items: center; gap: var(--space-md); }

.site-logo img { height: 60px; width: auto; }

.site-title-wrap .site-title {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-secondary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.site-title-wrap .site-title span { color: var(--color-primary); }
.site-title-wrap .tagline { font-size: 0.72rem; color: var(--color-text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }

.header-ad { max-width: 400px; }
.header-ad img { width: 100%; border-radius: var(--radius-sm); }

/* ===========================
   BREAKING NEWS TICKER
=========================== */
.breaking-news-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 3px solid var(--color-primary);
  padding: 8px 0;
  overflow: hidden;
}

.breaking-news-bar .container {
  display: flex;
  align-items: center;
  gap: 0;
}

.breaking-label {
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-ui);
  position: relative;
}

.breaking-label::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 8px solid var(--color-primary);
}

.ticker-wrap { overflow: hidden; flex: 1; padding-left: 20px; }

.ticker-content {
  display: flex;
  gap: var(--space-xl);
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}

.ticker-content:hover { animation-play-state: paused; }

.ticker-item {
  font-size: 0.85rem;
  font-family: var(--font-ui);
  color: var(--color-secondary);
  font-weight: 600;
  padding-right: var(--space-xl);
  position: relative;
}

.ticker-item::after {
  content: '◆';
  color: var(--color-primary);
  font-size: 0.5rem;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===========================
   NAVIGATION
=========================== */
.main-nav {
  background: var(--color-secondary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  align-items: stretch;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: block;
  color: #e8e8e8;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 14px 16px;
  transition: background 0.15s, color 0.15s;
  text-transform: uppercase;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  background: var(--color-primary);
  color: #fff;
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  min-width: 200px;
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  z-index: 200;
}

.nav-menu > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--color-text);
  font-family: var(--font-ui);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.1s;
}

.sub-menu li a:hover { background: var(--color-bg); color: var(--color-primary); }

.nav-search { padding: 10px var(--space-md); }
.nav-search input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 6px 10px;
  font-size: 0.8rem;
  width: 160px;
  outline: none;
  transition: background 0.2s;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.5); }
.nav-search input:focus { background: rgba(255,255,255,0.2); width: 200px; }

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

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-secondary);
    padding-bottom: var(--space-sm);
  }
  .nav-menu.active { display: flex; }
  .nav-menu > li > a { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-search { display: none; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; background: rgba(0,0,0,0.2); }
  .sub-menu li a { color: #ccc; border-bottom-color: rgba(255,255,255,0.05); }
}

/* ===========================
   HERO / FEATURED SECTION
=========================== */
.hero-section { padding: var(--space-xl) 0 var(--space-lg); }

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-md);
}

.hero-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.hero-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-main:hover img { transform: scale(1.02); }

.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,10,20,0.92) 0%, rgba(10,10,20,0.4) 60%, transparent 100%);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
}

.hero-overlay .category-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: var(--space-sm);
  font-family: var(--font-ui);
}

.hero-overlay h2 {
  color: #fff;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.hero-overlay h2 a { color: #fff; }
.hero-overlay h2 a:hover { color: #f0c0bb; }

.hero-meta {
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-family: var(--font-ui);
}

.hero-meta .author { color: rgba(255,255,255,0.9); font-weight: 600; }

/* Hero side cards */
.hero-side { display: flex; flex-direction: column; gap: var(--space-md); }

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  flex: 1;
}

.hero-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s;
}

.hero-card:hover img { transform: scale(1.03); }

.hero-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,10,20,0.88) 0%, transparent 100%);
  padding: var(--space-lg) var(--space-md) var(--space-md);
}

.hero-card-overlay .category-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  margin-bottom: var(--space-xs);
  font-family: var(--font-ui);
}

.hero-card-overlay h3 {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.3;
}

.hero-card-overlay h3 a { color: #fff; }
.hero-card-overlay h3 a:hover { color: #f0c0bb; }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-main { grid-row: auto; }
  .hero-main img { height: 280px; }
  .hero-card img { height: 180px; }
}

/* ===========================
   CATEGORY SECTION
=========================== */
.category-section { padding: var(--space-lg) 0; border-top: 1px solid var(--color-border); }

.category-section + .category-section { border-top: 1px solid var(--color-border); }

/* Article Grid — 4 columns */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* Featured + 3 small */
.articles-grid.layout-featured {
  grid-template-columns: 2fr 1fr 1fr;
}

@media (max-width: 1000px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid.layout-featured { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
  .articles-grid.layout-featured { grid-template-columns: 1fr; }
}

/* ===========================
   ARTICLE CARD
=========================== */
.article-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.article-card-thumb {
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
}

.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-thumb img { transform: scale(1.04); }

.article-card-thumb .category-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  font-family: var(--font-ui);
  border-radius: 2px;
}

.article-card-body { padding: var(--space-md); }

.article-card-body h3 {
  font-size: 0.98rem;
  line-height: 1.35;
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-body h3 a:hover { color: var(--color-primary); }

.article-card-excerpt {
  font-size: 0.83rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  flex-wrap: wrap;
}

.article-meta .author { font-weight: 600; color: var(--color-text); }
.article-meta .sep { color: var(--color-border); }
.article-meta .views { color: var(--color-primary); }

/* Featured card (large) */
.article-card.featured .article-card-thumb { aspect-ratio: 4/3; }
.article-card.featured h3 { font-size: 1.2rem; -webkit-line-clamp: 4; }
.article-card.featured .article-card-excerpt { -webkit-line-clamp: 3; }

/* List-style card */
.article-card-list {
  display: flex;
  gap: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: var(--space-sm);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-sm);
  transition: box-shadow 0.2s;
}
.article-card-list:hover { box-shadow: var(--shadow-card-hover); }
.article-card-list .thumb { width: 100px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; }
.article-card-list .thumb img { width: 100%; height: 72px; object-fit: cover; }
.article-card-list .body { flex: 1; min-width: 0; }
.article-card-list .body h4 { font-size: 0.85rem; line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-list .body h4 a:hover { color: var(--color-primary); }
.article-card-list .body .article-meta { font-size: 0.68rem; }

/* ===========================
   SIDEBAR
=========================== */
.widget-sidebar { min-width: 0; }

.widget {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-lg);
}

.widget-header {
  background: var(--color-secondary);
  color: #fff;
  padding: 10px var(--space-md);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-left: 4px solid var(--color-primary);
}

.widget-body { padding: var(--space-md); }

/* Popular posts widget */
.popular-post-item {
  display: flex;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}
.popular-post-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.popular-post-item .rank {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-border);
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
  padding-top: 2px;
}
.popular-post-item .info h4 { font-size: 0.83rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.popular-post-item .info h4 a:hover { color: var(--color-primary); }
.popular-post-item .info .meta { font-size: 0.68rem; color: var(--color-text-muted); font-family: var(--font-ui); margin-top: 2px; }

/* Category list widget */
.category-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-family: var(--font-ui);
}
.category-list-item:last-child { border-bottom: none; }
.category-list-item a:hover { color: var(--color-primary); }
.category-list-item .count {
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Tags cloud widget */
.tags-cloud { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.tag-pill {
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid var(--color-border);
  font-family: var(--font-ui);
  transition: all 0.15s;
}
.tag-pill:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ===========================
   SINGLE POST
=========================== */
.post-header { margin-bottom: var(--space-xl); }
.post-header .category-badge { margin-bottom: var(--space-sm); }
.post-header h1 { margin-bottom: var(--space-md); line-height: 1.2; }
.post-header .post-meta { display: flex; flex-wrap: wrap; gap: var(--space-md); font-size: 0.8rem; font-family: var(--font-ui); color: var(--color-text-muted); padding: var(--space-md) 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-lg); }
.post-header .post-meta strong { color: var(--color-text); }

.post-featured-image { border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-lg); }
.post-featured-image img { width: 100%; max-height: 520px; object-fit: cover; }
.post-featured-image figcaption { font-size: 0.75rem; color: var(--color-text-muted); padding: var(--space-sm) var(--space-md); background: var(--color-surface-alt); font-family: var(--font-ui); font-style: italic; }

.post-content { font-size: 1rem; line-height: 1.8; color: var(--color-text); }
.post-content p { margin-bottom: var(--space-lg); }
.post-content h2, .post-content h3 { margin: var(--space-xl) 0 var(--space-md); }
.post-content ul, .post-content ol { padding-left: var(--space-xl); margin-bottom: var(--space-lg); }
.post-content li { margin-bottom: var(--space-xs); }
.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-surface-alt);
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.post-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.post-content img { border-radius: var(--radius-md); margin: var(--space-lg) 0; }

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.share-bar .label { font-size: 0.78rem; font-weight: 700; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: var(--font-ui);
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.share-btn:hover { opacity: 0.88; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #14171A; }
.share-btn.whatsapp { background: #25D366; }

/* ===========================
   RELATED POSTS
=========================== */
.related-posts { margin-top: var(--space-2xl); }
.related-posts h3 { font-size: 1rem; font-family: var(--font-ui); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-secondary); margin-bottom: var(--space-lg); padding-bottom: var(--space-sm); border-bottom: 3px solid var(--color-primary); }
.related-posts .articles-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .related-posts .articles-grid { grid-template-columns: 1fr; } }

/* ===========================
   PAGINATION
=========================== */
.pagination {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  padding: var(--space-xl) 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-ui);
  background: var(--color-surface);
  transition: all 0.15s;
}
.pagination a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pagination .current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; font-weight: 700; }

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--color-secondary);
  color: #ccc;
  margin-top: var(--space-2xl);
}

.footer-top {
  padding: var(--space-2xl) 0 var(--space-xl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .footer-logo {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: var(--space-md);
}
.footer-brand .footer-logo span { color: var(--color-primary); }
.footer-brand p { font-size: 0.83rem; line-height: 1.7; color: #aaa; max-width: 260px; }

.footer-widget h4 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
}

.footer-menu li { margin-bottom: 8px; }
.footer-menu a { font-size: 0.83rem; color: #aaa; transition: color 0.15s; }
.footer-menu a:hover { color: #fff; }

.social-links { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-md); }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: #ccc;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}
.social-link:hover { background: var(--color-primary); color: #fff; }

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 0.75rem; color: #777; }
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: #fff; }

/* ===========================
   UTILITIES
=========================== */
.category-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  font-family: var(--font-ui);
  margin-bottom: var(--space-xs);
}

.category-badge.politics { background: #2980B9; }
.category-badge.business { background: #27AE60; }
.category-badge.sports   { background: #8E44AD; }
.category-badge.tech     { background: #16A085; }
.category-badge.health   { background: #E67E22; }
.category-badge.world    { background: #2C3E50; }

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-ui);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  float: right;
  margin-top: -36px;
}
.view-all-link:hover { background: var(--color-primary); color: #fff; }

.section-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--space-lg); }
.section-header .section-title { margin-bottom: 0; }

/* Screen reader text */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); -webkit-clip-path: inset(50%);
  clip-path: inset(50%); height: 1px; overflow: hidden; padding: 0; position: absolute;
  width: 1px; word-wrap: normal !important;
}

/* Clearfix */
.clearfix::after { content: ''; display: table; clear: both; }
