/* ==========================================================================
   YOGANAGARI MYSURU — THE WORLD CAPITAL OF YOGA
   v3.0 Royal Mysore Heritage & Tactile Khadi Design System
   Palace Arches • Hoysala Stone Carvings • Kolam Lattices • Double-Bezel Craft
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Marcellus&family=Outfit:wght@300;400;500;600;700&family=Rozha+One&display=swap');

:root {
  /* Sacred Earth, Terracotta, Mysore Sandalwood, Turmeric & Forest Palette */
  --color-terracotta: #b04e2a;
  --color-terracotta-rich: #943b1a;
  --color-terracotta-dark: #6e290f;
  --color-terracotta-light: #faeee8;
  --color-terracotta-tint: rgba(176, 78, 42, 0.08);

  --color-sandalwood: #d4b895;
  --color-sandalwood-light: #f3eadc;
  --color-sandalwood-pale: #f5ecde;
  --color-sandalwood-deep: #a6845b;

  --color-turmeric: #d4820a;
  --color-turmeric-glow: #fbbf24;
  --color-turmeric-light: #fef4dc;
  --color-marigold: #e8991c;

  --color-forest: #1b352a;
  --color-forest-dark: #0f2019;
  --color-forest-sage: #3b5e4e;
  --color-forest-light: #e8f1ec;

  /* Khadi & Parchment Surfaces (with full alias coverage) */
  --color-parchment: #fbf7ef;
  --color-khadi: #fbf7ef;
  --color-parchment-warm: #f3ebdc;
  --color-parchment-deep: #e8dcc8;
  --color-parchment-card: #fffdf9;
  --color-khadi-card: #fffdf9;

  --color-border: #dfd2be;
  --color-border-strong: #c5b093;

  --color-granite: #1e1a17;
  --color-granite-muted: #524840;
  --color-granite-soft: #786d62;

  /* Typography */
  --font-display: 'Marcellus', Georgia, serif;
  --font-heading: 'Rozha One', 'Marcellus', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-crest: 'Cinzel Decorative', serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Elevation */
  --shadow-ambient: 0 12px 32px -8px rgba(30, 26, 23, 0.08), 0 4px 12px -2px rgba(176, 78, 42, 0.05);
  --shadow-elevated: 0 24px 54px -12px rgba(30, 26, 23, 0.18), 0 8px 20px -4px rgba(176, 78, 42, 0.1);
  --shadow-terracotta: 0 12px 28px -6px rgba(176, 78, 42, 0.38);
  --shadow-forest: 0 14px 32px -6px rgba(27, 53, 42, 0.35);

  /* Radii & Motion */
  --container-max: 1320px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-arch: 240px 240px 24px 24px;
  --radius-pill: 9999px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-parchment);
  color: var(--color-granite);
}

body {
  font-family: var(--font-body);
  line-height: 1.68;
  background-color: var(--color-parchment);
  color: var(--color-granite);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(212, 130, 10, 0.07) 0%, transparent 42%),
    radial-gradient(circle at 88% 25%, rgba(176, 78, 42, 0.07) 0%, transparent 48%),
    radial-gradient(rgba(166, 132, 91, 0.15) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px;
}

/* Fixed Khadi Woven Paper Grain Overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.35s var(--ease-out-expo);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* Ornamental South Indian Temple Frieze & Kolam Lattice Patterns */
.temple-frieze-border {
  width: 100%;
  height: 22px;
  background-color: var(--color-parchment-warm);
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='22' viewBox='0 0 56 22' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 3L35 11L28 19L21 11Z' fill='none' stroke='%23b04e2a' stroke-width='1.3' stroke-opacity='0.55'/%3E%3Ccircle cx='28' cy='11' r='2.5' fill='%23d4820a' fill-opacity='0.65'/%3E%3Cpath d='M0 11H17M39 11H56' stroke='%23a6845b' stroke-width='1.1' stroke-opacity='0.4'/%3E%3Ccircle cx='8' cy='11' r='1.5' fill='%23b04e2a' fill-opacity='0.35'/%3E%3Ccircle cx='48' cy='11' r='1.5' fill='%23b04e2a' fill-opacity='0.35'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  border-top: 1px solid var(--color-border-strong);
  border-bottom: 1px solid var(--color-border-strong);
}

.kolam-pattern-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='88' height='88' viewBox='0 0 88 88' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23b04e2a' stroke-width='0.8' stroke-opacity='0.11'%3E%3Ccircle cx='44' cy='44' r='30'/%3E%3Ccircle cx='44' cy='44' r='15'/%3E%3Cpath d='M44 4L53 35L84 44L53 53L44 84L35 53L4 44L35 35Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-granite);
  line-height: 1.18;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-terracotta-dark);
  background: var(--color-terracotta-light);
  border: 1px solid rgba(176, 78, 42, 0.25);
  padding: 0.38rem 0.95rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.15rem, 3.6vw, 3.25rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  color: var(--color-granite);
}

.section-desc {
  font-size: 1.12rem;
  color: var(--color-granite-muted);
  max-width: 720px;
  line-height: 1.76;
}

.text-center { text-align: center; }
.center-block { margin-left: auto; margin-right: auto; }

/* Double-Bezel (Doppelrand) Architectural Frame */
.double-bezel {
  background: linear-gradient(145deg, rgba(176, 78, 42, 0.08), rgba(212, 184, 149, 0.18));
  border: 1px solid var(--color-border-strong);
  padding: 8px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ambient);
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), border-color 0.4s ease;
  height: 100%;
}

.double-bezel:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-terracotta);
}

.double-bezel-inner {
  background: var(--color-parchment-card);
  border-radius: calc(var(--radius-lg) - 7px);
  overflow: hidden;
  border: 1px solid rgba(197, 176, 147, 0.55);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Indo-Saracenic Cusped Palace Arch Image Frame */
.arch-image-frame {
  background: linear-gradient(180deg, rgba(212, 130, 10, 0.16) 0%, rgba(176, 78, 42, 0.1) 100%);
  border: 2px solid var(--color-sandalwood-deep);
  padding: 12px;
  border-radius: var(--radius-arch);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  position: relative;
}

.arch-image-inner {
  border-radius: 228px 228px 16px 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 4.7;
  background: var(--color-forest-dark);
}

.arch-image-inner img,
.arch-image-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease-out-expo);
}

.arch-image-frame:hover .arch-image-inner img {
  transform: scale(1.05);
}

/* Buttons with Nested Icon Circle */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.4s var(--ease-out-expo);
  white-space: normal;
  max-width: 100%;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-rich) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-terracotta);
  padding-right: 0.75rem;
}

.btn-primary:hover {
  background: var(--color-terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -6px rgba(176, 78, 42, 0.48);
}

.btn-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-out-expo);
}

.btn:hover .btn-icon-circle {
  transform: translate(3px, -1px) scale(1.06);
}

.btn-forest {
  background: var(--color-forest);
  color: #ffffff;
  box-shadow: var(--shadow-forest);
}

.btn-forest:hover {
  background: var(--color-forest-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--color-border-strong);
  color: var(--color-granite);
  background: rgba(255, 253, 249, 0.85);
}

.btn-outline:hover {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
  background: #ffffff;
}

/* Top Vedic Notice Bar */
.top-notice-bar {
  background: var(--color-forest-dark);
  color: var(--color-sandalwood-light);
  font-size: 0.8125rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(212, 184, 149, 0.22);
}

.notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notice-sanskrit {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: #f7eedc;
  letter-spacing: 0.04em;
}

.moon-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(212, 130, 10, 0.22);
  border: 1px solid var(--color-turmeric);
  color: #fde68a;
  padding: 0.22rem 0.78rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.75rem;
}

/* Sticky Multi-Page Header */
.header-main {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 247, 239, 0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--color-border-strong);
  box-shadow: 0 4px 20px -6px rgba(30, 26, 23, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1rem;
}

.brand-emblem {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 46px;
  height: 46px;
  color: var(--color-terracotta);
  padding: 8px;
  background: linear-gradient(135deg, var(--color-terracotta-light), #fff5eb);
  border-radius: 14px;
  border: 1.5px solid rgba(176, 78, 42, 0.32);
  box-shadow: inset 0 1px 1px #ffffff;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--color-granite);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  font-weight: 700;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(243, 235, 220, 0.65);
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--color-granite-muted);
  padding: 0.48rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  white-space: normal;
  max-width: 100%;
  text-align: center;
}

.nav-link:hover {
  color: var(--color-terracotta-dark);
  background: rgba(176, 78, 42, 0.08);
}

.nav-link.active {
  color: #ffffff;
  background: var(--color-terracotta);
  font-weight: 600;
  box-shadow: 0 4px 12px -2px rgba(176, 78, 42, 0.35);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-nav-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--color-granite);
}

.mobile-menu-drawer {
  display: none;
}

/* Gateway Hero Section */
.hero-section {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 130, 10, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, var(--color-parchment) 0%, var(--color-parchment-warm) 100%);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.hero-mandala-watermark {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 680px;
  height: 680px;
  opacity: 0.075;
  pointer-events: none;
  color: var(--color-terracotta);
  animation: slowSpin 120s linear infinite;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.45rem, 4.3vw, 3.9rem);
  line-height: 1.11;
  margin-bottom: 1.35rem;
  color: var(--color-granite);
}

.hero-title-italic {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 600;
  color: var(--color-terracotta);
}

.hero-lead {
  font-size: 1.14rem;
  color: var(--color-granite-muted);
  line-height: 1.78;
  margin-bottom: 2rem;
  max-width: 62ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.stats-ticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: rgba(255, 253, 249, 0.85);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-ambient);
}

.stat-item {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border);
  padding-right: 1rem;
}

.stat-item:last-child {
  border-right: none;
  padding-right: 0;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  color: var(--color-terracotta-dark);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.73rem;
  color: var(--color-granite-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Hero Visual Stage & Transparent Cutout PNG Presentation */
.hero-visual-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 680px;
  padding: 0;
}

.hero-surya-halo {
  position: absolute;
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 130, 10, 0.24) 0%, rgba(176, 78, 42, 0.1) 52%, transparent 72%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-terracotta);
  pointer-events: none;
  z-index: 1;
}

.hero-surya-halo svg {
  width: 92%;
  height: 92%;
  opacity: 0.22;
  animation: slowSpin 90s linear infinite;
}

.hero-arch-backdrop {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 490px;
  height: 82%;
  background: linear-gradient(180deg, rgba(243, 234, 220, 0.9) 0%, rgba(232, 220, 200, 0.55) 100%);
  border: 1.5px solid rgba(176, 78, 42, 0.35);
  border-radius: 260px 260px 28px 28px;
  box-shadow: inset 0 2px 24px rgba(212, 130, 10, 0.12), var(--shadow-ambient);
  z-index: 1;
  pointer-events: none;
}

.hero-yogi-cutout {
  position: relative;
  z-index: 3;
  width: 118%;
  max-width: 660px;
  max-height: 780px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 36px rgba(30, 26, 23, 0.24));
  transition: transform 0.65s var(--ease-out-expo);
  margin-bottom: -18px;
}

.hero-visual-stage:hover .hero-yogi-cutout {
  transform: translateY(-6px) scale(1.015);
}

.hero-cutout-caption-card {
  position: relative;
  z-index: 4;
  width: 94%;
  max-width: 450px;
  background: rgba(15, 32, 25, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.35rem;
  color: #ffffff;
  box-shadow: var(--shadow-elevated);
  text-align: center;
}

/* Inner Page Hero Banner */
.page-hero-banner {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  padding: 5.5rem 0 4.25rem;
  background: var(--color-forest-dark);
  color: var(--color-khadi);
  overflow: hidden;
  border-bottom: 3px solid var(--color-terracotta);
}

.page-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: contrast(1.06) saturate(1.08);
  z-index: 0;
}

.page-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 32, 25, 0.94) 0%, rgba(15, 32, 25, 0.78) 58%, rgba(15, 32, 25, 0.48) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.breadcrumb-row,
.breadcrumb-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-sandalwood-light);
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.09);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 184, 149, 0.28);
}

.breadcrumb-row a:hover,
.breadcrumb-nav a:hover {
  color: var(--color-turmeric-glow);
  text-decoration: underline;
}

/* Section Helpers */
.section-pad {
  padding: 6rem 0;
}

.bg-alt {
  background-color: var(--color-parchment-warm);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.bg-forest-deep,
[style*="--color-forest"],
[style*="#1b352a"] {
  background-color: var(--color-forest-dark);
  color: #ffffff !important;
}

.bg-forest-deep h1,
.bg-forest-deep h2,
.bg-forest-deep h3,
.bg-forest-deep h4,
.bg-forest-deep p,
.bg-forest-deep div,
[style*="--color-forest"] h1,
[style*="--color-forest"] h2,
[style*="--color-forest"] h3,
[style*="--color-forest"] h4,
[style*="--color-forest"] p,
[style*="--color-forest"] div,
[style*="#1b352a"] div {
  color: #ffffff;
}

.page-hero-banner .eyebrow,
.video-cinema-card .eyebrow,
.bg-forest-deep .eyebrow,
[style*="--color-forest"] .eyebrow,
[style*="#1b352a"] .eyebrow,
.eyebrow-gold {
  background: rgba(251, 191, 36, 0.16) !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
  color: #fbbf24 !important;
}

/* Editorial Split Grid */
.editorial-split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.editorial-split-grid > .double-bezel {
  height: auto;
  align-self: center;
}

.editorial-split-grid > .double-bezel > .double-bezel-inner {
  height: auto;
}

/* 3-Column Bento & Shala Cards (Used Across All 6 Pages & app.js) */
.bento-grid-3,
.shalas-directory-grid,
.lineage-branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  margin-top: 2.25rem;
}

.shala-card-Rich,
.shala-card-rich {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-parchment-card);
}

.shala-card-photo-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--color-forest-dark);
  border-bottom: 2px solid var(--color-sandalwood-deep);
}

.shala-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease-out-expo);
}

.double-bezel:hover .shala-card-photo {
  transform: scale(1.07);
}

.shala-Photo-badge,
.shala-photo-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(15, 32, 25, 0.88);
  backdrop-filter: blur(8px);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.5);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.shala-card-body {
  padding: 2rem 2rem 1.85rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.shala-neighborhood {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-terracotta);
  margin-bottom: 0.55rem;
}

.shala-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.42rem;
  color: var(--color-granite);
  margin-bottom: 0.65rem;
  line-height: 1.26;
}

.shala-guru-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-forest);
  margin-bottom: 0.9rem;
}

.shala-desc {
  font-size: 0.94rem;
  color: var(--color-granite-muted);
  line-height: 1.72;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.shala-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--color-border);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--color-sandalwood-pale);
  color: var(--color-granite);
  border: 1px solid var(--color-border-strong);
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-pill);
  line-height: 1.25;
}

.shala-meta-footer {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-granite-muted);
  font-weight: 500;
}

/* Video Cinema Card */
.video-cinema-card {
  position: relative;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  background: var(--color-forest-dark);
  min-height: 440px;
  display: flex;
  align-items: flex-end;
}

.video-cinema-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  z-index: 1;
}

.video-cinema-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 3rem;
  background: linear-gradient(0deg, rgba(15, 32, 25, 0.95) 0%, rgba(15, 32, 25, 0.62) 55%, rgba(15, 32, 25, 0.2) 100%);
  color: var(--color-khadi);
}

.video-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: var(--color-turmeric-glow);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-turmeric-glow);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.25);
}

/* Historical & Daily Routine Timeline */
.timeline-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
  padding-left: 2.5rem;
  border-left: 3px solid var(--color-terracotta);
}

.timeline-card {
  position: relative;
  background: linear-gradient(135deg, #fffdf9 0%, #fbf5e9 100%);
  border: 1.5px solid var(--color-border-strong);
  border-left: 5px solid var(--color-terracotta);
  border-radius: 18px;
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-ambient);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -3.25rem;
  top: 2.15rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-turmeric);
  border: 3px solid var(--color-parchment);
  box-shadow: 0 0 0 2.5px var(--color-terracotta);
}

.timeline-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-terracotta);
}

.timeline-year-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-terracotta-dark);
  background: var(--color-terracotta-light);
  border: 1px solid rgba(176, 78, 42, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.8rem;
}

.timeline-card h3 {
  font-family: var(--font-heading);
  font-size: 1.48rem;
  margin-bottom: 0.6rem;
  color: var(--color-granite);
}

.timeline-card p {
  font-size: 0.96rem;
  color: var(--color-granite-muted);
  line-height: 1.75;
  margin: 0;
}

/* Eight Limbs of Patanjali Grid */
.eight-limbs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.limb-card {
  background: var(--color-parchment-card);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-ambient);
  transition: all 0.35s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.limb-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-turmeric));
}

.limb-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-terracotta);
}

.limb-num {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-terracotta);
  margin-bottom: 0.45rem;
}

.limb-sanskrit {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--color-granite);
  margin-bottom: 0.2rem;
}

.limb-meaning {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 0.75rem;
}

/* Comparison Table */
.comparison-table-wrap,
.comparison-table-wrapper {
  margin-top: 2rem;
  overflow-x: auto;
  background: var(--color-parchment-card);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ambient);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.94rem;
}

.comparison-table th {
  background: var(--color-forest);
  color: var(--color-khadi);
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:nth-child(even) td {
  background: rgba(243, 235, 220, 0.45);
}

/* Filter Bar & Buttons */
.filter-bar,
.filter-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 1.5rem 0 2.5rem;
}

.filter-btn {
  padding: 0.62rem 1.3rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--color-parchment-card);
  border: 1.5px solid var(--color-border-strong);
  color: var(--color-granite);
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
}

.filter-btn.active {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: #ffffff;
  box-shadow: var(--shadow-terracotta);
}

/* Interactive Sadhana Shala Matcher Quiz */
.quiz-box,
.quiz-card-wrapper {
  max-width: 820px;
  margin: 2rem auto 0;
  background: var(--color-parchment-card);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-elevated);
}

.quiz-progress-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.quiz-dot {
  height: 8px;
  flex: 1;
  border-radius: var(--radius-pill);
  background: var(--color-parchment-deep);
  transition: background 0.3s ease;
}

.quiz-dot.active {
  background: var(--color-terracotta);
}

.quiz-step { display: none; }
.quiz-step.active { display: block; }

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.quiz-option-card {
  padding: 1.15rem 1.4rem;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-parchment);
}

.quiz-option-card:hover,
.quiz-option-card.selected {
  border-color: var(--color-terracotta);
  background: var(--color-terracotta-light);
  transform: translateX(4px);
}

.quiz-option-bullet {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-terracotta);
  flex-shrink: 0;
}

.quiz-option-card.selected .quiz-option-bullet {
  background: var(--color-terracotta);
}

.quiz-result-box {
  display: none;
  background: var(--color-forest-light);
  border: 2px solid var(--color-forest);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  margin-top: 1rem;
}

.quiz-result-box.show { display: block; }

/* Interactive Gokulam Monthly Budget Calculator */
.budget-calculator-box {
  background: var(--color-parchment-card);
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-elevated);
}

.budget-tier-btns,
.tier-selector-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tier-btn {
  padding: 0.85rem 0.75rem;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-parchment);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-granite);
  transition: all 0.25s ease;
}

.tier-btn:hover {
  border-color: var(--color-terracotta);
}

.tier-btn.active {
  background: var(--color-terracotta);
  color: #ffffff;
  border-color: var(--color-terracotta);
  box-shadow: var(--shadow-terracotta);
}

.budget-breakdown-grid {
  display: grid;
  gap: 0.85rem;
}

.budget-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 1rem 1.25rem;
  background: var(--color-parchment);
  border: 1px solid var(--color-border-strong);
  border-left: 4px solid var(--color-terracotta);
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.budget-row span {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-terracotta);
}

.budget-row strong {
  color: var(--color-granite);
  font-size: 0.96rem;
  font-weight: 700;
  text-align: left;
  line-height: 1.45;
}

/* FAQ Accordion */
.faq-vault-container {
  max-width: 920px;
  margin: 2.5rem auto 0;
}

.faq-item {
  background: var(--color-parchment-card);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-ambient);
  overflow: hidden;
}

.faq-question-btn {
  width: 100%;
  padding: 1.35rem 1.75rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--color-parchment-card);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-granite);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--color-terracotta);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer-pane {
  display: none;
  padding: 0 1.75rem 1.65rem;
  border-top: 1px solid var(--color-border);
}

.faq-item.open .faq-answer-pane {
  display: block;
}

.lead-summary-paragraph {
  background: var(--color-parchment-warm);
  border-left: 4px solid var(--color-terracotta);
  padding: 1.15rem 1.4rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.15rem 0 1.15rem;
  font-size: 0.98rem;
  color: var(--color-granite);
  line-height: 1.7;
  font-weight: 500;
}

.faq-extended-text {
  font-size: 0.93rem;
  color: var(--color-granite-muted);
  line-height: 1.74;
}

/* Footer */
.footer-main {
  background: var(--color-forest-dark);
  color: var(--color-sandalwood-light);
  padding: 5rem 0 2.5rem;
  border-top: 4px solid var(--color-terracotta);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--color-sandalwood);
  margin-bottom: 1.4rem;
}

.footer-mantra-box {
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--color-turmeric-glow);
  padding: 0.95rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: #ffffff;
}

.footer-col h4 {
  color: var(--color-turmeric-glow);
  font-size: 0.92rem;
  margin-bottom: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 0.7rem;
}

.footer-links-list a {
  color: var(--color-sandalwood-light);
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--color-turmeric-glow);
  padding-left: 4px;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: var(--color-sandalwood);
}

/* Portal 12-Column Bento Grid & Media Cards (index.html) */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto 3rem;
  max-width: 280px;
}

.ornament-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--color-terracotta), transparent);
}

.ornament-icon {
  width: 24px;
  height: 24px;
  color: var(--color-terracotta);
  flex-shrink: 0;
}

.portal-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.85rem;
  margin-top: 2rem;
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }

.media-card-visual {
  position: relative;
  width: 100%;
  height: 265px;
  overflow: hidden;
  background: var(--color-forest-dark);
  border-bottom: 2px solid var(--color-sandalwood-deep);
}

.bento-span-4 .media-card-visual {
  height: 220px;
}

.media-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease-out-expo);
}

.double-bezel:hover .media-card-visual img {
  transform: scale(1.06);
}

.media-card-body {
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.media-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--color-terracotta-light);
  color: var(--color-terracotta-dark);
  border: 1px solid rgba(180, 74, 39, 0.25);
}

.badge-pill.badge-forest {
  background: var(--color-forest-light);
  color: var(--color-forest);
  border-color: rgba(24, 58, 45, 0.25);
}

/* Video Cinema Content & Gradient Variants */
.video-cinema-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: 1;
}

.video-cinema-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 32, 25, 0.94) 0%, rgba(15, 32, 25, 0.76) 55%, rgba(15, 32, 25, 0.35) 100%);
  z-index: 2;
}

.video-cinema-content {
  position: relative;
  z-index: 3;
  max-width: 740px;
  padding: 3.5rem;
  color: var(--color-khadi);
}

.eyebrow-gold {
  color: var(--color-turmeric-glow) !important;
}

.eyebrow-gold::before {
  background: var(--color-turmeric-glow) !important;
}

/* Dynamic Shala Cards Rendered by app.js */
.shala-card {
  background: var(--color-parchment-card);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), border-color 0.4s ease;
}

.shala-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-terracotta);
}

.shala-card-thumb {
  width: 100%;
  height: 225px;
  overflow: hidden;
  background: var(--color-forest-dark);
  border-bottom: 2px solid var(--color-sandalwood-deep);
}

.shala-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.shala-card:hover .shala-card-thumb img {
  transform: scale(1.06);
}

.shala-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.shala-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--color-terracotta-light);
  color: var(--color-terracotta-dark);
  border: 1px solid rgba(180, 74, 39, 0.24);
}

.shala-name {
  font-family: var(--font-heading);
  font-size: 1.38rem;
  color: var(--color-granite);
  margin-bottom: 0.25rem;
  line-height: 1.24;
}

.shala-guru {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 0.95rem;
}

.shala-meta-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  background: var(--color-parchment-warm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.shala-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.81rem;
  color: var(--color-granite-muted);
  line-height: 1.45;
}

.shala-meta-icon {
  width: 15px;
  height: 15px;
  color: var(--color-terracotta);
  flex-shrink: 0;
  margin-top: 2px;
}

.shala-footer-row {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--color-forest);
}

.quiz-question-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  margin-bottom: 1.15rem;
  color: var(--color-granite);
}

.drishti-pill-btn.active {
  background: var(--color-terracotta) !important;
  border-color: var(--color-turmeric-glow) !important;
  color: #ffffff !important;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .hero-grid,
  .editorial-split-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .bento-span-7,
  .bento-span-5,
  .bento-span-4,
  .bento-span-6 {
    grid-column: span 6;
  }
  .bento-grid-3,
  .shalas-directory-grid,
  .lineage-branches-grid,
  .eight-limbs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}


@media (max-width: 1200px) {
  .nav-desktop { display: none !important; }
  .header-actions .btn { display: none !important; }
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: var(--radius-sm) !important;
    background: var(--color-parchment-warm) !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-granite) !important;
  }
}

@media (max-width: 768px) {
  .top-notice-bar { display: none; }
  .nav-desktop { display: none; }
  .header-actions .btn { display: none; }
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-sm);
    background: var(--color-parchment-warm);
    border: 1px solid var(--color-border);
    color: var(--color-granite);
  }
  .header-inner {
    height: 68px;
    padding: 0;
  }
  .brand-logo-icon {
    width: 38px;
    height: 38px;
    padding: 6px;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .brand-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }
  .mobile-menu-drawer {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--color-parchment-card);
    border-bottom: 2px solid var(--color-terracotta);
    padding: 1.5rem;
    box-shadow: var(--shadow-elevated);
    z-index: 999;
  }
  .mobile-menu-drawer.open {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }
  .hero-mandala-watermark {
    display: none;
  }
  .portal-bento-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .editorial-split-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.75rem !important;
  }
  .editorial-split-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .budget-calculator-box {
    padding: 1.25rem 1rem !important;
  }
  .bento-span-7,
  .bento-span-5,
  .bento-span-4,
  .bento-span-6 {
    grid-column: 1 / -1;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .bento-grid-3,
  .shalas-directory-grid,
  .lineage-branches-grid,
  .eight-limbs-grid,
  .stats-ticker-grid,
  .budget-tier-btns,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .timeline-wrapper {
    padding-left: 1.5rem !important;
  }
  .timeline-card {
    padding: 1.25rem 1.25rem !important;
  }
  .timeline-card::before {
    left: -2.15rem !important;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75rem;
  }
  .hero-floating-seal,
  .hero-palace-inset {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
    width: 100%;
  }
  .section-pad {
    padding: 3rem 0;
  }
  .container {
    padding: 0 1.25rem;
  }
  .video-cinema-overlay,
  .video-cinema-content {
    padding: 1.25rem;
  }
  .budget-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-visual-stage {
    min-height: auto;
    padding-top: 1.5rem;
  }
  .hero-surya-halo {
    width: 310px;
    height: 310px;
    top: 4%;
  }
  .hero-arch-backdrop {
    width: 95%;
    max-width: 310px;
    border-radius: 155px 155px 24px 24px;
    bottom: 16px;
  }
  .hero-yogi-cutout {
    width: 100%;
    max-width: 320px;
    max-height: 420px;
    margin-bottom: -10px;
  }
  .hero-cutout-caption-card {
    width: 100%;
    padding: 0.85rem 1rem;
  }
  .hero-title {
    font-size: clamp(2rem, 7vw, 2.75rem);
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-surya-halo {
    width: 270px;
    height: 270px;
  }
  .hero-arch-backdrop {
    max-width: 270px;
    border-radius: 135px 135px 20px 20px;
  }
  .hero-yogi-cutout {
    max-width: 280px;
    max-height: 370px;
  }
}




/* ==========================================================================
   Yoganagari Universal Command Palette & Instant Search (Ctrl+K)
   ========================================================================== */
#readingProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #d4af37, #e07a5f);
  z-index: 10000;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

.search-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--color-sand, #f4f1ea);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.search-nav-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--color-gold, #d4af37);
  color: #ffffff;
}
.search-nav-btn .kbd-shortcut {
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-gold, #d4af37);
}

.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 16, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.search-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-box {
  background: #142720;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: translateY(-15px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}
.search-modal-backdrop.active .search-modal-box {
  transform: translateY(0);
}

.search-input-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background: #0f2019;
  gap: 12px;
}
.search-input-header svg {
  color: var(--color-gold, #d4af37);
  flex-shrink: 0;
}
.search-input-header input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
}
.search-input-header input::placeholder {
  color: rgba(244, 241, 234, 0.5);
}
.search-close-key {
  font-size: 0.75rem;
  color: rgba(244, 241, 234, 0.6);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 7px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.search-results-list {
  padding: 10px;
  overflow-y: auto;
  flex: 1;
  list-style: none;
  margin: 0;
}
.search-results-list:empty::after {
  content: "No matching guides found in the Mysore archive.";
  display: block;
  padding: 24px;
  text-align: center;
  color: rgba(244, 241, 234, 0.5);
  font-size: 0.9rem;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}
.search-result-item:hover,
.search-result-item.selected {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.3);
}
.search-result-item .item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.search-result-item .item-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}
.search-result-item .item-desc {
  color: rgba(244, 241, 234, 0.65);
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #0d1c16;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  font-size: 0.75rem;
  color: rgba(244, 241, 234, 0.6);
}

/* ==========================================================================
   Web Audio Floating Sacred Resonance Widget
   ========================================================================== */
.sacred-audio-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  background: #142720;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  padding: 4px 10px;
  gap: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.audio-btn {
  background: transparent;
  border: none;
  color: var(--color-sand, #f4f1ea);
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}
.audio-btn:hover,
.audio-btn.playing {
  background: rgba(212, 175, 55, 0.2);
  color: var(--color-gold, #d4af37);
}
.audio-btn svg {
  color: var(--color-gold, #d4af37);
}

@media (max-width: 640px) {
  .search-modal-backdrop {
    padding: 20px 10px 10px;
  }
  .sacred-audio-widget {
    bottom: 16px;
    right: 16px;
    padding: 3px 6px;
  }
}

/* ==========================================================================
   MOBILE QUICK ACTION DOCK (Thumb-First Navigation)
   ========================================================================== */
.mobile-quick-dock {
  display: none;
}

@media (max-width: 768px) {
  .mobile-quick-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(250, 246, 240, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--color-border, #e5d8c5);
    z-index: 998;
    align-items: center;
    justify-content: space-around;
    padding: 4px 6px env(safe-area-inset-bottom, 8px);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
  }

    .dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-ink-muted, #7c7267);
    font-size: 0.65rem;
    font-weight: 600;
    font-family: var(--font-sans, system-ui, sans-serif);
    padding: 4px 5px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 48px;
  }

  .dock-item svg {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
    color: currentColor;
    transition: transform 0.2s ease;
  }

  .dock-item:hover,
  .dock-item:active,
  .dock-item.active {
    color: var(--color-terracotta, #b04e2a);
  }

  .dock-item:hover svg,
  .dock-item:active svg {
    transform: translateY(-2px);
  }

      /* Position audio widget above mobile dock */
  .sacred-audio-widget {
    bottom: 74px !important;
    right: 14px !important;
  }

  /* Add bottom padding to body so content is not obscured */
  body {
    padding-bottom: 70px !important;
  }
}

/* ==========================================================================
   MOON PHASE & COUNTDOWN INTERACTIVE MODULE
   ========================================================================== */
.lunar-hero-card {
  background: linear-gradient(135deg, #1b2622 0%, #0d1613 100%);
  color: #faf6f0;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(212, 184, 149, 0.25);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.lunar-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 130, 10, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.lunar-grid {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .lunar-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
}

.lunar-svg-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lunar-svg {
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.45));
}

.lunar-details h3 {
  font-family: var(--font-serif, serif);
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  color: #fbbf24;
}

.lunar-details p {
  color: #d4cebf;
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.lunar-countdown {
  display: inline-flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.countdown-segment {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 184, 149, 0.2);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  text-align: center;
  min-width: 60px;
}

.countdown-num {
  font-family: var(--font-sans, system-ui);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  display: block;
}

.countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d4b895;
}

.lunar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-ics-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-turmeric, #d4820a);
  color: #fff !important;
  font-family: var(--font-sans, system-ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(212, 130, 10, 0.35);
}

.btn-ics-export:hover {
  background: #b56e08;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 130, 10, 0.45);
}

.btn-ics-export svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   INTERACTIVE SADHANA BUDGET CALCULATOR MODULE
   ========================================================================== */
.budget-calc-wrapper {
  background: var(--color-card-bg, #ffffff);
  border: 1px solid var(--color-border, #e5d8c5);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  margin: 2rem 0 3rem;
}

.budget-calc-header {
  border-bottom: 1px solid var(--color-border, #e5d8c5);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.currency-selector-pills {
  display: inline-flex;
  background: var(--color-sandalwood-light, #f3eadc);
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.currency-pill {
  border: none;
  background: transparent;
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--font-sans, system-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-ink, #221f1d);
  cursor: pointer;
  transition: all 0.2s ease;
}

.currency-pill.active {
  background: var(--color-terracotta, #b04e2a);
  color: #fff;
  box-shadow: 0 2px 6px rgba(176, 78, 42, 0.3);
}

.budget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 860px) {
  .budget-grid {
    grid-template-columns: 1fr;
  }
}

.budget-summary-box {
  background: var(--color-terracotta-light, #faeee8);
  border: 1px solid rgba(176, 78, 42, 0.2);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.budget-total-num {
  font-family: var(--font-sans, system-ui);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-terracotta-rich, #943b1a);
  margin: 0.25rem 0;
  line-height: 1.1;
}

.budget-bar-track {
  height: 12px;
  border-radius: 6px;
  background: #e2d7c7;
  overflow: hidden;
  display: flex;
  margin: 1.25rem 0;
}

.budget-bar-segment {
  height: 100%;
  transition: width 0.4s ease;
}

.budget-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--color-border, #e5d8c5);
  font-size: 0.9rem;
}

.budget-breakdown-row:last-child {
  border-bottom: none;
}

/* ==========================================================================
   SANSKRIT CHANTING AUDIO STUDIO MODULE
   ========================================================================== */
.chanting-studio-card {
  background: var(--color-card-bg, #ffffff);
  border: 1px solid var(--color-border, #e5d8c5);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
}

.chant-audio-controls {
  background: var(--color-sandalwood-light, #f3eadc);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.chant-btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-terracotta, #b04e2a);
  color: #fff !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chant-btn-play:hover {
  background: #943b1a;
  transform: translateY(-1px);
}

.chant-line {
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border-left: 4px solid transparent;
  background: var(--color-parchment-deep, #f4ece1);
  transition: all 0.3s ease;
}

.chant-line.active {
  background: var(--color-terracotta-light, #faeee8);
  border-left-color: var(--color-terracotta, #b04e2a);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(176, 78, 42, 0.12);
}

.sanskrit-devanagari {
  font-family: 'Noto Serif Devanagari', 'Martel', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-terracotta-rich, #943b1a);
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.sanskrit-iast {
  font-family: var(--font-serif, serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-forest, #1b352a);
  margin-bottom: 0.4rem;
}

.sanskrit-translation {
  font-size: 0.92rem;
  color: var(--color-ink-muted, #7c7267);
  line-height: 1.5;
}

/* ==========================================================================
   UNIVERSAL FORM CONTROL MOBILE CONTAINMENT GUARD (INVARIANT 9)
   Prevents HTML select elements with lengthy option text from blowing out
   CSS grid containers past 360px - 390px mobile viewports.
   ========================================================================== */
select,
input,
textarea,
.form-input,
.form-select,
.calc-group select,
.budget-calc-wrapper select,
.budget-calc-wrapper input {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  text-overflow: ellipsis !important;
}

.budget-calc-wrapper,
.budget-grid,
.calc-group,
.calc-grid,
.comparison-table-wrap {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  .budget-calc-wrapper {
    padding: 1.25rem 1rem !important;
  }
  .budget-grid {
    grid-template-columns: 1fr !important;
  }
  .currency-selector-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }
  .currency-pill {
    flex: 1 1 30% !important;
    text-align: center !important;
    padding: 6px 4px !important;
    font-size: 0.75rem !important;
  }
}

/* Precise Mobile Layout Containment Rules */
.budget-calc-wrapper,
.budget-grid,
.space-y-5,
.calc-group,
.budget-summary-box {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

select,
input,
.form-input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

label.flex {
  flex-wrap: wrap !important;
  max-width: 100% !important;
}

label.flex span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  word-break: break-word !important;
}
