/*
Theme Name: New Nalanda Reporter 2
Theme URI: https://nalandareporter.com/
Author: Nalanda Reporter
Author URI: https://nalandareporter.com/
Description: A premium, clean and highly readable Hindi news theme for Nalanda Reporter — inspired by The Indian Express, The Wire, The Print and YouTube-style minimal card grids. Sticky white header, zero-clutter 800px article layout with Mukta / Noto Sans Devanagari fonts, WhatsApp-first social sharing, centered "और खबरें" related section with overlay category badges, author social icons, and a dark footer with red copyright bar. 100% mobile responsive.
Version: 1.0.7
Requires at least: 5.9
Tested up to: 6.7
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: nalanda-reporter
Tags: news, blog, custom-logo, custom-menu, featured-images, translation-ready, threaded-comments, block-styles, wide-blocks
*/

/* ==========================================================================
   1. DESIGN TOKENS (CSS VARIABLES)
   Change --accent below to switch the whole site's accent color.
   Deep Red  : #b91c1c   (default)
   Navy Blue : #14356b
   ========================================================================== */
:root {
  --accent: #b91c1c;            /* Deep Red accent */
  --accent-dark: #7f1010;       /* hover / pressed */
  --accent-soft: #fdeeee;       /* badge backgrounds */
  --accent-bright: #f87171;     /* accent on dark surfaces (footer) */

  --ink: #111111;               /* headlines */
  --body: #333333;              /* Dark Charcoal body text */
  --muted: #6f7377;             /* meta, captions */

  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --line: #e7e7e4;

  --footer-bg: #2e2e2e;         /* charcoal footer (ThePrint style) */
  --footer-strip: #242424;
  --footer-ink: #c9c9c9;
  --footer-dim: #a3a3a3;

  --wa: #1faa53;                /* WhatsApp */
  --fb: #1877f2;                /* Facebook */
  --x: #111111;                 /* X (Twitter) */

  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 22px rgba(15, 23, 42, .10);

  --font: 'Mukta', 'Noto Sans Devanagari', 'Nirmala UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --container: 1200px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
figure { margin: 0; }
p { margin: 0 0 1.1em; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* Mobile UX: kill legacy 300ms tap delay + tap highlight flash */
a, button, .page-numbers, .share-btn, .tag-chips a, .cat-badge {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 .5em;
  font-weight: 700;
}

ul, ol { padding-left: 1.3em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- Accessibility ---------- */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100000;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 0 0 8px 0; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection { background: rgba(185, 28, 28, .16); }

/* ==========================================================================
   3. HEADER — Clean sticky header, no top bar (Indian Express style)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(15, 23, 42, .09); }

.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 72px; position: relative;
}

/* --- Brand / logo --- */
.site-brand { display: flex; flex-direction: column; justify-content: center; }
.custom-logo { max-height: 54px; width: auto; }
.site-brand-text {
  font-size: 27px; font-weight: 800; letter-spacing: .2px;
  color: var(--ink); text-decoration: none; line-height: 1.12;
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px;
}
.site-brand-text:hover { color: var(--ink); }
.site-brand-text .brand-accent { color: var(--accent); }
.site-brand-tag {
  font-size: 11.5px; color: var(--muted); letter-spacing: .4px; margin-top: 1px;
}

/* --- Primary navigation --- */
.primary-nav { margin-left: auto; }
.nav-menu {
  display: flex; align-items: center; gap: 1px;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex; align-items: center; padding: 9px 13px;
  font-size: 15.5px; font-weight: 600; line-height: 1.4;
  color: var(--ink); text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-menu > li > a:hover { color: var(--accent); }
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a,
.nav-menu > li.current-menu-ancestor > a,
.nav-menu > li.current_page_ancestor > a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* dropdowns */
.nav-menu .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-md); list-style: none; margin: 0; padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 100;
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu .sub-menu a {
  display: block; padding: 9px 12px; border-radius: 7px;
  font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav-menu .sub-menu a:hover { background: var(--bg-soft); color: var(--accent); }

/* --- Separate Top Bar (above the header): date left, social right --- */
.topbar {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px;
}
.topbar-date {
  font-weight: 600; letter-spacing: .2px;
  display: inline-flex; align-items: center;
}
.topbar-social { display: flex; align-items: center; gap: 2px; }
.topbar-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  color: #fff; transition: background .15s ease;
}
.topbar-social a:hover { background: rgba(255, 255, 255, .18); }
.topbar-social svg { width: 15px; height: 15px; fill: currentColor; }

/* --- Header actions (search + hamburger) --- */
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }

.menu-toggle { display: none; }
.menu-toggle .i-close { display: none; }
.menu-toggle.is-active .i-open { display: none; }
.menu-toggle.is-active .i-close { display: block; }

/* --- Search panel --- */
.header-search {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 14px 0;
}
.header-search[hidden] { display: none; }

/* Search form (used in header + 404 + no-results) */
.search-form { position: relative; display: flex; }
.search-field {
  width: 100%; padding: 11px 50px 11px 16px;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 15.5px; color: var(--ink); background: #fff;
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.search-field::placeholder { color: #9a9da1; }
.search-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .12);
}
.search-submit {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.search-submit:hover { background: var(--accent-dark); }
.search-submit svg { width: 16px; height: 16px; }

/* --- Reading progress (single posts, sits at header bottom edge) --- */
.reading-progress {
  position: absolute; left: 0; bottom: -1px;
  height: 3px; width: 0;
  background: var(--accent);
  transition: width .1s linear;
  z-index: 1001;
}

/* ==========================================================================
   4. SECTION HEADINGS
   ========================================================================== */
.section-head {
  display: flex; align-items: center; gap: 12px;
  margin: 36px 0 20px;
}
.section-title {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 21px; font-weight: 800; color: var(--ink); margin: 0;
}
.section-title::before {
  content: ""; width: 5px; height: 22px;
  border-radius: 3px; background: var(--accent); flex: none;
}

/* Centered heading with flanking red lines ("और खबरें" / related) */
.related-section { margin-top: 60px; }
.related-head {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin: 0 0 28px;
}
.related-head::before,
.related-head::after {
  content: ""; height: 2px; width: min(170px, 20vw);
  background: var(--accent); flex: none;
}
.related-title {
  margin: 0; font-size: 21px; font-weight: 800;
  color: var(--ink); white-space: nowrap;
}

/* ==========================================================================
   5. POST CARDS — YouTube-style minimal grid (image + title + meta only)
   ========================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 26px;
}

.post-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;           /* subtle distinct card border */
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  overflow: hidden;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}

/* YouTube-style hover: card lifts, border deepens, thumbnail zooms */
.post-card:hover {
  transform: translateY(-4px);
  border-color: #d6dae1;
  box-shadow: 0 14px 30px rgba(16, 24, 40, .13);
}

/* strict 16:9 media box */
.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: var(--bg-soft);
}
.card-thumb {
  display: block; width: 100%; height: 100%;
  color: inherit;
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;            /* uniform crop, no stretching */
  transition: transform .35s ease;
}
.post-card:hover .card-thumb img { transform: scale(1.045); }
.thumb-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f2f2ef, #e7e7e2);
  color: #b7b7b0; font-weight: 800; font-size: 40px;
}

/* category badge overlaid on the thumbnail (bottom-left) */
.cat-badge {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .4px; line-height: 1.5;
  color: var(--accent); background: var(--accent-soft);
  text-decoration: none; transition: background .15s ease, color .15s ease;
}
.cat-badge:hover { background: var(--accent); color: #fff; }
.cat-badge--overlay {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: var(--accent); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.cat-badge--overlay:hover { background: var(--accent-dark); color: #fff; }

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; }
.card-title {
  margin: 0; font-size: 19px; font-weight: 700; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
.card-title a:hover { color: var(--accent); }

.card-meta {
  margin-top: 10px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  font-size: 13px; color: var(--muted);
}
.card-meta .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.card-meta svg { width: 13px; height: 13px; flex: none; }

/* Byline — "By AUTHOR" (related news, screenshot style) */
.meta-byline { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; }
.meta-byline .by { color: var(--muted); font-weight: 400; }
.meta-byline a { color: var(--ink); }
.meta-byline a:hover { color: var(--accent); }
.by-author {
  font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  font-size: 12.5px; color: var(--ink);
}

/* --- Hero / Lead card (magazine style — the very first post) --- */
.post-card.hero {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.15fr 1fr;
  border-radius: 10px;
}
.post-card.hero .card-media { aspect-ratio: auto; height: 100%; min-height: 340px; }
.post-card.hero .card-body { padding: 26px 30px 24px; }
.post-card.hero .card-body .cat-badge { margin-bottom: 4px; align-self: flex-start; }
.post-card.hero .card-title { font-size: 27px; line-height: 1.35; -webkit-line-clamp: 4; }
.post-card.hero .card-excerpt {
  margin: 12px 0 0; font-size: 15.5px; line-height: 1.75; color: var(--muted);
}
.post-card.hero .card-meta { margin-top: auto; padding-top: 24px; }

/* --- Homepage optional sidebar rail (ads / widgets) --- */
.home-layout.has-sidebar {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px; align-items: start;
}
.home-layout.has-sidebar .posts-grid { grid-template-columns: repeat(2, 1fr); }
.home-sidebar { position: sticky; top: 92px; display: grid; gap: 20px; }
.home-sidebar .widget {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 18px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  overflow: hidden;
}
.home-sidebar .widget-title {
  margin: 0 0 12px; font-size: 16px; font-weight: 800; color: var(--ink);
}
.home-sidebar .widget img { max-width: 100%; height: auto; }

/* --- Ad slots --- */
.ad-slot {
  margin: 20px auto; text-align: center;
  max-width: 100%; overflow: hidden;
}
.ad-slot--header { margin: 22px auto 4px; }
.ad-slot--incontent { margin: 32px auto; }
.ad-label {
  display: block; margin-bottom: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: #9aa0a6;
}

/* ==========================================================================
   6. ARCHIVE / SEARCH HEADERS, PAGINATION, EMPTY STATES
   ========================================================================== */
.site-main { padding: 0 0 30px; }

.archive-head { padding: 36px 0 4px; }
.archive-title { font-size: 30px; font-weight: 800; margin: 0 0 4px; color: var(--ink); }
.archive-title::after {
  content: ""; display: block; width: 56px; height: 4px;
  border-radius: 2px; background: var(--accent); margin-top: 10px;
}
.archive-desc { color: var(--muted); font-size: 15.5px; max-width: 680px; margin-top: 14px; }
.archive-head + .posts-section, .archive-head + .posts-grid { margin-top: 22px; }

.pagination { margin: 44px 0 10px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.page-numbers.current,
.page-numbers.current:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.no-results { text-align: center; padding: 70px 0 30px; max-width: 560px; margin: 0 auto; }
.no-results h2 { font-size: 26px; font-weight: 800; }
.no-results p { color: var(--muted); }
.no-results .search-form { margin-top: 18px; }

/* ==========================================================================
   7. SINGLE POST — zero-clutter reading experience (The Wire / The Print)
   ========================================================================== */
.single-wrap {
  max-width: 800px;           /* main article container — easy on the eyes */
  margin: 0 auto;
  padding-top: 30px;
}

.breadcrumb {
  font-size: 13.5px; color: var(--muted); margin-bottom: 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: #c4c6c9; }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

.entry-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.entry-badges .cat-badge { font-size: 13px; padding: 4px 12px; }

.entry-title {
  font-size: 36px; font-weight: 800; line-height: 1.28;
  letter-spacing: -.2px; color: var(--ink); margin: 0 0 14px;
}

.entry-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 14px; color: var(--muted);
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.entry-meta .avatar { width: 38px; height: 38px; border-radius: 50%; }
.meta-author { display: inline-flex; align-items: center; gap: 10px; }
.meta-author-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.meta-author-name a { color: var(--ink); text-decoration: none; }
.meta-author-name a:hover { color: var(--accent); }
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-item svg { width: 14px; height: 14px; flex: none; }

.single-share { margin-bottom: 22px; }

.entry-thumb { margin: 0 0 12px; }
.entry-thumb img { width: 100%; border-radius: var(--radius); }
.entry-thumb figcaption {
  font-size: 13.5px; color: var(--muted); text-align: center; padding: 10px 6px 0;
}

/* --- The article body itself --------------------------------------------- */
.entry-content {
  font-size: 19px;            /* highly readable Hindi body size   */
  line-height: 1.7;           /* generous line height              */
  color: #333333;             /* Dark Charcoal                     */
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.entry-content p { margin: 0 0 1.25em; }

.entry-content h2, .entry-content h3, .entry-content h4,
.entry-content h5, .entry-content h6 { color: var(--ink); margin: 1.7em 0 .55em; }
.entry-content h2 { font-size: 27px; font-weight: 800; line-height: 1.35; }
.entry-content h3 { font-size: 23px; font-weight: 700; }
.entry-content h4 { font-size: 20px; font-weight: 700; }

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(185, 28, 28, .4);
  transition: text-decoration-color .15s ease;
}
.entry-content a:hover { text-decoration-color: currentColor; }

.entry-content ul, .entry-content ol { margin: 0 0 1.25em; }
.entry-content li { margin-bottom: .45em; }

.entry-content img { border-radius: 8px; }
.entry-content figure { margin: 1.9em 0; }
.entry-content figcaption {
  font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px;
}

.entry-content blockquote {
  margin: 1.6em 0; padding: 18px 24px;
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 20px; line-height: 1.65; color: var(--ink);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { font-size: 15px; color: var(--muted); font-style: normal; }

.entry-content table {
  width: 100%; border-collapse: collapse; font-size: 16px;
  display: block; overflow-x: auto;
}
.entry-content th, .entry-content td {
  border: 1px solid var(--line); padding: 10px 14px; text-align: left;
}
.entry-content th { background: var(--bg-soft); font-weight: 700; }

.entry-content pre, .entry-content code {
  font-size: 15px; background: var(--bg-soft); border-radius: 8px;
}
.entry-content pre { padding: 16px 18px; overflow-x: auto; }

/* wide/block alignments inside the 800px column */
.entry-content .alignwide { width: 112%; max-width: none; margin-left: -6%; }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

/* --- Tags ---------------------------------------------------------------- */
.entry-tags { margin-top: 30px; }
.tags-label {
  display: block; font-size: 13px; font-weight: 700;
  letter-spacing: .5px; color: var(--muted); margin-bottom: 10px;
}
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chips a {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13.5px; font-weight: 600; color: var(--body); text-decoration: none;
  transition: all .15s ease;
}
.tag-chips a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ==========================================================================
   8. SOCIAL SHARE (WhatsApp prominent)
   ========================================================================== */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; color: var(--muted); margin-right: 4px;
}
.share-label svg { width: 15px; height: 15px; }

.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 8px;
  font-size: 14.5px; font-weight: 600; line-height: 1.3;
  color: #fff !important; text-decoration: none; border: 0;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.share-btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.share-btn:hover { transform: translateY(-1px); filter: brightness(.94); color: #fff; }

.share-btn.wa { background: var(--wa); padding: 9px 22px; font-weight: 700; box-shadow: 0 3px 10px rgba(31, 170, 83, .28); }
.share-btn.fb { background: var(--fb); }
.share-btn.x  { background: var(--x); }
.share-btn.tg { background: #229ed9; }

/* Bottom share box */
.share-box {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px; margin-top: 36px;
}
.share-box-title { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0; }

/* ==========================================================================
   9. AUTHOR BOX + AUTHOR SOCIAL ICONS
   ========================================================================== */
.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px; margin-top: 30px;
}
.author-box .avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.author-box-title {
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  color: var(--muted); margin: 0 0 2px; text-transform: uppercase;
}
.author-box-name { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.author-box-name a { color: inherit; text-decoration: none; }
.author-box-name a:hover { color: var(--accent); }
.author-box-desc { font-size: 14.5px; line-height: 1.65; color: var(--body); margin: 0; }

/* circular minimalist social icons under the bio */
.author-social {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 14px;
}
.author-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  color: #565b61; text-decoration: none;
  transition: background .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
}
.author-social a:hover {
  background: var(--accent); border-color: var(--accent);
  color: #fff; transform: translateY(-2px);
}
.author-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ==========================================================================
   10. RELATED NEWS GRID ("और खबरें" — screenshot style, 3 columns)
   ========================================================================== */
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 24px;
}
.related-grid .card-title { font-size: 18.5px; }

/* ==========================================================================
   11. COMMENTS
   ========================================================================== */
.comments-area {
  max-width: 800px; margin: 52px auto 0;
  padding-top: 30px; border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.comments-title { font-size: 22px; font-weight: 800; margin: 0 0 22px; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.comment-list .children { list-style: none; margin: 18px 0 0; padding-left: 26px; display: grid; gap: 18px; }

.comment-body {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
}
.comment-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  font-size: 13.5px; color: var(--muted); flex-wrap: wrap;
}
.comment-author .avatar { width: 40px; height: 40px; border-radius: 50%; }
.comment-author .fn { font-style: normal; font-weight: 700; font-size: 15px; color: var(--ink); }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-metadata a:hover { color: var(--accent); }
.comment-content { font-size: 16px; line-height: 1.65; }
.comment-content p:last-child { margin-bottom: 0; }
.reply a {
  font-size: 13.5px; font-weight: 700; color: var(--accent); text-decoration: none;
}
.reply a:hover { color: var(--accent-dark); text-decoration: underline; }
.bypostauthor > .comment-body { border-color: rgba(185, 28, 28, .35); }

.no-comments { color: var(--muted); }

.comment-respond {
  margin-top: 30px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.comment-reply-title { margin: 0 0 14px; font-size: 19px; font-weight: 800; }
.comment-form p { margin: 0 0 14px; }
.comment-form label {
  display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 9px;
  font-size: 15px; color: var(--ink); background: #fff;
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(185, 28, 28, .1);
}
.comment-form .submit {
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  padding: 12px 28px; border-radius: 9px;
  font-size: 15px; font-weight: 700;
  transition: background .15s ease;
}
.comment-form .submit:hover { background: var(--accent-dark); }
.comment-notes, .logged-in-as { font-size: 13.5px; color: var(--muted); }
.comment-navigation { margin: 10px 0 0; }
.comment-navigation .nav-previous { float: left; }
.comment-navigation .nav-next { float: right; }
.comment-navigation a { font-size: 14px; font-weight: 600; text-decoration: none; }

/* ==========================================================================
   12. PAGES
   ========================================================================== */
.page-wrap { max-width: 800px; margin: 0 auto; padding-top: 34px; }
.page-wrap .entry-title { font-size: 34px; font-weight: 800; margin-bottom: 20px; }
.page-wrap .entry-content { font-size: 18px; line-height: 1.7; }

/* ==========================================================================
   13. 404
   ========================================================================== */
.error-404 {
  max-width: 640px; margin: 0 auto; text-align: center;
  padding: 70px 0 40px;
}
.error-code {
  font-size: 96px; font-weight: 800; line-height: 1;
  color: var(--accent); margin-bottom: 6px;
}
.error-404 h1 { font-size: 28px; font-weight: 800; }
.error-404 p { color: var(--muted); }
.error-404 .search-form { margin: 22px 0 10px; }
.btn-home {
  display: inline-block; margin-top: 10px; padding: 11px 26px;
  background: var(--accent); color: #fff; border-radius: 9px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background .15s ease;
}
.btn-home:hover { background: var(--accent-dark); color: #fff; }

/* ==========================================================================
   14. FOOTER — ThePrint style: charcoal brand area, links strip,
        red copyright bar
   ========================================================================== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  margin-top: 70px;
}

/* --- Top: brand/about left + Follow Us right --- */
.footer-main { padding: 52px 0 42px; }
.footer-top {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px;
}

.footer-brand {
  display: inline-block; margin-bottom: 14px;
  font-size: 38px; font-weight: 800; line-height: 1.15;
  color: var(--accent-bright); text-decoration: none;
}
.footer-brand:hover { color: #fff; }
.footer-brand .brand-accent { color: #fff; }

.footer-about-text {
  font-size: 15px; line-height: 1.8; margin: 0 0 16px;
  color: #bdbdbd; max-width: 580px;
}
.footer-feedback { font-size: 15px; color: #bdbdbd; margin: 0 0 6px; }
.footer-feedback a { color: var(--accent-bright); font-weight: 600; text-decoration: none; }
.footer-feedback a:hover { color: #fff; text-decoration: underline; }

.footer-contact {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; gap: 9px; font-size: 14.5px; color: #bdbdbd;
}
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--accent-bright); }
.footer-contact a { color: #d6d6d6; text-decoration: none; }
.footer-contact a:hover { color: #fff; }

.footer-title {
  color: #fff; font-size: 16px; font-weight: 700;
  margin: 0 0 20px; line-height: 1.4;
}

.footer-social { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff; text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.footer-social a:hover {
  background: var(--accent-dark);
  color: #fff; transform: translateY(-3px);
}
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }

/* widgets inside footer */
.site-footer .widget { margin-bottom: 10px; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget a { color: var(--footer-ink); text-decoration: none; font-size: 15px; }
.site-footer .widget a:hover { color: #fff; }
.site-footer .widget_text .textwidget { font-size: 15px; line-height: 1.75; }

/* --- Middle: quick links strip with | separators --- */
.footer-strip { background: var(--footer-strip); padding: 15px 0; }
.footer-strip-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; row-gap: 6px;
}
.footer-strip-links li { display: flex; align-items: center; }
.footer-strip-links li + li::before {
  content: ""; width: 1px; height: 16px;
  background: #4d4d4d; margin: 0 16px; flex: none;
}
.footer-strip-links a {
  color: #d2d2d2; font-size: 14px; font-weight: 500; text-decoration: none;
  transition: color .15s ease;
}
.footer-strip-links a:hover { color: #fff; }

/* --- Bottom: red copyright bar --- */
.footer-bottom { background: var(--accent); color: #fff; padding: 13px 0; }
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 6px 24px;
  font-size: 13.5px;
}
.footer-copy a { color: #fff; text-decoration: none; }
.footer-copy a:hover { text-decoration: underline; }
.footer-legal {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 22px;
}
.footer-legal a,
.footer-legal li a {
  color: #fff; font-weight: 600; font-size: 13.5px; text-decoration: none;
}
.footer-legal a:hover,
.footer-legal li a:hover { color: #fff; text-decoration: underline; }

/* Back to top — small square on the red bar (ThePrint style) */
.backtop {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 42px; height: 42px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .4);
  background: var(--accent); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .15s ease;
}
.backtop.is-visible { opacity: 1; visibility: visible; transform: none; }
.backtop:hover { background: var(--accent-dark); }
.backtop svg { width: 18px; height: 18px; }

/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1.4fr 1fr; gap: 36px; }
  .home-layout.has-sidebar { grid-template-columns: 1fr; }
  .home-sidebar { position: static; }
}

@media (max-width: 900px) {
  /* --- mobile navigation --- */
  .menu-toggle { display: inline-flex; }
  .post-card.hero { grid-template-columns: 1fr; }
  .post-card.hero .card-media { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .post-card.hero .card-title { font-size: 23px; }
  .post-card.hero .card-meta { padding-top: 16px; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .primary-nav.is-open { display: block; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 16px; }
  .nav-menu > li > a {
    padding: 13px 10px; font-size: 16.5px; min-height: 48px;
    border-bottom: 1px solid var(--line); border-left: 3px solid transparent;
    border-radius: 0;
  }
  .nav-menu > li > a:hover { border-bottom-color: var(--line); }
  .nav-menu > li.current-menu-item > a,
  .nav-menu > li.current_page_item > a,
  .nav-menu > li.current-menu-ancestor > a,
  .nav-menu > li.current_page_ancestor > a {
    border-bottom-color: var(--line);
    border-left-color: var(--accent);
  }
  .nav-menu .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0;
    padding: 2px 0 10px 26px; display: block;
  }
  .nav-menu .sub-menu a { padding: 8px 0; font-size: 15px; }
  .sub-menu li { border-top: 1px dashed var(--line); }
  .sub-menu li:first-child { border-top: 0; }

  .site-brand-text { font-size: 22px; }
  .custom-logo { max-height: 44px; }

  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .header-inner { min-height: 62px; gap: 10px; }
  .entry-title { font-size: 28px; }
  .archive-title { font-size: 26px; }
  .footer-top { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 600px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .posts-grid { grid-template-columns: 1fr; gap: 28px; }
  .related-grid { grid-template-columns: 1fr; gap: 26px; }
  .related-head::before, .related-head::after { width: 14vw; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .entry-title { font-size: 25px; }
  .entry-meta { gap: 10px; row-gap: 6px; }
  .share-row .share-btn { padding: 8px 14px; }
  .share-btn.wa { padding: 9px 18px; }
  .share-box { padding: 14px 16px; }
  .author-box { padding: 18px; gap: 14px; }
  .author-box .avatar { width: 54px; height: 54px; }
  .single-wrap { padding-top: 22px; }
  .backtop { right: 14px; bottom: 14px; }
  .related-section { margin-top: 48px; }
  .card-title { font-size: 18px; }
  .post-card.hero .card-body { padding: 18px; }
  .post-card.hero .card-title { font-size: 21px; }

  /* --- Mobile-friendliness: 44px+ tap targets, readable text --- */
  .icon-btn { width: 44px; height: 44px; }
  .search-field { font-size: 16px; }              /* prevents iOS zoom */
  .card-meta { font-size: 13.5px; }
  .card-meta .meta-item { gap: 5px; }
  .share-btn { min-height: 44px; padding: 10px 18px; }
  .share-btn.wa { padding: 10px 22px; }
  .page-numbers { min-width: 44px; height: 44px; }
  .footer-strip-links a { font-size: 15px; padding: 8px 2px; }
  .footer-social a { width: 46px; height: 46px; }
  .footer-social svg { width: 19px; height: 19px; }
  .author-social a { width: 40px; height: 40px; }
  .tag-chips a { padding: 8px 16px; }
  .cat-badge--overlay { font-size: 12.5px; padding: 4px 12px; }
  .breadcrumb { font-size: 14px; }
  .backtop { width: 46px; height: 46px; }
  .footer-legal a, .footer-legal li a { font-size: 14.5px; padding: 4px 0; }
}
