/* ═══════════════════════════════════════════════════════════
   shrivantra.com — Shared Styles
   Personal blog of Abhijeet Kr (The Royals Valley)
   Covers: Homepage + all blog posts
═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #ffffff;
  --bg-soft:    #f8f7f5;
  --bg-dark:    #0d0d0c;
  --ink:        #111110;
  --ink2:       #3d3d3a;
  --ink3:       #88887f;
  --blue:       #2563eb;
  --blue-pale:  #eff6ff;
  --blue-dark:  #1d4ed8;
  --green:      #16a34a;
  --amber:      #d97706;
  --purple:     #7c3aed;
  --red:        #dc2626;
  --border:     #e8e7e3;
  --serif:      'DM Serif Display', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 17px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: #dbeafe; }
img { max-width: 100%; display: block; }

/* ── UTILITY ── */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── PROGRESS BAR ── */
#progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  z-index: 9999;
  transition: width 0.08s linear;
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.nav {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center;
  justify-content: space-between; height: 60px;
  gap: 1rem;
}
.nav-brand { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none !important; }
.nav-blog-name {
  font-family: var(--serif);
  font-size: 1.15rem; color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-blog-name strong { color: var(--blue); font-weight: 400; }
.nav-company {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink3);
}
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-item {
  font-size: 0.8rem; font-weight: 500; color: var(--ink3);
  text-decoration: none !important;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-item:hover, .nav-item.active { color: var(--ink); border-color: var(--blue); }
.nav-cta {
  font-size: 0.78rem; font-weight: 700;
  color: white !important; background: var(--blue);
  padding: 0.45rem 1.1rem; border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue-dark); }

/* ══════════════════════════════════════════
   HOMEPAGE HERO
══════════════════════════════════════════ */
.home-hero {
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.home-hero-inner { max-width: 680px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--blue); display: block; }
.home-h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400; line-height: 1.15;
  letter-spacing: -0.025em; color: var(--ink);
  margin-bottom: 1rem;
}
.home-h1 em { font-style: italic; color: var(--blue); }
.home-lead {
  font-size: 1rem; color: var(--ink3); line-height: 1.8;
  max-width: 540px; margin-bottom: 2rem;
}
.home-author {
  display: flex; align-items: center; gap: 0.75rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.author-av {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
}
.author-name { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.author-role { font-size: 0.75rem; color: var(--ink3); }
.author-links { display: flex; gap: 0.5rem; margin-top: 0.25rem; flex-wrap: wrap; }
.author-link {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--blue); text-decoration: none !important;
  border: 1px solid #bfdbfe; padding: 0.15rem 0.5rem;
  border-radius: 4px; transition: background 0.15s;
}
.author-link:hover { background: var(--blue-pale); }

/* ══════════════════════════════════════════
   SECTION LABELS
══════════════════════════════════════════ */
.section-label {
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.section-label::before { content: ''; width: 16px; height: 1px; background: var(--ink3); display: block; }

/* ══════════════════════════════════════════
   CATEGORY BADGES
══════════════════════════════════════════ */
.cat {
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.22rem 0.65rem; border-radius: 100px;
  display: inline-block;
}
.cat-company    { background: #eff6ff; color: var(--blue); }
.cat-product    { background: #f5f3ff; color: var(--purple); }
.cat-research   { background: #f0fdf4; color: var(--green); }
.cat-update     { background: #fffbeb; color: var(--amber); }
.cat-guide      { background: #fef2f2; color: var(--red); }

/* ══════════════════════════════════════════
   FEATURED POST (homepage)
══════════════════════════════════════════ */
.featured-section { padding: 3rem 0 2rem; }
.featured-card {
  display: grid; grid-template-columns: 1fr 260px; gap: 2.5rem;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 2.5rem;
  text-decoration: none !important; color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.featured-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.07); border-color: var(--blue); }
.fc-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.fc-date, .fc-read { font-size: 0.75rem; color: var(--ink3); }
.fc-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400; line-height: 1.2;
  color: var(--ink); margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}
.fc-excerpt { font-size: 0.9rem; color: var(--ink2); line-height: 1.75; margin-bottom: 1.5rem; }
.fc-readmore {
  font-size: 0.8rem; font-weight: 700; color: var(--blue);
  display: flex; align-items: center; gap: 0.35rem;
}
.fc-visual {
  background: var(--blue-pale); border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 180px; gap: 0.5rem;
}
.fc-visual-icon { font-size: 3rem; }
.fc-visual-tag {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue);
}

/* ══════════════════════════════════════════
   POSTS GRID (homepage)
══════════════════════════════════════════ */
.posts-section { padding: 1.5rem 0 3rem; }
.posts-shell { padding-bottom: 5rem; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-head-stack {
  align-items: start;
}
.page-intro {
  padding-bottom: 2.5rem;
}
.results-copy {
  margin-top: 0.45rem;
  color: var(--ink3);
  font-size: 0.88rem;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 1.5rem; background: var(--bg);
  text-decoration: none !important; color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.post-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border-color: var(--blue); transform: translateY(-2px);
}
.post-card.coming { opacity: 0.5; pointer-events: none; cursor: default; }
.pc-top { margin-bottom: 0.75rem; }
.pc-title {
  font-family: var(--serif);
  font-size: 1.05rem; font-weight: 400; line-height: 1.35;
  color: var(--ink); margin-bottom: 0.6rem; letter-spacing: -0.01em;
}
.post-card:hover .pc-title { color: var(--blue); }
.pc-excerpt { font-size: 0.8rem; color: var(--ink3); line-height: 1.65; flex: 1; margin-bottom: 0.9rem; }
.pc-meta {
  display: flex; gap: 1rem; font-size: 0.7rem; color: var(--ink3);
  margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════
   HOMEPAGE CTA BANNER
══════════════════════════════════════════ */
.home-cta { padding: 2rem 0 5rem; }
.home-cta-box {
  background: var(--bg-dark); color: white;
  border-radius: 14px; padding: 3rem 2.5rem;
  display: grid; grid-template-columns: 1fr auto;
  gap: 2rem; align-items: center;
}
.home-cta-box h2 {
  font-family: var(--serif); font-size: 1.65rem;
  font-weight: 400; color: white; margin-bottom: 0.5rem;
}
.home-cta-box p { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.cta-buttons { display: flex; flex-direction: column; gap: 0.75rem; flex-shrink: 0; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  background: var(--blue); color: white !important;
  font-weight: 700; font-size: 0.85rem;
  padding: 0.8rem 1.5rem; border-radius: 7px;
  text-decoration: none !important; white-space: nowrap;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  background: transparent; color: rgba(255,255,255,0.7) !important;
  font-weight: 600; font-size: 0.82rem;
  padding: 0.7rem 1.5rem; border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.2);
  text-decoration: none !important; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); color: white !important; }
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: transparent;
  color: var(--ink) !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.8rem 1.25rem;
  border-radius: 7px;
  border: 1px solid var(--border);
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-outline-light:hover {
  background: var(--bg-soft);
  border-color: var(--blue);
  color: var(--blue) !important;
}
.search-shell {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}
.search-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
}
.search-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  color: var(--ink3);
  background: var(--bg-soft);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); }
.footer-main {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem; padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand-name {
  font-family: var(--serif); font-size: 1.1rem;
  color: var(--ink); margin-bottom: 0.35rem; display: block;
}
.footer-brand-name strong { color: var(--blue); font-weight: 400; }
.footer-tagline { font-size: 0.82rem; color: var(--ink3); line-height: 1.7; margin-bottom: 1.25rem; }
.footer-company-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border); border-radius: 6px;
  padding: 0.5rem 0.75rem; font-size: 0.75rem;
  color: var(--ink2); text-decoration: none !important;
  transition: border-color 0.15s;
}
.footer-company-badge:hover { border-color: var(--blue); color: var(--blue); }
.footer-col-title {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 0.85rem; display: block;
}
.footer-col { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col a {
  font-size: 0.84rem; color: var(--ink2);
  text-decoration: none !important; transition: color 0.15s;
}
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 0 2rem; font-size: 0.77rem; color: var(--ink3);
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom a { color: var(--ink3); font-weight: 600; text-decoration: none !important; }
.footer-bottom a:hover { color: var(--blue); }

/* ══════════════════════════════════════════
   BLOG POST PAGE — HERO
══════════════════════════════════════════ */
.post-hero { padding: 3.5rem 0 2.75rem; border-bottom: 1px solid var(--border); }
.post-hero-inner { max-width: 740px; }
.post-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.76rem; color: var(--ink3); margin-bottom: 1.25rem;
}
.post-breadcrumb a {
  color: var(--ink3); text-decoration: none !important;
  font-weight: 500; transition: color 0.15s;
}
.post-breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--border); }
.post-h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 400; line-height: 1.18;
  letter-spacing: -0.025em; color: var(--ink);
  margin: 0.75rem 0 1rem;
}
.post-h1 em { font-style: italic; color: var(--blue); }
.post-hero-lead {
  font-size: 1.07rem; color: var(--ink2);
  line-height: 1.78; margin-bottom: 1.75rem; max-width: 640px;
}
.post-meta-bar {
  display: flex; align-items: center; gap: 1.25rem;
  flex-wrap: wrap; font-size: 0.76rem; color: var(--ink3);
  padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.post-author-chip { display: flex; align-items: center; gap: 0.5rem; }
.post-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue); color: white;
  font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ══════════════════════════════════════════
   BLOG POST PAGE — LAYOUT
══════════════════════════════════════════ */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 4rem;
  padding: 3.5rem 0 5rem;
  align-items: start;
}
.post-body { min-width: 0; grid-column: 1; grid-row: 1; }
.post-sidebar { grid-column: 2; grid-row: 1; position: sticky; top: 76px; }

/* ══════════════════════════════════════════
   POST BODY TYPOGRAPHY
══════════════════════════════════════════ */
.post-body h2 {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 400;
  color: var(--ink); line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 3rem 0 0.9rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.post-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.post-body h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--ink);
  margin: 2rem 0 0.6rem;
}
.post-body p {
  font-size: 1rem; color: var(--ink2);
  line-height: 1.88; margin-bottom: 1.15rem;
}
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body a { color: var(--blue); font-weight: 500; }
.post-body a:hover { text-decoration: underline; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.post-body li { font-size: 1rem; color: var(--ink2); line-height: 1.78; margin-bottom: 0.3rem; }

.post-body blockquote {
  border-left: 3px solid var(--blue);
  margin: 2rem 0; padding: 1.1rem 1.6rem;
  background: var(--blue-pale); border-radius: 0 8px 8px 0;
}
.post-body blockquote p {
  font-family: var(--serif); font-style: italic;
  font-size: 1.1rem !important; color: var(--ink) !important;
  margin: 0 !important; line-height: 1.65;
}

/* callout boxes */
.callout {
  border-radius: 8px; padding: 1.2rem 1.5rem;
  margin: 2rem 0; border-left: 4px solid;
}
.callout-info { background: var(--blue-pale); border-color: var(--blue); }
.callout-warn { background: #fffbeb; border-color: var(--amber); }
.callout-success { background: #f0fdf4; border-color: var(--green); }
.callout-title {
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.callout-info .callout-title { color: var(--blue); }
.callout-warn .callout-title { color: #92400e; }
.callout-success .callout-title { color: var(--green); }
.callout p { font-size: 0.9rem !important; margin-bottom: 0 !important; }

/* comparison table */
.table-wrap { overflow-x: auto; margin: 2rem 0; }
.comp-table {
  width: 100%; border-collapse: collapse; min-width: 560px;
  background: white; border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; font-size: 0.82rem;
}
.comp-table th {
  background: var(--bg-soft); padding: 0.85rem 1rem;
  text-align: center; font-size: 0.7rem; font-weight: 700;
  border-bottom: 2px solid var(--border); color: var(--ink);
}
.comp-table th:first-child { text-align: left; }
.comp-table th.hl { background: var(--blue); color: white; }
.comp-table td {
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--border);
  text-align: center; color: var(--ink2);
}
.comp-table td:first-child { text-align: left; font-weight: 600; color: var(--ink); }
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr.win td { background: var(--blue-pale); }
.comp-table tr.win td:first-child { border-left: 3px solid var(--blue); font-weight: 700; }
.comp-table td.hl { background: var(--blue-pale); font-weight: 700; color: var(--blue); }
.ck { color: var(--green); font-weight: 900; }
.cx { color: var(--red); font-weight: 900; }
.cp { color: var(--amber); font-weight: 700; font-size: 0.75rem; }

/* post tags */
.post-tags {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.tag {
  background: var(--bg-soft); color: var(--ink3);
  font-size: 0.7rem; font-weight: 600;
  padding: 0.3rem 0.75rem; border-radius: 100px;
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
.sidebar-card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.35rem;
  margin-bottom: 1.15rem;
}
.sidebar-card:last-child { margin-bottom: 0; }
.sidebar-title {
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 1rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
/* TOC */
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.15rem; }
.toc-list li button {
  width: 100%; text-align: left; background: none; border: none;
  cursor: pointer; font-family: var(--sans);
  font-size: 0.8rem; color: var(--ink2);
  padding: 0.35rem 0.5rem; border-radius: 5px; line-height: 1.4;
  transition: background 0.15s, color 0.15s;
  display: flex; align-items: flex-start; gap: 0.4rem;
}
.toc-list li button::before {
  content: '›'; color: var(--blue); opacity: 0;
  transition: opacity 0.15s; flex-shrink: 0; line-height: 1.2;
}
.toc-list li button:hover { background: var(--blue-pale); color: var(--blue); }
.toc-list li button:hover::before,
.toc-list li button.active::before { opacity: 1; }
.toc-list li button.active { background: var(--blue-pale); color: var(--blue); font-weight: 600; }

/* more posts */
.more-post-item {
  display: block; padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none !important; color: inherit;
}
.more-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.more-post-cat {
  font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.2rem;
}
.more-post-title {
  font-size: 0.84rem; font-weight: 600;
  color: var(--ink2); line-height: 1.4;
  transition: color 0.15s;
}
.more-post-item:hover .more-post-title { color: var(--blue); }

/* about company box */
.company-box { display: flex; flex-direction: column; gap: 0.5rem; }
.company-box p { font-size: 0.8rem; color: var(--ink3); line-height: 1.6; }
.company-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.75rem; font-weight: 700; color: var(--blue);
  text-decoration: none !important;
}
.company-link:hover { text-decoration: underline !important; }

/* ══════════════════════════════════════════
   RELATED POSTS (bottom of post page)
══════════════════════════════════════════ */
.related-section {
  padding: 3rem 0 5rem;
  border-top: 1px solid var(--border);
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: 1.5rem;
}

/* ══════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════ */
#backTop {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.2s; z-index: 90;
}
#backTop.visible { opacity: 1; pointer-events: all; }
#backTop:hover { transform: translateY(-3px); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 960px) {
  .featured-card { grid-template-columns: 1fr; }
  .fc-visual { display: none; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; gap: 2rem; }
  .post-sidebar { position: static; grid-column: 1; grid-row: 2; }
  .post-body { grid-column: 1; grid-row: 1; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .home-cta-box { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: row; }
  .section-head { align-items: start; flex-direction: column; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 1.25rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .home-cta-box { padding: 2rem 1.5rem; }
  html { font-size: 16px; }
  .nav-right .nav-item { display: none; }
  .btn-primary, .btn-outline-light { width: 100%; }
}
