/*
Theme Name: DiscoverPro
Theme URI: https://example.com/discoverpro
Author: DiscoverPro Theme
Version: 4.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: discoverpro
Tags: blog, news, seo, fast, responsive, gutenberg
*/

/* =====================================================================
   DESIGN SYSTEM — Modern Slate + Indigo + Emerald
   ===================================================================== */
:root {
  /* ── Primary: Deep Indigo ── */
  --p1: #4F46E5;   /* indigo-600  */
  --p2: #4338CA;   /* indigo-700  */
  --p3: #3730A3;   /* indigo-800  */
  --p-lt: #EEF2FF; /* indigo-50   */
  --p-bd: #C7D2FE; /* indigo-200  */

  /* ── Accent: Emerald ── */
  --a1: #10B981;   /* emerald-500 */
  --a2: #059669;   /* emerald-600 */
  --a-lt: #D1FAE5; /* emerald-100 */

  /* ── Warning/Hot: Rose ── */
  --hot: #F43F5E;
  --hot-lt: #FFE4E6;

  /* ── Amber highlight ── */
  --amber: #F59E0B;

  /* ── Neutral surfaces ── */
  --bg:        #FFFFFF;
  --bg-alt:    #F8FAFC;   /* slate-50  */
  --bg-card:   #FFFFFF;
  --border:    #E2E8F0;   /* slate-200 */
  --border-lt: #F1F5F9;   /* slate-100 */

  /* ── Text scale ── */
  --tx1: #0F172A;   /* slate-900 */
  --tx2: #1E293B;   /* slate-800 */
  --tx3: #475569;   /* slate-600 */
  --tx4: #94A3B8;   /* slate-400 */

  /* ── Shadows ── */
  --sh-xs: 0 1px 3px rgba(15,23,42,.06);
  --sh-sm: 0 2px 8px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --sh-md: 0 4px 20px rgba(79,70,229,.10), 0 2px 8px rgba(15,23,42,.06);
  --sh-lg: 0 8px 40px rgba(79,70,229,.14), 0 4px 16px rgba(15,23,42,.08);
  --sh-xl: 0 20px 60px rgba(79,70,229,.18), 0 8px 24px rgba(15,23,42,.10);

  /* ── Layout ── */
  --mw: 1296px;
  --header-h: 66px;
  --gap: 24px;

  /* ── Radius scale ── */
  --r-sm: 6px;
  --r:    10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* ── Typography — Default: Best for Hindi+English bilingual blogs ──
     Body:    Hind    — Used by Dainik Jagran, supports Devanagari+Latin
     Heading: Mukta   — Indian newspapers, all weights
     UI:      Poppins — Indian Type Foundry, clean Devanagari+Latin
     Override via: Customize → DiscoverPro → Typography & Fonts
     ── */
  --sans:  'Hind', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
  --serif: 'Mukta', 'Noto Sans Devanagari', system-ui, sans-serif;
  --ui:    'Poppins', 'Hind', system-ui, sans-serif;

  --ease: .2s ease;
}

/* ── DARK MODE (system) ──────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --p1: #818CF8;   /* indigo-400 */
    --p2: #6366F1;
    --p3: #4F46E5;
    --p-lt: #1E1B4B;
    --p-bd: #312E81;

    --a1: #34D399;
    --a2: #10B981;
    --a-lt: #064E3B;

    --hot:    #FB7185;
    --hot-lt: #4C0519;
    --amber:  #FCD34D;

    --bg:        #0B0F1A;   /* very dark navy */
    --bg-alt:    #111827;
    --bg-card:   #161D2E;
    --border:    #1E2A3A;
    --border-lt: #172030;

    --tx1: #F1F5F9;
    --tx2: #E2E8F0;
    --tx3: #94A3B8;
    --tx4: #475569;

    --sh-xs: 0 1px 3px rgba(0,0,0,.4);
    --sh-sm: 0 2px 8px rgba(0,0,0,.4);
    --sh-md: 0 4px 20px rgba(0,0,0,.5);
    --sh-lg: 0 8px 40px rgba(0,0,0,.6);
    --sh-xl: 0 20px 60px rgba(0,0,0,.7);
  }
}

/* ===================================================================
   RESET
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--tx2);
  background: var(--bg);
  line-height: 1.8; /* Hindi needs more line height */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--p1); outline-offset: 3px; border-radius: var(--r-sm); }

/* ===================================================================
   LAYOUT
   =================================================================== */
.container {
  width: 100%; max-width: var(--mw);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* ===================================================================
   READING PROGRESS BAR
   =================================================================== */
#reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--p1), var(--a1));
  z-index: 9999; transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
.site-header.scrolled { box-shadow: var(--sh-sm); }

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 100%; gap: 20px;
}

/* Logo */
.site-logo a {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.4rem;
  font-weight: 700; color: var(--tx1);
  letter-spacing: -.02em;
}
.logo-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--p1) 0%, var(--a1) 100%);
  display: flex; align-items: center; justify-content: center;
}
.logo-icon::after {
  content: '';
  display: block; width: 14px; height: 14px;
  background: #fff; border-radius: 3px;
  clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%);
}
.site-logo img { height: 38px; width: auto; }

/* Nav styles -> see NAVIGATION section below */

/* ===================================================================
   SECTION HEADER
   =================================================================== */
.section-hd {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 28px;
}
.section-title {
  font-family: var(--serif); font-size: 1.5rem;
  font-weight: 800; color: var(--tx1);
  display: flex; align-items: center; gap: 10px;
}
.section-title .bar {
  display: inline-block; width: 4px; height: 26px;
  background: linear-gradient(180deg, var(--p1), var(--a1));
  border-radius: 2px;
}
.btn-viewall {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 700; color: var(--p1);
  border: 1.5px solid var(--p-bd); padding: 6px 16px;
  border-radius: 20px; transition: all var(--ease);
}
.btn-viewall:hover { background: var(--p1); border-color: var(--p1); color: #fff; }

/* ===================================================================
   HERO POST — split layout, no image crop
   =================================================================== */
.hero-section { padding-block: 28px; }

.hero-post {
  display: grid; grid-template-columns: 55% 45%;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--sh-xl); min-height: 460px;
}
@media (max-width: 900px) { .hero-post { grid-template-columns: 1fr; } }

.hero-post__imgwrap {
  position: relative; overflow: hidden;
  background: var(--bg-alt); min-height: 320px;
}
.hero-post__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s ease;
}
.hero-post:hover .hero-post__img { transform: scale(1.04); }

.hero-post__badge {
  position: absolute; top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, var(--p1), var(--a1));
  color: #fff; font-size: .7rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px;
  box-shadow: 0 2px 12px rgba(79,70,229,.4);
}
.hero-post__badge::before { content: '★'; }

.hero-post__body {
  padding: clamp(28px,4vw,52px);
  display: flex; flex-direction: column; justify-content: center;
  gap: 0;
}
.hero-post__cat {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--p1); font-size: .75rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px;
}
.hero-post__cat .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--a1); }
.hero-post__title {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800; line-height: 1.22; letter-spacing: -.025em;
  color: var(--tx1); margin-bottom: 14px;
}
.hero-post__title a { transition: color var(--ease); }
.hero-post__title a:hover { color: var(--p1); }
.hero-post__excerpt {
  color: var(--tx3); font-size: .935rem; line-height: 1.72;
  margin-bottom: 22px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.hero-post__meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px; font-size: .8rem; color: var(--tx4); margin-bottom: 24px;
}
.hero-post__meta .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border);
}
.hero-post__meta .name { font-weight: 600; color: var(--tx2); }
.hero-post__meta .sep { opacity: .3; }
.hero-post__cta {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: linear-gradient(135deg, var(--p1) 0%, var(--p2) 100%);
  color: #fff; padding: 12px 22px; border-radius: var(--r);
  font-size: .875rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(79,70,229,.35);
  transition: transform var(--ease), box-shadow var(--ease);
}
.hero-post__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(79,70,229,.45); }
.hero-post__cta svg { width: 15px; height: 15px; }

/* ===================================================================
   TRENDING STRIP
   =================================================================== */
.trending-strip {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, var(--p1), var(--p3));
  border-radius: var(--r-md); padding: 14px 22px;
  margin-block: 36px; overflow: hidden;
  position: relative;
}
.trending-strip::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at right, rgba(16,185,129,.25) 0%, transparent 60%);
  pointer-events: none;
}
.trending-label {
  color: #fff; font-size: .7rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  padding: 4px 12px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.trending-scroller {
  display: flex; gap: 24px; overflow-x: auto; flex: 1;
  scrollbar-width: none; position: relative; z-index: 1;
}
.trending-scroller::-webkit-scrollbar { display: none; }
.trending-link {
  white-space: nowrap; color: rgba(255,255,255,.8);
  font-size: .83rem; font-weight: 600;
  display: flex; align-items: center; gap: 5px; transition: color var(--ease);
}
.trending-link::before { content: '→'; opacity: .6; font-size: .75rem; }
.trending-link:hover { color: #fff; }

/* ===================================================================
   POST CARDS — full blog format, no square crop
   =================================================================== */
.posts-section { padding-block: 44px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 1024px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--bg-card); border-radius: var(--r-md);
  border: 1px solid var(--border); box-shadow: var(--sh-xs);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg); border-color: var(--p-bd);
}

/* 16:9 image, clean — no square crop */
.post-card__imgwrap {
  aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt);
  flex-shrink: 0;
}
.post-card__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease; display: block;
}
.post-card:hover .post-card__img { transform: scale(1.05); }

.post-card__body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; gap: 0; }

.post-card__cat {
  display: inline-block; margin-bottom: 10px;
  color: var(--p1); font-size: .68rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--p-lt); padding: 3px 10px; border-radius: 20px;
  transition: all var(--ease);
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.post-card__cat:hover { background: var(--p1); color: #fff; }

/* Full title — not cropped */
.post-card__title {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
  line-height: 1.38; color: var(--tx1); margin-bottom: 9px;
}
.post-card__title a { transition: color var(--ease); }
.post-card__title a:hover { color: var(--p1); }

/* Short excerpt — 3 lines max */
.post-card__excerpt {
  font-size: .865rem; color: var(--tx3); line-height: 1.65;
  margin-bottom: 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

.post-card__meta {
  display: flex; align-items: center; gap: 8px;
  font-size: .76rem; color: var(--tx4);
  border-top: 1px solid var(--border-lt);
  padding-top: 12px; margin-top: auto;
}
.post-card__meta .avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.post-card__meta .author { font-weight: 600; color: var(--tx3); }
.post-card__meta time { margin-left: auto; }
.post-card__readtime {
  background: var(--bg-alt); padding: 2px 7px;
  border-radius: 20px; font-size: .7rem;
}
.post-card__more {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--p1); font-size: .8rem; font-weight: 700;
  margin-top: 12px; transition: gap var(--ease);
}
.post-card__more:hover { gap: 7px; }

/* ===================================================================
   SINGLE POST — one canonical URL, no duplication
   =================================================================== */
.single-container { padding-block: 40px; }
.single-layout {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 48px; align-items: start;
}
@media (max-width: 1024px) { .single-layout { grid-template-columns: 1fr; } }

/* Post header */
.post-header { margin-bottom: 28px; }
.post-header__kicker {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.post-header__cat {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff; font-size: .7rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
}
.post-header__hot {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--hot-lt); color: var(--hot);
  font-size: .7rem; font-weight: 800;
  padding: 4px 10px; border-radius: 20px;
}
.post-header__title {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 800; line-height: 1.18; letter-spacing: -.03em;
  color: var(--tx1); margin-bottom: 18px;
}
.post-header__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: .83rem; color: var(--tx3);
  padding-bottom: 18px; border-bottom: 1px solid var(--border);
}
.post-header__author {
  display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--tx2);
}
.post-header__author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.post-header__divider { opacity: .25; }

/* Featured image — full width, natural ratio, no crop */
.post-featured {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-xl); margin-bottom: 36px;
}
.post-featured img {
  width: 100%; height: auto; display: block;
  max-height: 520px; object-fit: cover;
}

/* Entry content */
.entry-content {
  font-size: 1.04rem; line-height: 1.87; color: var(--tx2);
}
.entry-content h2 {
  font-family: var(--serif); font-size: 1.65rem; font-weight: 800;
  color: var(--tx1); line-height: 1.25;
  margin: 2.2em 0 .7em;
  padding-left: 14px; border-left: 3px solid var(--p1);
}
.entry-content h3 {
  font-family: var(--serif); font-size: 1.28rem; font-weight: 700;
  color: var(--tx1); margin: 1.8em 0 .6em;
}
.entry-content p { margin-bottom: 1.55em; }
.entry-content a {
  color: var(--p1); text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--p1) 35%, transparent);
}
.entry-content a:hover { text-decoration-color: var(--p1); }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1.55em; }
.entry-content li { margin-bottom: .55em; list-style: disc; }
.entry-content ol li { list-style: decimal; }
.entry-content blockquote {
  border-left: 3px solid var(--a1);
  padding: 16px 24px; margin: 2em 0;
  background: color-mix(in srgb, var(--a-lt) 40%, var(--bg));
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 1.05rem; font-style: italic; color: var(--tx2);
}
.entry-content img { border-radius: var(--r-md); margin-block: 2em; box-shadow: var(--sh-md); }
.entry-content pre {
  background: #0F172A; color: #94A3B8; padding: 20px;
  border-radius: var(--r); overflow-x: auto;
  font-size: .88rem; margin-bottom: 1.55em;
  border: 1px solid #1E293B;
}
.entry-content code {
  background: var(--p-lt); color: var(--p1);
  padding: 2px 6px; border-radius: 4px; font-size: .88em;
}
.entry-content pre code { background: none; color: inherit; padding: 0; }

/* Tags */
.entry-tags { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 7px; }
.entry-tags a {
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 20px; font-size: .8rem; color: var(--tx3);
  transition: all var(--ease);
}
.entry-tags a:hover { background: var(--p1); border-color: var(--p1); color: #fff; }

/* Share bar */
.share-bar {
  margin-top: 36px; padding: 20px 24px;
  background: var(--bg-alt); border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.share-bar h4 {
  font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--tx4); margin-bottom: 12px;
}
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--r-sm);
  font-size: .8rem; font-weight: 700; border: none;
  transition: transform var(--ease), box-shadow var(--ease);
}
.sh-btn:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); }
.sh-btn--tw  { background: #0F172A; color: #fff; }
.sh-btn--fb  { background: #1877F2; color: #fff; }
.sh-btn--wa  { background: #25D366; color: #fff; }
.sh-btn--ln  { background: #0A66C2; color: #fff; }
.sh-btn--cp  { background: var(--bg-card); color: var(--tx2); border: 1px solid var(--border); }

/* Author bio box */
.author-bio {
  margin-top: 40px; padding: 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-xs);
  display: flex; gap: 20px; align-items: flex-start;
}
.author-bio img {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--p-lt);
}
.author-bio__name {
  font-family: var(--serif); font-size: 1rem; font-weight: 700;
  color: var(--tx1); margin-bottom: 4px;
}
.author-bio__desc { font-size: .84rem; color: var(--tx3); line-height: 1.6; }

/* Related posts */
.related-posts {
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.related-posts .section-title { margin-bottom: 24px; }

/* ── Desktop: 4 cards in a row (only when NO sidebar) ── */
.related-posts .posts-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
}

/* ── Desktop with sidebar: 2 columns (single-layout reduces main width) ── */
.single-layout .related-posts .posts-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
}

/* ── Tablet (1024px): 2 columns ── */
@media (max-width: 1024px) {
  .related-posts .posts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

/* ── Tablet (900px): 2 columns ── */
@media (max-width: 900px) {
  .related-posts .posts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

/* ── Mobile (600px): 1 column, image UPAR, title NEECHE ── */
@media (max-width: 600px) {
  .related-posts .posts-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Card: normal vertical layout — image top, content bottom */
  .related-posts .post-card {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    border-radius: var(--r-md) !important;
    overflow: hidden;
  }

  /* Image: full width, 16:9 ratio — puri image dikhegi, cut nahi hogi */
  .related-posts .post-card__imgwrap {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    height: auto !important;
    border-radius: 0 !important;
    flex-shrink: 0;
  }
  .related-posts .post-card__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* Body: full width neeche */
  .related-posts .post-card__body {
    width: 100% !important;
    padding: 14px 16px 16px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Title: pura dikhega — no truncation */
  .related-posts .post-card__title {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    -webkit-line-clamp: unset !important;
    display: block !important;
    overflow: visible !important;
    margin-bottom: 8px !important;
  }

  /* Excerpt: hide on mobile to save space */
  .related-posts .post-card__excerpt {
    display: none !important;
  }

  /* Meta row: clean */
  .related-posts .post-card__meta {
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: auto;
    padding-top: 10px !important;
  }
  .related-posts .post-card__meta time {
    margin-left: 0 !important;
  }

  /* Read More link */
  .related-posts .post-card__more {
    font-size: .82rem !important;
    margin-top: 10px !important;
  }
}

/* ===================================================================
   SIDEBAR
   =================================================================== */
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.widget {
  background: var(--bg-card); border-radius: var(--r-md);
  padding: 22px; margin-bottom: 20px;
  border: 1px solid var(--border); box-shadow: var(--sh-xs);
}
.widget-title {
  font-family: var(--serif); font-size: .95rem; font-weight: 800;
  color: var(--tx1); margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--p1);
  display: inline-block;
}

/* ===================================================================
   BREADCRUMBS
   =================================================================== */
.breadcrumbs {
  padding-block: 12px; font-size: .78rem; color: var(--tx4);
  display: flex; flex-wrap: wrap; gap: 5px; align-items: center;
}
.breadcrumbs a { color: var(--p1); font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { opacity: .35; }
.breadcrumbs .current { color: var(--tx2); font-weight: 600; }

/* ===================================================================
   ARCHIVE
   =================================================================== */
.archive-header {
  padding: 36px 28px; margin-bottom: 36px;
  background: linear-gradient(135deg, var(--p-lt), var(--bg-alt));
  border-radius: var(--r-lg); border: 1px solid var(--p-bd);
}
.archive-header__label {
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--p1); margin-bottom: 6px;
}
.archive-header__title {
  font-family: var(--serif); font-size: 2rem;
  font-weight: 800; color: var(--tx1); letter-spacing: -.03em;
}
.archive-header__desc { margin-top: 8px; color: var(--tx3); font-size: .93rem; }

/* ===================================================================
   PAGINATION
   =================================================================== */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; padding-block: 52px;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding-inline: 12px;
  border-radius: var(--r-sm); font-size: .875rem; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--tx2);
  transition: all var(--ease);
}
.pagination a:hover { border-color: var(--p1); color: var(--p1); background: var(--p-lt); }
.pagination .current {
  background: var(--p1); border-color: var(--p1); color: #fff;
}
.pagination .dots { border: none; background: none; }

/* ===================================================================
   FOOTER — refined charcoal with indigo glow, NOT too dark
   =================================================================== */
.site-footer {
  margin-top: 80px;
  background: #12172B;   /* deep slate-navy — NOT pure black */
  position: relative; overflow: hidden;
}

/* Subtle glow blobs */
.site-footer::before {
  content: '';
  position: absolute; top: -120px; right: -120px; z-index: 0;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,.18) 0%, transparent 65%);
  pointer-events: none;
}
.site-footer::after {
  content: '';
  position: absolute; bottom: -80px; left: -80px; z-index: 0;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,.12) 0%, transparent 65%);
  pointer-events: none;
}

/* Divider gradient bar at top of footer */
.footer-topbar {
  height: 3px;
  background: linear-gradient(90deg, var(--p1), var(--a1), var(--amber));
  position: relative; z-index: 1;
}

.footer-main {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 40px; padding: 56px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-main { grid-template-columns: 1fr; gap: 28px; } }

/* Brand column */
.footer-brand .site-logo a { color: #fff; font-size: 1.3rem; }
.footer-brand .logo-icon { opacity: .95; }
.footer-tagline {
  margin-top: 14px; color: rgba(255,255,255,.45);
  font-size: .85rem; line-height: 1.75; max-width: 260px;
}
.footer-socials { display: flex; gap: 8px; margin-top: 22px; }
.footer-social {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55); transition: all var(--ease);
}
.footer-social svg { width: 15px; height: 15px; }
.footer-social:hover { background: var(--p1); border-color: var(--p1); color: #fff; transform: translateY(-2px); }

/* Footer columns */
.footer-col h5 {
  color: rgba(255,255,255,.9); font-size: .78rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
  margin-bottom: 18px; display: flex; align-items: center; gap: 6px;
}
.footer-col h5 .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--a1); flex-shrink: 0; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-size: .855rem; color: rgba(255,255,255,.45);
  display: flex; align-items: center; gap: 5px;
  transition: color var(--ease);
}
.footer-col a:hover { color: rgba(255,255,255,.9); }
.footer-col a .arr { font-size: .75rem; opacity: .35; transition: opacity var(--ease), transform var(--ease); }
.footer-col a:hover .arr { opacity: 1; transform: translateX(3px); }

/* Newsletter column */
.footer-newsletter p {
  font-size: .83rem; color: rgba(255,255,255,.4);
  margin-bottom: 12px; line-height: 1.6;
}
.footer-nl-form { display: flex; flex-direction: column; gap: 8px; }
.footer-nl-input {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-sm); padding: 10px 14px; color: #fff;
  font-family: var(--sans); font-size: .85rem; outline: none;
  transition: border-color var(--ease);
}
.footer-nl-input::placeholder { color: rgba(255,255,255,.3); }
.footer-nl-input:focus { border-color: var(--p1); }
.footer-nl-btn {
  background: linear-gradient(135deg, var(--p1), var(--a2));
  color: #fff; border: none; border-radius: var(--r-sm);
  padding: 10px 14px; font-size: .85rem; font-weight: 700;
  font-family: var(--sans); transition: opacity var(--ease);
}
.footer-nl-btn:hover { opacity: .88; }

/* Footer bottom */
.footer-bottom {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-block: 20px;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-copyright { white-space: nowrap; }
.footer-bottom a { color: rgba(255,255,255,.45); transition: color var(--ease); }
.footer-bottom a:hover { color: rgba(255,255,255,.85); }
.footer-bottom-links { display: flex; gap: 18px; }

/* Mobile: stack copyright top, links bottom */
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-legal-links,
  .footer-legal-menu {
    width: 100%;
  }
}

/* ===================================================================
   SEARCH / 404
   =================================================================== */
.search-form { display: flex; gap: 8px; }
.search-field {
  flex: 1; padding: 11px 16px;
  border-radius: var(--r); border: 1.5px solid var(--border);
  background: var(--bg); color: var(--tx1);
  font-family: var(--sans); font-size: .9rem; outline: none;
  transition: border-color var(--ease);
}
.search-field:focus { border-color: var(--p1); }
.search-submit {
  padding: 11px 20px; background: var(--p1); color: #fff;
  border: none; border-radius: var(--r);
  font-size: .875rem; font-weight: 700; font-family: var(--sans);
  transition: background var(--ease);
}
.search-submit:hover { background: var(--p2); }

/* ===================================================================
   BACK TO TOP
   =================================================================== */
#back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: var(--r);
  background: var(--p1); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
  z-index: 900; box-shadow: var(--sh-md);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-3px); }

/* =====================================================================
   NAVIGATION — COMPLETE (Desktop + Mobile) — Single Source of Truth
   Koi duplicate rules nahi — ek jagah sab kuch
   ===================================================================== */

/* ── Desktop Nav ── */
.primary-nav {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.primary-nav ul,
.primary-nav .menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav li { position: relative; }
.primary-nav > ul > li,
.primary-nav > .menu > li { position: relative; }
.primary-nav a {
  display: flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 600;
  color: var(--tx3);
  white-space: nowrap;
  transition: color var(--ease), background var(--ease);
  min-height: 44px;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-parent > a {
  color: var(--p1);
  background: var(--p-lt);
}

/* ── Desktop Dropdown ── */
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  z-index: 999;
  padding: 6px;
  flex-direction: column;
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
  display: flex;
}
.primary-nav .sub-menu li { width: 100%; }
.primary-nav .sub-menu a {
  padding: 9px 14px;
  font-size: .845rem;
  color: var(--tx2);
  border-radius: var(--r-sm);
  display: block;
  min-height: auto;
}
.primary-nav .sub-menu a:hover { background: var(--p-lt); color: var(--p1); }

/* Desktop dropdown arrow */
.primary-nav .menu-item-has-children > a::after {
  content: '▾';
  margin-left: 4px;
  font-size: .7rem;
  opacity: .5;
  transition: transform var(--ease);
}
.primary-nav .menu-item-has-children:hover > a::after { transform: rotate(180deg); }

/* Sub-menu toggle button — hidden on desktop */
.sub-menu-toggle { display: none; }

/* ── Mobile Hamburger Button ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  color: var(--tx1);
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  transition: background var(--ease);
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--bg-alt); }
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* Hamburger bars animation */
.nav-toggle .hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
  pointer-events: none;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--tx1);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-open .bar-1 { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open .bar-2 { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open .bar-3 { transform: translateY(-7.5px) rotate(-45deg); }

/* ── MOBILE STYLES (≤ 768px) ── */
@media (max-width: 768px) {

  /* Show hamburger */
  .nav-toggle { display: flex; }

  /* Mobile nav panel — slides in from right */
  .primary-nav {
    position: fixed;
    top: var(--header-h);       /* matches header exactly via CSS var */
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: calc(100vh - var(--header-h));
    background: var(--bg);
    padding: 8px 0 60px;        /* bottom padding for last item visibility */
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.25,.46,.45,.94);
    z-index: 998;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-top: 1px solid var(--border);
    visibility: hidden;         /* accessibility: hide from AT when closed */
  }
  .primary-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  /* ── MENU LIST: FORCE VERTICAL COLUMN ── */
  #primary-nav ul,
  #primary-nav .menu,
  #primary-nav #primary-menu,
  nav.primary-nav ul,
  nav.primary-nav .menu {
    display: block !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ── MENU ITEMS: FULL WIDTH BLOCK ── */
  #primary-nav li,
  #primary-nav .menu-item,
  nav.primary-nav li {
    display: block !important;
    width: 100% !important;
    float: none !important;
    border-bottom: 1px solid #e2e8f0;
  }
  #primary-nav li:last-child,
  nav.primary-nav li:last-child { border-bottom: none !important; }

  /* ── MENU LINKS: FULL WIDTH, TALL TAP AREA ── */
  #primary-nav a,
  #primary-nav .menu-item > a,
  nav.primary-nav a {
    display: block !important;
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;           /* WHITE text */
    min-height: 56px !important;
    line-height: 1.5 !important;
    background: transparent !important;
    border-radius: 0 !important;
    white-space: normal !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
  }
  #primary-nav a:hover,
  #primary-nav .current-menu-item > a,
  #primary-nav .current_page_item > a {
    background: rgba(79,70,229,0.3) !important;
    color: #818CF8 !important;
  }

  /* ── HIDE DESKTOP DROPDOWN ARROW ── */
  #primary-nav .menu-item-has-children > a::after,
  nav.primary-nav .menu-item-has-children > a::after {
    display: none !important;
  }

  /* ── SUB-MENU TOGGLE BUTTON ── */
  .sub-menu-toggle {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 54px !important;
    height: 54px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .sub-menu-toggle svg { width: 18px; height: 18px; transition: transform .2s; }

  /* ── PARENT LI: relative for toggle positioning ── */
  #primary-nav .menu-item-has-children {
    position: relative !important;
  }
  #primary-nav .menu-item-has-children > a {
    padding-right: 60px !important;
  }

  /* ── SUBMENU: hidden default, block on open ── */
  #primary-nav .sub-menu,
  nav.primary-nav .sub-menu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    background: #f8fafc !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 0 !important;
  }
  #primary-nav .menu-item.is-open > .sub-menu {
    display: block !important;
  }
  #primary-nav .sub-menu li {
    border-bottom: 1px solid #f1f5f9 !important;
  }
  #primary-nav .sub-menu a {
    padding: 13px 20px 13px 36px !important;
    font-size: .9rem !important;
    min-height: 46px !important;
    color: #334155 !important;
  }
  #primary-nav .sub-menu a:hover {
    background: #eef2ff !important;
    color: #4f46e5 !important;
  }

  /* ── ROTATE ICON WHEN OPEN ── */
  .menu-item.is-open > .sub-menu-toggle svg { transform: rotate(180deg); }
  .menu-item.is-open > .sub-menu-toggle { color: #4f46e5; }
}

/* ── Body lock when mobile nav is open ── */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* =====================================================================
   WHATSAPP FLOATING BUTTON
   ===================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 890;
  transition: transform var(--ease), box-shadow var(--ease);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}
.whatsapp-float.wa-left { right: auto; left: 20px; }
.whatsapp-float.wa-mobile-only { display: none; }
@media (max-width: 768px) { .whatsapp-float.wa-mobile-only { display: flex; } }
.whatsapp-float svg { width: 28px; height: 28px; }
.wa-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a1a;
  color: #fff;
  font-size: .78rem;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }

/* =====================================================================
   BACK TO TOP BUTTON
   ===================================================================== */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: var(--p1);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
  z-index: 900;
  box-shadow: var(--sh-md);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-3px); }

/* =====================================================================
   WIDGET AREAS
   ===================================================================== */
.widget {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 22px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--sh-xs);
}
.widget-title {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 800;
  color: var(--tx1);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--p1);
  display: inline-block;
}
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); }

/* =====================================================================
   FOOTER DYNAMIC LINKS
   ===================================================================== */
.footer-legal-links,
.footer-legal-menu {
  display: flex;
  flex-direction: row;      /* horizontal — ek line mein */
  flex-wrap: wrap;          /* chhote screen pe wrap ho jaayein */
  align-items: center;
  gap: 6px 20px;
  font-size: .78rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-legal-links a,
.footer-legal-menu a,
.footer-legal-menu li a {
  color: rgba(255,255,255,.5);
  transition: color var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.footer-legal-links a:hover,
.footer-legal-menu a:hover,
.footer-legal-menu li a:hover {
  color: rgba(255,255,255,.9);
}
/* Li items inline */
.footer-legal-menu li {
  display: inline-flex;
  align-items: center;
  list-style: none;
}
/* Separator between items */
.footer-legal-menu li + li::before {
  content: '·';
  margin-right: 20px;
  opacity: .3;
}

/* Mobile: wrap to 2 per row */
@media (max-width: 600px) {
  .footer-legal-links,
  .footer-legal-menu {
    gap: 8px 16px;
    font-size: .75rem;
  }
  .footer-legal-menu li + li::before {
    margin-right: 16px;
  }
}

/* =====================================================================
   GUTENBERG / BLOCK EDITOR COMPAT
   ===================================================================== */
.wp-block-image img { border-radius: var(--r-md); }
.wp-block-quote { border-left: 3px solid var(--a1); padding: 16px 24px; }
.wp-block-code { background: #0F172A; color: #94A3B8; }
.alignwide  { max-width: calc(var(--mw) + 80px); margin-inline: auto; }
.alignfull  { max-width: 100vw; margin-inline: calc(-1 * clamp(16px,4vw,40px)); }

/* =====================================================================
   ACCESSIBILITY
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================================
   SINGLE POST CONTAINER (card frame)
   ===================================================================== */
.single-container {
  max-width: 960px;
  margin-inline: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 40px 48px;
  margin-block: 32px;
}
@media (max-width: 1024px) {
  .single-container { padding: 32px 32px; margin-inline: 16px; }
}
@media (max-width: 768px) {
  .single-container { padding: 20px 16px; margin-inline: 12px; margin-block: 16px; }
}
@media (max-width: 380px) {
  .single-container { padding: 14px 12px; margin-inline: 8px; }
}

/* =====================================================================
   SINGLE MAIN (overflow protection)
   ===================================================================== */
.single-main {
  min-width: 0;
  overflow: hidden;
  max-width: 100%;
}

/* =====================================================================
   MOBILE-FIRST RESPONSIVE — ALL BREAKPOINTS (single block, no duplicates)
   ===================================================================== */

/* ── Tablet ≤ 1024px ── */
@media (max-width: 1024px) {
  .single-layout { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .related-posts .posts-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

/* ── Tablet ≤ 900px ── */
@media (max-width: 900px) {
  .hero-post { grid-template-columns: 1fr; }
}

/* ── Tablet ≤ 960px ── */
@media (max-width: 960px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile ≤ 768px ── */
@media (max-width: 768px) {

  /* Layout */
  html, body { overflow-x: hidden !important; max-width: 100vw; }
  .container { padding-inline: 14px !important; }

  /* Header — update CSS variable for nav panel top positioning */
  :root { --header-h: 58px; }
  .site-header { height: 58px !important; contain: layout style; }
  .header-inner { height: 58px !important; padding-inline: 14px !important; }
  .site-logo a { font-size: 1.1rem !important; }

  /* No hover transforms on mobile — prevents jitter */
  .post-card:hover { transform: none; box-shadow: var(--sh-md); }
  .post-card:hover .post-card__img { transform: none; }
  .hero-post:hover .hero-post__img { transform: none; }
  .hero-post__cta:hover { transform: none; }
  .footer-social:hover { transform: none; }

  /* Typography */
  .post-header__title { font-size: clamp(1.35rem, 5.5vw, 1.8rem) !important; }
  .post-header__meta { flex-wrap: wrap; gap: 6px 12px; font-size: .8rem; }
  .entry-content { font-size: 1rem !important; line-height: 1.82 !important; }
  .entry-content h2 { font-size: 1.35rem; margin-top: 1.8em; }
  .entry-content h3 { font-size: 1.15rem; }

  /* Images */
  .post-featured { margin-left: -16px; margin-right: -16px; border-radius: 0; }

  /* Share buttons */
  .share-btns { flex-wrap: wrap; gap: 8px; }
  .sh-btn { min-height: 44px; padding: 10px 14px; font-size: .82rem; }

  /* Related posts — 2 col mobile */
  .related-posts .posts-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }

  /* Post meta wrap */
  .post-card__meta { flex-wrap: wrap; }

  /* Single layout full width */
  .single-layout { display: block !important; }
  .single-main { width: 100% !important; max-width: 100% !important; overflow-x: hidden !important; word-break: break-word; overflow-wrap: break-word; }

  /* Tables — horizontal scroll */
  .entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Inputs — prevent iOS zoom */
  input[type="text"], input[type="email"], input[type="search"],
  input[type="url"], input[type="password"], textarea, select {
    font-size: 16px !important;
    min-height: 48px;
  }
}

/* ── Mobile ≤ 600px ── */
@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
  .related-posts .posts-grid { grid-template-columns: 1fr !important; }
}

/* ── Mobile ≤ 540px ── */
@media (max-width: 540px) {
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Mobile ≤ 480px ── */
@media (max-width: 480px) {
  .related-posts .posts-grid { grid-template-columns: 1fr !important; }
  .single-container { margin-inline: 8px; padding: 14px 12px; }
}

/* ── Very small ≤ 380px ── */
@media (max-width: 380px) {
  .container { padding-inline: 12px !important; }
  .entry-content { font-size: .95rem !important; }
  .post-header__title { font-size: 1.3rem !important; }
  .post-featured { margin-left: -12px; margin-right: -12px; }
}

/* =====================================================================
   PRINT
   ===================================================================== */
@media print {
  .site-header, .site-footer, .sidebar, .related-posts,
  #back-to-top, #reading-progress, .trending-strip,
  .share-bar, .author-bio, .whatsapp-float { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .entry-content { color: #000; }
}

/* =====================================================================
   POPULAR POSTS SECTION
   ===================================================================== */
.popular-posts {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.popular-posts .section-title { margin-bottom: 24px; }
.popular-posts .section-title .bar {
  background: linear-gradient(180deg, var(--hot), var(--amber));
}
.popular-posts .posts-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
}
.single-layout .popular-posts .posts-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}
@media (max-width: 1024px) {
  .popular-posts .posts-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .popular-posts .posts-grid { grid-template-columns: 1fr !important; }
}

/* =========================================================================
   POST ADS — Top & Bottom Ad Boxes
   ========================================================================= */
.dp-post-ad {
  width: 100%;
  margin: 24px 0;
  text-align: center;
  overflow: hidden;
  border-radius: 6px;
  background: transparent;
  line-height: 0; /* removes gap under inline images */
}
.dp-post-ad img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}
.dp-post-ad a {
  display: inline-block;
  line-height: 0;
}
.dp-post-ad--top {
  margin-top: 0;
  margin-bottom: 28px;
}
.dp-post-ad--bottom {
  margin-top: 28px;
  margin-bottom: 12px;
}
@media (max-width: 600px) {
  .dp-post-ad--top,
  .dp-post-ad--bottom {
    margin-top: 18px;
    margin-bottom: 18px;
  }
}

/* Ad Label — "Advertisement" text, Google SEO compliant */
.dp-ad-label {
  font-size: 10px;
  font-family: var(--ui, sans-serif);
  color: var(--tx4, #aaa);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin: 0 0 6px 0;
  line-height: 1.4;
  user-select: none;
}
