/* DevBhumi – main.css v1.1.0
   Devotional WordPress Theme
   Color Palette: Saffron, Maroon, Gold, Ivory, Deep Red
   NOTE: Google Fonts loaded via <link> in header.php for non-blocking render (BUG-15 fix)
*/

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  /* Primary palette */
  --saffron:        #E8601A;
  --saffron-dark:   #C04E10;
  --saffron-light:  #F4884A;
  --saffron-pale:   #FEF0E7;
  --maroon:         #7B1C1C;
  --maroon-dark:    #5A1212;
  --maroon-light:   #A82828;
  --gold:           #C8981C;
  --gold-light:     #E5B840;
  --gold-pale:      #FBF3D8;
  --ivory:          #FFFBF2;
  --ivory-dark:     #F5EDD8;
  --cream:          #FFF8EE;
  --lotus-pink:     #D4607A;
  --lotus-pale:     #FDEEF2;
  --deep-red:       #8B0000;
  --teal:           #1A7A6B;

  /* Neutrals */
  --white:        #ffffff;
  --gray-50:      #fafafa;
  --gray-100:     #f4f2ee;
  --gray-200:     #e8e4dc;
  --gray-300:     #d4cfc4;
  --gray-400:     #a09888;
  --gray-600:     #6b6055;
  --gray-800:     #2e2820;
  --gray-900:     #1a1510;

  /* Typography */
  --ff-display: 'Tiro Devanagari Hindi', 'EB Garamond', Georgia, serif;
  --ff-body:    'EB Garamond', Georgia, serif;
  --ff-ui:      'DM Sans', system-ui, -apple-system, sans-serif;

  /* Font sizes */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;
  --fs-5xl:  3rem;
  --fs-6xl:  3.75rem;

  /* Shape & Shadow */
  --radius-sm:  4px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --shadow-sm:  0 1px 4px rgba(123,28,28,.07);
  --shadow:     0 4px 20px rgba(123,28,28,.10);
  --shadow-lg:  0 12px 44px rgba(123,28,28,.15);
  --shadow-xl:  0 24px 80px rgba(123,28,28,.20);

  /* Motion */
  --transition: 0.28s ease;
  --transition-slow: 0.45s ease;

  /* Layout */
  --max-width:      1280px;
  --content-width:  800px;
  --header-height:  72px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
#page-wrap { overflow-x: hidden; }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  line-height: 1.78;
  color: var(--gray-800);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; border: none; background: none; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  line-height: 1.3;
  color: var(--maroon-dark);
}

/* ── Utilities ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
  width: 100%;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100%; left: 1rem; background: var(--maroon); color: var(--white); padding: .5rem 1rem; border-radius: var(--radius); z-index: 9999; font-family: var(--ff-ui); font-size: var(--fs-sm); }
.skip-link:focus { top: 1rem; }

/* ── Reading Progress Bar ───────────────────────────────────── */
.reading-progress {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  transition: width .1s linear;
}

/* ── Decorative Divider ─────────────────────────────────────── */
.divider-lotus {
  text-align: center;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
}
.divider-lotus::before,
.divider-lotus::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.divider-lotus__symbol {
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
}

/* ── Section Heading ────────────────────────────────────────── */
.section-heading {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.section-heading__eyebrow {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: .5rem;
}
.section-heading__title {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  color: var(--maroon-dark);
  font-weight: 700;
  margin-bottom: .75rem;
}
.section-heading__sub {
  color: var(--gray-600);
  font-size: var(--fs-lg);
  max-width: 560px;
  margin: 0 auto .75rem;
}
.section-heading--left { text-align: left; }
.section-heading--left .section-heading__sub { margin-left: 0; }

/* Inline section header (icon + line + link) */
.section-header-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  flex-wrap: wrap;
}
.section-header-row__title {
  font-family: var(--ff-display);
  font-size: clamp(1.15rem, 3vw, var(--fs-2xl));
  font-weight: 700;
  color: var(--maroon-dark);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.section-header-row__icon { font-size: 1.3rem; line-height: 1; }
.section-header-row__line { flex: 1; min-width: 2rem; height: 2px; background: linear-gradient(to right, var(--gold), transparent); }
.section-view-all {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--saffron);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .85rem;
  border: 1.5px solid var(--saffron-light);
  border-radius: 50px;
  transition: all var(--transition);
}
.section-view-all:hover { background: var(--saffron); color: var(--white); border-color: var(--saffron); }

/* ── Top Ticker Bar ─────────────────────────────────────────── */
.top-bar {
  background: var(--maroon-dark);
  color: rgba(255,255,255,.75);
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .06em;
  padding: .4rem 0;
  border-bottom: 2px solid var(--gold);
  overflow: hidden;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.top-bar__auspicious {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--gold-light);
  font-weight: 600;
}
.top-bar__auspicious span { color: rgba(255,255,255,.55); font-weight: 400; }
.top-bar__links {
  display: flex;
  gap: 1.25rem;
}
.top-bar__links a {
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.top-bar__links a:hover { color: var(--gold-light); }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--maroon);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 3px 24px rgba(90,18,18,.4);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .85rem;
  padding-bottom: .85rem;
}

/* Branding */
.site-branding { flex-shrink: 0; min-width: 0; }
.site-branding a { text-decoration: none; display: flex; align-items: center; gap: .75rem; }
.site-title {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3.5vw, var(--fs-3xl));
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
  line-height: 1;
}
.site-title span { color: var(--gold-light); }
.site-description {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: .2rem;
}
.custom-logo { max-height: 60px; width: auto; }

/* ── Navigation ─────────────────────────────────────────────── */
.main-nav { flex: 1; min-width: 0; }
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .15rem;
  flex-wrap: wrap;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,255,255,.85);
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  display: block;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--gold-light);
  background: rgba(200,152,28,.18);
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  min-width: 220px;
  background: var(--maroon-dark);
  border: 1px solid rgba(200,152,28,.25);
  border-radius: var(--radius);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--transition);
  z-index: 100;
  box-shadow: var(--shadow-lg);
}
.nav-menu > li:hover > .sub-menu,
.nav-menu > li:focus-within > .sub-menu,
.nav-menu > li.touch-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu .sub-menu li a {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.75);
  padding: .55rem .8rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  min-height: 44px;
}
.nav-menu .sub-menu li a:hover { color: var(--gold-light); background: rgba(255,255,255,.06); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .55rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
  pointer-events: none;
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header search */
.header-search-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.8);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.header-search-btn:hover { background: rgba(200,152,28,.25); color: var(--gold-light); }

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 799;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.nav-overlay.is-visible { opacity: 1; pointer-events: auto; }

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(90,18,18,.96);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(4rem, 10vh, 8vh) 1rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay__inner { width: 100%; max-width: 680px; }
.search-overlay__input {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--ff-display);
  /* BUG-09 FIX: Ensure minimum 16px so iOS Safari doesn't auto-zoom */
  font-size: max(1rem, clamp(1rem, 4vw, var(--fs-2xl)));
  padding: 1rem 3.5rem 1rem 1.25rem;
  outline: none;
  -webkit-appearance: none;
}
.search-overlay__input::placeholder { color: rgba(255,255,255,.3); }
.search-overlay__submit { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.5rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.search-overlay__form { position: relative; }
.search-overlay__close { position: absolute; top: 1rem; right: 1rem; color: rgba(255,255,255,.5); font-size: 1.75rem; transition: color var(--transition); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.search-overlay__close:hover { color: var(--white); }

/* ── Hero Section ───────────────────────────────────────────── */
.site-hero {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 45%, var(--saffron-dark) 100%);
  padding: clamp(2.5rem, 7vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}
.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8981C' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.site-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--ivory);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.site-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-hero__content { flex: 1; }
.site-hero__om {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: .75rem;
  display: block;
  opacity: .9;
  text-shadow: 0 4px 20px rgba(200,152,28,.4);
}
.site-hero__heading {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 5vw, var(--fs-5xl));
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: .75rem;
}
.site-hero__heading em {
  font-style: italic;
  color: var(--gold-light);
}
.site-hero__sub {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-lg));
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.site-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: var(--maroon-dark);
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: .85rem 2rem;
  border-radius: 50px;
  letter-spacing: .04em;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(200,152,28,.4);
}
.site-hero__cta:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,152,28,.5); color: var(--maroon-dark); }

/* Calendar widget in hero */
.site-hero__calendar {
  flex-shrink: 0;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(200,152,28,.5);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 160px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.site-hero__cal-month {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: .3rem .75rem;
  background: rgba(200,152,28,.2);
  border-radius: 50px;
  margin-bottom: .75rem;
  display: inline-block;
}
.site-hero__cal-day {
  font-family: var(--ff-display);
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: .4rem;
}
.site-hero__cal-weekday {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.7);
  font-weight: 500;
}
.site-hero__cal-tithi {
  font-size: var(--fs-xs);
  color: var(--gold-light);
  margin-top: .4rem;
  font-style: italic;
  font-family: var(--ff-body);
}

/* ── Today's Special Banner ─────────────────────────────────── */
.today-special-banner {
  background: linear-gradient(90deg, var(--gold-pale), var(--ivory));
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.today-special-banner__icon { font-size: 2rem; flex-shrink: 0; }
.today-special-banner__text strong {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  color: var(--maroon-dark);
  display: block;
  margin-bottom: .2rem;
}
.today-special-banner__text span {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: var(--gray-600);
}
.today-notice {
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  padding: .6rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: var(--gray-600);
  margin-bottom: 1.25rem;
}

/* ── Main Layout ────────────────────────────────────────────── */
.site-main { padding: clamp(2rem, 5vw, 4rem) 0; }
.content-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.content-area.full-width { grid-template-columns: minmax(0, 1fr); }
.content-area.sidebar-left { grid-template-columns: 320px minmax(0, 1fr); }
.content-area.sidebar-left .main-column { order: 2; }
.content-area.sidebar-left .sidebar { order: 1; }

/* ── Post Cards ─────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
}
.posts-grid--col-2 { grid-template-columns: repeat(2, 1fr); }
.posts-grid--col-4 { grid-template-columns: repeat(4, 1fr); }
.posts-grid--col-1 { grid-template-columns: 1fr; }

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.post-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--gray-100);
}
.post-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.post-card:hover .post-card__image-wrap img { transform: scale(1.06); }

.post-card__image-wrap--placeholder { aspect-ratio: 16/10; }
.post-card__no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--saffron-pale), var(--gold-pale));
  font-size: 3rem;
}

.post-card__badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  font-family: var(--ff-ui);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 50px;
  line-height: 1.4;
  z-index: 1;
}
.badge-festivals    { background: var(--saffron); color: var(--white); }
.badge-bhajan       { background: var(--teal); color: var(--white); }
.badge-mantra       { background: var(--maroon); color: var(--white); }
.badge-aarti-collection { background: var(--lotus-pink); color: var(--white); }
.badge-ekadashi     { background: var(--deep-red); color: var(--white); }
.badge-vrat-katha   { background: #6B3FA0; color: var(--white); }
.badge-gods-and-goddesses { background: var(--gold); color: var(--maroon-dark); }
.badge-saints       { background: #1A6B7A; color: var(--white); }
.badge-temple       { background: #4A7A1A; color: var(--white); }
.badge-vastu-shastra{ background: #7A4A1A; color: var(--white); }
.badge-spirituality { background: #3A1A7A; color: var(--white); }
.badge-religion     { background: #7A1A5A; color: var(--white); }
.badge-trending     { background: var(--saffron-dark); color: var(--white); }
.badge-default      { background: var(--gray-600); color: var(--white); }

.post-card__body {
  padding: 1.1rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.post-card__meta {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.post-card__meta time { color: var(--saffron); font-weight: 600; }
.post-card__meta .sep { color: var(--gray-300); }

.post-card__title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-base), 2vw, var(--fs-xl));
  font-weight: 600;
  color: var(--maroon-dark);
  line-height: 1.35;
  flex: 1;
}
.post-card__title a { transition: color var(--transition); }
.post-card__title a:hover { color: var(--saffron); }

.post-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__read-more {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--saffron);
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: auto;
  padding-top: .25rem;
  transition: gap var(--transition);
  /* BUG-14 FIX: Adequate touch target */
  min-height: 44px;
}
.post-card__read-more:hover { gap: .55rem; color: var(--maroon); }

/* ── Hero Post Card (large featured) ─────────────────────────── */
.post-card--hero {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.post-card--hero .post-card__image-wrap {
  aspect-ratio: auto;
  min-height: 280px;
}
.post-card--hero .post-card__body { padding: 2rem; justify-content: center; }
.post-card--hero .post-card__title { font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-3xl)); }

/* ── Date Section ───────────────────────────────────────────── */
.date-section {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* ── Category Grid ──────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--gray-200);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  box-shadow: var(--shadow-sm);
}
.category-card:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.category-card__icon {
  font-size: 2rem;
  line-height: 1;
}
.category-card__name {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--maroon-dark);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.3;
}
.category-card__count {
  font-family: var(--ff-ui);
  font-size: .68rem;
  color: var(--gray-400);
}

/* ── God Card (Gods & Goddesses spotlight) ──────────────────── */
.gods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.god-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  text-align: center;
  text-decoration: none;
  transition: all var(--transition);
}
.god-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.god-card__image { aspect-ratio: 3/4; overflow: hidden; background: linear-gradient(135deg, var(--saffron-pale), var(--gold-pale)); }
.god-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.god-card:hover .god-card__image img { transform: scale(1.05); }
.god-card__name {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--maroon-dark);
  padding: .75rem .5rem .9rem;
  line-height: 1.3;
}

/* ── Mantra/Shloka Feature Card ──────────────────────────────── */
.mantra-feature {
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.mantra-feature::before {
  content: '🪷';
  position: absolute;
  top: -1rem;
  right: 2rem;
  font-size: 8rem;
  opacity: .05;
  line-height: 1;
}
.mantra-feature__label {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.mantra-feature__label::before,
.mantra-feature__label::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: .5;
}
.mantra-feature__title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-4xl));
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.mantra-feature__excerpt {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin: 0 auto 1.75rem;
  font-style: italic;
  line-height: 1.8;
}
.mantra-feature__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: var(--maroon-dark);
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: .75rem 1.75rem;
  border-radius: 50px;
  letter-spacing: .04em;
  transition: all var(--transition);
}
.mantra-feature__link:hover { background: var(--gold-light); transform: translateY(-2px); color: var(--maroon-dark); }

/* ── List Post Style ────────────────────────────────────────── */
.post-list { display: flex; flex-direction: column; gap: 1.1rem; }
.post-list-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: .85rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.post-list-item:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.post-list-item__image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-100);
}
.post-list-item__image img { width: 100%; height: 100%; object-fit: cover; }
.post-list-item__body { flex: 1; min-width: 0; }
.post-list-item__cat {
  font-family: var(--ff-ui);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: .2rem;
}
.post-list-item__title {
  font-family: var(--ff-display);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--maroon-dark);
  line-height: 1.35;
  margin-bottom: .3rem;
}
.post-list-item__title a:hover { color: var(--saffron); }
.post-list-item__date {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  color: var(--gray-400);
}

/* ── Quote / Shloka Block ───────────────────────────────────── */
.shloka-block {
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  background: var(--gold-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.shloka-block__text {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--maroon-dark);
  line-height: 1.7;
}
.shloka-block__source {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: var(--gray-600);
  margin-top: .5rem;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  background: var(--ivory-dark);
  border-bottom: 1px solid var(--gray-200);
  padding: .6rem 0;
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  color: var(--gray-400);
}
.breadcrumb .container { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--saffron); }
.breadcrumb a:hover { color: var(--maroon); }
.breadcrumb .bc-sep { color: var(--gray-300); font-size: .8rem; }
.breadcrumb [aria-current="page"] { color: var(--gray-800); }

/* ── Single Post ────────────────────────────────────────────── */
.single-hero {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 100%);
  padding: clamp(2rem, 5vw, 4rem) 0 0;
  position: relative;
}
.single-hero__category {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(200,152,28,.2);
  border: 1px solid rgba(200,152,28,.3);
  padding: .35rem .85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.single-hero__category:hover { background: var(--gold); color: var(--maroon-dark); }
.single-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-2xl), 5vw, var(--fs-5xl));
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 860px;
}
.single-hero__meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.65);
  padding-bottom: 2rem;
}
.single-hero__meta strong { color: rgba(255,255,255,.9); }
.single-hero__meta .sep { color: rgba(255,255,255,.3); }
.single-hero__meta time { color: var(--gold-light); }
.single-featured-image {
  margin-top: 2rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  max-height: 520px;
}
.single-featured-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── Entry Content ──────────────────────────────────────────── */
.entry-content {
  max-width: var(--content-width);
  margin: 0 auto;
}
.entry-content > * + * { margin-top: 1.5em; }
.entry-content h2 { font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl)); color: var(--maroon-dark); border-left: 4px solid var(--gold); padding-left: .75rem; margin-top: 2.5rem; }
.entry-content h3 { font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-2xl)); color: var(--maroon); margin-top: 2rem; }
.entry-content h4 { font-size: var(--fs-xl); color: var(--maroon); margin-top: 1.5rem; }
.entry-content p { color: var(--gray-800); line-height: 1.85; }
.entry-content a { color: var(--saffron); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--maroon); }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .5em; }
.entry-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  background: var(--gold-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--maroon-dark);
}
.entry-content img { border-radius: var(--radius); box-shadow: var(--shadow); }
/* BUG-06 FIX: Tables scroll horizontally on mobile instead of overflowing */
.entry-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.entry-content figure.wp-block-table { overflow-x: auto; }
.entry-content table th { background: var(--maroon); color: var(--white); padding: .75rem 1rem; font-family: var(--ff-ui); font-size: var(--fs-sm); font-weight: 600; text-align: left; }
.entry-content table td { padding: .65rem 1rem; border-bottom: 1px solid var(--gray-200); font-size: var(--fs-sm); }
.entry-content table tr:nth-child(even) td { background: var(--ivory-dark); }
.entry-content figcaption { text-align: center; font-size: var(--fs-sm); color: var(--gray-400); font-style: italic; margin-top: .5rem; }
.entry-content .wp-block-pullquote { border-top: 4px solid var(--gold); border-bottom: 4px solid var(--gold); padding: 2rem 0; text-align: center; }

/* Tags */
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}
.entry-tag {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  color: var(--saffron);
  background: var(--saffron-pale);
  border: 1px solid rgba(232,96,26,.2);
  padding: .3rem .8rem;
  border-radius: 50px;
  transition: all var(--transition);
  font-weight: 600;
  /* BUG-14 FIX: Minimum touch target height */
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.entry-tag:hover { background: var(--saffron); color: var(--white); }

/* Author Box */
.author-box {
  display: flex;
  gap: 1.25rem;
  background: var(--ivory-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2.5rem;
  border: 1px solid var(--gray-200);
}
.author-box__avatar img { border-radius: 50%; width: 80px; height: 80px; flex-shrink: 0; border: 3px solid var(--gold); }
.author-box__name { font-family: var(--ff-display); font-size: var(--fs-xl); font-weight: 700; color: var(--maroon-dark); margin-bottom: .3rem; }
.author-box__bio { font-size: var(--fs-sm); color: var(--gray-600); line-height: 1.65; }

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}
.post-nav-item {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.post-nav-item:hover { border-color: var(--gold); box-shadow: var(--shadow); }
/* NEW-04 FIX: right-align only on desktop 2-col; reset on mobile 1-col */
.post-nav-item--next { text-align: right; }
.post-nav-label { font-family: var(--ff-ui); font-size: var(--fs-xs); font-weight: 700; color: var(--saffron); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .3rem; }
.post-nav-title { font-family: var(--ff-display); font-size: var(--fs-base); color: var(--maroon-dark); line-height: 1.35; }

/* Related Posts */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gold-pale);
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar { position: sticky; top: calc(var(--header-height) + 1.5rem); }
.widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.widget-title {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--maroon-dark);
  margin-bottom: 1.1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.widget ul li { border-bottom: 1px solid var(--gray-100); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem 0;
  transition: color var(--transition);
}
.widget ul li a:hover { color: var(--saffron); }
.widget .post-count {
  font-size: .7rem;
  background: var(--saffron-pale);
  color: var(--saffron);
  padding: .15rem .5rem;
  border-radius: 50px;
  font-weight: 700;
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .65rem;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-800);
  background: var(--white);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--saffron); color: var(--saffron); }
.pagination .current { background: var(--saffron); border-color: var(--saffron); color: var(--white); }
.pagination .dots { border: none; background: none; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--maroon-dark);
  color: rgba(255,255,255,.7);
  margin-top: 3rem;
}
.footer-top {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid rgba(200,152,28,.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
}
.footer-brand .site-title { font-size: var(--fs-2xl); color: var(--white); margin-bottom: .5rem; }
.footer-brand p { font-size: var(--fs-sm); color: rgba(255,255,255,.55); line-height: 1.7; margin-top: .75rem; }
.footer-om { font-size: 2.5rem; color: var(--gold); line-height: 1; margin-bottom: .5rem; display: block; }

.footer-widget h4 {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.footer-widget ul li { margin-bottom: .45rem; }
.footer-widget ul li a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: .35rem;
  /* NEW-03 FIX: Adequate touch target for footer links */
  min-height: 40px;
  padding: .2rem 0;
}
.footer-widget ul li a:hover { color: var(--gold-light); }
.footer-widget ul li a::before { content: '›'; color: var(--gold); }

.footer-bottom {
  padding: 1.25rem 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: var(--fs-xs); color: rgba(255,255,255,.4); }
.footer-bottom a { color: var(--gold-light); }
.footer-bottom a:hover { color: var(--gold); }
.footer-nav { display: flex; gap: 1.25rem; }
.footer-nav a { font-family: var(--ff-ui); font-size: var(--fs-xs); color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer-nav a:hover { color: var(--gold-light); }

/* ── No posts ───────────────────────────────────────────────── */
.no-posts { text-align: center; padding: 3rem 1rem; }
.no-posts__icon { font-size: 3.5rem; margin-bottom: 1rem; }
.no-posts__title { font-family: var(--ff-display); font-size: var(--fs-xl); color: var(--gray-600); }

/* ── Search form ────────────────────────────────────────────── */
.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] {
  flex: 1;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: var(--gray-800);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.search-form input[type="search"]:focus { border-color: var(--saffron); }
.search-form button {
  background: var(--saffron);
  color: var(--white);
  padding: .7rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: background var(--transition);
}
.search-form button:hover { background: var(--maroon); }

/* ── Archive / Category ─────────────────────────────────────── */
.archive-header {
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  padding: 2.5rem 0;
  margin-bottom: 2.5rem;
}
.archive-header__eyebrow { font-family: var(--ff-ui); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: .5rem; }
.archive-header__title { font-family: var(--ff-display); font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl)); font-weight: 700; color: var(--white); }
.archive-header__desc { font-size: var(--fs-base); color: rgba(255,255,255,.65); margin-top: .5rem; max-width: 600px; }

/* ── Comments ───────────────────────────────────────────────── */
.comments-area { margin-top: 3rem; }
.comments-title { font-size: var(--fs-2xl); margin-bottom: 1.5rem; }
.witd-comment { padding: 1.25rem 0; border-bottom: 1px solid var(--gray-100); }
.comment-inner { display: flex; gap: 1rem; }
.comment-avatar img { border-radius: 50%; border: 2px solid var(--gold-pale); }
.comment-meta-text { flex: 1; }
.comment-author-name { font-family: var(--ff-ui); font-weight: 700; color: var(--maroon-dark); display: block; margin-bottom: .15rem; font-size: var(--fs-sm); }
.comment-date { font-family: var(--ff-ui); font-size: var(--fs-xs); color: var(--gray-400); }
.comment-body { font-size: var(--fs-sm); color: var(--gray-800); margin-top: .75rem; line-height: 1.7; }
.comment-reply-link { font-family: var(--ff-ui); font-size: var(--fs-xs); font-weight: 700; color: var(--saffron); text-decoration: none; }

/* ── 404 ────────────────────────────────────────────────────── */
.error-404 { text-align: center; padding: clamp(3rem, 10vw, 7rem) 1rem; }
.error-404__icon { font-size: 5rem; margin-bottom: 1.5rem; }
.error-404__title { font-size: clamp(var(--fs-3xl), 6vw, var(--fs-5xl)); margin-bottom: 1rem; color: var(--maroon-dark); }
.error-404__text { color: var(--gray-600); margin-bottom: 2rem; font-size: var(--fs-lg); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--saffron);
  color: var(--white);
  font-family: var(--ff-ui);
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-size: var(--fs-sm);
  letter-spacing: .04em;
  transition: all var(--transition);
}
.btn-primary:hover { background: var(--maroon); color: var(--white); transform: translateY(-2px); }

/* ── Page template ──────────────────────────────────────────── */
.page-hero {
  background: var(--ivory-dark);
  border-bottom: 2px solid var(--gold-pale);
  padding: 2rem 0;
  margin-bottom: 2.5rem;
}
.page-hero__title { font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl)); color: var(--maroon-dark); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid--col-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .content-area, .content-area.sidebar-left { grid-template-columns: 1fr; }
  .content-area.sidebar-left .main-column { order: 1; }
  .content-area.sidebar-left .sidebar { order: 2; }
  .sidebar { position: static; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card--hero { grid-column: span 1; grid-template-columns: 1fr; }
  .post-card--hero .post-card__image-wrap { min-height: 220px; }
  .gods-grid { grid-template-columns: repeat(3, 1fr); }
  .site-hero .container { flex-direction: column; text-align: center; }
  .site-hero__sub { margin-left: auto; margin-right: auto; }
  .site-hero__calendar { width: 100%; max-width: 260px; }
}

/* ── 720px: Mobile breakpoint ─────────────────────────────────
   BUG-01 FIX: main-nav flex removed so header items don't overflow
   BUG-03 FIX: hero card properly stacked
   BUG-04 FIX: nav-close-btn shown
   BUG-05 FIX: lang-switcher breakpoint unified to 720px (was 768px)
   BUG-08 FIX: footer brand sizes reduced
   ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  /* BUG-01 FIX: Zero out nav flex so header doesn't overflow */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    /* BUG-01: Reset flex so it takes no space in header row */
    flex: 0;
    width: 0;
    overflow: hidden;
    height: 100dvh;
    background: var(--maroon-dark);
    z-index: 800;
    padding: 0;
    transition: right var(--transition), width var(--transition);
    box-shadow: -4px 0 30px rgba(0,0,0,.4);
  }
  .main-nav.is-open {
    right: 0;
    /* BUG-01: Restore width only when open */
    width: min(320px, 85vw);
    overflow-y: auto;
    padding: 5rem 1.5rem 2rem;
  }
  .nav-overlay { display: block; }

  /* BUG-04 FIX: Show close button inside drawer */
  .nav-close-btn { display: flex; }

  .menu-toggle { display: flex; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: .25rem; justify-content: flex-start; }
  .nav-menu > li > a { min-height: 52px; font-size: var(--fs-base); }
  .nav-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: rgba(255,255,255,.05); margin-top: .25rem; border-radius: var(--radius-sm); padding: .25rem .5rem; }
  .top-bar__links { display: none; }

  /* BUG-05 FIX: lang-switcher styles unified here at 720px (removed @768px block) */
  .lang-switcher { order: -1; }
  .lang-switcher__btn { padding: .28rem .55rem; font-size: 12px; }

  /* NEW-02/NEW-05 FIX: Hide top-bar entirely on mobile — saves space, prevents auspicious
     text overflow on narrow screens (320px), and cleans up the header area */
  .top-bar { display: none; }

  .posts-grid { grid-template-columns: 1fr; }
  .posts-grid--col-2 { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gods-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .author-box { flex-direction: column; }

  /* BUG-03 FIX: Hero card properly stacked on mobile */
  .post-card--hero {
    display: flex;
    flex-direction: column;
  }
  .post-card--hero .post-card__image-wrap {
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }
  .post-card--hero .post-card__body {
    padding: 1.25rem;
  }

  /* BUG-08 FIX: Footer brand sizes on mobile */
  .footer-brand .site-title { font-size: var(--fs-xl); }
  .footer-om { font-size: 1.75rem; }
  .footer-top { padding: 2rem 0; }
  .footer-grid { gap: 1.5rem; }

  /* BUG-13 FIX: Hide sidebar on mobile — show only essential content */
  .site-main .sidebar {
    display: none;
  }

  /* NEW-04 FIX: When post-nav stacks to 1 col, reset right-align on 'next' card */
  .post-nav-item--next { text-align: left; }

  /* NEW-06 FIX: .is-sticky applied in PHP but position:sticky already on .site-header
     Always keep header sticky on mobile — no change needed, just document */
}

/* ── 480px: Small phone breakpoint ───────────────────────────
   BUG-02 FIX: Hero calendar overflow on 320–480px screens
   BUG-07 FIX: Today banner flex-wrap on small screens
   BUG-11 FIX: Mantra card decorative emoji reduced
   ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .gods-grid { grid-template-columns: repeat(2, 1fr); }

  /* BUG-02 FIX: Calendar widget padding and day number size */
  .site-hero__calendar {
    padding: 1rem 1.25rem;
    min-width: unset;
    width: 100%;
  }
  .site-hero__cal-day {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  /* BUG-07 FIX: Today special banner stacks vertically on small screens */
  .today-special-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    padding: .85rem 1rem;
  }
  .today-special-banner__icon { font-size: 1.5rem; }
  .today-special-banner__text strong { font-size: var(--fs-lg); }

  /* BUG-11 FIX: Reduce decorative emoji in mantra feature card */
  .mantra-feature::before {
    font-size: 5rem;
    right: 1rem;
    top: -.5rem;
  }
  .mantra-feature {
    padding: 1.5rem 1.25rem;
  }
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .sidebar, .post-navigation, .related-posts, .reading-progress { display: none; }
  body { font-size: 12pt; }
  .entry-content { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Language Switcher – DevBhumi Hindi/English Toggle
   DrikPanchang-style En | हि buttons
   ══════════════════════════════════════════════════════════════════════════ */

/* BUG-04 FIX: Nav close button — hidden by default, shown on mobile via @720px */
.nav-close-btn {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.85);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.nav-close-btn span { font-family: var(--ff-ui); font-size: var(--fs-xs); font-weight: 600; }
.nav-close-btn:hover { background: rgba(255,255,255,.2); color: var(--white); }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.lang-switcher__btn {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  padding: .3rem .65rem;
  border-radius: 3px;
  transition: all var(--transition);
  line-height: 1;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .02em;
}

.lang-switcher__btn:hover {
  color: var(--gold-light);
  background: rgba(200,152,28,.2);
}

.lang-switcher__btn--active {
  background: var(--gold);
  color: var(--maroon-dark) !important;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* Hindi font boost for Devanagari script */
.lang-switcher__btn[hreflang="hi"],
body.lang-hi .entry-content,
body.lang-hi .single-hero__title,
body.lang-hi .post-card__title,
body.lang-hi .page-hero__title {
  font-family: 'Noto Sans Devanagari', 'Mangal', Arial, sans-serif;
}

body.lang-hi .entry-content {
  font-size: 1.08em;
  line-height: 1.9;
}

/* Google Fonts: Noto Sans Devanagari loaded when Hindi is active */
body.lang-hi {
  --ff-hindi: 'Noto Sans Devanagari', 'Mangal', Arial, sans-serif;
}

/* Hindi notice banner (shown when Hindi content not available) */
.hindi-unavailable-notice {
  background: rgba(200,152,28,.12);
  border: 1px solid rgba(200,152,28,.3);
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  margin-bottom: 1.5rem;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: .5rem;
}
