/*
Theme Name: Press Meet News India
Theme URI: https://pressmeet.in
Author: Press Meet News India
Author URI: https://pressmeet.in
Description: A professional, mobile-first Indian regional news theme with full support for National, Telangana, Andhra Pradesh district-level news, Politics, Movies, Sports, Careers, Editorial and more. Built for modern Telugu & Indian journalism.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: press-meet-news-india
Tags: news, blog, telangana, andhra-pradesh, india, regional, responsive, mobile-first, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --primary:       #c0392b;
  --primary-dark:  #96281b;
  --primary-light: #e74c3c;
  --accent:        #f39c12;
  --accent-dark:   #d68910;
  --dark:          #1a1a2e;
  --dark-mid:      #16213e;
  --dark-soft:     #0f3460;
  --text-main:     #1c1c1e;
  --text-muted:    #555;
  --text-light:    #888;
  --bg:            #f4f4f4;
  --bg-white:      #ffffff;
  --bg-card:       #ffffff;
  --border:        #e0e0e0;
  --border-dark:   #ccc;
  --link:          #c0392b;
  --link-hover:    #96281b;
  --header-bg:     #1a1a2e;
  --topbar-bg:     #0f3460;
  --nav-bg:        #c0392b;
  --footer-bg:     #1a1a2e;
  --shadow-sm:     0 1px 4px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.16);
  --radius:        4px;
  --radius-md:     8px;
  --radius-lg:     12px;
  --font-heading:  'Tiro Telugu', 'Noto Serif Telugu', Georgia, serif;
  --font-body:     'Hind', 'Noto Sans Telugu', Arial, sans-serif;
  --font-ui:       'Mukta', 'Hind', Arial, sans-serif;
  --transition:    all 0.25s ease;
}

/* ============================================
   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: 15px;
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--link-hover); }

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

ul, ol { list-style: none; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.clearfix::after { content:''; display:table; clear:both; }

/* ============================================
   TOP BAR (date, social, breaking)
   ============================================ */
#topbar {
  background: var(--topbar-bg);
  color: #fff;
  font-size: 12px;
  font-family: var(--font-ui);
  padding: 6px 0;
  border-bottom: 2px solid var(--primary);
}
#topbar .topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
#topbar .topbar-left { display: flex; align-items: center; gap: 16px; }
#topbar .topbar-date { opacity: .8; }
#topbar .topbar-right { display: flex; align-items: center; gap: 10px; }
#topbar .social-links a {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  transition: var(--transition);
}
#topbar .social-links a:hover { background: var(--primary); color: #fff; }

/* Breaking News Ticker */
.breaking-news-bar {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-family: var(--font-ui);
  padding: 6px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.breaking-news-bar .breaking-label {
  background: var(--accent);
  color: #1a1a2e;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 12px;
}
.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-content span {
  padding-right: 60px;
  opacity: .95;
}
.ticker-content span::before { content: '◆ '; font-size: 8px; vertical-align: middle; margin-right: 6px; }
@keyframes ticker-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ============================================
   HEADER
   ============================================ */
#site-header {
  background: var(--header-bg);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-logo img { max-height: 56px; width: auto; }
.site-title-wrap .site-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.site-title-wrap .site-title span { color: var(--accent); }
.site-title-wrap .site-tagline {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  font-family: var(--font-ui);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.header-ad { flex: 1; text-align: center; }
.header-ad img { max-height: 80px; margin: 0 auto; }

/* ============================================
   MAIN NAVIGATION
   ============================================ */
#main-navigation {
  background: var(--nav-bg);
  position: sticky;
  top: 88px;
  z-index: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
#primary-menu { display: flex; flex-wrap: wrap; }
#primary-menu > li { position: relative; }
#primary-menu > li > a {
  display: block;
  padding: 12px 14px;
  color: rgba(255,255,255,.92);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-ancestor > a {
  color: #fff;
  background: rgba(0,0,0,.15);
  border-bottom-color: var(--accent);
}

/* Dropdown Menus */
#primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 1000;
  max-height: 70vh;
  overflow-y: auto;
}
#primary-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#primary-menu .sub-menu li a {
  display: block;
  padding: 9px 16px;
  color: var(--text-main);
  font-size: 13px;
  font-family: var(--font-ui);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
#primary-menu .sub-menu li:last-child a { border-bottom: none; }
#primary-menu .sub-menu li a:hover { background: #fff5f5; color: var(--primary); padding-left: 22px; }

/* Third-level submenu */
#primary-menu .sub-menu .sub-menu {
  left: 100%; top: 0;
  border-top: 3px solid var(--accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search in nav */
.nav-search { padding: 8px 12px; }
.nav-search form { display: flex; }
.nav-search input {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius) 0 0 var(--radius);
  width: 160px;
  outline: none;
}
.nav-search input::placeholder { color: rgba(255,255,255,.55); }
.nav-search button {
  background: var(--accent);
  border: none;
  color: var(--dark);
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px;
  transition: var(--transition);
}
.nav-search button:hover { background: var(--accent-dark); }

/* ============================================
   LAYOUT: MAIN + SIDEBAR
   ============================================ */
#content-area {
  padding: 24px 0;
}
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.content-layout.full-width { grid-template-columns: 1fr; }

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.section-heading h2, .section-heading h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-heading);
}
.section-heading .heading-bar {
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-heading .view-all {
  margin-left: auto;
  font-size: 12px;
  color: var(--primary);
  font-family: var(--font-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.section-heading .view-all:hover { color: var(--primary-dark); }

/* ============================================
   HERO / FEATURED NEWS
   ============================================ */
.hero-section { margin-bottom: 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px;
  background: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.hero-main { grid-row: 1 / span 2; position: relative; }
.hero-secondary-1, .hero-secondary-2 { }
.hero-item { position: relative; overflow: hidden; }
.hero-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-main { min-height: 420px; }
.hero-secondary-1, .hero-secondary-2 { min-height: 207px; }
.hero-item:hover img { transform: scale(1.04); }
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 24px 16px 16px;
}
.hero-main .hero-overlay { padding: 40px 20px 20px; }
.hero-cat-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 6px;
  font-family: var(--font-ui);
}
.hero-title {
  color: #fff;
  font-size: 22px;
  line-height: 1.3;
  font-family: var(--font-heading);
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.hero-secondary-1 .hero-title,
.hero-secondary-2 .hero-title { font-size: 15px; }
.hero-meta { color: rgba(255,255,255,.7); font-size: 11px; margin-top: 6px; font-family: var(--font-ui); }

/* ============================================
   NEWS CARDS
   ============================================ */
.news-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.news-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.news-card-thumb {
  overflow: hidden;
  aspect-ratio: 16/9;
}
.news-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .news-card-thumb img { transform: scale(1.06); }

.news-card-body { padding: 12px 14px 14px; }
.news-card-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-family: var(--font-ui);
  margin-bottom: 6px;
  display: block;
}
.news-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  font-family: var(--font-heading);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-title:hover { color: var(--primary); }
.news-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-light);
  font-family: var(--font-ui);
}
.news-card-meta .author { font-weight: 600; color: var(--text-muted); }

/* List style card */
.news-list-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.news-list-item:last-child { border-bottom: none; }
.news-list-thumb {
  width: 90px;
  flex-shrink: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
}
.news-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list-body { flex: 1; }
.news-list-title {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list-title:hover { color: var(--primary); }
.news-list-meta { font-size: 11px; color: var(--text-light); margin-top: 4px; font-family: var(--font-ui); }

/* ============================================
   CATEGORY SECTIONS
   ============================================ */
.category-section {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.category-section.telangana { border-top: 3px solid #27ae60; }
.category-section.andhra    { border-top: 3px solid #2980b9; }
.category-section.national  { border-top: 3px solid var(--primary); }
.category-section.politics  { border-top: 3px solid #8e44ad; }
.category-section.movies    { border-top: 3px solid #e67e22; }
.category-section.sports    { border-top: 3px solid #16a085; }
.category-section.business  { border-top: 3px solid #2c3e50; }
.category-section.editorial { border-top: 3px solid #7f8c8d; }
.category-section.careers   { border-top: 3px solid #d35400; }
.category-section.tech      { border-top: 3px solid #1abc9c; }

/* District Tabs */
.district-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
}
.district-tab {
  font-size: 11px;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.district-tab:hover, .district-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.telangana .district-tab:hover,
.telangana .district-tab.active { background: #27ae60; border-color: #27ae60; }
.andhra .district-tab:hover,
.andhra .district-tab.active { background: #2980b9; border-color: #2980b9; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar { position: sticky; top: 140px; }
.widget {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-main);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-title::before {
  content: '';
  display: inline-block;
  width: 3px; height: 16px;
  background: var(--primary);
  border-radius: 2px;
}
/* Popular posts widget */
.popular-post-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  align-items: flex-start;
}
.popular-post-item:last-child { border-bottom: none; }
.popular-post-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--border-dark);
  flex-shrink: 0;
  line-height: 1;
  min-width: 20px;
  font-family: var(--font-ui);
}
.popular-post-title {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-heading);
  line-height: 1.4;
  color: var(--text-main);
}
.popular-post-title:hover { color: var(--primary); }

/* Category list widget */
.cat-list li {
  border-bottom: 1px solid var(--border);
}
.cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  font-size: 13px;
  font-family: var(--font-ui);
  color: var(--text-main);
  transition: var(--transition);
}
.cat-list li a:hover { color: var(--primary); padding-left: 10px; }
.cat-list .count {
  background: var(--bg);
  color: var(--text-light);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
}
/* Ad widget */
.widget-ad img { width: 100%; border-radius: var(--radius); }
.widget-ad .ad-label {
  font-size: 10px;
  color: var(--text-light);
  text-align: center;
  margin-top: 4px;
  font-family: var(--font-ui);
}
/* Social widget */
.social-count-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.social-count-item {
  padding: 12px 10px;
  border-radius: var(--radius);
  text-align: center;
  color: #fff;
  font-family: var(--font-ui);
}
.social-count-item.fb  { background: #1877f2; }
.social-count-item.tw  { background: #1da1f2; }
.social-count-item.yt  { background: #ff0000; }
.social-count-item.ig  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-count-num { font-size: 18px; font-weight: 800; display: block; }
.social-count-lbl { font-size: 10px; opacity: .85; text-transform: uppercase; letter-spacing: 1px; }

/* ============================================
   TICKER & POLL
   ============================================ */
.poll-widget .poll-question {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: 12px;
  line-height: 1.5;
}
.poll-option { margin-bottom: 10px; }
.poll-option label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-family: var(--font-ui); cursor: pointer;
}
.poll-bar {
  background: var(--bg);
  border-radius: 4px; height: 6px;
  margin-top: 4px; overflow: hidden;
}
.poll-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.6s ease;
}
.poll-btn {
  background: var(--primary);
  color: #fff; border: none;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 600;
  cursor: pointer; margin-top: 8px;
  transition: var(--transition);
}
.poll-btn:hover { background: var(--primary-dark); }

/* ============================================
   SINGLE POST
   ============================================ */
.post-header { margin-bottom: 20px; }
.post-category-list {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.post-category-badge {
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; font-family: var(--font-ui);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 2px;
}
.post-title-single {
  font-size: 30px; font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1.3; margin-bottom: 14px;
}
.post-meta-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  font-size: 12px; font-family: var(--font-ui); color: var(--text-muted);
}
.post-meta-bar .author-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.post-featured-image { margin-bottom: 20px; border-radius: var(--radius-md); overflow: hidden; }
.post-featured-image img { width: 100%; }
.post-featured-image figcaption {
  font-size: 12px; color: var(--text-light);
  text-align: center; padding: 6px;
  background: var(--bg); font-family: var(--font-ui);
  font-style: italic;
}
.entry-content {
  font-size: 16px; line-height: 1.9;
  font-family: var(--font-body); color: var(--text-main);
}
.entry-content p { margin-bottom: 18px; }
.entry-content h2 { font-size: 22px; margin: 28px 0 12px; color: var(--dark); }
.entry-content h3 { font-size: 18px; margin: 22px 0 10px; }
.entry-content blockquote {
  border-left: 4px solid var(--primary);
  background: #fff5f5;
  padding: 16px 20px;
  margin: 24px 0;
  font-style: italic;
  font-size: 17px;
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-content ul, .entry-content ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.entry-content li { margin-bottom: 6px; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content img { border-radius: var(--radius); margin: 16px 0; }

/* Share buttons */
.share-buttons { margin: 24px 0; }
.share-buttons h4 { font-size: 13px; font-family: var(--font-ui); color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.share-btn-group { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius);
  font-size: 12px; font-weight: 600; font-family: var(--font-ui);
  color: #fff; cursor: pointer; border: none; transition: var(--transition);
  text-transform: uppercase; letter-spacing: .5px;
}
.share-btn.fb  { background: #1877f2; }
.share-btn.tw  { background: #1da1f2; }
.share-btn.wa  { background: #25d366; }
.share-btn.tg  { background: #0088cc; }
.share-btn.cp  { background: var(--text-muted); }
.share-btn:hover { opacity: .85; transform: translateY(-1px); }

/* ============================================
   TAGS
   ============================================ */
.post-tags { margin: 16px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.post-tags .tags-label { font-size: 12px; font-family: var(--font-ui); color: var(--text-muted); font-weight: 600; }
.tag-badge {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px; padding: 3px 10px;
  border-radius: 20px; font-family: var(--font-ui);
  transition: var(--transition);
}
.tag-badge:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================
   RELATED POSTS
   ============================================ */
.related-posts { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--border); }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }

/* ============================================
   COMMENTS
   ============================================ */
.comments-section { margin-top: 32px; }
.comment-list .comment-item {
  display: flex; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.comment-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-body-wrap { flex: 1; }
.comment-meta { font-size: 12px; color: var(--text-light); font-family: var(--font-ui); margin-bottom: 6px; }
.comment-meta strong { color: var(--text-main); font-weight: 700; margin-right: 8px; }
.comment-text { font-size: 14px; line-height: 1.7; }

/* Comment form */
.comment-form { margin-top: 24px; }
.form-group { margin-bottom: 14px; }
.form-group label { font-size: 13px; font-family: var(--font-ui); font-weight: 600; display: block; margin-bottom: 6px; color: var(--text-muted); }
.form-group input, .form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14px;
  color: var(--text-main); background: var(--bg-white);
  transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
.form-group textarea { min-height: 100px; resize: vertical; }
.submit-btn {
  background: var(--primary); color: #fff;
  border: none; padding: 10px 28px;
  border-radius: var(--radius);
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  text-transform: uppercase; letter-spacing: .5px;
}
.submit-btn:hover { background: var(--primary-dark); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; margin: 28px 0; flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius);
  font-size: 13px; font-family: var(--font-ui); font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-main); background: var(--bg-white);
  transition: var(--transition);
}
.pagination a:hover, .pagination .current {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  font-size: 12px; font-family: var(--font-ui);
  color: var(--text-light); padding: 8px 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { color: var(--border-dark); }
.breadcrumbs .current { color: var(--text-main); }

/* ============================================
   CATEGORY ARCHIVE PAGE
   ============================================ */
.archive-header {
  background: var(--header-bg);
  color: #fff; padding: 20px 0; margin-bottom: 24px;
}
.archive-header h1 { font-size: 24px; color: #fff; }
.archive-header .count { font-size: 13px; opacity: .65; font-family: var(--font-ui); margin-top: 4px; }

/* ============================================
   404 PAGE
   ============================================ */
.error-404-wrap { text-align: center; padding: 60px 20px; }
.error-404-num { font-size: 100px; font-weight: 800; color: var(--primary); font-family: var(--font-heading); line-height: 1; }
.error-404-wrap h2 { font-size: 24px; margin: 12px 0 8px; }
.error-404-wrap p { color: var(--text-muted); margin-bottom: 20px; }

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.8);
  margin-top: 40px;
}
.footer-top {
  padding: 40px 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-widget h4 {
  color: #fff;
  font-size: 14px;
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.footer-about-text { font-size: 13px; line-height: 1.8; opacity: .75; margin-bottom: 14px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
  border-radius: 50%; font-size: 14px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a {
  color: rgba(255,255,255,.7); font-size: 13px; font-family: var(--font-ui);
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.footer-links li a::before { content: '›'; color: var(--primary); font-weight: 700; }
.footer-links li a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
  padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: 12px; font-family: var(--font-ui); opacity: .6;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: inherit; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ============================================
   BACK TO TOP
   ============================================ */
#back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 42px; height: 42px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 50%;
  cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transition: var(--transition); z-index: 999;
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============================================
   LIVE SCORE BAR (Cricket/Sports)
   ============================================ */
.score-bar {
  background: #1a1a2e;
  color: #fff;
  font-size: 12px; font-family: var(--font-ui);
  overflow: hidden; padding: 5px 0;
}
.score-bar-inner { display: flex; align-items: center; gap: 20px; animation: ticker-scroll 30s linear infinite; white-space: nowrap; }
.score-bar-item { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-right: 30px; }
.score-live-badge {
  background: #e74c3c; color: #fff; font-size: 9px; font-weight: 700;
  padding: 2px 5px; border-radius: 2px; text-transform: uppercase;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.4} }

/* ============================================
   MAGAZINE STYLE SECTION (Horizontal Scroll)
   ============================================ */
.scroll-section { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.scroll-section::-webkit-scrollbar { height: 4px; }
.scroll-section::-webkit-scrollbar-track { background: var(--bg); }
.scroll-section::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.scroll-row { display: flex; gap: 14px; }
.scroll-row .news-card { min-width: 220px; }

/* ============================================
   WEATHER WIDGET
   ============================================ */
.weather-widget { text-align: center; }
.weather-city { font-size: 13px; font-family: var(--font-ui); color: var(--text-light); }
.weather-temp { font-size: 40px; font-weight: 700; color: var(--primary); font-family: var(--font-heading); line-height: 1.1; }
.weather-desc { font-size: 13px; color: var(--text-muted); font-family: var(--font-ui); }
.weather-details { display: flex; justify-content: center; gap: 16px; margin-top: 8px; font-size: 12px; font-family: var(--font-ui); color: var(--text-light); }

/* ============================================
   RESPONSIVE — TABLET 1024px
   ============================================ */
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: 1fr 280px; }
  .hero-grid { grid-template-columns: 3fr 2fr; }
  .news-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   RESPONSIVE — TABLET 768px
   ============================================ */
@media (max-width: 768px) {
  /* Nav */
  .menu-toggle { display: flex; }
  #primary-menu {
    display: none; flex-direction: column; width: 100%;
    background: var(--dark-mid);
    position: absolute; top: 100%; left: 0; right: 0;
    box-shadow: var(--shadow-lg); z-index: 9999;
    max-height: 70vh; overflow-y: auto;
  }
  #primary-menu.open { display: flex; }
  #primary-menu > li > a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }
  #primary-menu .sub-menu {
    position: static; visibility: visible; opacity: 1;
    transform: none; box-shadow: none; border: none;
    background: rgba(0,0,0,.25); display: none;
  }
  #primary-menu li.open > .sub-menu { display: block; }
  #primary-menu .sub-menu li a { color: rgba(255,255,255,.8); padding: 10px 28px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.06); }
  #main-navigation { top: 0; position: relative; }
  #site-header { position: sticky; top: 0; }
  .nav-search { display: none; }
  .nav-inner { position: relative; }

  /* Layout */
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 260px; }
  .hero-secondary-1, .hero-secondary-2 { min-height: 160px; }

  /* Grids */
  .news-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .news-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .related-posts-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; }

  /* Header */
  .header-ad { display: none; }
  .site-title-wrap .site-title { font-size: 20px; }
}

/* ============================================
   RESPONSIVE — MOBILE 480px
   ============================================ */
@media (max-width: 480px) {
  .news-grid-3 { grid-template-columns: 1fr; }
  .news-grid-2 { grid-template-columns: 1fr; }
  .news-grid-4 { grid-template-columns: 1fr; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-title { font-size: 17px; }
  .post-title-single { font-size: 22px; }
  .hero-main { min-height: 220px; }
  #topbar .topbar-left { font-size: 11px; }
  #topbar .social-links { display: none; }
  .social-count-grid { grid-template-columns: 1fr 1fr; }
  .share-btn-group { gap: 6px; }
  .share-btn { padding: 7px 12px; font-size: 11px; }
  .district-tabs { gap: 3px; }
  .district-tab { font-size: 10px; padding: 3px 8px; }
  #back-to-top { bottom: 14px; right: 14px; width: 36px; height: 36px; font-size: 14px; }
}

/* ============================================
   DARK MODE (prefers-color-scheme)
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #121212;
    --bg-white: #1e1e1e;
    --bg-card:  #1e1e1e;
    --border:   #2d2d2d;
    --border-dark: #444;
    --text-main: #e0e0e0;
    --text-muted: #aaa;
    --text-light: #777;
  }
  #topbar { border-bottom-color: var(--primary); }
  .news-card { box-shadow: none; }
  .widget { box-shadow: none; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  #topbar, #main-navigation, .sidebar, #site-footer, .share-buttons, .breaking-news-bar, #back-to-top { display: none !important; }
  .content-layout { grid-template-columns: 1fr !important; }
  body { font-size: 12pt; color: #000; }
}
