/* ═══════════════════════════════════════════════
   DHARMALAY — styles.css
   A digital library of Indian philosophy
   Monochrome scholarly aesthetic
   ═══════════════════════════════════════════════ */

/* ─── Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ─── Custom Properties ─── */
:root {
  --saffron: #C4742A;
  --saffron-hover: #A8622A;
  --indigo: #4A3F6B;
  --indigo-hover: #3D3459;
  --ink: #111111;
  --black: #000000;
  --parchment: #FAF9F6;
  --card: #FFFFFF;
  --border: #E5E3DE;
  --border-light: #EEECE7;
  --text: #111111;
  --text-sec: #555555;
  --text-muted: #999999;
  --radius: 10px;
  --radius-lg: 14px;
  --max-w: 1140px;
  --font-hi: 'Hind', sans-serif;
  --font-en: 'EB Garamond', 'Georgia', serif;
}

/* ─── SVG Patterns as backgrounds ─── */
/* These are applied via classes */

.pat-dots {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='0.8' fill='black' opacity='0.1'/%3E%3C/svg%3E");
}

.pat-dots-dense {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='5' cy='5' r='0.7' fill='black' opacity='0.12'/%3E%3C/svg%3E");
}

.pat-slant {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='10' x2='10' y2='0' stroke='black' stroke-width='0.7' opacity='0.055'/%3E%3C/svg%3E");
}

.pat-slant-dark {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='10' x2='10' y2='0' stroke='white' stroke-width='0.7' opacity='0.08'/%3E%3C/svg%3E");
}

.pat-cross {
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='14' x2='14' y2='0' stroke='black' stroke-width='0.4' opacity='0.04'/%3E%3Cline x1='0' y1='0' x2='14' y2='14' stroke='black' stroke-width='0.4' opacity='0.04'/%3E%3C/svg%3E");
}

.pat-grid {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='24' y1='0' x2='24' y2='24' stroke='black' stroke-width='0.3' opacity='0.04'/%3E%3Cline x1='0' y1='24' x2='24' y2='24' stroke='black' stroke-width='0.3' opacity='0.04'/%3E%3C/svg%3E");
}

/* ─── Reset & Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-hi);
  font-size: 16px;
  background: var(--parchment);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: rgba(0,0,0,0.08); color: var(--ink); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #bbb; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-hi); cursor: pointer; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ─── Utility ─── */
.greyscale { filter: grayscale(1); opacity: 0.65; }
.text-muted { color: var(--text-muted); }
.text-sec { color: var(--text-sec); }
.font-en { font-family: var(--font-en); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── Fade-in animation ─── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in.d1 { transition-delay: 0.08s; }
.fade-in.d2 { transition-delay: 0.16s; }
.fade-in.d3 { transition-delay: 0.24s; }
.fade-in.d4 { transition-delay: 0.32s; }
.fade-in.d5 { transition-delay: 0.40s; }
.fade-in.d6 { transition-delay: 0.48s; }

/* ─── Dot Strip Decoration ─── */
.dot-strip {
  position: absolute;
  display: flex;
  gap: 7px;
  pointer-events: none;
}
.dot-strip.vertical { flex-direction: column; }
.dot-strip span {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: #000;
  opacity: 0.1;
}

/* ─── Divider ─── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 16px 0 0;
}
.divider::before, .divider::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--border);
}
.divider span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ccc;
  display: block;
}

/* ─── Section Header ─── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header .en-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-muted);
  font-family: var(--font-en);
  display: block;
}
.section-header h2 {
  font-size: clamp(24px, 3.8vw, 36px);
  font-weight: 400;
  margin-top: 6px;
  color: var(--ink);
}
.section-header h2 strong { font-weight: 700; }


/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all 0.35s ease;
}
.navbar.scrolled {
  background: rgba(17,17,17,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-brand .om {
  font-size: 28px;
  color: #fff;
  opacity: 0.35;
}
.navbar-brand .name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.4);
}
.btn-contact {
  background: var(--indigo);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 22px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-contact:hover { background: var(--indigo-hover); transform: translateY(-1px); }

/* Override — btn-contact in nav should not get generic nav link styles */
.nav-links .btn-contact {
  color: #fff;
  border-bottom: none;
  padding-bottom: 8px;
  opacity: 1;
}
.nav-links .btn-contact:hover {
  color: #fff;
  border-bottom: none;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: #fff;
}
.mobile-menu {
  display: none;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: #fff; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}


/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 26px;
  padding: 13px 30px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.btn-saffron { background: var(--saffron); color: #fff; }
.btn-saffron:hover { background: var(--saffron-hover); }
.btn-indigo { background: var(--indigo); color: #fff; }
.btn-indigo:hover { background: var(--indigo-hover); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 22px; font-size: 14px; }
.btn-xs { padding: 7px 16px; font-size: 13px; border-radius: 16px; }

.btn .arrow {
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}


/* ═══════════════════════════════════════════════
   COVER IMAGE BACKGROUNDS (shared)
   ═══════════════════════════════════════════════ */

.cover-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay via pseudo-element */
.cover-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* All direct children above overlay — but NO position change */
.cover-bg > .container,
.cover-bg > .fade-in { position: relative; z-index: 3; }

/* Decorative elements just above overlay */
.cover-bg > .dot-strip,
.cover-bg > .pat-slant { z-index: 2; }

/* Parchment overlay — hero & category: dark at top to match navbar, then parchment */
.cover-bg--parchment::before {
  background:
    linear-gradient(180deg,
      rgba(17,17,17, 0.55) 0%,
      rgba(17,17,17, 0.15) 12%,
      rgba(250,249,246, 0.55) 30%,
      rgba(250,249,246, 0.72) 65%,
      rgba(250,249,246, 1.0)  100%
    );
}

/* Hero-specific override — full dark overlay so white text reads clearly */
.hero.cover-bg--parchment::before {
  background:
    linear-gradient(180deg,
      rgba(12,10,8, 0.88) 0%,
      rgba(12,10,8, 0.78) 40%,
      rgba(12,10,8, 0.68) 100%
    );
}

/* Darker overlay — post hero */
.cover-bg--dark::before {
  background:
    linear-gradient(180deg,
      rgba(17,17,17, 0.6) 0%,
      rgba(17,17,17, 0.2) 15%,
      rgba(250,249,246, 0.58) 35%,
      rgba(250,249,246, 0.75) 65%,
      rgba(250,249,246, 1.0)  100%
    );
}

/* Homepage hero image */
.hero-cover {
  background-image: url('/img/home-hero.jpg');
}

/* Category page image */
.cat-cover {
  background-image: url('/img/cat-hero.png');
}

/* Post page hero image */
.post-cover-bg {
  background-image: url('/img/cat-hero.png');
}

/* Featured big card image */
.featured-cover {
  background-image: url('/img/home-hero.png');
  background-size: cover;
  background-position: center;
}

/* Post inline cover image */
.post-cover-img {
  background-image: url('/img/home-hero.png');
  background-size: cover;
  background-position: center;
}


/* ═══════════════════════════════════════════════
   HERO (Homepage)
   ═══════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 56px;
  text-align: center;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero { min-height: 60vh; padding: 88px 0 44px; }
}
.hero .om-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-55%);
  font-size: 340px;
  font-family: serif;
  color: #000;
  opacity: 0.018;
  pointer-events: none;
  line-height: 1;
}
.hero .slant-left {
  position: absolute;
  top: 80px; left: 0;
  width: 100px; height: 320px;
}
.hero .slant-right {
  position: absolute;
  top: 80px; right: 0;
  width: 100px; height: 320px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 5px 18px;
  margin-bottom: 28px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}
.hero-badge .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,198,90,0.8);
  opacity: 1;
}

.hero h1 {
  font-size: clamp(30px, 5.2vw, 54px);
  font-weight: 400;
  color: rgba(255,255,255,0.95);
  line-height: 1.3;
  margin-bottom: 22px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 strong {
  font-weight: 700;
  color: rgba(255,198,90,1);
}

.hero .subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  line-height: 1.85;
  max-width: 540px;
  margin: 0 auto 36px;
}

.hero .btn-ghost {
  color: #fff;
  border: 2px solid var(--indigo);
}
.hero .btn-ghost:hover {
  border-color: var(--indigo-hover);
  background: rgba(79,70,229,0.15);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════
   STATS RIBBON
   ═══════════════════════════════════════════════ */

.stats-ribbon {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  position: relative;
}
.stats-ribbon-inner {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-item .number {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-en);
  letter-spacing: -1px;
  line-height: 1.1;
}
.stat-item .label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 600px) {
  .stats-ribbon-inner { gap: 32px; }
}


/* ═══════════════════════════════════════════════
   BIG QUOTE
   ═══════════════════════════════════════════════ */

.big-quote {
  padding: 64px 24px;
  text-align: center;
  position: relative;
}
.big-quote blockquote {
  font-size: clamp(22px, 3.8vw, 42px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.55;
  max-width: 800px;
  margin: 0 auto;
  font-style: italic;
  font-family: var(--font-hi);
}
.big-quote .attribution {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 20px;
  font-style: normal;
}


/* ═══════════════════════════════════════════════
   FEATURED ESSAYS (Cards)
   ═══════════════════════════════════════════════ */

.essay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
}

.essay-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.essay-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  border-color: #ccc;
}

/* Card image */
.essay-card .card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}
.essay-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(0.95);
  transition: filter 0.4s, transform 0.4s;
}
.essay-card:hover .card-img img {
  filter: grayscale(0.15) contrast(1);
  transform: scale(1.03);
}

.essay-card .card-head {
  height: 48px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
}
.essay-card .card-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.5;
  color: var(--ink);
}
.essay-card .card-time {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-en);
}
.essay-card .card-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.essay-card h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 12px;
  color: var(--ink);
}
.essay-card .excerpt {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.85;
  flex: 1;
}
.essay-card .card-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.essay-card .card-date {
  font-size: 13px;
  color: var(--text-muted);
}
.essay-card .card-link {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.essay-card:hover .card-link { opacity: 1; }


/* ═══════════════════════════════════════════════
   FEATURED HERO CARD (big featured post)
   ═══════════════════════════════════════════════ */

.featured-big {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 40px;
  cursor: pointer;
  transition: all 0.3s;
}
.featured-big:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
  border-color: #ccc;
}
.featured-big .img-area {
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.featured-big .img-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35);
  transition: filter 0.4s, transform 0.4s;
}
.featured-big:hover .img-area img {
  filter: grayscale(0.1);
  transform: scale(1.03);
}
.featured-big .img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: var(--parchment);
}
.featured-big .text-area {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.featured-big .text-area .label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.featured-big .text-area .badge-featured {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink);
  opacity: 0.4;
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 10px;
}
.featured-big .text-area h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 16px;
  color: var(--ink);
}
.featured-big .text-area p {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.85;
  margin-bottom: 24px;
}
.featured-big .text-area .meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}

@media (max-width: 768px) {
  .featured-big { grid-template-columns: 1fr; }
  .featured-big .img-area { min-height: 200px; }
  .featured-big .text-area { padding: 24px; }
}


/* ═══════════════════════════════════════════════
   GITA / DARK QUOTE BLOCK
   ═══════════════════════════════════════════════ */

.gita-block {
  background: var(--ink);
  border-radius: 12px;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.gita-block .corner-tl {
  position: absolute;
  top: 0; left: 0;
  width: 120px; height: 120px;
  opacity: 0.5;
}
.gita-block .corner-br {
  position: absolute;
  bottom: 0; right: 0;
  width: 120px; height: 120px;
  opacity: 0.5;
}
.gita-block .ref {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-family: var(--font-en);
  opacity: 0.35;
}
.gita-block .shloka {
  font-size: clamp(20px, 3.2vw, 30px);
  line-height: 1.75;
  margin: 28px auto 20px;
  max-width: 660px;
  font-weight: 400;
  opacity: 0.92;
}
.gita-block .meaning {
  font-size: 15px;
  line-height: 1.85;
  max-width: 540px;
  margin: 0 auto;
  opacity: 0.5;
}
.gita-block .dark-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 24px 0;
}
.gita-block .dark-divider span {
  width: 24px; height: 1px;
  background: #fff;
  opacity: 0.2;
}
.gita-block .dark-divider i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.2;
  display: block;
}


/* ═══════════════════════════════════════════════
   CATEGORIES GRID
   ═══════════════════════════════════════════════ */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.cat-card:hover {
  border-color: #bbb;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
}
/* Cover image */
.cat-card-img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.cat-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, var(--parchment), #ede8df);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  opacity: .55;
  flex-shrink: 0;
}
/* Card body */
.cat-card-body {
  padding: 18px 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cat-card .corner-dots {
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 40px;
  pointer-events: none;
}
.cat-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--ink);
}
.cat-card p {
  font-size: 13.5px;
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 10px;
  flex: 1;
}
/* Sub-category pills */
.cat-card-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.cat-sub-pill {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--parchment);
  color: var(--text-sec);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.cat-card:hover .cat-sub-pill {
  background: rgba(224,124,58,.07);
  border-color: rgba(224,124,58,.3);
}
.cat-card .count {
  font-size: 12.5px;
  color: var(--saffron);
  font-weight: 500;
  margin-top: 10px;
}


/* ═══════════════════════════════════════════════
   ARTICLE LIST
   ═══════════════════════════════════════════════ */

.article-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-row {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s;
}
.article-row:last-child { border-bottom: none; }
.article-row:hover { background: #FAFAF7; }

.article-row .info { flex: 1; min-width: 240px; }
.article-row .cat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 3px;
}
.article-row h4 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  transition: opacity 0.2s;
}
.article-row:hover h4 { opacity: 0.7; }

.article-row .meta-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.article-row .date { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.article-row .read-time { font-size: 12px; color: var(--text-muted); font-family: var(--font-en); white-space: nowrap; }
.article-row .arrow {
  font-size: 16px;
  opacity: 0.15;
  transition: all 0.2s;
}
.article-row:hover .arrow { opacity: 0.6; transform: translateX(3px); }


/* ═══════════════════════════════════════════════
   CAROUSEL / HORIZONTAL SCROLL
   ═══════════════════════════════════════════════ */

.carousel-section { position: relative; }

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 20px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
  min-width: 300px;
  max-width: 340px;
  scroll-snap-align: start;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.carousel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: #ccc;
}
.carousel-card .card-img {
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.carousel-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(0.95);
  transition: filter 0.4s, transform 0.4s;
}
.carousel-card:hover .card-img img {
  filter: grayscale(0.15) contrast(1);
  transform: scale(1.03);
}
.carousel-card .body {
  padding: 18px 20px;
}
.carousel-card h4 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
}
.carousel-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.7;
}
.carousel-card .card-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.carousel-nav {
  display: flex;
  gap: 8px;
}
.carousel-nav button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.carousel-nav button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}


/* ═══════════════════════════════════════════════
   AUTHOR SECTION
   ═══════════════════════════════════════════════ */

.author-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 52px);
  display: flex;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.author-block .avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--parchment);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  flex-shrink: 0;
}
.author-block .bio { flex: 1; min-width: 260px; position: relative; }
.author-block .bio .en-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-muted);
  font-family: var(--font-en);
}
.author-block .bio h3 {
  font-size: 26px;
  font-weight: 600;
  margin: 6px 0 12px;
}
.author-block .bio p {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.9;
  margin-bottom: 20px;
}


/* ═══════════════════════════════════════════════
   NEWSLETTER / CTA STRIP
   ═══════════════════════════════════════════════ */

.newsletter-strip {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  background: var(--card);
}
.newsletter-strip h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}
.newsletter-strip p {
  font-size: 15px;
  color: var(--text-sec);
  margin-top: 6px;
  line-height: 1.7;
}
.newsletter-strip .form-row {
  display: flex;
  gap: 10px;
}
.newsletter-strip input {
  font-family: var(--font-hi);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 10px 20px;
  font-size: 15px;
  background: var(--parchment);
  outline: none;
  width: 260px;
  transition: border-color 0.2s;
}
.newsletter-strip input:focus {
  border-color: #bbb;
}

@media (max-width: 600px) {
  .newsletter-strip input { width: 100%; }
  .newsletter-strip .form-row { flex-direction: column; width: 100%; }
}


/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

.site-footer {
  border-top: 1px solid var(--border);
  position: relative;
}
.site-footer .slant-strip {
  height: 6px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 28px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  margin-bottom: 44px;
}
.footer-about { flex: 1 1 260px; }
.footer-about .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.footer-about .brand .om { font-size: 28px; color: var(--ink); opacity: 0.2; }
.footer-about .brand .name { font-size: 22px; font-weight: 700; color: var(--ink); }
.footer-about p {
  font-size: 14.5px;
  color: var(--text-sec);
  line-height: 1.8;
  max-width: 300px;
}
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  list-style: none;
}
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink);
  background: var(--card);
  opacity: 0.5;
  transition: all 0.2s;
}
.footer-social a:hover { opacity: 1; border-color: #aaa; }

.footer-col { flex: 0 0 auto; min-width: 130px; }
.footer-col h4 { font-size: 15px; font-weight: 600; margin-bottom: 14px; color: var(--ink); }
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 9px;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.footer-col a:hover { opacity: 1; color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom .motto {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 1px;
}


/* ═══════════════════════════════════════════════
   CATEGORY PAGE
   ═══════════════════════════════════════════════ */

.page-header {
  padding: 110px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-height: 85vh;
}

@media (max-width: 768px) {
  .page-header { max-height: 100vh; padding: 96px 0 36px; }
}
.page-header h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}
.page-header h1 strong { font-weight: 700; }
.page-header .desc {
  font-size: 17px;
  color: var(--text-sec);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}
.page-header .post-count {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}
.filter-btn {
  font-family: var(--font-hi);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text-sec);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: #bbb; color: var(--ink); }
.filter-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Category post list items */
.cat-post-list { display: flex; flex-direction: column; gap: 16px; }
.cat-post-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  display: flex;
  gap: 0;
  align-items: stretch;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
}
.cat-post-item:hover {
  border-color: #ccc;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}
.cat-post-item .thumb {
  width: 180px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.cat-post-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4);
  transition: filter 0.4s, transform 0.4s;
}
.cat-post-item:hover .thumb img {
  filter: grayscale(0.1);
  transform: scale(1.04);
}
.cat-post-item .text-body {
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex: 1;
}
.cat-post-item .num {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-en);
  color: var(--ink);
  opacity: 0.1;
  flex-shrink: 0;
  width: 40px;
  text-align: right;
  line-height: 1.2;
}
.cat-post-item .content { flex: 1; }
.cat-post-item .content h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
}
.cat-post-item .content p {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 12px;
}
.cat-post-item .content .meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 40px;
}
.pagination button {
  font-family: var(--font-en);
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}
.pagination button:hover { border-color: #aaa; }
.pagination button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

@media (max-width: 600px) {
  .cat-post-item .thumb { width: 100px; }
  .cat-post-item .text-body { padding: 16px; gap: 12px; }
  .cat-post-item .num { font-size: 22px; width: 28px; }
}


/* ═══════════════════════════════════════════════
   SINGLE POST PAGE
   ═══════════════════════════════════════════════ */

.post-hero {
  padding: 110px 0 44px;
  text-align: center;
  position: relative;
  max-height: 85vh;
  overflow: hidden;
}

@media (max-width: 768px) {
  .post-hero { max-height: 100vh; padding: 96px 0 32px; }
}
.post-hero .breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.post-hero .breadcrumb a {
  color: var(--text-sec);
  transition: color 0.2s;
}
.post-hero .breadcrumb a:hover { color: var(--ink); }
.post-hero .post-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink);
  opacity: 0.4;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.post-hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.4;
  max-width: 720px;
  margin: 0 auto 20px;
  color: var(--ink);
}
.post-hero .post-meta {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.post-cover {
  max-width: 860px;
  margin: 0 auto 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.post-cover .placeholder {
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: var(--parchment);
  position: relative;
}

/* Article body */
.post-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.post-content h2 {
  font-size: 26px;
  font-weight: 600;
  margin: 40px 0 16px;
  color: var(--ink);
}
.post-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
}
.post-content p {
  font-size: 18px;
  color: var(--text-sec);
  line-height: 2;
  margin-bottom: 20px;
}
.post-content p:first-of-type::first-letter {
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  margin: 4px 12px 0 0;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-en);
}
.post-content blockquote {
  border-left: 3px solid var(--border);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--parchment);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.post-content blockquote p {
  font-size: 19px;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 0;
}
.post-content blockquote cite {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: normal;
}

.post-content .shloka-box {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 36px 0;
  position: relative;
  overflow: hidden;
}
.post-content .shloka-box p {
  color: #fff;
  opacity: 0.9;
  font-size: 22px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.post-content .shloka-box .translation {
  font-size: 14px;
  opacity: 0.5;
  margin-bottom: 0;
}

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 40px 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.post-tags a {
  font-size: 13px;
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-sec);
  transition: all 0.2s;
}
.post-tags a:hover { border-color: #aaa; color: var(--ink); }

/* Related posts */
.related-section {
  border-top: 1px solid var(--border);
  padding-top: 60px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}


/* ═══════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.contact-info-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}
.contact-info-card p {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.85;
  margin-bottom: 16px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
}
.contact-detail:first-of-type { border-top: none; padding-top: 8px; }
.contact-detail .icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.5;
}
.contact-detail .label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.contact-detail .value {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
}

.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.contact-form-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-hi);
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  background: var(--parchment);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #aaa;
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* FAQ section on contact page */
.faq-list { margin-top: 8px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.faq-item:hover {
  border-color: #ccc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.faq-item h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.8;
}


/* ═══════════════════════════════════════════════
   SECTION SPACING
   ═══════════════════════════════════════════════ */

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.mb-80 { margin-bottom: 80px; }
.mb-48 { margin-bottom: 48px; }
.mb-32 { margin-bottom: 32px; }

/* ─── Misc ─── */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.text-center { text-align: center; }
.relative { position: relative; }

/* ═══════════════════════════════════════════════════════════
   NAV DROPDOWN  (desktop)
═══════════════════════════════════════════════════════════ */

/* Each li needs relative positioning for the absolute dropdown */
.nav-links > li { position: relative; }

/* Parent link with a caret */
.nav-links li.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-caret {
  font-size: 9px;
  opacity: 0.45;
  transition: transform 0.22s ease, opacity 0.22s ease;
  line-height: 1;
  margin-top: 1px;
}
.nav-links li.has-dropdown:hover .nav-caret {
  transform: rotate(180deg);
  opacity: 0.8;
}

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 170px;
  background: #1c1c1c;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 6px 0;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
  white-space: nowrap;
}

/* Small arrow tip */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #1c1c1c;
  border-left: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Show on hover (with a small invisible bridge so cursor can travel) */
.nav-links li.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px; /* bridge between link and dropdown */
}
.nav-links li.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown items */
.nav-dropdown li a,
.nav-dropdown li .nav-dropdown-logout {
  display: block;
  padding: 9px 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.65) !important;
  border-bottom: none !important;
  transition: color 0.15s, background 0.15s;
  width: 100%;
  text-align: left;
}
.nav-dropdown li a:hover,
.nav-dropdown li .nav-dropdown-logout:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.06);
  border-bottom: none !important;
}
.nav-dropdown li:last-child a,
.nav-dropdown li:last-child .nav-dropdown-logout {
  border-bottom: none;
}


/* ═══════════════════════════════════════════════════════════
   MOBILE MENU — category accordion
═══════════════════════════════════════════════════════════ */

.mob-cat-group {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Row: link + toggle button */
.mob-cat-row {
  display: flex;
  align-items: stretch;
}
.mob-cat-row > a {
  flex: 1;
  padding: 12px 0 !important;
  color: rgba(255,255,255,0.65) !important;
  font-size: 17px !important;
  border-bottom: none !important;
  text-decoration: none;
}
.mob-cat-row > a:hover { color: #fff !important; }

.mob-sub-toggle {
  background: none;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  padding: 0 14px;
  cursor: pointer;
  transition: color 0.2s, transform 0.22s;
  line-height: 1;
}
.mob-sub-toggle.open {
  transform: rotate(180deg);
  color: rgba(255,255,255,0.7);
}

/* Sub-links panel */
.mob-sub-panel {
  display: none;
  padding: 4px 0 10px 16px;
  background: rgba(255,255,255,0.02);
}
.mob-sub-panel.open { display: block; }

.mob-sub-panel a {
  display: block !important;
  padding: 9px 0 !important;
  font-size: 15px !important;
  color: rgba(255,255,255,0.45) !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}
.mob-sub-panel a:last-child { border-bottom: none !important; }
.mob-sub-panel a:hover { color: rgba(255,255,255,0.85) !important; }

/* Contact button in mobile menu */
.mob-contact-btn {
  display: block;
  margin: 10px 0 6px !important;
  padding: 10px 0 !important;
  background: var(--indigo);
  border-radius: 20px;
  color: #fff !important;
  text-align: center;
  font-weight: 600;
  font-size: 15px !important;
  border-bottom: none !important;
}
.mob-contact-btn:hover {
  background: var(--indigo-hover, #3730a3);
  color: #fff !important;
}

/* ── Auth button — desktop guest ─────────────────────────────────────────── */
.nav-links .btn-auth {
  background: var(--indigo);
  color: #fff !important;
  border: none;
  border-bottom: none !important;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .2s, transform .15s;
  opacity: 1 !important;
}
.nav-links .btn-auth:hover {
  background: var(--indigo-hover);
  color: #fff !important;
  border-bottom: none !important;
  transform: translateY(-1px);
}

/* ── User button — desktop logged-in ─────────────────────────────────────── */
.nav-links .nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-bottom: none !important;
  opacity: 1 !important;
  padding-bottom: 0;
  cursor: pointer;
}
.nav-links .nav-user-btn:hover {
  border-bottom: none !important;
}
.user-avatar-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--saffron);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}
.user-short-name {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Logout inside dropdown — styled as a link */
.nav-dropdown-logout {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

/* ── Mobile auth row — guest ──────────────────────────────────────────────── */
.mob-auth-row {
  display: flex;
  gap: 8px;
  margin: 10px 0 6px;
}
.mob-auth-pill {
  flex: 1;
  display: block;
  text-align: center;
  padding: 10px 0;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: none !important;
  transition: background .15s, opacity .15s;
}
.mob-auth-pill.mob-login-pill {
  background: var(--indigo);
  color: #fff !important;
}
.mob-auth-pill.mob-login-pill:hover {
  background: var(--indigo-hover);
  color: #fff !important;
}
.mob-auth-pill.mob-register-pill {
  background: transparent;
  color: rgba(255,255,255,.75) !important;
  border: 1px solid rgba(255,255,255,.25) !important;
}
.mob-auth-pill.mob-register-pill:hover {
  background: rgba(255,255,255,.08);
  color: #fff !important;
}

/* ── Mobile user row — logged-in ──────────────────────────────────────────── */
.mob-user-section {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 4px;
  padding-top: 10px;
}
.mob-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 10px;
}
.mob-user-chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--saffron);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}
.mob-user-info { line-height: 1.3; }
.mob-user-info strong { display: block; font-size: 14px; color: rgba(255,255,255,.9); }
.mob-user-info span   { font-size: 12px; color: rgba(255,255,255,.4); }
.mob-admin-link {
  display: block;
  padding: 9px 0 !important;
  font-size: 13px !important;
  color: var(--saffron) !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
}
.mob-admin-link:hover { color: var(--saffron-hover) !important; }
.mob-logout-form { margin: 0; }
.mob-logout-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  margin-top: 8px;
  background: transparent;
  border: 1px solid rgba(196,116,42,.45);
  color: var(--saffron) !important;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}


/* ═══════════════════════════════════════════════
   EDITOR'S PICK SECTION
   ─────────────────────────────────────────────── */

.ep-section {
  background: #ffffff;
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
}

/* Dot watermark pattern behind content */
.ep-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* Top decorative rule — thin, centred, 15% wide */
.ep-topline {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent);
  opacity: 0.5;
}

/* 60/40 grid */
.ep-grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 24px;
  align-items: stretch;
}

/* ── Main (left, large) card ── */
.ep-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  text-decoration: none;
  min-height: 480px;
  background: var(--ink);
  transition: transform .3s, box-shadow .3s;
}
.ep-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

.ep-main-img {
  position: absolute;
  inset: 0;
}
.ep-main-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .65;
  filter: grayscale(0.15);
  transition: transform .5s, opacity .4s;
}
.ep-main:hover .ep-main-img img {
  transform: scale(1.04);
  opacity: .75;
}
.ep-main-img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; opacity: .12;
}
.ep-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.05) 0%,
    rgba(0,0,0,.20) 40%,
    rgba(0,0,0,.82) 100%
  );
}

/* Dot-strip accent — top-right corner */
.ep-dots {
  position: absolute !important;
  top: 20px; right: 20px;
  z-index: 2;
  opacity: .5;
}

.ep-main-body {
  position: relative;
  z-index: 3;
  padding: 28px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.ep-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ep-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}
.ep-chip--star {
  background: rgba(212,101,17,.75);
  border-color: rgba(212,101,17,.5);
}

.ep-main-title {
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 12px;
}
.ep-main-excerpt {
  font-size: 14.5px;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
  margin-bottom: 16px;
}
.ep-main-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.ep-readmore {
  margin-left: auto;
  color: var(--saffron);
  font-weight: 600;
  font-size: 13px;
  transition: letter-spacing .2s;
}
.ep-main:hover .ep-readmore { letter-spacing: .04em; }

/* ── Side (right) small cards ── */
.ep-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ep-small {
  flex: 1;
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s, border-color .25s, transform .25s;
  position: relative;
}
/* Left saffron accent bar */
.ep-small::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--saffron);
  opacity: 0;
  transition: opacity .25s;
}
.ep-small:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.09);
  border-color: #ccc;
  transform: translateX(4px);
}
.ep-small:hover::before { opacity: 1; }

.ep-small-thumb {
  width: 130px;
  flex-shrink: 0;
  overflow: hidden;
}
.ep-small-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.25);
  transition: filter .3s, transform .35s;
}
.ep-small:hover .ep-small-thumb img {
  filter: grayscale(0);
  transform: scale(1.05);
}
.ep-small-thumb-ph {
  width: 100%; height: 100%;
  min-height: 140px;
  display: flex; align-items: center; justify-content: center;
  background: var(--parchment);
  font-size: 36px; opacity: .2;
}

.ep-small-body {
  flex: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ep-small-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--saffron);
  display: block;
  margin-bottom: 6px;
}
.ep-small-title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 6px;
}
.ep-small-excerpt {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 10px;
}
.ep-small-meta {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ep-grid {
    grid-template-columns: 1fr;
  }
  .ep-main {
    min-height: 360px;
  }
  .ep-small-thumb {
    width: 110px;
  }
}
@media (max-width: 480px) {
  .ep-small {
    flex-direction: column;
  }
  .ep-small-thumb {
    width: 100%;
    height: 160px;
  }
}


/* ═══════════════════════════════════════════════
   FEATURED LEKH GRID  (fixed 3-col, uniform rows)
   ─────────────────────────────────────────────── */

.fl-grid {
  display: grid;
  /* Always exactly 3 equal columns — fewer cards leave blank columns */
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;   /* all rows same height */
  gap: 28px;
}

/* Cards stretch to fill their cell */
.fl-grid .essay-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.fl-grid .essay-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.fl-grid .essay-card .card-foot {
  margin-top: auto;
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .fl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 560px) {
  .fl-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}
