/*
Theme Name: HindiTerminal
Theme URI: https://hinditherminal.com
Author: Your Name
Author URI: https://yoursite.com
Description: A sacred devotional blog theme with a saffron-orange color scheme, 4-column layout, AdSense integration, social media support, and full customizer control.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hinditheme
Tags: blog, custom-logo, custom-menu, featured-images, footer-widgets, responsive-layout, rtl-language-support, sticky-post, translation-ready
*/

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

:root {
  --orange:      #e85d04;
  --dark-red:    #c1121f;
  --saffron:     #f77f00;
  --navy:        #1a1a2e;
  --dark-nav:    #0f0f1a;
  --gold:        #f4a261;
  --light-bg:    #f8f5f0;
  --border:      #e0d8cc;
  --text:        #222;
  --text-light:  #555;
  --ad-bg:       #f0ece4;
  --sidebar-head:#c1121f;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans', sans-serif;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   SPONSOR BAR
   ============================================================ */
.sponsor-bar {
  background: #111;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border-bottom: 2px solid var(--saffron);
}
.sponsor-bar .label { color: #fff; font-size: 11px; white-space: nowrap; font-weight: 600; letter-spacing: .5px; }
.sponsor-divider { color: #555; font-size: 13px; }
.sponsor-name { color: #ccc; font-size: 11px; white-space: nowrap; }
.sponsor-name span { color: #fff; font-weight: 600; }
.sponsor-bar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.logo-badge { background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 2px; letter-spacing: .5px; }

/* ============================================================
   LEADERBOARD AD ZONE (728×90)
   ============================================================ */
.leaderboard-ad-zone {
  background: #f5f2ec;
  border-bottom: 1px solid var(--border);
  width: 100%;
  padding: 0;
  margin: 0;
  display: block;
  overflow: hidden;
}
.leaderboard-ad-zone .ad-placeholder {
  width: 100%;
  height: 90px;
  background: #fff;
  border: 1px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #bbb;
  letter-spacing: 1px;
}
/* Full-width: remove all constraints so AdSense fills the entire bar */
.leaderboard-ad-zone .custom-ad-html,
.leaderboard-ad-zone .custom-ad-html ins,
.leaderboard-ad-zone .custom-ad-html > * {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  position: static !important;
  box-sizing: border-box !important;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.header-left { font-size: 12px; color: #555; }
.lang-bar { display: flex; gap: 6px; align-items: center; font-size: 12px; color: #444; flex-wrap: wrap; margin-top: 4px; }
.lang-bar a { color: #333; padding: 0 4px; }
.lang-bar a.active { color: var(--dark-red); font-weight: 700; }
.lang-divider { color: #aaa; }

.site-branding { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.site-title-link { text-decoration: none; }
.site-title {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 38px;
  font-weight: 700;
  color: #111;
  line-height: 1;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-title .logo-icon { color: var(--orange); }
.custom-logo-link img { max-height: 60px; width: auto; }
.site-description { font-size: 10px; color: #888; letter-spacing: 1.5px; text-transform: uppercase; }

.header-right { display: flex; align-items: center; gap: 10px; }
.newsletter-btn {
  background: var(--dark-red);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.newsletter-btn:hover { background: #a00e1a; color: #fff; }

.social-icons { display: flex; gap: 8px; }
.social-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: opacity .2s;
}
.social-icon:hover { opacity: .8; }
.si-fb { background: #1877f2; }
.si-x  { background: #000; }
.si-in { background: #0a66c2; }
.si-ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.si-yt { background: #ff0000; font-size: 10px; }

/* ============================================================
   PRIMARY NAV
   ============================================================ */
.primary-nav {
  background: var(--dark-nav);
  border-bottom: 2px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 100;
}
.primary-nav .nav-inner {
  display: flex;
  align-items: center;
  padding: 0 16px;
  max-width: 1380px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.primary-nav .nav-inner::-webkit-scrollbar { display: none; }
.hamburger {
  color: #fff;
  font-size: 18px;
  padding: 12px 10px;
  cursor: pointer;
  border-right: 1px solid #333;
  margin-right: 6px;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-bottom: none;
  border-left: none;
}
.nav-fire { color: var(--orange); font-size: 16px; padding: 0 8px; }
.nav-items { display: flex; list-style: none; gap: 0; }
.nav-items li a {
  color: #ddd;
  font-size: 13px;
  font-weight: 500;
  padding: 13px 13px;
  display: block;
  white-space: nowrap;
  transition: color .2s, background .2s;
  font-family: 'Noto Sans Devanagari', 'Noto Sans', sans-serif;
}
.nav-items li a:hover,
.nav-items li.current-menu-item a,
.nav-items li.current-menu-parent a { color: #fff; background: rgba(232,93,4,.15); }
.nav-search-btn { margin-left: auto; color: #bbb; font-size: 16px; padding: 13px 10px; cursor: pointer; background: none; border: none; }

/* Mobile nav hidden by default, toggled via JS */
.mobile-menu-open .nav-items {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--dark-nav);
  z-index: 200;
  border-top: 1px solid #333;
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.ticker-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
}
.ticker-label {
  background: var(--dark-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  letter-spacing: .5px;
  flex-shrink: 0;
  font-family: 'Noto Sans Devanagari', sans-serif;
}
.ticker-badge {
  background: #fff200;
  color: #111;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 8px;
  flex-shrink: 0;
}
.ticker-scroll { flex: 1; overflow: hidden; position: relative; }
.ticker-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 35s linear infinite;
}
.ticker-item {
  font-size: 13px;
  color: #222;
  padding: 0 20px;
  border-right: 1px solid #ddd;
  cursor: pointer;
  font-family: 'Noto Sans Devanagari', 'Noto Sans', sans-serif;
}
.ticker-item:hover { color: var(--orange); }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================
   HERO SECTION (Front Page)
   ============================================================ */
.site-hero {
  background: linear-gradient(135deg, #1a0a00 0%, #2e1203 40%, #3d1a05 70%, #1a0a00 100%);
  padding: 44px 20px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--saffron);
}
.site-hero::before {
  content: 'ॐ';
  position: absolute;
  right: -40px; top: -30px;
  font-size: 260px;
  color: rgba(247,127,0,.06);
  font-family: 'Noto Serif Devanagari', serif;
  pointer-events: none;
  line-height: 1;
}
.hero-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.hero-content { flex: 1; }
.hero-eyebrow { font-size: 12px; color: var(--saffron); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.hero-title {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -1px;
}
.hero-title em { color: var(--saffron); font-style: normal; }
.hero-sub { font-size: 15px; color: #bbb; line-height: 1.7; margin-bottom: 24px; max-width: 520px; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta {
  background: var(--saffron); color: #111;
  font-size: 13px; font-weight: 700;
  padding: 11px 26px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s;
}
.hero-cta:hover { background: var(--orange); color: #fff; }
.hero-cta-ghost {
  background: transparent; color: #ccc;
  font-size: 13px; font-weight: 600;
  padding: 11px 22px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .2s, color .2s;
}
.hero-cta-ghost:hover { border-color: var(--saffron); color: var(--saffron); }
.hero-calendar {
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(247,127,0,.3);
  border-radius: 10px;
  padding: 22px 30px;
  text-align: center;
  min-width: 170px;
  backdrop-filter: blur(4px);
}
.hero-cal-month { font-size: 13px; font-weight: 700; color: var(--saffron); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.hero-cal-day { font-size: 64px; font-weight: 700; color: #fff; line-height: 1; font-family: 'Noto Serif Devanagari', serif; }
.hero-cal-weekday { font-size: 14px; color: #bbb; margin-top: 4px; }
.hero-cal-tithi { font-size: 12px; color: var(--gold); margin-top: 8px; font-family: 'Noto Sans Devanagari', sans-serif; background: rgba(244,162,97,.1); padding: 4px 10px; border-radius: 20px; }
.hero-stats { display: flex; gap: 0; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; flex-wrap: wrap; }
.hero-stat { flex: 1; text-align: center; padding: 0 20px; border-right: 1px solid rgba(255,255,255,.1); }
.hero-stat:last-child { border-right: none; }
.hero-stat-num { font-size: 26px; font-weight: 800; color: var(--saffron); font-family: 'Noto Serif Devanagari', serif; }
.hero-stat-label { font-size: 11px; color: #888; margin-top: 2px; letter-spacing: .5px; }

/* ============================================================
   4-COLUMN PAGE WRAP
   ============================================================ */
.page-wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 14px 8px;
  display: grid;
  grid-template-columns: 155px 1fr 290px 155px;
  gap: 14px;
  align-items: start;
}

/* ============================================================
   SKYSCRAPER AD COLUMNS
   ============================================================ */
.skyscraper-col { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 52px; }
.skyscraper-ad {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #e0d8cc;
  background: #fff;
  position: relative;
}
.skyscraper-ad .ad-top-label { font-size: 9px; color: #bbb; letter-spacing: 1px; padding: 4px 0; width: 100%; background: #f9f6f1; border-bottom: 1px solid #eee; text-transform: uppercase; }
.sky-inner { width: 100%; min-height: 580px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 14px 8px 16px; gap: 10px; }
.sky-placeholder { font-size: 11px; color: #bbb; letter-spacing: 1px; text-align: center; }
/* Same full-width fix as sidebar — AdSense ins must not be constrained */
.sky-custom-html,
.sky-custom-html ins,
.sky-custom-html > * {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  position: static !important;
  box-sizing: border-box !important;
}
.skyscraper-ad.dark { background: linear-gradient(180deg, #1a1a2e 0%, #0f2027 100%); border-color: #2a2a4e; }
.skyscraper-ad.dark .ad-top-label { background: #111; color: #555; border-color: #222; }

/* ============================================================
   MAIN COLUMN
   ============================================================ */
.main-col { min-width: 0; }

/* ============================================================
   SECTION HEADS
   ============================================================ */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--saffron);
  padding-bottom: 8px;
}
.sec-head-left { display: flex; align-items: center; gap: 8px; }
.sec-eyebrow { font-size: 10px; color: var(--saffron); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-bottom: 2px; }
.sec-title { font-family: 'Noto Serif Devanagari', serif; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.sec-view-all { font-size: 12px; color: var(--orange); font-weight: 600; white-space: nowrap; }
.sec-view-all:hover { text-decoration: underline; }

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.cat-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.cat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--saffron), var(--orange)); opacity: 0; transition: opacity .2s; }
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(232,93,4,.12); border-color: #d4c4a0; }
.cat-card:hover::before { opacity: 1; }
.cat-icon { font-size: 28px; }
.cat-name { font-size: 13px; font-weight: 700; color: var(--navy); font-family: 'Noto Sans Devanagari', sans-serif; }
.cat-count { font-size: 10.5px; color: #999; }

/* ============================================================
   FEATURED / LATEST POST CARDS
   ============================================================ */
.featured-post {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 22px;
  cursor: pointer;
  transition: box-shadow .2s;
}
.featured-post:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.featured-post-inner { display: flex; gap: 0; }
.feat-thumb {
  width: 280px;
  height: 180px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fdf0e0, #ffe8cc);
  overflow: hidden;
  position: relative;
}
.feat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feat-no-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.feat-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.feat-category { display: inline-block; background: var(--dark-red); color: #fff; font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 2px; letter-spacing: .5px; margin-bottom: 10px; text-transform: uppercase; }
.feat-title { font-family: 'Noto Serif Devanagari', serif; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 8px; }
.feat-title:hover { color: var(--orange); }
.feat-excerpt { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; }
.feat-meta { font-size: 11.5px; color: #aaa; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.feat-meta .read-time { background: var(--light-bg); color: #666; border: 1px solid var(--border); padding: 2px 8px; border-radius: 10px; font-size: 10.5px; }

/* Posts Grid */
.posts-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.post-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  background: #fff;
}
.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.post-card-thumb {
  width: 100%;
  height: 130px;
  background: linear-gradient(135deg, #fdf0e0, #ffe8cc);
  overflow: hidden;
  position: relative;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.post-card-body { padding: 12px; }
.post-card-cat { display: inline-block; font-size: 9px; font-weight: 700; color: var(--orange); border: 1px solid #f0e0cc; background: #fff8f0; padding: 2px 6px; border-radius: 2px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.post-card-title { font-size: 13.5px; font-weight: 600; color: #222; line-height: 1.4; margin-bottom: 8px; font-family: 'Noto Serif Devanagari', serif; }
.post-card-title:hover { color: var(--orange); }
.post-card-meta { font-size: 11px; color: #aaa; display: flex; gap: 8px; flex-wrap: wrap; }

/* List posts */
.post-list { margin-bottom: 24px; }
.post-list-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.post-list-item:last-child { border-bottom: none; }
.pli-num { font-size: 28px; font-weight: 900; color: #f0e8dc; line-height: 1; flex-shrink: 0; width: 30px; text-align: center; font-family: 'Noto Serif Devanagari', serif; }
.pli-body { flex: 1; }
.pli-cat { font-size: 9px; font-weight: 700; color: var(--orange); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 3px; }
.pli-title { font-size: 13.5px; font-weight: 600; color: #222; line-height: 1.4; }
.pli-title:hover { color: var(--orange); }
.pli-meta { font-size: 11px; color: #aaa; margin-top: 3px; }

/* ============================================================
   IN-CONTENT AD
   ============================================================ */
.in-content-ad {
  background: var(--ad-bg);
  border: 1px dashed #d0c4a8;
  border-radius: 4px;
  padding: 14px;
  text-align: center;
  margin: 20px 0;
  font-size: 11px;
  color: #aaa;
  letter-spacing: 1px;
}
.in-content-ad-inner { display: flex; align-items: center; justify-content: center; min-height: 60px; }

/* ============================================================
   RIGHT SIDEBAR
   ============================================================ */
.right-sidebar { display: flex; flex-direction: column; gap: 14px; }
.sidebar-ad-box {
  /* No padding, no min-height, no centering flex — let AdSense render naturally */
  width: 100%;
  overflow: hidden;
  background: transparent;
  border-radius: 4px;
  /* Remove dark background so ad is fully visible */
}
/* The ins tag and script must be full-width, no offsets */
.sidebar-ad-box .custom-ad-html,
.sidebar-ad-box .custom-ad-html ins,
.sidebar-ad-box .custom-ad-html > * {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  position: static !important;
  box-sizing: border-box !important;
}
.sidebar-ad-placeholder {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 1px;
  text-align: center;
  padding: 16px;
  border: 1px dashed #ddd;
  border-radius: 4px;
}

.box-widget { }
.box-head {
  font-size: 15px;
  font-weight: 700;
  color: var(--sidebar-head);
  border-bottom: 2px solid var(--sidebar-head);
  padding-bottom: 6px;
  margin-bottom: 10px;
  font-family: 'Noto Sans Devanagari', sans-serif;
}
.update-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.update-item:last-child { border-bottom: none; }
.update-thumb {
  width: 72px;
  height: 55px;
  border-radius: 4px;
  flex-shrink: 0;
  background: #e8e0d4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
}
.update-thumb img { width: 100%; height: 100%; object-fit: cover; }
.update-text { flex: 1; }
.update-text p { font-size: 12.5px; color: #222; line-height: 1.4; font-weight: 500; }
.update-text p:hover { color: var(--orange); }
.update-meta { font-size: 10.5px; color: #999; margin-top: 4px; display: flex; gap: 6px; }
.update-tag { background: var(--light-bg); color: var(--orange); font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 2px; border: 1px solid #e0d0b8; }
.tag-chip { background: #f0ece4; color: #555; font-size: 12px; padding: 4px 12px; border-radius: 20px; border: 1px solid #ddd; cursor: pointer; display: inline-block; margin: 3px; }
.tag-chip:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.categories-cloud { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

/* Newsletter Box */
.newsletter-box {
  background: linear-gradient(135deg, var(--dark-nav), #1a0a00);
  border-radius: 8px;
  padding: 18px 16px;
  text-align: center;
  border: 1px solid rgba(247,127,0,.2);
}
.nl-icon { font-size: 28px; margin-bottom: 8px; }
.nl-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.nl-sub { font-size: 11px; color: #aaa; line-height: 1.5; margin-bottom: 12px; }
.nl-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #333;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 12px;
  margin-bottom: 8px;
  font-family: 'Noto Sans', sans-serif;
}
.nl-input::placeholder { color: #777; }
.nl-input:focus { outline: none; border-color: var(--saffron); }
.nl-btn { width: 100%; background: var(--saffron); color: #111; font-size: 12px; font-weight: 700; padding: 9px; border-radius: 4px; border: none; cursor: pointer; }
.nl-btn:hover { background: var(--orange); color: #fff; }

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */
.archive-header {
  background: linear-gradient(135deg, #1a0800 0%, #2e1203 50%, #1a0800 100%);
  padding: 36px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--saffron);
}
.archive-header::before {
  content: attr(data-bg-text);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 180px;
  color: rgba(247,127,0,.05);
  font-family: 'Noto Serif Devanagari', serif;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}
.archive-inner { position: relative; z-index: 1; }
.archive-breadcrumb { font-size: 12px; color: #888; margin-bottom: 14px; }
.archive-breadcrumb a { color: var(--saffron); }
.archive-icon { font-size: 44px; margin-bottom: 12px; }
.archive-title { font-family: 'Noto Serif Devanagari', serif; font-size: 36px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.archive-desc { font-size: 14px; color: #aaa; max-width: 500px; margin: 0 auto 16px; line-height: 1.6; }
.archive-meta { display: flex; gap: 20px; justify-content: center; font-size: 12px; color: #aaa; flex-wrap: wrap; }
.archive-meta span { display: flex; align-items: center; gap: 6px; }

/* Archive posts grid */
.archive-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.archive-post-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  background: #fff;
  display: flex;
  gap: 0;
}
.archive-post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.archive-card-thumb {
  width: 140px;
  height: 120px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fdf0e0, #ffe8cc);
  overflow: hidden;
}
.archive-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-card-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.archive-card-body { padding: 12px 14px; flex: 1; }
.archive-card-cat { font-size: 9px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.archive-card-title { font-size: 13.5px; font-weight: 600; color: #222; line-height: 1.4; margin-bottom: 6px; }
.archive-card-title:hover { color: var(--orange); }
.archive-card-meta { font-size: 11px; color: #aaa; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pagination .page-numbers {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: all .2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current { background: var(--orange); color: #fff; border-color: var(--orange); }
.pagination .page-numbers.dots { border: none; cursor: default; }

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */
.post-header {
  padding: 26px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.post-breadcrumb { font-size: 12px; color: #aaa; margin-bottom: 12px; }
.post-breadcrumb a { color: var(--orange); }
.post-badge-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.post-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 2px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.post-badge.cat-badge { background: var(--dark-red); color: #fff; }
.post-badge.live-badge { background: #c1121f; color: #fff; animation: pulseBadge 2s infinite; }
@keyframes pulseBadge { 0%,100% { opacity: 1; } 50% { opacity: .6; } }
.post-title {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 14px;
}
.post-meta-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.post-meta-item { font-size: 12px; color: #888; display: flex; align-items: center; gap: 4px; }
.post-meta-item .meta-icon { font-size: 13px; }
.post-author-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--light-bg);
}
.author-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; font-weight: 700;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-share-row { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.share-label { font-size: 11.5px; font-weight: 600; color: #888; letter-spacing: .5px; text-transform: uppercase; margin-right: 4px; }
.share-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.share-btn.fb  { background: #1877f2; }
.share-btn.tw  { background: #000; }
.share-btn.wa  { background: #25d366; }
.share-btn.tg  { background: #229ED9; }
.share-btn.cp  { background: #888; }

/* Featured image */
.post-featured-image {
  width: 100%;
  max-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.post-featured-image img { width: 100%; height: 100%; object-fit: cover; }

/* Key takeaways box */
.key-takeaways-box {
  background: linear-gradient(135deg, #fff8f0, #ffeedd);
  border: 1px solid #f0ddc0;
  border-left: 4px solid var(--saffron);
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 22px;
}
.takeaways-title { font-size: 13px; font-weight: 700; color: var(--orange); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.takeaways-list { list-style: none; }
.takeaways-list li { font-size: 13px; color: #444; padding: 4px 0; display: flex; align-items: flex-start; gap: 8px; }
.takeaways-list li::before { content: '🔸'; flex-shrink: 0; font-size: 11px; margin-top: 2px; }

/* Article content */
.article-content { font-size: 15px; line-height: 1.8; color: #333; }
.article-content h2 { font-family: 'Noto Serif Devanagari', serif; font-size: 22px; font-weight: 700; color: var(--navy); margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--saffron); }
.article-content h3 { font-size: 18px; font-weight: 700; color: #333; margin: 22px 0 10px; }
.article-content h4 { font-size: 15px; font-weight: 700; color: #444; margin: 18px 0 8px; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 18px 24px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
  border-left: 4px solid var(--saffron);
  background: linear-gradient(135deg, #fffaf5, #fff8f0);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #555;
}
.article-content img { max-width: 100%; border-radius: 6px; margin: 16px 0; }
.article-content a { color: var(--orange); text-decoration: underline; }
.article-content strong { color: #111; }
.article-content .highlight-box {
  background: linear-gradient(135deg, #fff8f0, #fff3e6);
  border: 1px solid #f0ddc0;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 20px 0;
}

/* Tags */
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
.post-tag { background: var(--light-bg); color: #666; font-size: 11px; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--border); }
.post-tag:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* Nav prev/next */
.nav-post-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.nav-post { border: 1px solid var(--border); border-radius: 6px; padding: 12px; cursor: pointer; transition: border-color .2s; }
.nav-post:hover { border-color: var(--orange); }
.nav-post .nav-dir { font-size: 11px; color: #aaa; margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.nav-post .nav-title { font-size: 13px; font-weight: 600; color: #333; line-height: 1.4; }

/* Related posts */
.related-section { margin-top: 28px; padding-top: 16px; border-top: 2px solid var(--border); }
.related-section .section-head { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card { cursor: pointer; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: box-shadow .2s; }
.related-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.related-thumb { width: 100%; height: 110px; background: linear-gradient(135deg, #fdf0e0, #ffe8cc); display: flex; align-items: center; justify-content: center; font-size: 36px; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-info { padding: 10px; }
.related-cat { font-size: 10px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.related-info h4 { font-size: 13px; font-weight: 600; line-height: 1.4; color: #222; }
.related-info .r-date { font-size: 10.5px; color: #aaa; margin-top: 4px; }

/* Comments */
.comment-section { margin-top: 30px; padding: 20px; background: var(--light-bg); border-radius: 6px; border: 1px solid var(--border); }
.comment-section h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; color: var(--navy); }
.comment-list { margin-bottom: 24px; }
.comment-item { display: flex; gap: 12px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body-wrap { flex: 1; }
.comment-author-name { font-size: 13px; font-weight: 700; color: #333; }
.comment-date { font-size: 11px; color: #aaa; margin-left: 8px; }
.comment-text { font-size: 13px; color: #555; line-height: 1.6; margin-top: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark-nav);
  color: #ccc;
  padding: 30px 20px 16px;
  margin-top: 30px;
}
.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}
.footer-brand .f-logo { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; font-family: 'Noto Serif Devanagari', serif; }
.footer-brand .f-logo .f-om { color: var(--saffron); margin-right: 6px; }
.footer-brand p { font-size: 12px; color: #888; line-height: 1.6; }
.footer-col h4 {
  color: #fff; font-size: 13px; font-weight: 700;
  margin-bottom: 12px; letter-spacing: .5px;
  text-transform: uppercase; position: relative; padding-bottom: 6px;
}
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--orange); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { color: #999; font-size: 12.5px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--saffron); }
.footer-bottom {
  max-width: 1300px; margin: 0 auto;
  border-top: 1px solid #2a2a3e;
  padding-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 12px; color: #666; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: #666; font-size: 11px; }
.footer-links a:hover { color: var(--saffron); }

/* ============================================================
   WORDPRESS NATIVE ELEMENTS
   ============================================================ */
.wp-block-image img { border-radius: 6px; }
.alignleft { float: left; margin-right: 20px; margin-bottom: 10px; }
.alignright { float: right; margin-left: 20px; margin-bottom: 10px; }
.aligncenter { margin: 0 auto 20px; display: block; }
.wp-caption { font-size: 12px; color: #888; text-align: center; }

/* ============================================================
   AD SAFETY — prevent script tag text from ever being visible.
   wpautop can wrap <script> inner text in <p> tags; this ensures
   it is never shown even if that happens on any page.
   ============================================================ */
script { display: none !important; }
.in-content-ad script,
.sidebar-ad-box script,
.leaderboard-ad-zone script,
.sky-custom-html script,
.custom-ad-html script { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .page-wrap { grid-template-columns: 130px 1fr 260px 130px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .page-wrap { grid-template-columns: 1fr 260px; }
  .skyscraper-col { display: none; }
  .hero-title { font-size: 32px; }
  .hero-calendar { min-width: 130px; }
  .hero-cal-day { font-size: 48px; }
  .posts-grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .archive-header { }
  .archive-title { font-size: 28px; }
}
@media (max-width: 650px) {
  .page-wrap { grid-template-columns: 1fr; }
  .right-sidebar { display: none; }
  .hero-inner { flex-direction: column; }
  .hero-calendar { width: 100%; }
  .posts-grid-3 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .site-title { font-size: 26px; }
  .site-header { flex-direction: column; align-items: center; text-align: center; }
  .featured-post-inner { flex-direction: column; }
  .feat-thumb { width: 100%; height: 120px; }
  .related-grid { grid-template-columns: 1fr; }
  .nav-post-links { grid-template-columns: 1fr; }
  .archive-posts-grid { grid-template-columns: 1fr; }
  .archive-card-thumb { width: 100px; height: 100px; }
  .post-title { font-size: 22px; }
  .form-row { grid-template-columns: 1fr; }
}
