/*
Theme Name: Lokmanch News
Theme URI: https://thelokmanch.com
Author: Lokmanch
Author URI: https://thelokmanch.com
Description: A professional Hindi News WordPress theme for Lokmanch News — inspired by modern Indian news portals with breaking news ticker, category sections, featured stories, and responsive design.
Version: 1.0.0
Requires at least: 5.8
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: lokmanch
Tags: news, hindi, magazine, blog, responsive, custom-menu, featured-images, post-thumbnails
*/

/* ===========================
   CSS VARIABLES
=========================== */
:root {
  --primary: #c0392b;
  --primary-dark: #96281b;
  --primary-light: #e74c3c;
  --accent: #f39c12;
  --accent-dark: #d68910;
  --dark: #1a1a1a;
  --dark2: #2c2c2c;
  --dark3: #3d3d3d;
  --text: #222222;
  --text-muted: #666666;
  --text-light: #999999;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --bg: #f5f5f5;
  --bg-white: #ffffff;
  --bg-dark: #1a1a1a;
  --header-top: #1a1a1a;
  --ticker-bg: #c0392b;
  --ticker-label: #f39c12;
  --font-hindi: 'Noto Sans Devanagari', 'Mukta', sans-serif;
  --font-english: 'Roboto', 'Segoe UI', sans-serif;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --radius: 4px;
  --radius-md: 8px;
}

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

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

body {
  font-family: var(--font-hindi);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===========================
   TOP BAR
=========================== */
.top-bar {
  background: var(--header-top);
  color: #ccc;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #333;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.top-bar-left { display: flex; align-items: center; gap: 15px; }
.top-bar-date { color: #aaa; font-size: 11px; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-social { display: flex; gap: 8px; align-items: center; }
.top-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  font-size: 12px;
  transition: background 0.2s;
}
.top-social a:hover { background: var(--primary); color: #fff; }
.top-social a.fb:hover { background: #1877f2; }
.top-social a.tw:hover { background: #1da1f2; }
.top-social a.yt:hover { background: #ff0000; }
.top-social a.ig:hover { background: #e1306c; }

/* ===========================
   BREAKING NEWS TICKER
=========================== */
.breaking-news {
  background: var(--dark2);
  padding: 8px 0;
  overflow: hidden;
  border-bottom: 2px solid var(--primary);
}
.breaking-news .container { display: flex; align-items: center; gap: 0; }
.breaking-label {
  background: var(--ticker-bg);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}
.breaking-label::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 0;
  width: 0;
  height: 100%;
  border-style: solid;
  border-width: 12px 0 12px 10px;
  border-color: transparent transparent transparent var(--ticker-bg);
}
.ticker-wrap {
  flex: 1;
  overflow: hidden;
  padding-left: 20px;
}
.ticker-inner {
  display: flex;
  gap: 60px;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item {
  color: #eee;
  font-size: 13px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ticker-item::before {
  content: '●';
  color: var(--accent);
  font-size: 8px;
}
.ticker-item a:hover { color: var(--accent); }

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

/* ===========================
   MAIN HEADER
=========================== */
.site-header {
  background: var(--bg-white);
  padding: 12px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo img { max-height: 65px; width: auto; }
.site-logo .logo-text {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.site-logo .logo-text span { color: var(--dark); }
.site-logo .logo-tagline {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  letter-spacing: 1px;
}

.header-ad { flex: 1; display: flex; justify-content: center; }
.header-ad img { max-height: 80px; width: auto; }

/* ===========================
   NAVIGATION
=========================== */
.main-nav {
  background: var(--primary);
  position: sticky;
  top: 89px;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.main-nav .container { display: flex; align-items: stretch; position: relative; }

.nav-menu { display: flex; align-items: stretch; flex: 1; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
  border-right: 1px solid rgba(255,255,255,0.1);
  gap: 4px;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  background: var(--primary-dark);
  color: #fff;
}
.nav-menu > li > a .arrow { font-size: 9px; margin-left: 2px; }

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  z-index: 100;
  border-top: 3px solid var(--primary);
}
.nav-menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu .sub-menu li a {
  display: block;
  padding: 9px 16px;
  color: var(--text);
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s;
}
.nav-menu .sub-menu li a:hover {
  background: var(--primary);
  color: #fff;
  padding-left: 22px;
}

.nav-search-btn {
  background: none;
  padding: 12px 14px;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.nav-search-btn:hover { color: #fff; }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  padding: 10px 14px;
  color: #fff;
  font-size: 20px;
  align-items: center;
}

/* ===========================
   HERO / FEATURED SECTION
=========================== */
.hero-section { padding: 18px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: auto auto;
  gap: 15px;
}
.hero-main { grid-row: 1 / 3; }

/* Hero Main Post */
.hero-main-post { position: relative; border-radius: var(--radius-md); overflow: hidden; }
.hero-main-post .post-thumb {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.hero-main-post:hover .post-thumb { transform: scale(1.03); }
.hero-main-post .post-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  padding: 30px 20px 20px;
}
.hero-main-post .post-cat {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-main-post .post-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 8px;
}
.hero-main-post .post-meta { color: rgba(255,255,255,0.7); font-size: 12px; }

/* Hero Side Posts */
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.hero-side-post {
  display: flex;
  gap: 12px;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.hero-side-post:hover { box-shadow: var(--shadow-md); }
.hero-side-post .post-thumb {
  width: 110px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}
.hero-side-post .post-info {
  padding: 8px 10px 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-side-post .post-cat {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 2px;
  margin-bottom: 5px;
  font-weight: 600;
}
.hero-side-post .post-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-side-post:hover .post-title { color: var(--primary); }
.hero-side-post .post-date { font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* ===========================
   SECTION HEADERS
=========================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
}
.section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}
.section-more {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.2s;
}
.section-more:hover { background: var(--primary); color: #fff; }

/* ===========================
   NEWS SECTIONS - 3 COL GRID
=========================== */
.news-section { padding: 18px 0; background: var(--bg); }
.news-section.alt { background: var(--bg-white); }
.news-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.news-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* News Card */
.news-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card .card-img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  transition: transform 0.3s;
}
.news-card:hover .card-img { transform: scale(1.04); }
.card-img-wrap { overflow: hidden; position: relative; }
.card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 2px;
  letter-spacing: 0.3px;
}
.news-card .card-body { padding: 13px; }
.news-card .card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.news-card:hover .card-title { color: var(--primary); }
.news-card .card-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-light);
}
.card-meta .author { display: flex; align-items: center; gap: 4px; }
.card-meta .date { display: flex; align-items: center; gap: 3px; }

/* ===========================
   TOP STORIES / SIDEBAR LAYOUT
=========================== */
.two-col-section { padding: 18px 0; }
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

/* List Post */
.list-post {
  display: flex;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}
.list-post:last-child { border-bottom: none; }
.list-post .thumb {
  width: 95px;
  height: 65px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.list-post:hover .thumb { opacity: 0.88; }
.list-post-info { flex: 1; }
.list-post .cat-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 2px;
  margin-bottom: 5px;
  font-weight: 600;
}
.list-post .title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-post:hover .title { color: var(--primary); }
.list-post .meta { font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* ===========================
   SIDEBAR
=========================== */
.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}
.widget-header {
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-body { padding: 12px 15px; }
.widget-post {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}
.widget-post:last-child { border-bottom: none; }
.widget-post .thumb {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.widget-post .post-info .title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}
.widget-post:hover .post-info .title { color: var(--primary); }
.widget-post .post-info .date { font-size: 11px; color: var(--text-light); margin-top: 3px; }

/* Ad Widget */
.ad-widget {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
  text-align: center;
}
.ad-widget img { width: 100%; }
.ad-placeholder {
  background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 12px;
  height: 250px;
  border: 2px dashed #ccc;
}

/* ===========================
   CATEGORY TABS
=========================== */
.cat-tabs-section { padding: 18px 0; }
.cat-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--primary); margin-bottom: 16px; flex-wrap: wrap; }
.cat-tab {
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: all 0.2s;
  background: var(--border-light);
  border: 1px solid var(--border);
  border-bottom: none;
  margin-right: 3px;
}
.cat-tab.active, .cat-tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cat-tab-content { display: none; }
.cat-tab-content.active { display: block; }

/* ===========================
   TRENDING / TAGS
=========================== */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
.tag-item {
  background: var(--border-light);
  color: var(--text-muted);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.tag-item:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===========================
   VIDEO SECTION
=========================== */
.video-section { padding: 18px 0; background: var(--dark); }
.video-section .section-title { color: #fff; }
.video-section .section-title::before { background: var(--accent); }
.video-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
}
.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.video-card:hover img { opacity: 0.7; }
.video-thumb-wrap { position: relative; height: 180px; }
.video-grid > .video-card:first-child .video-thumb-wrap { height: 300px; }
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(192,57,43,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: transform 0.2s, background 0.2s;
}
.video-card:hover .video-play { transform: translate(-50%, -50%) scale(1.12); background: var(--primary); }
.video-card .video-info { padding: 10px; background: var(--dark2); }
.video-card .video-title {
  font-size: 13px;
  font-weight: 600;
  color: #ddd;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--dark);
  color: #ccc;
  margin-top: 20px;
}
.footer-top { padding: 40px 0 30px; border-bottom: 1px solid #333; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer-about .logo-text {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 12px;
}
.footer-about .logo-text span { color: #fff; }
.footer-about p { font-size: 13px; line-height: 1.7; color: #aaa; }
.footer-social { display: flex; gap: 8px; margin-top: 15px; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 14px;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 13px;
  color: #aaa;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before { content: '›'; color: var(--primary); font-size: 16px; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  padding: 14px 0;
  background: #111;
  font-size: 12px;
  color: #888;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: var(--primary); }

/* ===========================
   SINGLE POST
=========================== */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 20px 0;
}
.single-post .post-title-main {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--dark);
}
.single-post .post-meta-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.single-post .post-feat-img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.single-post .post-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.single-post .post-content p { margin-bottom: 16px; }
.single-post .post-content h2 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; color: var(--dark); }
.single-post .post-content h3 { font-size: 17px; font-weight: 700; margin: 20px 0 10px; color: var(--dark); }
.single-post .post-content img { border-radius: var(--radius); margin: 16px 0; }
.single-post .post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 18px;
  background: #f9f4f4;
  margin: 18px 0;
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-share {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  flex-wrap: wrap;
}
.post-share .share-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.wa { background: #25d366; }
.share-btn.tg { background: #0088cc; }

/* Related Posts */
.related-posts { padding: 20px 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ===========================
   ARCHIVE / CATEGORY PAGE
=========================== */
.archive-header {
  background: var(--primary);
  color: #fff;
  padding: 20px 0;
  margin-bottom: 20px;
}
.archive-header h1 { font-size: 24px; font-weight: 800; }
.archive-header .breadcrumb { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 5px; }
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
.archive-posts { display: flex; flex-direction: column; gap: 0; }
.pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===========================
   SEARCH
=========================== */
.search-bar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-bar-overlay.open { display: flex; }
.search-bar-inner {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 30px;
  width: 90%;
  max-width: 600px;
  position: relative;
}
.search-bar-inner input {
  width: 100%;
  padding: 13px 18px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-hindi);
  outline: none;
  transition: border-color 0.2s;
}
.search-bar-inner input:focus { border-color: var(--primary); }
.search-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
}

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

/* ===========================
   UTILITIES
=========================== */
.text-red { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }
.badge-red {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 700;
}
.badge-yellow {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 700;
}
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.load-more-btn {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 20px auto;
  padding: 11px 20px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  text-align: center;
  transition: background 0.2s;
}
.load-more-btn:hover { background: var(--primary-dark); color: #fff; }

/* ===========================
   RESPONSIVE — TABLET
=========================== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { grid-row: auto; }
  .hero-side { flex-direction: row; flex-wrap: wrap; }
  .hero-side-post { flex: 1 1 calc(50% - 6px); }
  .news-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .news-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col-layout, .single-layout, .archive-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .video-grid > .video-card:first-child .video-thumb-wrap { height: 200px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===========================
   RESPONSIVE — MOBILE
=========================== */
@media (max-width: 680px) {
  .main-nav { top: 70px; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-dark); padding: 10px 0; box-shadow: var(--shadow-lg); }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 11px 20px; }
  .nav-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; background: rgba(0,0,0,0.2); }
  .nav-menu .sub-menu li a { color: rgba(255,255,255,0.8); border-bottom-color: rgba(255,255,255,0.1); }
  .mobile-menu-toggle { display: flex; }
  .top-bar-left, .top-bar-date { display: none; }
  .site-header .container { flex-wrap: wrap; }
  .header-ad { display: none; }
  .hero-main-post .post-thumb { height: 240px; }
  .hero-main-post .post-title { font-size: 16px; }
  .hero-side { flex-direction: column; }
  .hero-side-post { flex: 1 1 100%; }
  .news-grid-3, .news-grid-4 { grid-template-columns: 1fr; }
  .news-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .top-social { gap: 5px; }
  .top-social a { width: 22px; height: 22px; font-size: 10px; }
}
