@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@300;400;500;600;700&family=Noto+Serif+Devanagari:wght@400;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --brand:       #E8401C;
  --brand-dark:  #C23015;
  --brand-light: #FFF0ED;
  --ink:         #1A1A1A;
  --ink-2:       #444;
  --ink-3:       #6B7280;
  --line:        #E5E7EB;
  --bg:          #F5F5F5;
  --white:       #FFFFFF;
  --card-bg:     #FFFFFF;
  --radius:      10px;
  --radius-sm:   6px;
  --shadow:      0 1px 4px rgba(0,0,0,.08), 0 2px 12px rgba(0,0,0,.05);
  --shadow-md:   0 4px 20px rgba(0,0,0,.12);
  --font-body:   'Noto Sans Devanagari', sans-serif;
  --font-head:   'Noto Serif Devanagari', serif;
  --transition:  .18s ease;
}

/* ── 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(--font-body); color: var(--ink); background: var(--bg); line-height: 1.75; overflow-x: hidden; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Skip link ─────────────────────────────────────────── */
.skip-link { position: absolute; top: -9999px; left: 0; background: var(--brand); color: #fff; padding: .5rem 1rem; z-index: 9999; }
.skip-link:focus { top: 0; }

/* ── Container ─────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: #fff;
  border-bottom: 2.5px solid var(--brand);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 54px; gap: .75rem;
}
.site-logo {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-size: 1.1rem;
  font-weight: 700; color: var(--ink); text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; color: var(--brand); }
.logo-img {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--brand);
  flex-shrink: 0;
}
.logo-text { line-height: 1.15; }
.logo-text small {
  display: block; font-size: .58rem; font-weight: 400;
  color: var(--brand); font-family: var(--font-body);
  letter-spacing: .01em;
}

/* hamburger */
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 34px; height: 34px;
  cursor: pointer; background: none; border: none; padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink);
  border-radius: 2px; transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav */
.site-nav {
  display: none;
  position: absolute; top: 57px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: .25rem 1rem .75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 199;
}
.site-nav.open { display: block; }
.nav-list { list-style: none; }
.nav-list li a {
  display: block; padding: .65rem .5rem;
  font-size: .9rem; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-list li:last-child a { border-bottom: none; }
.nav-list li a:hover { color: var(--brand); text-decoration: none; }
.nav-list li a.active { color: var(--brand); font-weight: 700; }

/* desktop nav */
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static;
    background: none; border: none; padding: 0;
    box-shadow: none; align-items: center;
  }
  .nav-list { display: flex; gap: 2px; }
  .nav-list li a {
    padding: .38rem .6rem; border-bottom: none;
    border-radius: 5px; font-size: .8rem;
    white-space: nowrap;
  }
  .nav-list li a:hover { background: var(--brand-light); color: var(--brand); }
  .nav-list li a.active {
    color: var(--brand); font-weight: 700;
    background: var(--brand-light);
  }
}

/* ── Category pills bar ─────────────────────────────────── */
.cat-pills {
  display: flex; gap: .4rem;
  overflow-x: auto; padding: .6rem 16px;
  background: #fff; border-bottom: 1px solid var(--line);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
}
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  white-space: nowrap; flex-shrink: 0;
  padding: .28rem .75rem; border-radius: 50px;
  font-size: .78rem; font-weight: 600;
  color: var(--ink-2); background: var(--bg);
  border: 1.5px solid var(--line); text-decoration: none;
  transition: var(--transition);
}
.cat-pill:hover, .cat-pill.active {
  background: var(--brand); color: #fff;
  border-color: var(--brand); text-decoration: none;
}

/* ══════════════════════════════════════════════
   HOME HERO
══════════════════════════════════════════════ */
.home-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #3a160a 100%);
  color: #fff; padding: 1.75rem 1rem 1.5rem; text-align: center;
}
.home-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 4.5vw, 2.2rem);
  font-weight: 700; margin-bottom: .4rem; line-height: 1.3;
}
.home-hero p {
  font-size: .92rem; opacity: .88;
  max-width: 500px; margin: 0 auto .9rem;
}
.social-bar {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: .45rem;
}
.social-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .85rem; border-radius: 50px;
  font-size: .78rem; font-weight: 600;
  text-decoration: none; color: #fff;
  transition: var(--transition);
  line-height: 1;
}
.social-btn:hover { transform: translateY(-2px); text-decoration: none; filter: brightness(1.1); }
.social-btn.yt  { background: #FF0000; }
.social-btn.tw  { background: #000; }
.social-btn.wa  { background: #25D366; }
.social-btn.tg  { background: #229ED9; }
.social-btn svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   SECTION TITLES
══════════════════════════════════════════════ */
.section-title {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
  color: var(--ink); padding: 1.1rem 0 .65rem;
  border-bottom: 2.5px solid var(--brand); margin-bottom: .85rem;
  display: flex; align-items: center; gap: .5rem;
}
.section-title::before {
  content: ''; display: inline-block;
  width: 4px; height: 1.1rem; background: var(--brand); border-radius: 2px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   ARTICLE GRID + CARDS
══════════════════════════════════════════════ */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem; padding-bottom: 1rem;
}
@media (min-width: 500px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid rgba(0,0,0,.04);
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Thumbnail */
.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--line);
  flex-shrink: 0;
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.article-card:hover .card-thumb img { transform: scale(1.05); }

.card-cat {
  position: absolute; top: .5rem; left: .5rem;
  background: var(--brand); color: #fff;
  font-size: .63rem; font-weight: 700;
  padding: .18rem .55rem; border-radius: 50px;
  text-transform: uppercase; letter-spacing: .03em;
  line-height: 1.4;
}

/* Card body */
.card-body { padding: .75rem; flex: 1; display: flex; flex-direction: column; }

.card-title {
  font-family: var(--font-head); font-size: .9rem; font-weight: 700;
  line-height: 1.45; margin-bottom: .4rem;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); text-decoration: none; }

.card-excerpt {
  font-size: .78rem; color: var(--ink-3); line-height: 1.55;
  margin-bottom: .6rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.card-meta {
  display: flex; align-items: center;
  justify-content: space-between;
  font-size: .7rem; color: var(--ink-3);
  flex-wrap: wrap; gap: .2rem;
  border-top: 1px solid var(--line); padding-top: .45rem;
}
.card-author { display: flex; align-items: center; gap: .3rem; }
.card-author img {
  width: 18px; height: 18px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.card-author a { color: var(--ink-2); font-weight: 600; }
.card-author a:hover { color: var(--brand); text-decoration: none; }

/* Featured card - full-width first post */
.featured-card {
  grid-column: 1 / -1;
  flex-direction: row;
}
.featured-card .card-thumb {
  min-width: 42%; max-width: 42%;
  aspect-ratio: auto; min-height: 210px;
  border-radius: 0;
}
.featured-card .card-body { padding: 1rem 1.1rem; }
.featured-card .card-title {
  font-size: 1.05rem; -webkit-line-clamp: 4;
}
.featured-card .card-excerpt { -webkit-line-clamp: 3; }

@media (max-width: 499px) {
  .featured-card { flex-direction: column; }
  .featured-card .card-thumb { min-width: 100%; max-width: 100%; aspect-ratio: 16/9; }
}

/* No thumb placeholder */
.no-thumb-bg {
  background: linear-gradient(135deg, var(--brand-light), #fde0d8);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; width: 100%; height: 100%;
}

/* ══════════════════════════════════════════════
   MAIN LAYOUT (content + sidebar)
══════════════════════════════════════════════ */
.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem; padding: .85rem 0 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .main-layout { grid-template-columns: 1fr 290px; gap: 1.75rem; }
}

/* ══════════════════════════════════════════════
   ARTICLE PAGE
══════════════════════════════════════════════ */
.article-header { padding: .85rem 0 .75rem; }

.article-cat {
  display: inline-block; background: var(--brand); color: #fff;
  font-size: .72rem; font-weight: 700;
  padding: .22rem .7rem; border-radius: 50px;
  margin-bottom: .65rem; text-decoration: none;
}
.article-cat:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }

.article-title {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3.5vw, 1.85rem);
  font-weight: 700; line-height: 1.35;
  margin-bottom: .6rem; color: var(--ink);
}

.article-meta {
  display: flex; flex-wrap: wrap; gap: .3rem .85rem;
  font-size: .78rem; color: var(--ink-3);
  align-items: center;
  padding: .6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.article-meta a { color: var(--ink-2); font-weight: 600; }
.article-meta a:hover { color: var(--brand); }
.article-meta time { display: flex; align-items: center; gap: .2rem; }

.article-author-chip {
  display: flex; align-items: center; gap: .4rem;
}
.article-author-chip img {
  width: 26px; height: 26px; border-radius: 50%;
  object-fit: cover; border: 1.5px solid var(--line);
}

.article-featured-img {
  width: 100%; border-radius: var(--radius);
  margin-bottom: 1.25rem; max-height: 400px; object-fit: cover;
  box-shadow: var(--shadow);
}

/* ── Article body typography ───────────────── */
.article-body {
  font-size: 1rem; line-height: 1.85; color: var(--ink);
}
.article-body > * + * { margin-top: .9rem; }

.article-body h2 {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700;
  margin: 1.75rem 0 .6rem; color: var(--ink);
  padding-left: .7rem;
  border-left: 3px solid var(--brand);
  line-height: 1.35;
}
.article-body h3 {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700;
  margin: 1.35rem 0 .45rem; color: var(--ink-2);
}
.article-body h4 {
  font-size: .95rem; font-weight: 700;
  margin: 1rem 0 .35rem; color: var(--ink-2);
}

.article-body p { margin-bottom: .9rem; }

.article-body ul, .article-body ol {
  margin: .5rem 0 .9rem 1.35rem;
}
.article-body li { margin-bottom: .35rem; }
.article-body li > ul, .article-body li > ol { margin-top: .2rem; }

.article-body strong { font-weight: 700; color: var(--ink); }

.article-body blockquote {
  border-left: 4px solid var(--brand);
  background: var(--brand-light);
  padding: .8rem 1rem;
  margin: 1.1rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2);
}
.article-body blockquote p { margin-bottom: 0; font-style: italic; }

/* Tables */
.article-body .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; }
.article-body table {
  width: 100%; border-collapse: collapse;
  font-size: .88rem; min-width: 320px;
}
.article-body th {
  background: var(--brand); color: #fff;
  padding: .55rem .7rem; text-align: left;
  font-weight: 700; white-space: nowrap;
}
.article-body td { padding: .5rem .7rem; border-bottom: 1px solid var(--line); }
.article-body tr:nth-child(even) td { background: #FAFAFA; }
.article-body tr:hover td { background: var(--brand-light); }

.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--brand-dark); }
.article-body img { border-radius: var(--radius-sm); margin: .75rem auto; }
.article-body code {
  background: #F3F4F6; padding: .12em .35em;
  border-radius: 4px; font-size: .85em;
  color: #c0392b;
}
.article-body pre {
  background: #1A1A1A; color: #f0f0f0;
  padding: 1rem; border-radius: var(--radius);
  overflow-x: auto; margin: 1rem 0;
  font-size: .85rem;
}
.article-body pre code { background: none; padding: 0; color: inherit; }

.article-body hr {
  border: none; border-top: 2px solid var(--line);
  margin: 1.5rem 0;
}

/* ── Tags ──────────────────────────────────── */
.article-tags {
  display: flex; flex-wrap: wrap; gap: .35rem;
  padding: .85rem 0 .5rem;
}
.tag-chip {
  padding: .27rem .65rem; border-radius: 50px;
  font-size: .75rem; background: var(--bg);
  border: 1.5px solid var(--line); color: var(--ink-2);
  text-decoration: none; transition: var(--transition);
}
.tag-chip:hover {
  background: var(--brand); color: #fff;
  border-color: var(--brand); text-decoration: none;
}

/* ── FAQ ───────────────────────────────────── */
.faq-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.1rem 1rem 0.5rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.faq-section > h2 {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  margin-bottom: .85rem; color: var(--ink);
  display: flex; align-items: center; gap: .4rem;
  padding-bottom: .6rem; border-bottom: 2px solid var(--brand);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  text-align: left; padding: .75rem 0;
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  color: var(--ink); display: flex;
  justify-content: space-between; align-items: flex-start;
  gap: .75rem; line-height: 1.45;
}
.faq-question:hover { color: var(--brand); }
.faq-icon {
  flex-shrink: 0; width: 20px; height: 20px;
  background: var(--brand-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: .1rem;
  transition: transform var(--transition), background var(--transition);
}
.faq-icon svg { width: 12px; height: 12px; fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; }
.faq-item.open .faq-icon { background: var(--brand); transform: rotate(180deg); }
.faq-item.open .faq-icon svg { stroke: #fff; }

.faq-answer {
  display: none; padding: 0 .25rem .75rem;
  font-size: .875rem; color: var(--ink-2);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ── Author box ────────────────────────────── */
.author-box {
  display: flex; gap: .85rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1rem; margin: 1.5rem 0;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--brand);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
}
.author-box img {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--brand-light);
}
.author-box-info h3 { font-size: .95rem; font-weight: 700; margin-bottom: .15rem; }
.author-box-info .author-role {
  font-size: .73rem; color: var(--brand);
  font-weight: 700; margin-bottom: .35rem;
  text-transform: uppercase; letter-spacing: .03em;
}
.author-box-info p { font-size: .82rem; color: var(--ink-2); line-height: 1.6; margin-bottom: .4rem; }
.author-box-info a { font-size: .8rem; font-weight: 600; color: var(--brand); }

/* ── Share box ─────────────────────────────── */
.share-box {
  background: var(--card-bg); border-radius: var(--radius);
  padding: .9rem 1rem; margin: 1.25rem 0;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.share-box p {
  font-weight: 700; margin-bottom: .6rem;
  font-size: .85rem; color: var(--ink-2);
}
.share-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── Notice boxes ──────────────────────────── */
.notice-box {
  padding: .75rem .9rem; border-radius: var(--radius-sm);
  font-size: .86rem; margin: .85rem 0;
  display: flex; gap: .5rem; align-items: flex-start;
  line-height: 1.6;
}
.notice-box .notice-icon { flex-shrink: 0; font-size: 1rem; margin-top: .05rem; }
.notice-box.info     { background: #EFF6FF; border-left: 4px solid #3B82F6; color: #1e40af; }
.notice-box.warn     { background: #FFFBEB; border-left: 4px solid #F59E0B; color: #92400e; }
.notice-box.deadline { background: var(--brand-light); border-left: 4px solid var(--brand); color: #9a3412; }

/* ── Breadcrumb ────────────────────────────── */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .2rem .35rem;
  font-size: .75rem; color: var(--ink-3);
  padding: .5rem 0; align-items: center;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .5; font-size: .7rem; }
.breadcrumb span[aria-current] { color: var(--ink-2); font-weight: 500; }

/* ══════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-widget {
  background: var(--card-bg); border-radius: var(--radius);
  padding: .9rem; box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.04);
}
.widget-title {
  font-family: var(--font-head); font-size: .95rem; font-weight: 700;
  margin-bottom: .75rem; padding-bottom: .45rem;
  border-bottom: 2px solid var(--brand); color: var(--ink);
}

/* Sidebar posts */
.sidebar-post-list { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.sidebar-post-item { display: flex; gap: .55rem; align-items: flex-start; }
.sidebar-post-thumb {
  width: 64px; height: 48px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
  background: var(--line);
}
.sidebar-post-info { flex: 1; min-width: 0; }
.sidebar-post-title {
  display: block; font-size: .8rem; font-weight: 600;
  line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-post-title:hover { color: var(--brand); text-decoration: none; }
.sidebar-post-date { font-size: .68rem; color: var(--ink-3); margin-top: .2rem; }

/* Sidebar social */
.sidebar-social { display: flex; flex-direction: column; gap: .4rem; }
.sidebar-social a {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .75rem; border-radius: var(--radius-sm);
  font-size: .84rem; font-weight: 600; color: #fff;
  text-decoration: none; transition: var(--transition);
}
.sidebar-social a:hover { filter: brightness(1.1); transform: translateX(2px); text-decoration: none; }
.sidebar-social a svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.sidebar-social a.yt  { background: #FF0000; }
.sidebar-social a.tw  { background: #0f0f0f; }
.sidebar-social a.wa  { background: #25D366; }
.sidebar-social a.tg  { background: #229ED9; }

/* ══════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════ */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: .35rem; flex-wrap: wrap; padding: 1.25rem 0 .5rem;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 .55rem;
  border-radius: var(--radius-sm); font-size: .83rem; font-weight: 600;
  border: 1.5px solid var(--line); color: var(--ink-2);
  text-decoration: none; transition: var(--transition);
  background: var(--card-bg);
}
.pagination a:hover {
  background: var(--brand); color: #fff;
  border-color: var(--brand); text-decoration: none;
}
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .disabled { opacity: .35; pointer-events: none; }

/* ══════════════════════════════════════════════
   AUTHOR PAGES
══════════════════════════════════════════════ */
.author-profile-hero {
  background: linear-gradient(135deg, #1a1a1a, #3a160a);
  color: #fff; padding: 1.75rem 1rem; text-align: center;
  border-radius: var(--radius); margin-bottom: 1.25rem;
}
.author-profile-img {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; margin: 0 auto .75rem;
  border: 3px solid var(--brand);
}
.author-profile-name { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; }
.author-profile-role {
  color: #ffb3a0; font-weight: 600; font-size: .85rem;
  margin: .2rem 0 .4rem;
}
.author-profile-bio { font-size: .88rem; opacity: .85; max-width: 480px; margin: 0 auto; }


/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
  background: #141414;
  color: #b0b0b0;
  padding: 2.25rem 1rem 1.25rem;
  margin-top: 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 580px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px)  { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }

/* Brand */
.footer-logo {
  width: 44px; height: 44px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--brand);
  margin-bottom: .6rem;
}
.footer-brand h3 {
  font-family: var(--font-head); font-size: 1rem;
  color: #fff; margin-bottom: .3rem;
}
.footer-brand p { font-size: .8rem; line-height: 1.65; color: #888; }

/* Social icon row */
.footer-social {
  display: flex; gap: .4rem;
  margin-top: .75rem; flex-wrap: wrap;
}
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: #2a2a2a; color: #ccc;
  transition: var(--transition);
  flex-shrink: 0;
}
.footer-social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.footer-social a svg { width: 15px; height: 15px; fill: currentColor; }

/* Columns */
.footer-col h4 {
  font-size: .83rem; font-weight: 700;
  color: #fff; margin-bottom: .65rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .38rem; }
.footer-col ul li a { font-size: .8rem; color: #888; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--brand); text-decoration: none; }

/* Channel join buttons inside footer */
.footer-channels {
  display: flex; flex-direction: column;
  gap: .4rem; margin-top: .85rem;
}
.footer-channel-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .7rem; border-radius: 6px;
  font-size: .78rem; font-weight: 600;
  color: #fff; text-decoration: none;
  transition: var(--transition);
  width: fit-content;
}
.footer-channel-btn:hover { filter: brightness(1.12); text-decoration: none; transform: translateX(2px); }
.footer-channel-btn.wa { background: #25D366; }
.footer-channel-btn.tg { background: #229ED9; }
.footer-channel-btn svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid #262626;
  padding-top: 1rem;
  display: flex; flex-wrap: wrap;
  gap: .4rem; justify-content: space-between;
  font-size: .75rem; color: #555;
}
.footer-bottom-links { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.footer-bottom a { color: #555; }
.footer-bottom a:hover { color: var(--brand); }


/* ══════════════════════════════════════════════
   FLOATING ELEMENTS
══════════════════════════════════════════════ */
/* Reading progress */
#reading-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--brand); z-index: 9999;
  width: 0%; transition: width .1s linear;
  pointer-events: none;
}

/* Back to top */
#back-top {
  position: fixed; bottom: 1.1rem; right: 1.1rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(232,64,28,.35);
  cursor: pointer; border: none; font-size: 1.1rem;
  z-index: 400; transition: var(--transition);
  line-height: 1;
}
#back-top.show { display: flex; }
#back-top:hover { background: var(--brand-dark); transform: translateY(-3px); }


/* ══════════════════════════════════════════════
   SEARCH BOX
══════════════════════════════════════════════ */
.search-box { position: relative; }
.search-box input {
  width: 100%; padding: .55rem 2.2rem .55rem .85rem;
  border: 1.5px solid var(--line); border-radius: 50px;
  font-family: var(--font-body); font-size: .84rem;
  color: var(--ink); background: var(--bg); outline: none;
  transition: border-color var(--transition);
}
.search-box input:focus { border-color: var(--brand); }
.search-box button {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--ink-3);
  display: flex; align-items: center;
}
.search-box button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ══════════════════════════════════════════════
   UTILITY
══════════════════════════════════════════════ */
.text-center  { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }

/* ══════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════ */
@media print {
  .site-header, .site-footer, .sidebar,
  #back-top, #reading-progress, 
  .article-body { font-size: 11pt; line-height: 1.6; }
  .main-layout { grid-template-columns: 1fr !important; }
}

/* ══════════════════════════════════════════════
   AD BANNER — all slots
   Mirrors the AdBanner.client.tsx component style
   adapted for Hindi audience & site design tokens
══════════════════════════════════════════════ */

/* Base — hidden until JS hydrates */
/* ═══════════════════════════════════════════════════════════
   AD BANNER  —  fixed 300 × 250 (IAB Medium Rectangle)
   Visible on all screen sizes; centred when narrower than parent
   ═══════════════════════════════════════════════════════════ */

.ad-banner {
  display: none;           /* JS sets display:flex once ad is ready */
  flex-direction: column;
  align-items: center;     /* centre the fixed-width card */
  gap: 5px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
}
.ad-banner.is-ready { display: flex; }  /* JS adds this class */

/* ── Label ── */
.ad-label {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 300px;            /* align with card */
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-left: 2px;
  line-height: 1;
  box-sizing: border-box;
}
.ad-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
}

/* ── Card — always 300 × 250, every slot, every screen ── */
.ad-card {
  position: relative;
  display: block;
  width: 300px;
  height: 250px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg);
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  outline-offset: 3px;
  box-sizing: border-box;
}
.ad-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.ad-card:focus-visible { outline: 2px solid var(--brand); }

/* ── Image fills the 300 × 250 card exactly ── */
.ad-picture {
  display: block;
  width: 300px;
  height: 250px;
  line-height: 0;
}
.ad-img {
  display: block;
  width: 300px;
  height: 250px;
  object-fit: cover;
  background: var(--line);
  transition: transform .35s ease;
}
.ad-card:hover .ad-img { transform: scale(1.02); }

/* ── Hover overlay ── */
.ad-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.38) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.ad-card:hover .ad-overlay { opacity: 1; }

.ad-cta {
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}

/* ── Footer link ── */
.ad-footer {
  display: flex;
  justify-content: flex-end;
  width: 300px;            /* align with card */
  padding-right: 2px;
  box-sizing: border-box;
}
.ad-advertise-link {
  font-size: .65rem;
  color: var(--ink-3);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color var(--transition);
}
.ad-advertise-link:hover { color: var(--brand); text-decoration: underline; }

/* ── Slot variants (spacing only — size stays 300 × 250) ── */
.ad-banner--sidebar  { margin: .25rem 0; }
.ad-banner--inline   { margin: 1.75rem auto; }
.ad-banner--footer   { margin: 1.5rem auto 0; }

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  .ad-card {
    border-color: rgba(255,255,255,.08);
    background: #1e1e1e;
  }
  .ad-img { background: #2a2a2a; }
}
