/*
Theme Name: Prime Chhattisgarh 24
Theme URI: https://primechhattisgarh24.com
Author: Prime Chhattisgarh 24
Author URI: https://primechhattisgarh24.com
Description: Prime Chhattisgarh 24 - छत्तीसगढ़ का नंबर 1 हिंदी न्यूज़ पोर्टल। Professional Hindi news portal theme with breaking news ticker, hero layout, category sections, sidebar widgets and full responsive design.
Version: 2.0.0
Requires at least: 5.5
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: pc24
Tags: news, hindi, blog, two-columns, right-sidebar, custom-menu, featured-images, custom-logo, custom-header, threaded-comments, translation-ready, responsive-layout
*/

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

:root {
  --red:        #cc0000;
  --dark-red:   #a30000;
  --black:      #111111;
  --dark-bg:    #1c1c1c;
  --gray-bg:    #f5f5f5;
  --border:     #e0e0e0;
  --white:      #ffffff;
  --text:       #1e1e1e;
  --muted:      #666666;
  --accent:     #e8b800;
  --shadow:     0 2px 8px rgba(0,0,0,0.10);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Devanagari', 'Noto Sans', 'Roboto', sans-serif;
  background: var(--gray-bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ================================================
   LAYOUT CONTAINER
   ================================================ */
.pc24-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ================================================
   TOP BAR
   ================================================ */
.pc24-topbar {
  background: var(--black);
  border-bottom: 2px solid var(--red);
  padding: 5px 0;
  font-size: 12px;
  color: #bbb;
}
.pc24-topbar .tb-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.tb-date { color: #999; letter-spacing: .3px; }
.tb-social a {
  color: #bbb;
  margin-left: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: color .2s;
}
.tb-social a:hover { color: var(--accent); }

/* ================================================
   BREAKING NEWS TICKER
   ================================================ */
.pc24-breaking {
  background: var(--red);
  display: flex;
  align-items: center;
  height: 36px;
  overflow: hidden;
}
.breaking-badge {
  background: var(--dark-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.ticker-outer { overflow: hidden; flex: 1; position: relative; }
.ticker-inner {
  display: inline-flex;
  white-space: nowrap;
  animation: pc24-ticker 45s linear infinite;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-inner a {
  color: #fff;
  margin-right: 70px;
  font-size: 13px;
}
.ticker-inner a::before { content: "◆ "; font-size: 8px; opacity: .7; margin-right: 4px; }
.ticker-inner a:hover { color: var(--accent); }
@keyframes pc24-ticker {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ================================================
   SITE HEADER
   ================================================ */
.pc24-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  padding: 14px 0;
  box-shadow: var(--shadow);
}
.pc24-header .hd-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-branding { display: flex; align-items: center; gap: 14px; }
.custom-logo-link img { max-height: 72px; width: auto; }
.site-name-wrap a.site-name {
  font-family: 'Noto Serif Devanagari', 'Noto Serif', Georgia, serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
  display: block;
  line-height: 1.1;
  letter-spacing: -.5px;
}
.site-name-wrap a.site-name:hover { color: var(--dark-red); }
.site-tagline {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}
/* Header search */
.header-search-form {
  display: flex;
  border: 2px solid var(--red);
  border-radius: 4px;
  overflow: hidden;
}
.header-search-form input[type="search"] {
  border: none;
  outline: none;
  padding: 8px 14px;
  font-size: 13px;
  width: 210px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.header-search-form button {
  background: var(--red);
  border: none;
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-size: 16px;
  transition: background .2s;
}
.header-search-form button:hover { background: var(--dark-red); }

/* ================================================
   PRIMARY NAVIGATION
   ================================================ */
.pc24-navbar {
  background: var(--dark-bg);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.pc24-navbar .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px 16px;
  font-size: 18px;
  cursor: pointer;
  font-weight: 700;
  width: 100%;
  text-align: left;
}

/* Menu */
#pc24-menu { display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
#pc24-menu > li { position: relative; }
#pc24-menu > li > a {
  display: block;
  color: #e8e8e8;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  border-right: 1px solid rgba(255,255,255,.07);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
#pc24-menu > li:first-child > a {
  background: var(--red);
  color: #fff;
}
#pc24-menu > li > a:hover,
#pc24-menu > li.current-menu-item > a,
#pc24-menu > li.current-menu-parent > a,
#pc24-menu > li.current-menu-ancestor > a {
  background: var(--red);
  color: #fff !important;
}
/* Dropdown */
#pc24-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #222;
  min-width: 200px;
  border-top: 3px solid var(--red);
  z-index: 1000;
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
  padding: 4px 0;
}
#pc24-menu li:hover > .sub-menu { display: block; }
#pc24-menu .sub-menu li a {
  display: block;
  padding: 9px 16px;
  font-size: 12.5px;
  color: #ccc;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-weight: 600;
  transition: background .2s, color .2s, padding-left .2s;
}
#pc24-menu .sub-menu li a:hover {
  background: var(--red);
  color: #fff;
  padding-left: 22px;
}

/* ================================================
   PAGE LAYOUT
   ================================================ */
.pc24-main { padding: 22px 0 30px; }
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 24px;
  align-items: start;
}

/* ================================================
   HERO SECTION
   ================================================ */
.pc24-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  margin-bottom: 26px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}
.hero-lead {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  display: block;
}
.hero-lead img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform .5s ease;
}
.hero-lead:hover img { transform: scale(1.04); }

.hero-sub {
  position: relative;
  overflow: hidden;
  display: block;
}
.hero-sub img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  transition: transform .5s ease;
}
.hero-sub:hover img { transform: scale(1.04); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.2) 55%, transparent 100%);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-cat {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 5px;
  width: fit-content;
}
.hero-overlay h2 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.hero-lead .hero-overlay h2 { font-size: 20px; }
.hero-overlay .hero-time {
  color: rgba(255,255,255,.65);
  font-size: 11px;
  margin-top: 4px;
}

/* ================================================
   SECTION TITLE
   ================================================ */
.pc24-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 9px;
  border-bottom: 2.5px solid var(--red);
}
.pc24-section-title h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .6px;
  white-space: nowrap;
}
.pc24-section-title h2 span { font-size: 14px; margin-right: 6px; }
.section-title-line { flex: 1; height: 1px; background: var(--border); }
.section-see-all {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s;
}
.section-see-all:hover { color: var(--red); }

/* ================================================
   NEWS CARD GRID (3-col)
   ================================================ */
.pc24-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.pc24-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .25s, transform .25s;
  display: block;
}
.pc24-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  color: inherit;
}
.card-img-wrap { position: relative; overflow: hidden; }
.card-img-wrap img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  transition: transform .45s ease;
}
.pc24-card:hover .card-img-wrap img { transform: scale(1.06); }
.card-cat-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.card-body { padding: 11px 13px 13px; }
.card-body h3 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--black);
  margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc24-card:hover .card-body h3 { color: var(--red); }
.card-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ================================================
   NEWS LIST (horizontal cards)
   ================================================ */
.pc24-list-wrap { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pc24-list-item {
  display: flex;
  gap: 12px;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.pc24-list-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.pc24-list-item .li-img {
  width: 110px;
  min-width: 110px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}
.li-content {
  padding: 8px 12px 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.li-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 1px 7px;
  border-radius: 20px;
  margin-bottom: 4px;
  text-transform: uppercase;
  width: fit-content;
}
.li-content h3 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc24-list-item:hover .li-content h3 { color: var(--red); }
.li-meta { font-size: 11px; color: var(--muted); }

/* ================================================
   SIDEBAR
   ================================================ */
.pc24-sidebar { display: flex; flex-direction: column; gap: 20px; }
.pc24-widget {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pc24-widget .widget-head {
  background: var(--red);
  color: #fff;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pc24-widget .widget-content { padding: 14px; }

/* Popular list */
.popular-posts { display: flex; flex-direction: column; gap: 0; }
.pp-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.pp-item:last-child { border-bottom: none; padding-bottom: 0; }
.pp-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--red);
  opacity: .18;
  line-height: 1;
  min-width: 28px;
  flex-shrink: 0;
}
.pp-info h4 { font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--black); }
.pp-info h4:hover { color: var(--red); }
.pp-info .pp-meta { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* Category widget */
.cat-list-widget { padding: 0; }
.cat-list-widget li { border-bottom: 1px solid var(--border); }
.cat-list-widget li:last-child { border-bottom: none; }
.cat-list-widget a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: color .2s, background .2s, padding-left .2s;
}
.cat-list-widget a:hover { color: var(--red); background: #fff5f5; padding-left: 20px; }
.cat-list-widget .ccount {
  background: #f0f0f0;
  border-radius: 20px;
  padding: 1px 9px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  min-width: 28px;
  text-align: center;
}

/* Sidebar recent posts */
.sb-recent { display: flex; flex-direction: column; gap: 0; }
.sb-post {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.sb-post:last-child { border-bottom: none; padding-bottom: 0; }
.sb-post img { width: 72px; height: 54px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.sb-post-info h5 { font-size: 12px; font-weight: 700; line-height: 1.35; color: var(--black); }
.sb-post-info h5:hover { color: var(--red); }
.sb-post-info .sb-time { font-size: 10.5px; color: var(--muted); margin-top: 3px; }

/* Ad widget */
.ad-widget {
  background: #f8f8f8;
  border: 2px dashed #ddd;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 260px;
  color: #bbb;
  text-align: center;
  padding: 20px;
}
.ad-widget .ad-icon { font-size: 36px; opacity: .35; }
.ad-widget p { font-size: 12px; font-weight: 600; }
.ad-widget small { font-size: 11px; color: #ccc; }

/* ================================================
   SINGLE POST
   ================================================ */
.single-article {
  background: var(--white);
  border-radius: 6px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.single-article .s-cat { margin-bottom: 8px; }
.single-article .s-cat span {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}
.single-article h1.entry-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 12px;
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.entry-meta span { display: flex; align-items: center; gap: 4px; }
.entry-meta a { color: var(--muted); }
.entry-meta a:hover { color: var(--red); }
.post-thumbnail { margin-bottom: 20px; border-radius: 5px; overflow: hidden; }
.post-thumbnail img { width: 100%; max-height: 420px; object-fit: cover; }
.entry-content { font-size: 15px; line-height: 1.85; color: #2a2a2a; }
.entry-content p { margin-bottom: 16px; }
.entry-content h2 { font-size: 20px; font-weight: 700; margin: 22px 0 10px; }
.entry-content h3 { font-size: 17px; font-weight: 700; margin: 18px 0 8px; }
.entry-content img { border-radius: 5px; margin: 12px 0; }
.entry-content blockquote {
  border-left: 4px solid var(--red);
  background: #fff5f5;
  padding: 12px 18px;
  margin: 18px 0;
  font-style: italic;
  color: #444;
  border-radius: 0 4px 4px 0;
}
.post-tags { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.post-tags strong { color: var(--muted); font-size: 12px; }
.post-tags a {
  display: inline-block;
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  margin: 3px 2px;
  color: var(--text);
  transition: all .2s;
}
.post-tags a:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Post nav */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.post-nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  max-width: 48%;
  display: block;
}
.post-nav a:hover { color: var(--dark-red); }

/* ================================================
   PAGINATION
   ================================================ */
.pc24-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 0 10px;
}
.pc24-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all .2s;
}
.pc24-pagination .page-numbers:hover,
.pc24-pagination .page-numbers.current {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* ================================================
   COMMENTS
   ================================================ */
.comments-area {
  background: var(--white);
  border-radius: 6px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-top: 20px;
}
.comments-area .comments-title { font-size: 16px; font-weight: 800; color: var(--red); margin-bottom: 18px; }
.comment-body { border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 14px; }
.comment-author { font-weight: 700; font-size: 13px; }
.comment-metadata { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.comment-content p { font-size: 13.5px; line-height: 1.65; }
.comment-form input, .comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 10px;
  outline: none;
  transition: border-color .2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--red); }
.comment-form textarea { height: 100px; resize: vertical; }
.comment-form .submit {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.comment-form .submit:hover { background: var(--dark-red); }

/* ================================================
   FOOTER
   ================================================ */
.pc24-footer {
  background: #181818;
  color: #aaa;
  margin-top: 36px;
}
.footer-widgets {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 44px 0 32px;
  border-bottom: 1px solid #2c2c2c;
}
.fw-brand .brand-name {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--red);
  display: block;
  margin-bottom: 10px;
}
.fw-brand p { font-size: 13px; line-height: 1.75; color: #888; }
.fw-brand .footer-social { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.fw-brand .footer-social a {
  display: inline-block;
  background: #2a2a2a;
  color: #ccc;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.fw-brand .footer-social a:hover { background: var(--red); color: #fff; }
.fw-col h3 {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.fw-col ul { list-style: none; }
.fw-col ul li { margin-bottom: 8px; }
.fw-col ul a {
  color: #888;
  font-size: 13px;
  transition: color .2s, padding-left .2s;
}
.fw-col ul a::before { content: "›"; color: var(--red); margin-right: 6px; }
.fw-col ul a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
  text-align: center;
  padding: 18px 0;
  font-size: 12px;
  color: #4a4a4a;
  border-top: 1px solid #1e1e1e;
}
.footer-bottom a { color: var(--red); }
.footer-bottom a:hover { color: #ff4444; }

/* ================================================
   ARCHIVE / CATEGORY PAGE
   ================================================ */
.archive-header {
  background: var(--white);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 20px;
  border-left: 5px solid var(--red);
  box-shadow: var(--shadow);
}
.archive-header h1 { font-size: 20px; font-weight: 800; color: var(--red); }
.archive-header .arch-desc { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ================================================
   404 PAGE
   ================================================ */
.notfound-wrap {
  background: var(--white);
  border-radius: 6px;
  padding: 60px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.notfound-wrap .nf-code {
  font-size: 80px;
  font-weight: 900;
  color: var(--red);
  opacity: .2;
  line-height: 1;
  margin-bottom: 10px;
}
.notfound-wrap h1 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.notfound-wrap p { color: var(--muted); margin-bottom: 24px; }
.btn-home {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 11px 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s;
}
.btn-home:hover { background: var(--dark-red); color: #fff; }

/* ================================================
   SEARCH PAGE
   ================================================ */
.search-header { margin-bottom: 20px; }
.search-header h1 { font-size: 18px; font-weight: 800; color: var(--text); }
.search-header h1 em { color: var(--red); font-style: normal; }
.search-header p { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ================================================
   SCROLLBAR
   ================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ================================================
   FOOTER SOCIAL ICONS — proper styled buttons
   ================================================ */
.footer-social-icons {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-social-icons a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: transform .2s, opacity .2s, box-shadow .2s;
  letter-spacing: .3px;
}
.footer-social-icons a:hover {
  transform: translateY(-2px);
  opacity: .9;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  color: #fff;
}
.footer-social-icons a svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  flex-shrink: 0;
}
.social-fb   { background: #1877f2; }
.social-tw   { background: #000000; }
.social-ig   { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-yt   { background: #ff0000; }
.social-wa   { background: #25d366; }
.social-tg   { background: #229ed9; }

/* ================================================
   SIDEBAR — COMPLETE WIDGET STYLING
   Overrides ALL WordPress default widget styles
   ================================================ */

/* Every widget box */
#sidebar .pc24-widget,
#sidebar > div,
.pc24-sidebar .pc24-widget,
.pc24-sidebar > div {
  background: #fff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.09) !important;
  margin-bottom: 22px !important;
  border: none !important;
  padding: 0 !important;
}

/* Widget title — RED header bar */
#sidebar .widget-title,
#sidebar h2, #sidebar h3,
.pc24-sidebar .widget-title,
.pc24-sidebar h2,
.pc24-sidebar h3 {
  background: var(--red) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 11px 16px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: .6px !important;
  font-family: 'Noto Sans Devanagari', sans-serif !important;
  line-height: 1.4 !important;
}

/* Widget content area */
#sidebar .widget-content,
.pc24-sidebar .widget-content {
  padding: 6px 0 !important;
}

/* ── All ul/li inside widgets ── */
#sidebar ul,
.pc24-sidebar ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#sidebar ul li,
.pc24-sidebar ul li {
  list-style: none !important;
  border-bottom: 1px solid #f2f2f2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#sidebar ul li:last-child,
.pc24-sidebar ul li:last-child {
  border-bottom: none !important;
}

#sidebar ul li a,
.pc24-sidebar ul li a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #222 !important;
  text-decoration: none !important;
  transition: color .18s, background .18s, padding-left .18s !important;
  line-height: 1.4 !important;
}

#sidebar ul li a:hover,
.pc24-sidebar ul li a:hover {
  color: var(--red) !important;
  background: #fff8f8 !important;
  padding-left: 22px !important;
}

/* Red arrow before each item */
#sidebar ul li a::before,
.pc24-sidebar ul li a::before {
  content: "›" !important;
  color: var(--red) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

/* Post count badge (categories, archives) */
#sidebar ul li a .post-count,
#sidebar ul li .post-count,
.pc24-sidebar ul li a .post-count {
  background: #f0f0f0 !important;
  color: #888 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 1px 8px !important;
  border-radius: 20px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

/* ── SEARCH WIDGET ── */
#sidebar .widget_search form,
#sidebar .widget_search .search-form,
.pc24-sidebar .widget_search form {
  display: flex !important;
  padding: 12px 14px !important;
  gap: 0 !important;
  margin: 0 !important;
}

#sidebar .widget_search input[type="search"],
#sidebar .widget_search .search-field,
.pc24-sidebar .widget_search input[type="search"] {
  flex: 1 !important;
  border: 2px solid var(--red) !important;
  border-right: none !important;
  border-radius: 5px 0 0 5px !important;
  padding: 9px 12px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  outline: none !important;
  background: #fff !important;
  color: #222 !important;
}

#sidebar .widget_search input[type="submit"],
#sidebar .widget_search .search-submit,
.pc24-sidebar .widget_search input[type="submit"] {
  background: var(--red) !important;
  color: #fff !important;
  border: 2px solid var(--red) !important;
  border-radius: 0 5px 5px 0 !important;
  padding: 9px 14px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  transition: background .2s !important;
}

#sidebar .widget_search input[type="submit"]:hover {
  background: var(--dark-red) !important;
}

/* ── RECENT POSTS — with thumbnail if available ── */
#sidebar .widget_recent_entries ul li a,
.pc24-sidebar .widget_recent_entries ul li a {
  white-space: normal !important;
  line-height: 1.4 !important;
}

/* ── TAG CLOUD ── */
#sidebar .widget_tag_cloud .tagcloud,
.pc24-sidebar .widget_tag_cloud .tagcloud {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  padding: 12px 14px !important;
}

#sidebar .widget_tag_cloud .tagcloud a,
.pc24-sidebar .widget_tag_cloud .tagcloud a {
  display: inline-block !important;
  background: #f5f5f5 !important;
  border: 1px solid #ddd !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  color: #444 !important;
  font-weight: 600 !important;
  transition: all .2s !important;
  margin: 0 !important;
  flex: none !important;
  justify-content: center !important;
}

#sidebar .widget_tag_cloud .tagcloud a::before,
.pc24-sidebar .widget_tag_cloud .tagcloud a::before {
  display: none !important;
}

#sidebar .widget_tag_cloud .tagcloud a:hover,
.pc24-sidebar .widget_tag_cloud .tagcloud a:hover {
  background: var(--red) !important;
  color: #fff !important;
  border-color: var(--red) !important;
  padding-left: 10px !important;
}

/* ── RECENT COMMENTS ── */
#sidebar .widget_recent_comments ul li,
.pc24-sidebar .widget_recent_comments ul li {
  font-size: 12px !important;
  line-height: 1.5 !important;
}

#sidebar .widget_recent_comments ul li a,
.pc24-sidebar .widget_recent_comments ul li a {
  display: inline !important;
  padding: 0 !important;
  font-size: 12px !important;
  background: none !important;
}

#sidebar .widget_recent_comments ul li a::before {
  display: none !important;
}

/* ── CALENDAR WIDGET ── */
#sidebar .widget_calendar table,
.pc24-sidebar .widget_calendar table {
  width: 100% !important;
  font-size: 12px !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  padding: 10px !important;
}

#sidebar .widget_calendar caption {
  font-weight: 700 !important;
  color: #fff !important;
  padding: 6px !important;
}

#sidebar .widget_calendar td,
#sidebar .widget_calendar th {
  text-align: center !important;
  padding: 4px !important;
}

#sidebar .widget_calendar td a {
  color: var(--red) !important;
  font-weight: 700 !important;
  display: inline !important;
  padding: 0 !important;
  background: none !important;
}

#sidebar .widget_calendar td a::before { display: none !important; }

/* ── TEXT / HTML WIDGET ── */
#sidebar .widget_text .textwidget,
.pc24-sidebar .widget_text .textwidget {
  padding: 12px 16px !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: #444 !important;
}

/* ── ARCHIVES DROPDOWN ── */
#sidebar .widget_archive select,
.pc24-sidebar .widget_archive select {
  width: calc(100% - 28px) !important;
  margin: 10px 14px !important;
  padding: 8px 10px !important;
  border: 2px solid #ddd !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  outline: none !important;
  color: #333 !important;
}

/* ── PARA inside widgets ── */
#sidebar .widget p,
.pc24-sidebar .widget p {
  padding: 10px 16px !important;
  font-size: 13px !important;
  color: #555 !important;
  margin: 0 !important;
  line-height: 1.65 !important;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .content-sidebar-wrap { grid-template-columns: 1fr 280px; gap: 18px; }
  .pc24-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .pc24-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .site-name-wrap a.site-name { font-size: 22px; }

  /* ── MOBILE MENU FIX ── */
  .nav-toggle { display: block; }
  .pc24-navbar .nav-wrap { flex-direction: column; align-items: stretch; }

  #pc24-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #222;
    border-top: 1px solid #333;
    max-height: 70vh;
    overflow-y: auto;
  }
  #pc24-menu.open { display: flex; }

  #pc24-menu > li {
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  #pc24-menu > li:first-child { border-top: none; }
  #pc24-menu > li > a {
    border-right: none;
    padding: 13px 18px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #pc24-menu > li:first-child > a { background: var(--red); }

  /* Submenu inside mobile - full width, indented */
  #pc24-menu .sub-menu {
    position: static !important;
    display: none !important;
    box-shadow: none;
    border-top: none;
    background: #1a1a1a;
    min-width: unset;
    width: 100%;
  }
  #pc24-menu li.sub-open > .sub-menu { display: block !important; }
  #pc24-menu .sub-menu li a {
    padding: 11px 18px 11px 32px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: 13px;
  }
  #pc24-menu .sub-menu li a:hover { padding-left: 38px; }

  /* Arrow button for submenu toggle */
  .menu-arrow {
    background: rgba(255,255,255,.08);
    border: none;
    color: #ccc;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, transform .2s;
    margin-left: auto;
  }
  .menu-arrow.open { transform: rotate(180deg); background: var(--red); }

  /* Hero fix */
  .pc24-hero { grid-template-columns: 1fr; }
  .hero-lead { grid-row: auto; }
  .hero-lead img { height: 250px; }
  .hero-sub img { height: 180px; }

  /* Footer social icons wrap */
  .footer-social-icons { gap: 8px; }
  .footer-social-icons a { padding: 7px 11px; font-size: 11px; }
}

@media (max-width: 480px) {
  .pc24-cards-grid { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; }
  .header-search-form input[type="search"] { width: 130px; }
  .tb-social { display: none; }
  .footer-social-icons a span.social-label { display: none; }
  .footer-social-icons a { padding: 9px 12px; border-radius: 50%; width: 38px; height: 38px; justify-content: center; }
}
