/* ============================================================
   GanpatiBappaMorya.in — style.css
   Modern Hindu spiritual theme. Palette + type per brief.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette (from brief, named for clarity) */
  --saffron:    #FF6B00;   /* primary  — CTAs, energy */
  --marigold:   #FFB703;   /* secondary— gold highlights, zendu */
  --kumkum:     #D62828;   /* accent   — sacred red */
  --cream:      #FFF8F0;   /* background — sandal */
  --ink:        #1A1714;   /* text — warm kohl-black */
  --brass:      #C9962E;   /* metallic detail */
  --temple:     #2A1206;   /* deep temple brown — footer/dark */
  --maroon:     #4A0E0E;

  /* Derived surfaces (light) */
  --bg:         var(--cream);
  --bg-soft:    #FFEFDD;
  --surface:    #FFFFFF;
  --surface-2:  #FFF3E6;
  --text:       var(--ink);
  --text-soft:  #6B5A4A;
  --line:       #F0DEC8;
  --shadow:     0 10px 40px -16px rgba(74,14,14,0.28);
  --shadow-sm:  0 4px 18px -10px rgba(74,14,14,0.30);

  /* Type */
  --display: "Poppins", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;
  --deva:    "Mukta", "Tiro Devanagari Hindi", serif;

  /* Rhythm */
  --r:   18px;          /* card radius */
  --r-lg:28px;
  --maxw:1200px;
  --pad:  clamp(1.1rem, 4vw, 2.2rem);

  --grad-warm: linear-gradient(135deg, var(--saffron), var(--marigold));
  --grad-sacred: linear-gradient(135deg, var(--kumkum), var(--saffron));
}

[data-theme="dark"] {
  --bg:        #170B05;
  --bg-soft:   #21100A;
  --surface:   #241209;
  --surface-2: #2E1810;
  --text:      #FBEFE0;
  --text-soft: #C9AE93;
  --line:      #3A2113;
  --shadow:    0 12px 44px -16px rgba(0,0,0,0.7);
  --shadow-sm: 0 6px 20px -12px rgba(0,0,0,0.7);
}

/* ---------- Reset / base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
:lang(mr), :lang(hi), .deva {
  font-family: var(--deva);
}
/* Prevent document language from overriding Font Awesome icon fonts */
.fa-solid, .fas, .fa-regular, .far {
  font-family: "Font Awesome 6 Free" !important;
}
.fa-brands, .fab {
  font-family: "Font Awesome 6 Brands" !important;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.section--soft {
  background: var(--bg-soft);
}

/* Accessible focus */
:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 10px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Section eyebrow / heading ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kumkum);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-warm);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  margin: 0.5rem 0 0.6rem;
}
.section-intro {
  max-width: 58ch;
  color: var(--text-soft);
  font-size: 1.02rem;
}
.head-center {
  text-align: center;
}
.head-center .eyebrow::before {
  display: none;
}
.head-center .section-intro {
  margin-inline: auto;
}

/* ---------- Toran (marigold garland) — the signature ---------- */
.toran {
  display: flex;
  justify-content: center;
  gap: 0;
  height: 34px;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}
.toran span {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 35%, var(--marigold), var(--saffron) 70%, var(--kumkum));
  margin-top: -6px;
  position: relative;
  flex: 0 0 auto;
  transform-origin: top center;
  animation: sway 3.6s ease-in-out infinite;
  box-shadow: inset 0 -3px 4px rgba(214, 40, 40, 0.35);
}
.toran span:nth-child(3n) {
  background: radial-gradient(circle at 50% 35%, #FFE08A, var(--marigold) 65%, var(--saffron));
  height: 24px;
  width: 24px;
}
.toran span:nth-child(2n) {
  animation-delay: 0.4s;
}
.toran span:nth-child(3n) {
  animation-delay: 0.8s;
}
.toran span::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 2px;
  height: 9px;
  background: #5a7d2a;
  transform: translateX(-50%);
}
@keyframes sway {
  0%, 100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

/* ---------- Reading progress + back to top ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: var(--grad-sacred);
  z-index: 120;
  transition: width 0.1s linear;
}
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-warm);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: 0.3s;
}
.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover {
  transform: translateY(-3px);
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 110;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
}
.brand__mark {
  height: 52px;
  width: auto;
  flex: 0 0 auto;
  object-fit: contain;
}
.brand small {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--kumkum);
  margin-top: -3px;
}
.nav__links {
  display: flex;
  gap: 0.3rem;
  margin-left: auto;
  align-items: center;
}
.nav__links a {
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--text-soft);
  transition: 0.2s;
}
.nav__links a:hover {
  color: var(--saffron);
  background: var(--surface-2);
}
.nav__links a.active {
  color: var(--saffron);
  background: var(--surface-2);
}
.nav__tools {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: 0.2s;
}
.icon-btn:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}
.nav__burger {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 13px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.2s, background 0.2s;
}
.btn--primary {
  background: var(--grad-warm);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(255, 107, 0, 0.8);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(255, 107, 0, 0.9);
}
.btn--ghost {
  background: color-mix(in srgb, #fff 14%, transparent);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}
.btn--outline {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--line);
}
.btn--outline:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
     radial-gradient(120% 90% at 80% -10%, rgba(255, 183, 3, 0.30), transparent 55%),
     radial-gradient(90% 80% at 10% 110%, rgba(214, 40, 40, 0.16), transparent 55%);
}
.hero__inner {
  display: block;
  text-align: center;
  padding-block: clamp(1.5rem, 4.5vw, 2.5rem);
}
.hero__copy {
  max-width: 48rem;
  margin-inline: auto;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kumkum);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.45rem);
  margin: 0.8rem 0 0.4rem;
  background: var(--grad-sacred);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__deva {
  font-family: var(--deva);
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  font-weight: 700;
  color: var(--saffron);
  margin-bottom: 0.7rem;
}
.hero__sub {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
  max-width: 42rem;
  margin-inline: auto;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.hero__art {
  display: none !important;
}
.hero__halo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(78%, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--grad-warm);
  filter: blur(8px);
  opacity: 0.22;
  animation: halo 6s ease-in-out infinite;
}
@keyframes halo {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
.hero__ganesha {
  position: relative;
  width: min(86%, 380px);
  z-index: 2;
  filter: drop-shadow(0 24px 40px rgba(74, 14, 14, 0.4));
}
.hero__ganesha .ring {
  transform-origin: center;
  animation: spin 60s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* drifting petals */
.petal {
  position: absolute;
  top: -30px;
  width: 14px;
  height: 14px;
  border-radius: 0 70% 0 70%;
  background: linear-gradient(var(--marigold), var(--saffron));
  opacity: 0.7;
  animation: fall linear infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes fall {
  0% {
    transform: translateY(-30px) rotate(0);
  }
  100% {
    transform: translateY(105vh) rotate(360deg);
  }
}

/* ---------- Countdown ---------- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  max-width: 420px;
  margin-top: 1.5rem;
  margin-inline: auto;
}
.cd-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.6rem 0.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.cd-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.2vw, 1.8rem);
  color: var(--kumkum);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-lbl {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.4rem;
}
.cd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  align-items: center;
  margin-top: 1.4rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  justify-content: center;
}
.cd-meta b {
  color: var(--text);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ---------- Quick access grid ---------- */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 2.2rem;
}
.qa-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: 0.25s;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.qa-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--grad-warm);
  opacity: 0;
  transition: 0.3s;
}
.qa-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--saffron);
}
.qa-card:hover::after {
  opacity: 0.1;
}
.qa-card:hover .qa-arrow {
  transform: translateX(3px);
  color: var(--saffron);
}
.qa-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--saffron);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: 0.25s;
}
.qa-card:hover .qa-ico {
  background: var(--saffron);
  color: white;
}
.qa-content {
  flex-grow: 1;
  min-width: 0;
}
.qa-card h3 {
  font-size: 0.94rem;
  margin: 0;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qa-card p {
  font-size: 0.76rem;
  color: var(--text-soft);
  margin: 0;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qa-arrow {
  color: var(--kumkum);
  font-size: 0.8rem;
  transition: transform 0.25s, color 0.25s;
  flex-shrink: 0;
}

/* ---------- Mandal cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.4rem;
}
@media (min-width: 981px) {
  .cards.cards--4col {
    grid-template-columns: repeat(4, 1fr);
  }
}
.mandal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: 0.25s;
}
.mandal:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.mandal__img {
  aspect-ratio: 16/11;
  position: relative;
  overflow: hidden;
}
.mandal__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.mandal:hover .mandal__img img {
  transform: scale(1.07);
}
.mandal__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--grad-sacred);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
}
.mandal__body {
  padding: 1.2rem 1.3rem 1.4rem;
}
.mandal__body h3 {
  font-size: 1.2rem;
}
.mandal__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.85rem;
  margin: 0.5rem 0 1rem;
}
.mandal__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ---------- Articles ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 2.4rem;
}
.blog-grid--three {
  grid-template-columns: repeat(3, 1fr);
}
.post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.25s;
}
.post:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.post__img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.post__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.post:hover .post__img img {
  transform: scale(1.06);
}
.post__body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.tag {
  align-self: flex-start;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kumkum);
  background: var(--surface-2);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}
.post__body h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}
.post__body p {
  font-size: 0.9rem;
  color: var(--text-soft);
}
.post__more {
  margin-top: auto;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--saffron);
}

/* ---------- Daily Blessing (interactive signature) ---------- */
.blessing {
  background: linear-gradient(135deg, var(--temple), var(--maroon));
  color: #FBEFE0;
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.blessing::before, .blessing::after {
  content: "ॐ";
  position: absolute;
  font-size: 9rem;
  opacity: 0.06;
  font-family: var(--deva);
}
.blessing::before {
  top: -1.5rem;
  left: 1rem;
}
.blessing::after {
  bottom: -3rem;
  right: 1.5rem;
}
.blessing .eyebrow {
  color: var(--marigold);
}
.blessing__verse {
  font-family: var(--deva);
  font-size: clamp(1.3rem, 3.6vw, 2rem);
  font-weight: 700;
  color: var(--marigold);
  margin: 1rem auto 0.6rem;
  max-width: 30ch;
  min-height: 2.4em;
}
.blessing__trans {
  max-width: 46ch;
  margin: 0 auto 1.6rem;
  color: #E8D3BC;
  font-size: 1rem;
}
.blessing__btns {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Gallery (masonry) ---------- */
.masonry {
  columns: 4 220px;
  column-gap: 1rem;
  margin-top: 2.4rem;
}
.masonry figure {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--r);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}
.masonry img {
  width: 100%;
  transition: transform 0.5s, filter 0.3s;
}
.masonry figure::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(74, 14, 14, 0.4);
  opacity: 0;
  transition: 0.3s;
}
.masonry figure:hover::after {
  opacity: 1;
}
.masonry figure:hover img {
  transform: scale(1.05);
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 7, 3, 0.92);
  display: none;
  place-items: center;
  padding: 2rem;
}
.lightbox.open {
  display: grid;
}
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Testimonials carousel (no JS lib) ---------- */
.t-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.t-card .quote {
  font-size: 2.4rem;
  color: var(--marigold);
  font-family: var(--display);
  line-height: 1;
}
.t-card p {
  font-size: 1.02rem;
  margin: 0.4rem 0 1.2rem;
}
.t-who {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.t-ava {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-warm);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
}
.t-who b {
  display: block;
  font-family: var(--display);
}
.t-who small {
  color: var(--text-soft);
}
.t-carousel {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.3rem 0.2rem 1.4rem;
  -webkit-overflow-scrolling: touch;
}
.t-carousel .t-card {
  flex: 0 0 86%;
  scroll-snap-align: start;
  height: auto;
}
.t-carousel::-webkit-scrollbar {
  height: 8px;
}
.t-carousel::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}
@media (min-width: 760px) {
  .t-carousel .t-card {
    flex-basis: 46%;
  }
}
@media (min-width: 1000px) {
  .t-carousel {
    overflow: visible;
    flex-wrap: wrap;
  }
  .t-carousel .t-card {
    flex: 1 1 30%;
  }
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--grad-warm);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.newsletter p {
  max-width: 46ch;
  margin: 0.6rem auto 1.6rem;
  opacity: 0.95;
}
.nl-form {
  display: flex;
  gap: 0.6rem;
  max-width: 480px;
  margin-inline: auto;
  flex-wrap: wrap;
  justify-content: center;
}
.nl-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.95rem 1.1rem;
  border-radius: 13px;
  border: none;
  font-size: 1rem;
  font-family: var(--body);
}
.nl-form .btn {
  background: var(--temple);
  color: #fff;
}
.nl-note {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  opacity: 0.9;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--temple);
  color: #E8D3BC;
  padding-block: 3.4rem 1.6rem;
  margin-top: 0;
}
.footer a {
  color: #E8D3BC;
  transition: color 0.2s;
}
.footer a:hover {
  color: var(--marigold);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
.footer h4 {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold);
  margin-bottom: 1rem;
}
.footer ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
}
.footer__brand p {
  font-size: 0.92rem;
  margin: 0.8rem 0 1.2rem;
  color: #C9AE93;
  max-width: 30ch;
}
.socials {
  display: flex;
  gap: 0.6rem;
}
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
}
.socials a:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #C9AE93;
}

/* ---------- Toasts ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-size: 0.92rem;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  box-shadow: var(--shadow);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%);
}

/* ---------- Scroll reveal (lightweight, replaces AOS) ---------- */
[data-aos] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
[data-aos].in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__copy {
    max-width: none;
    margin-inline: auto;
  }
  .hero__cta {
    justify-content: center;
  }
  .countdown {
    margin-inline: auto;
  }
  .cd-meta {
    justify-content: center;
  }
  .hero__art {
    order: -1;
    min-height: 260px;
  }
  .qa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards, .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .masonry {
    columns: 3 180px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .nav__links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--pad);
    gap: 0.2rem;
    transform: translateY(-130%);
    transition: transform 0.3s;
    box-shadow: var(--shadow);
  }
  .nav__links.open {
    transform: none;
  }
  .nav__links a {
    padding: 0.8rem 1rem;
  }
  .nav__burger {
    display: grid;
  }
  .cards, .blog-grid {
    grid-template-columns: 1fr;
  }
  .qa-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .masonry {
    columns: 2 140px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Internal page router ===== */
.page {
  display: none;
}
.page--active {
  display: block;
  animation: pageIn 0.4s ease;
}
@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.page-hero {
  background: radial-gradient(120% 100% at 80% -20%, rgba(255, 183, 3, 0.28), transparent 55%), var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.2rem, 6vw, 3.4rem);
}
.crumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 0.7rem;
}
.crumb a:hover {
  color: var(--saffron);
}
.page-hero h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  background: var(--grad-sacred);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero p {
  color: var(--text-soft);
  max-width: 62ch;
  margin-top: 0.5rem;
}
/* Tabs */
.tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0 0 1.8rem;
}
.tab {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: 0.2s;
}
.tab:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}
.tab.active {
  background: var(--grad-warm);
  color: #fff;
  border-color: transparent;
}
/* Filter chips */
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 1.8rem;
}
.filter-chip {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: 0.2s;
}
.filter-chip:hover {
  border-color: var(--saffron);
}
.filter-chip.active {
  background: var(--kumkum);
  color: #fff;
  border-color: transparent;
}
/* Scripture / verse */
.verse-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}
.verse-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.1rem;
}
.verse-card .sub {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.scripture {
  font-family: var(--deva);
  font-size: 1.22rem;
  line-height: 2.05;
  color: var(--kumkum);
  white-space: pre-line;
}
.translit {
  color: var(--text-soft);
  font-style: italic;
  white-space: pre-line;
  margin-top: 0.7rem;
  line-height: 1.85;
}
.meaning {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  color: var(--text-soft);
  white-space: pre-line;
}
.verse-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}
.mini-btn {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  transition: 0.2s;
}
.mini-btn:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}
.audio-stub {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-top: 1rem;
}
.admin-note {
  background: var(--surface-2);
  border: 1px dashed var(--brass);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-top: 1.4rem;
}
.admin-note b {
  color: var(--text);
}
/* Contest */
.contest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.3rem;
}
.entry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: 0.25s;
}
.entry:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.entry__img {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.entry__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.entry:hover .entry__img img {
  transform: scale(1.06);
}
.entry__rank {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--grad-sacred);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  min-width: 34px;
  height: 34px;
  padding: 0 0.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.entry__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.entry__body h3 {
  font-size: 1.05rem;
}
.entry__by {
  font-size: 0.82rem;
  color: var(--text-soft);
}
.entry__foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.7rem;
}
.vote-count {
  font-family: var(--display);
  font-weight: 700;
  color: var(--kumkum);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.submit-panel {
  background: var(--surface);
  border: 1px dashed var(--brass);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.6rem;
  margin-bottom: 2rem;
}
.submit-panel h3 {
  font-family: var(--display);
  font-size: 1.15rem;
}
.submit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}
.submit-grid input, .submit-grid select {
  padding: 0.75rem 0.9rem;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 0.93rem;
}
.preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 0.8rem;
  display: none;
}
/* Ganpati Route */
.route-cta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0.4rem 0 1.6rem;
}
.route-stops {
  position: relative;
  padding-left: 1.4rem;
  margin-top: 0.5rem;
}
.route-stops::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--grad-warm);
}
.stop {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem 1.2rem;
  margin: 0 0 1rem 1.3rem;
}
.stop__num {
  position: absolute;
  left: -2.55rem;
  top: 1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-sacred);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.stop h3 {
  font-size: 1.1rem;
}
.stop .area {
  color: var(--saffron);
  font-size: 0.8rem;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.stop p {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}
.route-map iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: var(--r-lg);
  margin-top: 1.6rem;
}
/* Wishes */
.wish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}
.wish {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--saffron);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.wish p {
  font-size: 1rem;
  line-height: 1.7;
}
.wish .wish-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}
/* Search bar */
.search-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.search-bar input, .search-bar select {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--body);
  font-size: 0.95rem;
  flex: 1;
  min-width: 160px;
}
.empty {
  text-align: center;
  color: var(--text-soft);
  padding: 2.6rem;
}
/* Mandal profile */
.profile {
  display: none;
}
.profile.open {
  display: block;
}
.profile__top {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.6rem;
  align-items: start;
}
.profile__top img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/11;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.profile__facts {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.profile__map iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: var(--r);
  margin-top: 1.4rem;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
}
.info-card h4 {
  font-family: var(--display);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--kumkum);
}
.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.6rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.featured-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}
.featured-post .fp-body {
  padding: 1.6rem;
}
@media (max-width: 880px) {
  .profile__top, .featured-post {
    grid-template-columns: 1fr;
  }
  .featured-post img {
    min-height: 200px;
  }
}
/* Print */
@media print {
  .nav, .toran, .to-top, .progress-bar, .footer, .verse-actions, .audio-stub, .crumb, .btn, .admin-note, .mini-btn {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .scripture, .translit, .meaning, .page-hero h1 {
    color: #000;
    background: none;
    -webkit-text-fill-color: #000;
  }
}
.site .ekit-wid-con .ekit-form form input[type=submit],
.ekit-wid-con .elementskit-single-pricing .elementskit-pricing-btn,
.ekit-wid-con .elementskit-btn {
    --font-size-default: var(--font-size-paragraphs);
}
div.ekit-wid-con .elementskit-section-subtitle.elementskit-style-border::before,
div.ekit-wid-con .elementskit-section-subtitle.elementskit-style-border::after {
    height: 1px;
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    background-color: var(--e-global-color-primary);
    width: 23px;
    margin: 0 10px;
}
.ekit-wid-con .ekit-breadcrumb,
.page-header .breadcrumbs {
    font-weight: var(--e-global-typography-accent-font-weight);
}
.breadcrumbs li a,
.ekit-wid-con ol.ekit-breadcrumb>li a {
    opacity: 1;
}
.nexmotive-container .nexmotive-card.type-nexmotive-portfolio .medium-size-thumb {
    aspect-ratio: 1.1;
}
.ekit-wid-con .elementskit-single-pricing .elementskit-pricing-btn,
.ekit-wid-con .elementskit-btn {
    border-color: var(--color-border);
}
.ekit-wid-con .ekit-post-list-wrapper span.elementor-icon-list-text {
    font-weight: var(--nexmotive-h4-font-weight);
    font-size: calc(var(--nexmotive-h4-font-size) + 2px);
    line-height: var(--nexmotive-h4-line-height);
    letter-spacing: var(--nexmotive-h4-letter-spacing); 
}
@media (min-width: 1023.99px) {
    body {
        --nexmotive-h1-font-size: 58px;
        --nexmotive-h2-font-size: 48px;
        --nexmotive-h3-font-size: 32px;
        --nexmotive-h4-font-size: 20px;
        --nexmotive-h5-font-size: 18px;
    }
    .e-con.hero-section h1.ekit-fancy-text,
    .e-con.hero-section h1.elementskit-section-title {
        font-size: 64px;
    }
}
.page-header .entry-subtitle,
.ekit-heading__description p {
    font-size: calc(var(--font-size-paragraphs) + 2px);
}
h3.elementskit-section-title+.ekit-heading__description p,
h4.elementskit-section-title+.ekit-heading__description p,
h5.elementskit-section-title+.ekit-heading__description p,
h6.elementskit-section-title+.ekit-heading__description p {
    font-size: var(--font-size-paragraphs);
}

/* Ganeshotsav 2-column layout on homepage */
.chaturthi-layout {
  display: grid;
  grid-template-columns: 1.7fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
}
.chaturthi-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (max-width: 980px) {
  .chaturthi-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .chaturthi-sidebar {
    position: static;
  }
}

/* ============================================================
   Expanded Section Styles (Recipes, Stories, Eco Guide, Quiz, Puja)
   ============================================================ */

/* Navigation Dropdown */
.nav__item-dropdown {
  position: relative;
  display: inline-block;
}
.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}
.nav__item-dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown-menu a {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem !important;
  font-size: 0.88rem !important;
  color: var(--text-soft) !important;
  border-radius: 8px !important;
  background: transparent !important;
}
.nav__dropdown-menu a:hover {
  background: var(--surface-2) !important;
  color: var(--saffron) !important;
}
.nav__dropdown-toggle i {
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

@media (max-width: 980px) {
  .nav__item-dropdown {
    width: 100%;
  }
  .nav__dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 1.5rem;
    display: none;
    min-width: unset;
  }
  .nav__item-dropdown:hover .nav__dropdown-menu {
    display: block;
  }
}

/* Recipe Page */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.recipe-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.recipe-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.recipe-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recipe-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--grad-sacred);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
}
.recipe-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
}
.recipe-card__title {
  font-size: 1.25rem;
  font-family: var(--display);
}
.recipe-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.recipe-card__desc {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.recipe-card__btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Recipe Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(42, 18, 6, 0.6);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}
.modal.show {
  opacity: 1;
  pointer-events: auto;
}
.modal__content {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal.show .modal__content {
  transform: translateY(0);
}
.modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
  z-index: 10;
  transition: 0.2s;
}
.modal__close:hover {
  background: var(--kumkum);
  color: #fff;
  border-color: transparent;
}
.modal__body {
  padding: var(--pad);
}
.modal__title {
  font-size: 1.6rem;
  font-family: var(--display);
  color: var(--kumkum);
  margin-bottom: 0.5rem;
}
.modal__subtitle {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
}
.modal__section-title {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--saffron);
  margin-block: 1.2rem 0.6rem;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0.3rem;
}
.recipe-ingredients-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.recipe-ingredients-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.recipe-ingredients-list input[type="checkbox"] {
  accent-color: var(--saffron);
  width: 17px;
  height: 17px;
  cursor: pointer;
}
.recipe-ingredients-list input[type="checkbox"]:checked + span {
  text-decoration: line-through;
  color: var(--text-soft);
}
.recipe-steps-list {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.recipe-steps-list li {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Stories Layout */
.story-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.story-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.story-card-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--pad);
  box-shadow: var(--shadow-sm);
  transition: opacity 0.3s ease;
}
.story-title {
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--kumkum);
  margin-bottom: 1rem;
}
.story-body {
  font-family: var(--deva);
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--text);
  white-space: pre-line;
}
.story-moral {
  margin-top: 1.5rem;
  background: var(--surface-2);
  border-left: 4px solid var(--saffron);
  padding: 1.2rem;
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 1rem;
  font-style: italic;
  color: var(--maroon);
}

/* Eco DIY Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 6px;
  width: 2px;
  height: 100%;
  background: var(--line);
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad-warm);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 4px var(--line);
}
.timeline-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.timeline-title {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--kumkum);
  margin-bottom: 0.4rem;
}
.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.65;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.benefit-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.2rem;
  display: flex;
  gap: 0.8rem;
}
.benefit-card i {
  color: #5a7d2a;
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

/* Quiz layout */
.quiz-container {
  max-width: 600px;
  margin: 2rem auto;
}
.quiz-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--pad);
  box-shadow: var(--shadow);
}
.quiz-progress {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}
.quiz-bar-container {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.quiz-bar {
  height: 100%;
  background: var(--grad-warm);
  width: 0;
  transition: width 0.3s ease;
}
.quiz-question {
  font-family: var(--display);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.quiz-option {
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  cursor: pointer;
  text-align: left;
  font-size: 0.98rem;
  transition: all 0.2s;
  font-weight: 500;
}
.quiz-option:hover {
  border-color: var(--saffron);
  background: var(--surface-2);
}
.quiz-option.correct {
  background: #e2f0d9 !important;
  border-color: #70ad47 !important;
  color: #385723 !important;
}
.quiz-option.incorrect {
  background: #fce4d6 !important;
  border-color: #ed7d31 !important;
  color: #c65911 !important;
}
.quiz-explanation {
  margin-top: 1.5rem;
  background: var(--surface-2);
  border-radius: var(--r);
  padding: 1rem;
  font-size: 0.92rem;
  border-left: 3px solid var(--marigold);
  display: none;
}
.quiz-next-btn {
  margin-top: 1.5rem;
  display: none;
  width: 100%;
  justify-content: center;
}
.quiz-result {
  text-align: center;
}
.quiz-result-score {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--kumkum);
  font-family: var(--display);
  margin-block: 1rem;
}
.quiz-certificate {
  border: 4px double var(--marigold);
  padding: 2rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  position: relative;
  margin-bottom: 1.5rem;
}

/* Virtual Puja & Devotion Wall */
.puja-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 980px) {
  .puja-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.puja-altar {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,183,3,0.18), transparent 55%),
    linear-gradient(to bottom, #2a0c02 0%, #1d0700 45%, #120400 100%);
  border: 1px solid rgba(201,150,46,0.55);
  border-radius: var(--r-lg);
  padding: 3.4rem 2rem 2rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow), inset 0 0 60px rgba(0,0,0,0.5);
}
/* Soft sanctum vignette */
.puja-altar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -60px 90px rgba(0,0,0,0.55), inset 0 40px 70px rgba(0,0,0,0.35);
  border-radius: inherit;
}

/* ---- Mandir arch + kalash + toran garland ---- */
.mandir-arch {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  pointer-events: none;
}
.mandir-arch .kalash {
  position: absolute;
  top: 4px; left: 50%;
  width: 14px; height: 22px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #FFE08A, #C9962E);
  border-radius: 50% 50% 30% 30%;
  box-shadow: 0 0 10px rgba(255,183,3,0.6);
}
.mandir-arch .kalash::before {
  content: "";
  position: absolute;
  top: -8px; left: 50%;
  width: 6px; height: 8px;
  transform: translateX(-50%);
  background: #FFB703;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,183,3,0.8);
}
.toran {
  position: absolute;
  top: 26px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 0 1.4rem;
}
.toran span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFC93C, #E27602);
  box-shadow: 0 0 6px rgba(226,118,2,0.7);
  position: relative;
  animation: toranSway 3.2s ease-in-out infinite;
}
.toran span::after {
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  width: 1px; height: 10px;
  transform: translateX(-50%);
  background: rgba(201,150,46,0.6);
}
.toran span:nth-child(even) {
  background: radial-gradient(circle at 35% 30%, #FFE08A, #C9962E);
  animation-delay: -1.6s;
}
@keyframes toranSway {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.altar-title {
  color: var(--marigold);
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 14px rgba(255,107,0,0.45);
}

/* ---- Deity frame ---- */
.ganesha-frame {
  position: relative;
  width: min(82%, 290px);
  margin: 0 auto 2rem;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  padding: 1rem;
  border: 1px solid rgba(201,150,46,0.45);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 14px 30px -18px rgba(0,0,0,0.8);
}
/* Divine halo glow behind deity */
.deity-halo {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,183,3,0.55) 0%, rgba(255,107,0,0.25) 38%, transparent 68%);
  filter: blur(6px);
  z-index: 0;
  animation: haloPulse 4.5s ease-in-out infinite;
}
@keyframes haloPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.06); }
}
.ganesha-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  filter: drop-shadow(0 0 14px rgba(255,107,0,0.45));
}

/* ---- Incense / agarbatti smoke ---- */
.incense {
  position: absolute;
  bottom: 6%; right: 14%;
  z-index: 3;
  width: 30px; height: 60px;
  pointer-events: none;
}
.incense span {
  position: absolute;
  bottom: 0; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  filter: blur(3px);
  opacity: 0;
  animation: smokeRise 4s ease-in infinite;
}
.incense span:nth-child(2) { animation-delay: 1.3s; left: 42%; }
.incense span:nth-child(3) { animation-delay: 2.6s; left: 58%; }
@keyframes smokeRise {
  0% { transform: translate(-50%, 0) scale(0.6); opacity: 0; }
  20% { opacity: 0.5; }
  100% { transform: translate(-50%, -54px) scale(2.2); opacity: 0; }
}

/* ---- Aarti diya: smooth circular orbit around the deity ---- */
.aarti-orbit {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  transform-origin: 50% 50%;
}
.aarti-orbit.spinning {
  animation: aartiOrbit 4.5s linear infinite;
}
@keyframes aartiOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.puja-diya {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 50px;
  height: 50px;
  margin-left: -25px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.puja-diya.active { opacity: 1; }
/* Counter-rotate so the flame always points up while orbiting */
.aarti-orbit.spinning .puja-diya {
  animation: aartiCounter 4.5s linear infinite;
}
@keyframes aartiCounter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
.diya-flame {
  width: 12px;
  height: 22px;
  background: radial-gradient(circle at 50% 80%, #fff6c2 0%, #ffd000 35%, #ff6b00 80%);
  border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
  margin: 0 auto -4px;
  box-shadow: 0 0 18px 4px rgba(255,140,0,0.75);
  transform-origin: bottom center;
  animation: flicker 0.18s infinite alternate;
  display: none;
}
.puja-diya.active .diya-flame { display: block; }
@keyframes flicker {
  0% { transform: scaleY(0.92) rotate(-2deg); opacity: 0.92; }
  100% { transform: scaleY(1.06) rotate(2deg); opacity: 1; }
}

/* ---- Hanging Temple Bell ---- */
.bell-rope {
  position: absolute;
  top: 0; left: 30px;
  width: 2px; height: 46px;
  background: linear-gradient(to bottom, rgba(201,150,46,0.2), rgba(201,150,46,0.7));
  z-index: 8;
}
.altar-bell {
  position: absolute;
  top: 40px;
  left: 18px;
  font-size: 2rem;
  color: var(--marigold);
  transform-origin: top center;
  cursor: pointer;
  z-index: 9;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  transition: transform 0.2s, color 0.2s;
}
.altar-bell:hover { color: #FFE08A; transform: scale(1.08); }
.altar-bell:focus-visible { outline: 2px solid var(--marigold); outline-offset: 4px; border-radius: 6px; }
.altar-bell.ringing {
  animation: bellSwing 1.2s ease-in-out;
}
@keyframes bellSwing {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(20deg); }
  30% { transform: rotate(-18deg); }
  45% { transform: rotate(14deg); }
  60% { transform: rotate(-10deg); }
  75% { transform: rotate(6deg); }
  90% { transform: rotate(-3deg); }
}

/* ---- Floating Flower shower ---- */
.flower-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
  overflow: hidden;
}
.flower-particle {
  position: absolute;
  top: -10px;
  line-height: 1;
  will-change: transform, opacity;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
  animation: floatFlower 3s cubic-bezier(0.4, 0, 0.5, 1) forwards;
}
@keyframes floatFlower {
  0% { transform: translateY(-10px) rotate(0deg) scale(0.5); opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(230px) rotate(300deg) scale(1); opacity: 0; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .aarti-orbit.spinning,
  .aarti-orbit.spinning .puja-diya,
  .deity-halo, .toran span, .incense span { animation: none; }
}

/* Puja Control Panel */
.altar-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.altar-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--display);
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.altar-btn:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  background: var(--surface-2);
}
.altar-btn.active {
  background: var(--grad-warm);
  color: #fff;
  border-color: transparent;
}

/* Chant Counter */
.counter-box {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--r);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
  min-width: 180px;
}
.counter-label {
  color: var(--text-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}
.counter-num {
  font-size: 2rem;
  color: var(--marigold);
  font-weight: 700;
  font-family: var(--display);
  margin-block: 0.2rem;
  display: block;
}

/* Devotion Wall */
.wall-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--pad);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.wall-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.wall-form input, .wall-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.wall-form input:focus, .wall-form textarea:focus {
  border-color: var(--saffron);
}
.wall-feed {
  border: 1px solid var(--line);
  border-radius: var(--r);
  height: 280px;
  overflow-y: auto;
  padding: 1rem;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.wall-msg {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}
.wall-msg-meta {
  font-weight: 600;
  color: var(--kumkum);
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
}
.wall-msg-text {
  color: var(--text);
  line-height: 1.5;
}


/* ===== Contest module: modal + auth/vote UI ===== */
.cm-modal{position:fixed;inset:0;background:rgba(40,20,8,.55);display:grid;place-items:center;z-index:200;padding:1rem}
.cm-modal[hidden]{display:none}
.cm-modal__box{background:var(--surface,#fff);width:380px;max-width:94vw;border-radius:16px;padding:1.6rem 1.5rem;position:relative;box-shadow:0 24px 70px rgba(0,0,0,.3);max-height:90vh;overflow:auto}
.cm-modal__close{position:absolute;top:.6rem;right:.8rem;background:none;border:0;font-size:1.7rem;line-height:1;cursor:pointer;color:var(--text-soft)}
.cm-h{font-family:var(--display);color:var(--kumkum);font-size:1.15rem;margin:0 0 .3rem}
.cm-sub{color:var(--text-soft);font-size:.85rem;margin:0 0 1rem}
.cm-inp,.cm-modal__box input,.cm-modal__box textarea{width:100%;padding:.7rem .8rem;border:1px solid var(--line,#e3c9a8);border-radius:10px;margin-bottom:.7rem;font-family:inherit;font-size:.95rem;box-sizing:border-box;background:var(--bg,#fff);color:var(--text,#2b1a0e)}
.cm-inp:focus,.cm-modal__box input:focus{outline:2px solid rgba(255,107,0,.3);border-color:var(--saffron)}
.cm-btn{width:100%;margin-top:.3rem;justify-content:center}
.cm-link{display:block;width:100%;background:none;border:0;color:var(--saffron);margin-top:.7rem;cursor:pointer;font-size:.85rem}
.cm-tabs{display:flex;gap:.4rem;margin-bottom:1.2rem;background:rgba(0,0,0,.05);padding:.3rem;border-radius:10px}
.cm-tabs button{flex:1;border:0;background:none;padding:.55rem;border-radius:8px;cursor:pointer;font-weight:600;color:var(--text-soft)}
.cm-tabs button.on{background:var(--saffron);color:#fff}
.cm-who{font-size:.85rem;color:var(--text-soft)}
.cm-who a{color:var(--saffron)}
.entry--single{background:var(--surface,#fff);border:1px solid var(--line,#eee);border-radius:16px;overflow:hidden}

/* ===== Auth pages (login/register) ===== */
.auth-card{max-width:440px;margin:0 auto}
.auth-msg{padding:.65rem .85rem;border-radius:9px;font-size:.88rem;margin-bottom:.9rem}
.auth-msg.ok{background:#e7f6ea;color:#15692b;border:1px solid #bfe6c8}
.auth-msg.err{background:#fdeaea;color:#b00020;border:1px solid #f3c9c9}

/* ===== Header login button + profile avatar ===== */
.nav__login{padding:.45rem .9rem;font-size:.86rem;border-radius:999px;white-space:nowrap}
.nav__avatar{width:40px;height:40px;border-radius:50%;display:inline-grid;place-items:center;
  background:linear-gradient(135deg,var(--saffron,#FF6B00),var(--kumkum,#D62828));color:#fff;
  font-weight:700;font-size:1rem;text-decoration:none;flex:0 0 auto;border:2px solid #fff;
  box-shadow:0 2px 8px rgba(214,40,40,.3);transition:transform .15s}
.nav__avatar:hover{transform:scale(1.07)}

/* ===== Aarti collection — redesigned cards ===== */
#aartiGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:1.3rem;
}
.aarti-card{
  position:relative;display:flex;flex-direction:column;
  background:var(--surface,#fff);border:1px solid var(--line,#efe3d2);
  border-radius:18px;padding:1.5rem 1.3rem 1.2rem;text-decoration:none;color:inherit;
  overflow:hidden;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
  box-shadow:0 4px 16px rgba(80,40,10,.05);
}
.aarti-card::before{
  content:"";position:absolute;inset:0 0 auto 0;height:5px;
  background:linear-gradient(90deg,var(--saffron,#FF6B00),var(--gold,#FFB703));
  transform:scaleX(0);transform-origin:left;transition:transform .3s ease;
}
.aarti-card:hover{transform:translateY(-6px);box-shadow:0 16px 36px rgba(214,40,40,.16);border-color:var(--saffron,#FF6B00)}
.aarti-card:hover::before{transform:scaleX(1)}
.aarti-card__medal{
  width:60px;height:60px;border-radius:50%;display:grid;place-items:center;
  font-size:1.5rem;color:#fff;margin-bottom:1rem;
  background:radial-gradient(circle at 30% 30%,var(--gold,#FFB703),var(--saffron,#FF6B00) 60%,var(--kumkum,#D62828));
  box-shadow:0 6px 16px rgba(255,107,0,.32);transition:transform .25s ease}
.aarti-card:hover .aarti-card__medal{transform:scale(1.08) rotate(-4deg)}
.aarti-card__deity{
  align-self:flex-start;font-size:.72rem;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:var(--kumkum,#D62828);background:rgba(214,40,40,.08);
  padding:.2rem .6rem;border-radius:999px;margin-bottom:.55rem}
.aarti-card__title{
  font-family:var(--display);font-size:1.08rem;line-height:1.35;margin:0 0 .45rem;color:var(--text,#2b1a0e);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.aarti-card__desc{
  font-size:.86rem;color:var(--text-soft);line-height:1.55;margin:0 0 1rem;flex:1;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.aarti-card__cta{
  display:inline-flex;align-items:center;gap:.45rem;font-weight:700;font-size:.9rem;
  color:var(--saffron,#FF6B00);margin-top:auto}
.aarti-card__cta i{transition:transform .2s ease}
.aarti-card:hover .aarti-card__cta i{transform:translateX(4px)}
@media(max-width:520px){#aartiGrid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.9rem}
  .aarti-card{padding:1.2rem 1rem}.aarti-card__medal{width:50px;height:50px;font-size:1.25rem}}

/* ============================================================
   Expanded Chaturthi Page Styles
   ============================================================ */
.toc-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--line, #e3c9a8);
  border-radius: var(--r-lg, 12px);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm, 0 4px 10px rgba(0,0,0,0.02));
}
.toc-card h3 {
  font-family: var(--display);
  color: var(--kumkum, #D62828);
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line, #e3c9a8);
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.toc-link {
  display: block;
  padding: 0.4rem 0 0.4rem 0.8rem;
  color: var(--text-soft, #5a4b41);
  font-size: 0.9rem;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}
.toc-link:hover {
  color: var(--saffron, #FF6B00);
  padding-left: 1rem;
}
.toc-link.active {
  color: var(--saffron, #FF6B00);
  font-weight: 600;
  border-left-color: var(--saffron, #FF6B00);
  padding-left: 1rem;
}
.info-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--line, #e3c9a8);
  border-radius: var(--r-lg, 12px);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm, 0 4px 10px rgba(0,0,0,0.02));
}
.info-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text, #2b1a0e);
}
.info-card ul {
  padding-left: 1.2rem;
  margin: 0;
}
.info-card li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-soft, #5a4b41);
}
.chaturthi-alert {
  background: #fff4e6;
  border-left: 4px solid var(--saffron, #FF6B00);
  padding: 1rem 1.2rem;
  border-radius: 4px;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.chaturthi-alert strong {
  color: var(--kumkum, #D62828);
}
.chaturthi-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.chaturthi-table th, .chaturthi-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line, #e3c9a8);
}
.chaturthi-table th {
  background: rgba(255, 107, 0, 0.08);
  font-family: var(--display);
  color: var(--kumkum, #D62828);
}
.chaturthi-table td {
  font-size: 0.95rem;
}
.chaturthi-table tr:hover {
  background: rgba(255, 107, 0, 0.02);
}

.chaturthi-main h3 {
  font-size: clamp(1.15rem, 3.2vw, 1.35rem);
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--text, #2b1a0e);
}
.chaturthi-main h4 {
  font-size: clamp(1.02rem, 2.8vw, 1.12rem);
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--kumkum, #D62828);
}

/* AI Optimization: Key Takeaway Cards */
.ai-takeaway {
  background: var(--surface-2);
  border-left: 4px solid var(--saffron);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.ai-takeaway h3 {
  font-family: var(--display);
  color: var(--kumkum);
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ai-takeaway ul {
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.ai-takeaway ul li {
  margin-bottom: 0.4rem;
}
.ai-takeaway b {
  color: var(--text);
}
