        /* ===== Sanatan Spiritual Premium Theme ===== */

:root {
  --saffron: #f59e0b;
  --gold: #fcd34d;
  --deep-red: #9f1239;
  --maroon: #7f1d1d;
  --paper: #fffaf0;
  --text-main: #2f1f1a;
  --shadow-soft: 0 8px 24px rgba(71, 27, 6, 0.14);
}

/* Base layout */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
}

main.container {
  flex: 1;
}

/* Global spiritual background wrapper */
body.sanatan-bg {
  --bg-1: #ffd89b;
  --bg-2: #fbbf24;
  --bg-3: #b91c1c;
  --pattern-opacity: 0.05;
  --pattern-size: 240px;
  --pattern-svg: none;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  background-attachment: fixed;
  position: relative;
  isolation: isolate;
}

/* SVG spiritual watermark overlay */
body.sanatan-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: var(--pattern-opacity);
  background-image: var(--pattern-svg);
  background-repeat: repeat;
  background-size: var(--pattern-size) var(--pattern-size);
  animation: sanatanFloat 90s ease-in-out infinite alternate;
}

/* Soft readability overlay */
body.sanatan-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.42), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(255, 244, 206, 0.22), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(127, 29, 29, 0.15), transparent 60%);
}

@keyframes sanatanFloat {
  0% {
    background-position: 0 0;
    transform: translate3d(0, 0, 0);
  }
  50% {
    background-position: 28px -24px;
    transform: translate3d(0, -3px, 0);
  }
  100% {
    background-position: 56px -46px;
    transform: translate3d(0, 0, 0);
  }
}

/* Keep content layers above overlays */
.navbar,
main.container,
footer {
  position: relative;
  z-index: 1;
}

/* Gradients come from PHP (inline --bg-1/2/3) so each route/slug/id stays unique */

/* Navigation and footer glass effect */
.navbar,
footer {
  background: linear-gradient(
    90deg,
    rgba(89, 25, 11, 0.93),
    rgba(125, 35, 14, 0.89)
  ) !important;
  backdrop-filter: blur(6px);
}

.navbar .navbar-brand,
.navbar .nav-link,
footer,
footer a {
  color: #fff7ed !important;
}

.navbar .nav-link:hover,
footer a:hover {
  color: #fde68a !important;
}

/* Readability panel for body content */
main.container {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1rem;
  border-radius: 16px;
  background: rgba(255, 251, 235, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-soft);
}

a {
  color: #b45309;
}

a:hover {
  color: #7c2d12;
}

h1,
h2,
h3,
h4 {
  color: #7c2d12;
}

.card,
.post {
  background-color: var(--paper);
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(127, 29, 29, 0.12);
}

.btn-primary {
  background-color: #c2410c;
  border-color: #c2410c;
  color: #fff;
}

.btn-primary:hover {
  background-color: #9a3412;
  border-color: #9a3412;
}

.post-thumb {
  object-fit: cover;
  max-height: 220px;
  width: 100%;
}

.featured-img {
  max-height: 420px;
  object-fit: cover;
}

/* Responsive tuning */
@media (max-width: 991.98px) {
  main.container {
    border-radius: 12px;
    padding: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  body.sanatan-bg::before {
    animation-duration: 110s;
    background-size: calc(var(--pattern-size) * 0.82) calc(var(--pattern-size) * 0.82);
  }

  main.container {
    margin-top: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.7rem;
    background: rgba(255, 251, 235, 0.68);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.sanatan-bg::before {
    animation: none;
  }
}            
.hero-section {
  height: 70vh;
  background: 
    linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.2)), /* 👈 हल्का overlay */
    url('/assets/hero.jpeg');

  background-size: cover;
  background-position: center;
  border-radius: 20px;
  margin-bottom: 30px;
}

.hero-content {
  max-width: 700px;
  padding: 20px;
  animation: fadeUp 1s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}   
.img-small {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}    