/* ============================================================
   VEDANVESHA SANSTHAN — Global Stylesheet v2
   Inspired by SriMandir.com & Harivara.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cinzel+Decorative:wght@400;700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Lato:wght@300;400;700;900&family=Tiro+Devanagari+Sanskrit:ital@0;1&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --saffron:      #e07822;
  --saffron2:     #f5993a;
  --saffron-pale: #fff3e0;
  --saffron-bg:   #fdf0e0;
  --green:        #1a3a6b;
  --green2:       #1e4480;
  --green-dark:   #0f1d40;
  --gold:         #c9a237;
  --gold2:        #e2bf60;
  --cream:        #fdf8ef;
  --cream2:       #f5ead6;
  --white:        #ffffff;
  --text:         #2a1a0a;
  --text-mid:     #5a4535;
  --text-light:   #8b7355;
  --border:       #e8d9c0;
  --shadow:       0 2px 16px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 24px rgba(0,0,0,0.11);
  --shadow-hover: 0 8px 36px rgba(0,0,0,0.16);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --font-heading:    'Cinzel', serif;
  --font-display:    'Cinzel Decorative', serif;
  --font-body:       'Lato', sans-serif;
  --font-serif:      'EB Garamond', serif;
  --font-devanagari: 'Tiro Devanagari Sanskrit', serif;
  --section-pad: 80px 0;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.section-badge {
  display: inline-block;
  font-family: var(--font-devanagari);
  font-size: 13px;
  color: var(--saffron);
  background: var(--saffron-pale);
  border: 1px solid rgba(198,114,27,0.25);
  border-radius: 20px;
  padding: 4px 16px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.25;
  margin-bottom: 12px;
}
.section-title span { color: var(--saffron); }

.section-sub {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-header { text-align: center; margin-bottom: 48px; }

.divider-om {
  display: flex; align-items: center; gap: 16px;
  margin: 12px auto 0; justify-content: center;
}
.divider-om::before, .divider-om::after {
  content: ''; width: 60px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.divider-om::after { background: linear-gradient(to left, transparent, var(--gold)); }
.divider-om span { font-family: var(--font-devanagari); color: var(--gold); font-size: 1.1rem; }

.devanagari { font-family: var(--font-devanagari); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 2px solid var(--cream2);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.navbar-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 76px; gap: 12px;
}

.navbar-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; max-width: 280px; }

.logo-fallback {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-devanagari); color: var(--gold); font-size: 22px;
  flex-shrink: 0;
}

.logo-img {
  width: 52px; height: 52px; object-fit: contain;
  border-radius: 50%; background: var(--cream2); padding: 4px;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-tagline {
  font-size: 0.6rem;
  color: #111111;
  letter-spacing: 0.3px;
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
.logo-text strong {
  font-family: var(--font-heading); font-size: 1.0rem;
  color: var(--green-dark); letter-spacing: 0.2px;
  white-space: nowrap;
}
.logo-text small { font-family: var(--font-devanagari); font-size: 0.7rem; color: var(--saffron); }

.nav-links { display: flex; align-items: center; gap: 3px; }

.nav-links a {
  font-family: var(--font-body); font-size: 0.86rem; font-weight: 700;
  letter-spacing: 0.2px; color: var(--text-mid);
  padding: 7px 10px; border-radius: var(--radius-sm);
  transition: all 0.2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--saffron); background: var(--saffron-pale); }
.nav-links a.active { color: var(--saffron); background: var(--saffron-pale); }

.nav-cta {
  background: var(--saffron) !important; color: var(--white) !important;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--saffron2) !important; color: var(--white) !important; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--green); border-radius: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 88vh;
  background:
    linear-gradient(160deg, rgba(40,8,4,0.85) 0%, rgba(122,34,0,0.78) 55%, rgba(198,114,27,0.25) 100%),
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(201,162,55,0.04) 40px, rgba(201,162,55,0.04) 41px),
    var(--green-dark);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}

.hero::before {
  content: 'ॐ';
  position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-devanagari); font-size: 380px;
  color: rgba(255,255,255,0.025); pointer-events: none; line-height: 1;
}

.hero-content { padding: 80px 0; max-width: 720px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(198,114,27,0.18); border: 1px solid rgba(198,114,27,0.4);
  border-radius: 24px; padding: 6px 18px;
  font-family: var(--font-devanagari); font-size: 0.85rem;
  color: var(--gold2); margin-bottom: 24px;
}
.hero-badge::before { content: '✦'; font-size: 10px; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white); line-height: 1.2; margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 span { color: var(--gold2); }

.hero-hindi {
  font-family: var(--font-devanagari);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--gold2); opacity: 0.9; margin-bottom: 20px; line-height: 1.5;
}

.hero-desc {
  font-size: 1.05rem; color: rgba(255,255,255,0.82);
  max-width: 560px; margin-bottom: 40px; line-height: 1.8;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-saffron {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--saffron); color: var(--white);
  font-family: var(--font-body); font-weight: 700; font-size: 0.88rem;
  padding: 14px 28px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.25s; letter-spacing: 0.3px; text-transform: uppercase;
}
.btn-saffron:hover {
  background: var(--saffron2); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198,114,27,0.4);
}

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  font-family: var(--font-body); font-weight: 700; font-size: 0.88rem;
  padding: 14px 28px; border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.5); cursor: pointer;
  transition: all 0.25s; letter-spacing: 0.3px; text-transform: uppercase;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-2px); }

.btn-outline-saffron {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--saffron);
  font-family: var(--font-body); font-weight: 700; font-size: 0.88rem;
  padding: 12px 24px; border-radius: var(--radius-sm);
  border: 2px solid var(--saffron); cursor: pointer;
  transition: all 0.25s; letter-spacing: 0.3px; text-transform: uppercase;
}
.btn-outline-saffron:hover { background: var(--saffron); color: var(--white); transform: translateY(-2px); }

.btn-green {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: var(--white);
  font-family: var(--font-body); font-weight: 700; font-size: 0.88rem;
  padding: 14px 28px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.25s; letter-spacing: 0.3px; text-transform: uppercase;
}
.btn-green:hover { background: var(--green2); transform: translateY(-2px); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { background: var(--green-dark); padding: 18px 0; }

.trust-items {
  display: flex; align-items: center;
  justify-content: space-around; gap: 0; flex-wrap: wrap;
}

.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); padding: 8px 20px;
  border-right: 1px solid rgba(255,255,255,0.12);
  flex: 1; min-width: 140px; justify-content: center;
}
.trust-item:last-child { border-right: none; }

.trust-icon { font-size: 1.4rem; color: var(--gold2); flex-shrink: 0; }
.trust-text strong { display: block; font-size: 1.05rem; font-weight: 900; color: var(--gold2); line-height: 1; }
.trust-text span { font-size: 0.7rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.8px; }

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card-feature {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
  text-align: center; transition: all 0.3s;
  position: relative; overflow: hidden;
}
.card-feature::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--saffron), var(--gold));
  transform: scaleX(0); transition: transform 0.3s;
}
.card-feature:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: transparent; }
.card-feature:hover::after { transform: scaleX(1); }

.card-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--saffron-pale); display: flex; align-items: center;
  justify-content: center; font-size: 28px;
  margin: 0 auto 20px; border: 2px solid rgba(198,114,27,0.15);
  transition: background 0.3s;
}
.card-feature:hover .card-icon { background: var(--saffron); }

.card-feature h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--green-dark); margin-bottom: 8px; }
.card-feature p { font-size: 0.87rem; color: var(--text-light); line-height: 1.6; }
.card-feature .card-hindi { font-family: var(--font-devanagari); font-size: 0.82rem; color: var(--saffron); margin-bottom: 6px; }

/* Download Cards */
.card-download {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  display: flex; align-items: flex-start; gap: 16px;
  transition: all 0.3s; box-shadow: var(--shadow);
}
.card-download:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--saffron); }

.dl-icon {
  width: 50px; height: 50px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.dl-icon-pdf  { background: #fff0f0; }
.dl-icon-doc  { background: #f0f4ff; }
.dl-icon-book { background: var(--saffron-pale); }
.dl-icon-audio{ background: #f0fff4; }

.dl-body { flex: 1; min-width: 0; }
.dl-body h4 { font-family: var(--font-heading); font-size: 0.92rem; color: var(--green-dark); margin-bottom: 3px; }
.dl-body .dl-hindi { font-family: var(--font-devanagari); font-size: 0.8rem; color: var(--saffron); margin-bottom: 5px; }
.dl-body p { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; margin-bottom: 12px; }

.dl-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-pdf   { background: #fff0f0; color: #c0392b; }
.badge-doc   { background: #f0f4ff; color: #2c5aa0; }
.badge-free  { background: #f0fff4; color: #217a3c; }
.badge-hindi { background: var(--saffron-pale); color: var(--saffron); }
.badge-eng   { background: #f5f5f5; color: #555; }
.badge-audio { background: #f0fff4; color: #217a3c; }
.badge-gold  { background: #fffbea; color: #b8860b; }

.dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--saffron); color: var(--white);
  font-size: 0.75rem; font-weight: 700;
  padding: 7px 14px; border-radius: var(--radius-sm);
  transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.4px;
  border: none; cursor: pointer;
}
.dl-btn:hover { background: var(--saffron2); }
.dl-btn-green { background: var(--green); }
.dl-btn-green:hover { background: var(--green2); }
.dl-btn-outline {
  background: transparent; color: var(--saffron);
  border: 1.5px solid var(--saffron);
}
.dl-btn-outline:hover { background: var(--saffron); color: var(--white); }

/* ============================================================
   QUOTE BAND
   ============================================================ */
.quote-band {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, rgba(198,114,27,0.15) 100%);
  padding: 64px 0; text-align: center;
  position: relative; overflow: hidden;
}
.quote-band::before {
  content: '॥'; position: absolute; left: 40px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-devanagari); font-size: 120px;
  color: rgba(255,255,255,0.04); pointer-events: none;
}
.quote-band::after {
  content: '॥'; position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-devanagari); font-size: 120px;
  color: rgba(255,255,255,0.04); pointer-events: none;
}

.shloka-text { font-family: var(--font-devanagari); font-size: clamp(1.05rem, 2.5vw, 1.5rem); color: var(--gold2); line-height: 1.8; margin-bottom: 16px; font-style: italic; }
.shloka-translation { font-family: var(--font-serif); font-size: 1.05rem; color: rgba(255,255,255,0.78); max-width: 600px; margin: 0 auto 10px; font-style: italic; }
.shloka-source { font-size: 0.78rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 1px; }

/* ============================================================
   SECTION BACKGROUNDS
   ============================================================ */
.section { padding: var(--section-pad); }
.section-cream  { background: var(--cream); }
.section-cream2 { background: var(--cream2); }
.section-white  { background: var(--white); }
.section-green  { background: linear-gradient(135deg, #0f1d40 0%, #1a3a6b 100%); color: var(--white); }
.section-saffron { background: var(--saffron-bg); }

/* ============================================================
   TWO-COLUMN LAYOUT
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col-text h2 { font-family: var(--font-heading); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--green-dark); margin-bottom: 16px; line-height: 1.3; }
.two-col-text p { font-family: var(--font-serif); font-size: 1.05rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 16px; }
.two-col-text .hindi-text { font-family: var(--font-devanagari); font-size: 0.95rem; color: var(--saffron); line-height: 1.7; margin-bottom: 24px; }

/* ============================================================
   SCRIPTURES PAGE
   ============================================================ */
.scripture-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 80vh;
}

.scripture-sidebar {
  background: var(--cream);
  border-right: 1px solid var(--border);
  position: sticky; top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.scripture-sidebar::-webkit-scrollbar { width: 4px; }
.scripture-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-header {
  background: var(--green-dark); padding: 20px 20px 16px;
  position: sticky; top: 0; z-index: 5;
}
.sidebar-header h3 { font-family: var(--font-heading); font-size: 0.82rem; color: var(--gold2); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-header .sidebar-hindi { font-family: var(--font-devanagari); font-size: 0.75rem; color: rgba(255,255,255,0.6); }

.sidebar-group { padding: 6px 0; border-bottom: 1px solid var(--border); }
.sidebar-group-label { font-family: var(--font-body); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-light); padding: 10px 20px 4px; }

.sidebar-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px; font-size: 0.85rem; color: var(--text-mid);
  cursor: pointer; transition: all 0.2s;
  border-left: 3px solid transparent;
}
.sidebar-link:hover { background: var(--cream2); color: var(--saffron); border-left-color: var(--saffron); }
.sidebar-link.active { background: var(--saffron-pale); color: var(--saffron); border-left-color: var(--saffron); font-weight: 700; }
.sidebar-link .link-hindi { font-family: var(--font-devanagari); font-size: 0.8rem; display: block; color: inherit; }

.scripture-content { padding: 48px 56px; max-width: 1200px; }

.scripture-section {
  padding-bottom: 60px; margin-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
.scripture-section:last-child { border-bottom: none; padding-bottom: 0; }

.scripture-title-block { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; }

.scripture-symbol {
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-devanagari); font-size: 22px;
  color: var(--gold2); flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(122,34,0,0.3);
}

.scripture-title-text h2 { font-family: var(--font-heading); font-size: 1.65rem; color: var(--green-dark); margin-bottom: 4px; }
.scripture-title-text .title-hindi { font-family: var(--font-devanagari); font-size: 1.05rem; color: var(--saffron); }

.scripture-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--cream2); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 12px;
  font-size: 0.75rem; color: var(--text-mid); font-weight: 700;
}
.meta-pill span { color: var(--saffron); }

.scripture-body p { font-family: var(--font-serif); font-size: 1.05rem; color: var(--text-mid); line-height: 1.9; margin-bottom: 16px; }
.scripture-body h3 { font-family: var(--font-heading); font-size: 0.95rem; color: var(--green-dark); margin: 24px 0 8px; text-transform: uppercase; letter-spacing: 0.8px; }

.mantra-block {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: var(--radius); padding: 24px 28px; margin: 24px 0;
  position: relative; overflow: hidden;
}
.mantra-block::before {
  content: '❝'; position: absolute; top: 4px; left: 14px;
  font-size: 50px; color: rgba(255,255,255,0.06); font-family: serif;
}
.mantra-devanagari { font-family: var(--font-devanagari); font-size: 1.15rem; color: var(--gold2); line-height: 1.8; margin-bottom: 8px; }
.mantra-transliteration { font-family: var(--font-serif); font-style: italic; font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.mantra-translation { font-size: 0.87rem; color: rgba(255,255,255,0.82); line-height: 1.6; }
.mantra-source { font-size: 0.7rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 8px; }

.sub-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 20px 0; }
.sub-card { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; transition: all 0.2s; }
.sub-card:hover { border-color: var(--saffron); background: var(--saffron-pale); }
.sub-card .sc-num { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: var(--saffron); font-weight: 700; margin-bottom: 3px; }
.sub-card h4 { font-family: var(--font-heading); font-size: 0.88rem; color: var(--green-dark); margin-bottom: 3px; }
.sub-card .sc-hindi { font-family: var(--font-devanagari); font-size: 0.78rem; color: var(--text-light); }
.sub-card p { font-size: 0.78rem; color: var(--text-light); line-height: 1.4; margin-top: 5px; }

/* ============================================================
   PROGRAMS PAGE
   ============================================================ */
.program-block {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.program-block:last-child { border-bottom: none; }
.program-block:nth-child(even) { background: var(--cream); }

.prog-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.prog-icon-wrap {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--saffron-pale); display: flex;
  align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0;
  border: 2px solid rgba(198,114,27,0.2);
}
.prog-header h2 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--green-dark); margin-bottom: 4px; }
.prog-header .prog-hindi { font-family: var(--font-devanagari); font-size: 0.95rem; color: var(--saffron); }

.features-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 20px; }
.feature-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-mid); line-height: 1.5; }
.feature-item::before { content: '✦'; color: var(--saffron); font-size: 0.7rem; margin-top: 3px; flex-shrink: 0; }

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--border);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
}
.stat-item { background: var(--white); padding: 28px 20px; text-align: center; }
.stat-num { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700; color: var(--saffron); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.8px; line-height: 1.4; }

/* ============================================================
   DONATE / JOIN
   ============================================================ */
.donate-tier {
  background: var(--white); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 24px;
  text-align: center; transition: all 0.3s; position: relative;
}
.donate-tier:hover { border-color: var(--saffron); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.donate-tier.featured { border-color: var(--saffron); background: var(--saffron-pale); }
.donate-tier.featured::before {
  content: 'Most Popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--saffron); color: var(--white);
  font-size: 0.7rem; font-weight: 700; padding: 3px 16px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}
.tier-amount { font-family: var(--font-heading); font-size: 2rem; color: var(--saffron); margin: 14px 0 6px; }
.tier-name { font-family: var(--font-heading); font-size: 1rem; color: var(--green-dark); margin-bottom: 4px; }
.tier-hindi { font-family: var(--font-devanagari); font-size: 0.85rem; color: var(--text-light); margin-bottom: 14px; }
.tier-desc { font-size: 0.87rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 20px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #ffffff;
  padding: 64px 0 0;
  color: #1a1a1a;
  border-top: 3px solid #c9a237;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid #e8e0cc;
}

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #c9a237, #e2bf60);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-devanagari); font-size: 22px; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(201,162,55,0.35);
}
.footer-brand-text strong { font-family: var(--font-heading); font-size: 0.88rem; color: #111; display: block; }
.footer-brand-text small { font-family: var(--font-devanagari); font-size: 0.7rem; color: #c9a237; }

.footer-col h4 {
  font-family: var(--font-heading); font-size: 0.75rem;
  color: #c9a237; text-transform: uppercase;
  letter-spacing: 1.2px; margin-bottom: 16px;
  border-bottom: 1px solid #e8e0cc; padding-bottom: 8px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 0.87rem; color: #444; transition: color 0.2s; }
.footer-col ul li a:hover { color: #c9a237; }

.footer-desc { font-size: 0.87rem; line-height: 1.7; margin-bottom: 18px; max-width: 270px; color: #555; }

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: #f5f5f5; border: 1px solid #ddd;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all 0.2s; color: #444;
}
.social-link:hover { background: #c9a237; color: #fff; border-color: #c9a237; }

/* ── Footer Social Media Icons ── */
.footer-social {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px;
}
.fs-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: transform 0.22s, box-shadow 0.22s;
  text-decoration: none; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.fs-icon:hover {
  transform: translateY(-4px) scale(1.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.fs-facebook  { background: linear-gradient(135deg,#1877f2,#0d5fcb); }
.fs-youtube   { background: linear-gradient(135deg,#ff0000,#cc0000); }
.fs-instagram { background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); }
.fs-whatsapp  { background: linear-gradient(135deg,#25d366,#128c7e); }
.fs-twitter   { background: linear-gradient(135deg,#000,#333); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.84rem; color: #444; }
.footer-contact-item .ci-icon { font-size: 1rem; color: #c9a237; flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  background: #111;
  margin: 0 -9999rem;
  padding: 18px 9999rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.footer-bottom .footer-shloka { color: #c9a237; font-family: var(--font-devanagari); font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.76rem; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-bottom-links a:hover { color: #c9a237; }

/* ============================================================
   PAGE HERO (inner pages) — compact but fully visible
   ============================================================ */
.page-hero {
  padding: 42px 0 36px;
  min-height: 150px;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15,29,64,0.97) 0%, rgba(26,58,107,0.92) 55%, rgba(180,100,20,0.70) 100%),
    repeating-linear-gradient(45deg, transparent, transparent 28px, rgba(255,255,255,0.025) 28px, rgba(255,255,255,0.025) 29px),
    #0f1d40;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.page-hero h1 { font-weight: 800 !important; }
.page-hero::before {
  content: 'ॐ';
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-devanagari); font-size: 160px; line-height: 1;
  color: rgba(255,255,255,0.05); pointer-events: none; z-index: 0;
}
.page-hero .container,
.page-hero-content { position: relative; z-index: 1; width: 100%; }
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--white); margin-bottom: 8px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.page-hero h1 span { color: var(--gold2); }
.page-hero-badge, .page-hero .section-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12); color: var(--gold2);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; padding: 4px 16px;
  font-family: var(--font-devanagari); font-size: 0.82rem;
  margin-bottom: 12px; letter-spacing: 0.5px;
}
.page-hero-hindi, .page-hero .hero-hindi {
  font-family: var(--font-devanagari); font-size: 1rem;
  color: var(--gold2); opacity: 0.92; margin-bottom: 6px;
}
.page-hero-sub {
  font-family: var(--font-serif); font-size: 0.92rem;
  color: rgba(255,255,255,0.75); margin-bottom: 0;
}
.page-hero .breadcrumb { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 8px; }
.page-hero .breadcrumb a { color: var(--gold2); }
.page-hero .breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-saffron { color: var(--saffron); }
.text-gold { color: var(--gold); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 16px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .scripture-layout { grid-template-columns: 220px 1fr; }
  .scripture-content { padding: 36px 32px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px 0; }
  .nav-links { /* gap applied per child */  display: none; }
  .nav-hamburger { display: flex; }
  .hero { min-height: 70vh; }
  .hero-content { padding: 64px 0 48px; }
  .trust-item { flex: 0 0 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .trust-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .scripture-layout { grid-template-columns: 1fr; }
  .scripture-sidebar { position: static; height: auto; max-height: 260px; border-right: none; border-bottom: 2px solid var(--border); }
  .scripture-content { padding: 28px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; }
  .btn-saffron, .btn-outline-white { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust-item { flex: 0 0 100%; border-right: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .sub-cards { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   ENHANCED COLUMN SECTIONS v2
   ============================================================ */

/* ── Navbar: logo area polish ── */
.navbar-logo .logo-img {
  border-radius: 0 !important;
  background: none !important;
  padding: 0 !important;
  width: 52px !important;
  height: auto !important;
  object-fit: contain !important;
}

/* ── Feature cards: richer design ── */
.card-feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 24px 28px;
  text-align: center;
  transition: all 0.35s cubic-bezier(.25,.8,.25,1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.card-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--green), var(--saffron), var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}
.card-feature:hover::before { opacity: 1; }
.card-feature::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--saffron), var(--gold));
  transform: scaleX(0);
  transition: transform 0.35s;
}
.card-feature:hover::after { transform: scaleX(1); }
.card-feature:hover {
  box-shadow: 0 12px 40px rgba(198,114,27,0.18);
  transform: translateY(-6px);
  border-color: rgba(198,114,27,0.3);
}
.card-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--saffron-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 20px;
  border: 2px solid rgba(198,114,27,0.18);
  transition: all 0.35s;
  box-shadow: 0 4px 12px rgba(198,114,27,0.12);
}
.card-feature:hover .card-icon {
  background: linear-gradient(135deg, var(--saffron), var(--saffron2));
  box-shadow: 0 6px 20px rgba(198,114,27,0.35);
  transform: scale(1.08) rotate(-3deg);
}
.card-feature h3 {
  font-family: var(--font-heading);
  font-size: 1.02rem; color: var(--green-dark);
  margin-bottom: 8px; line-height: 1.3;
}
.card-feature p { font-size: 0.87rem; color: var(--text-light); line-height: 1.65; }

/* ── Info cards: enhanced ── */
.card-info {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.card-info::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--saffron), var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}
.card-info:hover::after { opacity: 1; }
.card-info:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); transform: translateX(4px); }

/* ── Download cards: enhanced ── */
.card-download {
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  position: relative;
}
.card-download::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--saffron), var(--gold));
  border-radius: 0 0 14px 14px;
  transform: scaleX(0); transition: transform 0.3s;
}
.card-download:hover::after { transform: scaleX(1); }
.card-download:hover {
  box-shadow: 0 10px 32px rgba(198,114,27,0.2);
  transform: translateY(-4px);
  border-color: rgba(198,114,27,0.35);
}

/* ── Section header: more refined ── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-badge {
  display: inline-block;
  font-family: var(--font-devanagari);
  font-size: 13px;
  color: var(--saffron);
  background: linear-gradient(135deg, var(--saffron-pale), #ffe8cc);
  border: 1px solid rgba(198,114,27,0.3);
  border-radius: 24px;
  padding: 5px 18px;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(198,114,27,0.12);
}

/* ── Trust bar items ── */
.trust-item {
  padding: 12px 20px;
  transition: background 0.2s;
}
.trust-item:hover { background: rgba(255,255,255,0.06); }
.trust-text strong { font-size: 1.15rem; }

/* ── Stats row: richer ── */
.stats-row { box-shadow: var(--shadow-md); }
.stat-item {
  background: var(--white);
  transition: background 0.2s;
  position: relative;
}
.stat-item:hover { background: var(--cream); }
.stat-num {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scripture sidebar: improved ── */
.scripture-sidebar {
  background: linear-gradient(180deg, var(--cream) 0%, #f8f2e5 100%);
}
.sidebar-link {
  border-radius: 0 8px 8px 0;
  margin-right: 8px;
  font-size: 0.84rem;
}
.sidebar-link.active {
  background: linear-gradient(135deg, var(--saffron-pale), #ffe8cc);
  font-weight: 700;
}

/* ── Scripture content: nicer typography ── */
.scripture-content { padding: 52px 60px; }
.scripture-title-block { margin-bottom: 28px; }
.scripture-symbol {
  box-shadow: 0 6px 20px rgba(122,34,0,0.35);
  border: 2px solid rgba(201,162,55,0.3);
}
.scripture-section { padding-bottom: 64px; margin-bottom: 64px; }

/* Mantra block: premium design */
.mantra-block {
  background: linear-gradient(135deg, var(--green-dark) 0%, #7a2200 100%);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 28px 0;
  border-left: 4px solid var(--gold);
  box-shadow: 0 8px 28px rgba(10,30,18,0.25);
  position: relative;
  overflow: hidden;
}
.mantra-block::after {
  content: 'ॐ';
  position: absolute; right: 20px; bottom: 10px;
  font-family: var(--font-devanagari);
  font-size: 60px;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
}
.mantra-devanagari {
  font-size: 1.2rem;
  line-height: 1.85;
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Sub-cards: more visual interest */
.sub-card {
  border-radius: 10px;
  transition: all 0.25s;
  cursor: default;
}
.sub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(198,114,27,0.15);
}
.sub-card h4 { font-size: 0.9rem; }

/* ── Two-col layout: better balanced ── */
.two-col { gap: 72px; }
.two-col-text h2 { line-height: 1.25; }
.two-col-text p { font-size: 1.05rem; line-height: 1.9; }

/* ── Quote band: more depth ── */
.quote-band {
  padding: 72px 0;
  box-shadow: inset 0 4px 30px rgba(0,0,0,0.2), inset 0 -4px 30px rgba(0,0,0,0.2);
}
.shloka-text {
  font-size: clamp(1.1rem, 2.5vw, 1.65rem);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 18px;
}

/* ── Cards grid: better gap ── */
.cards-grid { gap: 28px; }

/* ── Section backgrounds: subtle texture ── */
.section-cream {
  background: linear-gradient(180deg, var(--cream) 0%, #f8f2e4 100%);
}
.section-cream2 {
  background: linear-gradient(180deg, var(--cream2) 0%, #f0e4cc 100%);
}

/* ── Page hero: enhanced ── */
.page-hero {
  padding: 72px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.page-hero h1 { text-shadow: 0 2px 12px rgba(0,0,0,0.25); }

/* ── Footer: subtle gradient ── */
.footer {
  background: linear-gradient(180deg, #3d0e00 0%, #0a1f11 100%);
}
.footer-col ul li a { transition: all 0.2s; }
.footer-col ul li a:hover {
  color: var(--gold2);
  padding-left: 4px;
}

/* ── Navbar scroll shadow ── */
.navbar { transition: box-shadow 0.3s; }
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }

/* ── Hero badge: polish ── */
.hero-badge {
  box-shadow: 0 2px 12px rgba(198,114,27,0.2);
  backdrop-filter: blur(8px);
}

/* ── Btn hover: lift effect ── */
.btn-saffron, .btn-green, .btn-outline-saffron, .btn-outline-white {
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
.btn-saffron:hover, .btn-green:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ── Download section categories heading ── */
.dl-category-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--green-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dl-category-title::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}
.dl-category-sub {
  font-family: var(--font-devanagari);
  font-size: 0.9rem;
  color: var(--saffron);
  margin-bottom: 28px;
}

/* ── Responsive improvements ── */
@media (max-width: 768px) {
  .scripture-content { padding: 28px 18px; }
  .two-col { gap: 40px; }
  .cards-grid { gap: 18px; }
  .mantra-block { padding: 20px 22px; }
}

/* ============================================================
   HERO BANNER (full-width image)
   ============================================================ */
.hero-banner {
  position: relative;
  width: 100%;
  background: var(--cream);
  overflow: hidden;
}

.hero-banner-img-wrap {
  width: 100%;
  line-height: 0;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
  object-position: center top;
}

.hero-banner-cta {
  background: linear-gradient(135deg, var(--green-dark) 0%, #7a2200 50%, #0f3820 100%);
  padding: 22px 0;
  border-top: 3px solid var(--gold);
}

.hero-banner-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-banner-actions .btn-saffron,
.hero-banner-actions .btn-green,
.hero-banner-actions .btn-outline-saffron {
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-outline-saffron {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold2);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-outline-saffron:hover {
  background: rgba(201,162,55,0.15);
  color: #fff;
  border-color: var(--gold2);
}

/* Fallback when banner.jpg is missing */
.hero-banner-img[src="banner.jpg"]:not([complete]) {
  min-height: 300px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
}

@media (max-width: 768px) {
  .hero-banner-img { max-height: 280px; object-position: center; }
  .hero-banner-actions { gap: 10px; }
  .hero-banner-actions a { font-size: 0.82rem; padding: 10px 16px; }
}
@media (max-width: 480px) {
  .hero-banner-img { max-height: 200px; }
  .hero-banner-actions { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ============================================================
   COOL NAV v3 + GLOBAL TYPOGRAPHY UPGRADE
   ============================================================ */

/* ── Navbar: premium redesign ── */
.navbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,162,55,0.2);
  box-shadow: 0 1px 0 rgba(201,162,55,0.12), 0 4px 20px rgba(0,0,0,0.06);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 24px rgba(0,0,0,0.1);
}

/* Logo text: gradient */
.logo-text strong {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.0rem;
  letter-spacing: 0.2px;
}

/* Nav links: cooler hover */
.nav-links a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text-mid);
  padding: 7px 10px;
  border-radius: 8px;
  transition: all 0.25s;
  overflow: hidden;
}
.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: linear-gradient(to right, var(--saffron), var(--gold));
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-links a:hover::before,
.nav-links a.active::before {
  left: 12px; right: 12px;
}
.nav-links a:hover {
  color: var(--saffron);
  background: linear-gradient(135deg, rgba(198,114,27,0.06), rgba(201,162,55,0.08));
}
.nav-links a.active {
  color: var(--saffron);
  background: linear-gradient(135deg, rgba(198,114,27,0.08), rgba(201,162,55,0.1));
}

/* Donate CTA button */
.nav-cta {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron2) 100%) !important;
  color: var(--white) !important;
  padding: 5px 11px !important;
  border-radius: 7px !important;
  margin-left: 4px !important;
  box-shadow: 0 3px 12px rgba(198,114,27,0.35) !important;
  letter-spacing: 0.3px !important;
}
.nav-cta::before { display: none !important; }
.nav-cta:hover {
  box-shadow: 0 6px 20px rgba(198,114,27,0.45) !important;
  transform: translateY(-1px);
}

/* WhatsApp nav button */
.nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  color: #fff !important;
  padding: 5px 9px !important;
  border-radius: 7px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 12px rgba(37,211,102,0.35) !important;
  white-space: nowrap;
  transition: all 0.25s !important;
}
.nav-whatsapp::before { display: none !important; }
.nav-whatsapp:hover {
  box-shadow: 0 6px 20px rgba(37,211,102,0.5) !important;
  transform: translateY(-1px);
  background: linear-gradient(135deg, #20c05c, #0e7a6e) !important;
}
.nav-whatsapp svg { width:14px; height:14px; flex-shrink:0; }

/* ── Global typography upgrade ── */
h1,h2,h3 { letter-spacing: -0.02em; }

.section-title {
  background: linear-gradient(135deg, var(--green-dark) 30%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title span {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-badge {
  background: linear-gradient(135deg, rgba(198,114,27,0.1), rgba(201,162,55,0.15));
  border: 1px solid rgba(198,114,27,0.3);
  box-shadow: 0 2px 10px rgba(198,114,27,0.08);
  font-weight: 600;
}

/* Floating WhatsApp bubble */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 9999;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55);
}
.wa-float svg { width:30px; height:30px; fill:#fff; }
.wa-float::after {
  content: 'Chat with us';
  position: absolute;
  right: 68px;
  background: #4d1200;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.wa-float:hover::after { opacity: 1; }

/* Page hero: premium — overridden by global .page-hero above */


/* ══════════════════════════════════════════════════════
   NAVY BLUE + SAFFRON LIGHT THEME — FULL SITE OVERRIDE
   Primary: Navy (#1a3a6b) | Accent: Saffron (#e07822)
   Golden text → Navy blue | Dark sections → Light
   ══════════════════════════════════════════════════════ */

:root {
  --green:        #1a3a6b;   /* navy — site primary */
  --green2:       #1e4480;   /* navy secondary */
  --green-dark:   #0f1d40;   /* dark navy */
  --gold:         #c9a237;   /* gold — accent (restored) */
  --gold2:        #e2bf60;   /* gold light (restored) */
  --saffron:      #e07822;   /* warm saffron */
  --saffron2:     #f5993a;   /* lighter saffron */
}

/* ── Homepage Hero: navy + saffron gradient, white text ── */
.hero {
  background:
    linear-gradient(160deg, rgba(10,20,55,0.92) 0%, rgba(26,58,107,0.86) 55%, rgba(224,120,34,0.32) 100%),
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.025) 40px, rgba(255,255,255,0.025) 41px),
    #0f1d40 !important;
}

/* ── Trust bar: navy ── */
.trust-bar { background: linear-gradient(135deg, #0f1d40, #1a3a6b) !important; }

/* ── Footer: white + black + gold ── */
.footer { background: #ffffff !important; color: #111 !important; border-top: 3px solid #c9a237 !important; }
.footer *, .footer p, .footer span, .footer li, .footer a { color: #111 !important; }
.footer-col h4 { color: #c9a237 !important; }
.footer-col ul li a:hover { color: #c9a237 !important; }
.footer-brand-text strong { color: #111 !important; }
.footer-brand-text small { color: #c9a237 !important; }
.footer-desc { color: #111 !important; }
.footer-contact-item .ci-icon { color: #c9a237 !important; }
.footer-grid { border-bottom-color: #ddd !important; }
.footer-bottom { background: #111 !important; }
.footer-bottom *, .footer-bottom p, .footer-bottom a, .footer-bottom span { color: rgba(255,255,255,0.6) !important; }
.footer-bottom .footer-shloka { color: #c9a237 !important; }
.footer-bottom a:hover { color: #c9a237 !important; }

/* ── Quote band: light saffron-cream (NOT dark) ── */
.quote-band {
  background: linear-gradient(135deg, #fff8f0 0%, #fdebd0 60%, #fff3e0 100%) !important;
  border-top: 2px solid rgba(224,120,34,0.2) !important;
  border-bottom: 2px solid rgba(224,120,34,0.2) !important;
}
.quote-band .quote-text { color: #0f1d40 !important; }
.quote-band .quote-src { color: rgba(15,29,64,0.62) !important; }
.quote-band .shloka-text { color: #e07822 !important; }
.quote-band .shloka-translation { color: rgba(15,29,64,0.78) !important; font-style: italic; }
.quote-band .shloka-source { color: rgba(15,29,64,0.45) !important; }
.quote-band .pill {
  background: rgba(26,58,107,0.08) !important;
  color: #1a3a6b !important;
  border-color: rgba(26,58,107,0.22) !important;
}
.quote-band::before, .quote-band::after {
  color: rgba(224,120,34,0.08) !important;
}

/* ── Section-green / section-dark: light navy ── */
.section-green {
  background: linear-gradient(135deg, #0f1d40, #1a3a6b) !important;
}
.section-dark {
  background: linear-gradient(145deg, #0f1d40, #1a3a6b) !important;
}

/* ── btn-green → navy ── */
.btn-green {
  background: linear-gradient(135deg, #1a3a6b, #1e4480) !important;
  box-shadow: 0 3px 12px rgba(26,58,107,0.3) !important;
}
.btn-green:hover {
  background: linear-gradient(135deg, #1e4480, #2558a8) !important;
  box-shadow: 0 6px 20px rgba(26,58,107,0.4) !important;
}

/* ── Mantra block: navy ── */
.mantra-block {
  background: linear-gradient(135deg, #0f1d40 0%, #1a3a6b 100%) !important;
}

/* ── Programs page: navy ── */
.prog-section.dark {
  background: linear-gradient(145deg, #0c1836 0%, #1a3a6b 100%) !important;
}
.prog-hero {
  background: linear-gradient(135deg, #0f1d40 0%, #1a3a6b 55%, rgba(224,120,34,0.8) 100%) !important;
}
.prog-hero-eyebrow { background: rgba(224,120,34,0.12) !important; border-color: rgba(224,120,34,0.3) !important; }

/* ── Inner page heroes: light green + saffron, bold white text ── */
.page-hero {
  background:
    linear-gradient(135deg, rgba(15,29,64,0.97) 0%, rgba(26,58,107,0.92) 55%, rgba(180,100,20,0.70) 100%),
    repeating-linear-gradient(45deg, transparent, transparent 28px, rgba(255,255,255,0.025) 28px, rgba(255,255,255,0.025) 29px),
    #0f1d40 !important;
  padding: 42px 0 36px !important;
  min-height: 150px !important;
}

/* ── Navbar badge / logo ── */
.navbar-logo .logo-text strong { color: #0f1d40 !important; font-size: 1.0rem !important; white-space: nowrap; }
.logo-badge { background: linear-gradient(135deg, #1a3a6b, #1e4480) !important; }
.nav-hamburger span { background: #1a3a6b !important; }

/* ── Section labels / dividers ── */
.section-label { color: #e07822 !important; background: rgba(224,120,34,0.08) !important; }
.divider, .divider-om::before, .divider-om::after {
  background: linear-gradient(to right, transparent, #1a3a6b, transparent) !important;
}

/* ── Scripture sidebar ── */
.scripture-sidebar { background: linear-gradient(180deg, var(--cream) 0%, #f8f2e5 100%) !important; }
.scripture-sidebar .sidebar-link.active {
  background: linear-gradient(135deg, #eef2fb, #dce6f5) !important;
  color: #1a3a6b !important;
  border-left-color: #1a3a6b !important;
}

/* ── Stat cards (decoding-vedas) ── */
.stat-card { background: linear-gradient(135deg, #1a3a6b, #1e4480) !important; }

/* ── Nav CTA ── */
.nav-cta {
  background: linear-gradient(135deg, #e07822 0%, #f5993a 100%) !important;
}

/* Gau warm stays green-ish */
.gau-warm { background: linear-gradient(145deg, #f1f8f2 0%, #e8f5e9 100%) !important; }

/* ══════════════════════════════════════
   VEDIC KNOWLEDGE DROPDOWN NAV
══════════════════════════════════════ */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 4px; cursor: pointer;
  font-family: var(--font-body); font-size: 0.86rem; font-weight: 700;
  letter-spacing: 0.2px; color: var(--text-mid);
  padding: 7px 10px; border-radius: var(--radius-sm);
  transition: all 0.2s; white-space: nowrap; border: none; background: none;
  text-decoration: none;
}
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active {
  color: var(--saffron); background: var(--saffron-pale);
}
.nav-dropdown-arrow { font-size: 0.65rem; transition: transform 0.2s; }
.nav-dropdown.mobile-open .nav-dropdown-arrow,
.nav-dropdown:hover .nav-dropdown-arrow { transform: rotate(180deg); }

/* Dropdown menu — hidden by default, shown on hover OR JS toggle */
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: #fff; border-radius: 12px; min-width: 230px;
  box-shadow: 0 8px 32px rgba(26,58,107,0.15); border: 1px solid #e0e8f5;
  padding: 8px 0; z-index: 1100; flex-direction: column;
}
/* Desktop: show on hover OR click-toggle */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.mobile-open .nav-dropdown-menu { display: flex; }

/* Bridge: transparent pseudo-element fills the gap so moving mouse
   from trigger → menu never breaks the :hover state */
.nav-dropdown::after {
  content: ''; position: absolute; top: 100%; left: 0; right: 0;
  height: 10px; z-index: 1099;
}

.nav-dropdown-menu a {
  padding: 9px 18px; font-size: 0.82rem; font-weight: 600;
  color: #444; text-decoration: none; transition: all 0.15s;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  min-height: auto !important; min-width: auto !important;
}
.nav-dropdown-menu a:hover { background: #f0f4ff; color: #1a3a6b; }
.nav-dropdown-menu a.active { background: #eef2fb; color: #1a3a6b; }
.nav-dropdown-divider { height: 1px; background: #eee; margin: 4px 0; }

/* Mobile: dropdown becomes a vertical accordion */
@media (max-width: 900px) {
  .nav-dropdown-menu {
    position: static; box-shadow: none; border: none;
    border-radius: 0; border-left: 3px solid #e07822;
    margin-left: 12px; padding: 4px 0;
    display: none;
  }
  .nav-dropdown.mobile-open .nav-dropdown-menu { display: flex; }
  .nav-dropdown-menu a { padding: 8px 16px; font-size: .85rem; }
}


/* ============================================================
   GLOBAL UPGRADES v8 — Scroll Reveal · Mobile Drawer · Polish
   ============================================================ */

/* ── Scroll reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-left  { opacity:0; transform:translateX(-32px); transition:opacity .6s cubic-bezier(.4,0,.2,1),transform .6s cubic-bezier(.4,0,.2,1); }
.reveal-right { opacity:0; transform:translateX(32px);  transition:opacity .6s cubic-bezier(.4,0,.2,1),transform .6s cubic-bezier(.4,0,.2,1); }
.reveal-left.visible, .reveal-right.visible { opacity:1; transform:none; }
.reveal-delay-1 { transition-delay:.1s; }
.reveal-delay-2 { transition-delay:.2s; }
.reveal-delay-3 { transition-delay:.3s; }
.reveal-delay-4 { transition-delay:.4s; }

/* ── Scroll-progress bar at page top ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #e07822, #c9a237, #e07822);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 3px 3px 0;
}

/* ── Mobile nav overlay (tap outside to close) ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 998;
}
.nav-overlay.open { display: block; }

/* ── Mobile nav — top dropdown (click hamburger to show) ── */
@media (max-width: 900px) {
  .nav-links {
    display: none !important;
    position: fixed !important;
    top: 64px; left: 0; right: 0;
    width: 100% !important;
    height: auto !important;
    max-height: 80vh;
    overflow-y: auto;
    flex-direction: column !important;
    align-items: stretch !important;
    background: #fff;
    border-top: 2px solid var(--saffron);
    border-bottom: 2px solid #e8e0d5;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 8px 0 16px !important;
    gap: 0 !important;
    z-index: 999;
    transform: none !important;
  }
  .nav-links.open { display: flex !important; }
  .nav-links a {
    width: 100% !important;
    font-size: 0.95rem !important;
    padding: 13px 24px !important;
    border-radius: 0 !important;
    white-space: normal !important;
    border-bottom: 1px solid #f3ede6;
    color: var(--navy) !important;
  }
  .nav-links a:hover { background: #fff8f0 !important; color: var(--saffron) !important; }
  .nav-hamburger { display: flex; z-index: 1000; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
  .nav-cta { width: calc(100% - 48px) !important; margin: 8px 24px 4px !important; text-align: center !important; justify-content: center !important; }
  .nav-whatsapp { width: calc(100% - 48px) !important; margin: 0 24px !important; justify-content: center !important; }
}

/* ── Hamburger → X animation ── */
.nav-hamburger { position: relative; width: 32px; height: 20px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── Improved focus styles for accessibility ── */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #e07822;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Smooth page load fade-in ── */
body { animation: pageFadeIn 0.4s ease-out; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Back-to-top button ── */
#back-to-top {
  position: fixed;
  bottom: 96px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s;
  z-index: 9000;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--saffron); transform: translateY(-3px); }

/* ── Cookie consent banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 3px solid #c9a237;
  box-shadow: 0 -6px 32px rgba(0,0,0,0.14);
  z-index: 99999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  font-family: 'Lato', sans-serif;
}
#cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-icon { font-size: 1.6rem; flex-shrink: 0; }
.cookie-text { flex: 1; min-width: 220px; }
.cookie-text p {
  font-size: 0.85rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
}
.cookie-text p strong { color: #0f1d40; }
.cookie-text a { color: #e07822; text-decoration: underline; font-weight: 700; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-accept {
  background: linear-gradient(135deg, #e07822, #f5993a);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(224,120,34,0.35);
  transition: all 0.2s;
  font-family: 'Lato', sans-serif;
}
.cookie-accept:hover { box-shadow: 0 6px 18px rgba(224,120,34,0.5); transform: translateY(-1px); }
.cookie-decline {
  background: transparent;
  color: #666;
  border: 1.5px solid #ddd;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Lato', sans-serif;
}
.cookie-decline:hover { border-color: #999; color: #333; }
.cookie-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.2rem; color: #aaa; padding: 4px;
  transition: color 0.2s; flex-shrink: 0;
}
.cookie-close:hover { color: #333; }
@media (max-width: 600px) {
  .cookie-inner { padding: 14px 16px; gap: 12px; }
  .cookie-actions { width: 100%; }
  .cookie-accept, .cookie-decline { flex: 1; text-align: center; }
}

/* ── Active nav page indicator (dot) ── */
.nav-links a.active-page::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--saffron);
  border-radius: 50%;
}

/* ── Tooltip for nav items ── */
.nav-links a[title]:not(.nav-cta):not(.nav-whatsapp) {
  position: relative;
}

/* ── Improved card focus states ── */
.lib-card:focus-within, .card-feature:focus-within {
  outline: 2px solid #e07822;
  outline-offset: 2px;
}

/* ── Print styles ── */
@media print {
  .navbar, .wa-float, #cookie-banner, #back-to-top, #scroll-progress { display: none !important; }
  body { font-size: 12pt; }
}


/* ============================================================
   MOBILE-FIRST OVERHAUL v9
   Target: 320px–768px perfect rendering
   - Touch targets ≥ 44px
   - No horizontal overflow
   - Readable font sizes (min 14px body, 16px inputs)
   - Proper grid stacking
   - Accessible tap areas
   ============================================================ */

/* ── Universal safe-zone ── */
html, body { overflow-x: hidden; max-width: 100vw; }
img, video, iframe, embed { max-width: 100%; height: auto; }
table { max-width: 100%; overflow-x: auto; display: block; }

/* ── Touch targets — all interactive elements ≥ 44px ── */
a, button, [role="button"],
.nav-links a, .lib-cat-btn, .lib-dl-btn,
.cookie-accept, .cookie-decline,
.btn-saffron, .btn-green, .btn-outline-saffron,
.nav-cta, .nav-whatsapp, input[type="submit"] {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Fix inline elements that shouldn't be flex */
p a, li a, .footer-col a, .footer-bottom a,
.scripture-content a, .ans-ref a {
  display: inline;
  min-height: unset;
}

/* ── Prevent text overflow everywhere ── */
h1, h2, h3, h4, h5, h6, p, li, td, th, span, div {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── Base mobile (≤ 767px) ── */
@media (max-width: 767px) {

  /* Typography scale */
  body { font-size: 15px; line-height: 1.75; }
  h1 { font-size: clamp(1.5rem, 6vw, 2.2rem) !important; }
  h2 { font-size: clamp(1.25rem, 5vw, 1.8rem) !important; }
  h3 { font-size: clamp(1.05rem, 4vw, 1.4rem) !important; }

  /* Container padding */
  .container { padding: 0 12px; }

  /* Sections */
  .section { padding: 40px 0 !important; }
  :root { --section-pad: 40px 0; }

  /* ── Navbar ── */
  .navbar-inner { padding: 0 12px; height: 60px; }
  .navbar-logo .logo-img { width: 46px !important; }
  .logo-text strong { font-size: 0.95rem !important; }
  /* small tag removed */

  /* ── Hero ── */
  .hero { min-height: 60vh !important; padding: 0 !important; }
  .hero-content { padding: 48px 0 36px !important; }
  .hero-badge { font-size: 0.7rem !important; padding: 4px 14px !important; }
  .hero-title { font-size: clamp(1.6rem, 7vw, 2.4rem) !important; }
  .hero-subtitle { font-size: 0.92rem !important; }
  .hero-actions { flex-direction: column; gap: 10px !important; }
  .hero-actions a, .hero-actions button { width: 100% !important; justify-content: center; }

  /* ── Banner image ── */
  .hero-banner-img { max-height: 220px !important; }
  .hero-banner-actions { flex-direction: column; gap: 8px !important; }
  .hero-banner-actions a { width: 100% !important; text-align: center; justify-content: center; }

  /* ── Trust bar ── */
  .trust-items { flex-wrap: wrap !important; }
  .trust-item {
    flex: 0 0 50% !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    padding: 10px 12px !important;
  }
  .trust-icon { font-size: 16px !important; }
  .trust-text strong { font-size: 0.9rem !important; }
  .trust-text span { font-size: 0.62rem !important; }

  /* ── Cards grids ── */
  .cards-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .sub-cards  { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .about-cards { grid-template-columns: 1fr !important; }
  .seva-row   { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .scripture-row { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .dl-row     { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .stats-row  { grid-template-columns: repeat(2, 1fr) !important; }
  .lib-grid   { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* ── Two-col layout ── */
  .two-col { grid-template-columns: 1fr !important; gap: 28px !important; }
  .two-col-image { order: -1; }
  .two-col-text p { font-size: 0.92rem !important; }

  /* ── Scripture layout ── */
  .scripture-layout { grid-template-columns: 1fr !important; }
  .scripture-sidebar {
    height: auto !important;
    max-height: 220px !important;
    overflow-y: auto;
    border-right: none !important;
    border-bottom: 2px solid var(--border) !important;
  }
  .scripture-content { padding: 22px 16px !important; }

  /* ── Mantra block ── */
  .mantra-block { padding: 16px 18px !important; margin: 12px 0 !important; }
  .mantra-devanagari { font-size: 0.92rem !important; line-height: 1.8 !important; }

  /* ── Quote band ── */
  .quote-band { padding: 32px 0 !important; }
  .shloka-text { font-size: clamp(1rem, 4vw, 1.3rem) !important; }

  /* ── Page hero ── */
  .page-hero { padding: 32px 0 26px !important; min-height: unset !important; }
  .page-hero h1 { font-size: clamp(1.4rem, 6vw, 2rem) !important; }

  /* ── Vedic Library ── */
  .lib-cats { gap: 6px !important; padding-bottom: 10px !important; }
  .lib-cat-btn { padding: 6px 11px !important; font-size: 0.72rem !important; }
  .lib-search-wrap { top: 60px !important; padding: 14px 14px !important; }
  .lib-hero { padding: 52px 16px 36px !important; }
  .lib-stats { gap: 16px !important; }
  .lib-stat-num { font-size: 1.6rem !important; }
  .lib-card { padding: 12px 11px 10px !important; }
  .lib-card-title { font-size: 0.82rem !important; }
  .lib-card-desc { font-size: 0.72rem !important; }
  .lib-dl-btn { font-size: 0.68rem !important; padding: 5px 10px !important; }

  /* ── VedShiksha AI ── */
  .chat-container { height: 400px !important; }
  .chat-input-row { gap: 8px !important; }
  .chat-input-row input { font-size: 16px !important; } /* prevent iOS zoom */
  .chip { font-size: 0.72rem !important; padding: 6px 10px !important; }

  /* ── Footer ── */
  .footer-brand { margin-bottom: 12px; }
  .footer-col h4 { font-size: 0.9rem !important; margin-bottom: 10px !important; }
  .footer-col ul li { margin-bottom: 6px !important; }
  .footer-bottom { flex-direction: column !important; text-align: center !important; gap: 8px !important; }

  /* ── Forms & inputs ── */
  input, textarea, select {
    font-size: 16px !important; /* prevents iOS auto-zoom */
    padding: 12px 16px !important;
    border-radius: 8px !important;
  }

  /* ── Buttons ── */
  .btn-saffron, .btn-green, .btn-outline-saffron, .btn-outline-white {
    padding: 12px 20px !important;
    font-size: 0.88rem !important;
    width: 100%;
    justify-content: center;
  }

  /* ── Cookie banner ── */
  .cookie-inner { padding: 12px 14px !important; gap: 10px !important; }
  .cookie-actions { width: 100% !important; }
  .cookie-accept, .cookie-decline { flex: 1 !important; justify-content: center !important; }

  /* ── Programs page ── */
  .prog-hero { padding: 48px 0 36px !important; }
  .prog-grid { grid-template-columns: 1fr !important; }
  .prog-pillar-grid { grid-template-columns: 1fr !important; }

  /* ── WhatsApp float: move up when cookie banner visible ── */
  .wa-float { bottom: 20px !important; right: 16px !important; width: 50px !important; height: 50px !important; }
  .wa-float svg { width: 24px !important; height: 24px !important; }
  .wa-float::after { display: none !important; }
  #back-to-top { bottom: 80px !important; right: 16px !important; width: 40px !important; height: 40px !important; }

  /* ── Join page donate form ── */
  .donate-grid { grid-template-columns: 1fr !important; }
  .amount-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ── Small phones (≤ 380px) ── */
@media (max-width: 380px) {
  .seva-row { grid-template-columns: repeat(2, 1fr) !important; }
  .scripture-row { grid-template-columns: repeat(2, 1fr) !important; }
  .lib-grid { grid-template-columns: 1fr !important; }
  .sub-cards { grid-template-columns: 1fr !important; }
  .trust-item { flex: 0 0 100% !important; }
  .stats-row { grid-template-columns: 1fr 1fr !important; }
  h1 { font-size: clamp(1.35rem, 7vw, 1.8rem) !important; }
}

/* ── Tablet (768px – 1024px) ── */
@media (min-width: 768px) and (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .seva-row   { grid-template-columns: repeat(3, 1fr) !important; }
  .scripture-row { grid-template-columns: repeat(3, 1fr) !important; }
  .dl-row     { grid-template-columns: repeat(2, 1fr) !important; }
  .lib-grid   { grid-template-columns: repeat(3, 1fr) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .two-col    { gap: 48px !important; }
}

/* ── Smooth transitions on resize ── */
* { transition-property: color, background-color, border-color, box-shadow, opacity, transform; }
/* but NOT on layout properties (prevents jank) */
*, *::before, *::after {
  transition-property: color, background-color, border-color, box-shadow, opacity, transform, filter;
  transition-duration: 0s;
}
.card-feature, .card-info, .card-download, .lib-card,
.btn-saffron, .btn-green, .nav-cta, .nav-whatsapp,
.wa-float, #back-to-top, .nav-links a, .cookie-accept {
  transition-duration: 0.25s !important;
}

/* ============================================================
   MOBILE-FIRST ENHANCEMENTS v14
   iOS fixes, touch UX, performance, accessibility
   ============================================================ */

/* ── iOS & Safari base fixes ── */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Touch targets — minimum 44×44px (WCAG 2.5.5) ── */
a, button, [role="button"],
.nav-links a, .nav-cta, .nav-whatsapp,
.btn-saffron, .btn-green, .btn-outline-white,
.nav-hamburger, #back-to-top, .wa-float,
.cookie-accept, .cookie-decline {
  min-height: 44px;
  min-width: 44px;
}

/* ── Prevent double-tap zoom on buttons ── */
button, a {
  touch-action: manipulation;
}

/* ── Remove iOS tap highlight ── */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ── Safe area insets (iPhone notch / Dynamic Island) ── */
.navbar {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.footer {
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}
.wa-float {
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
  right: max(24px, env(safe-area-inset-right));
}

/* ── Full-height on mobile (accounts for browser chrome) ── */
.hero {
  min-height: 100svh;
}
@supports not (min-height: 100svh) {
  .hero { min-height: 100vh; }
}

/* ── Smooth scrollable areas ── */
.scripture-sidebar,
.chat-messages,
.lib-grid {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ── Prevent text overflow on small screens ── */
h1, h2, h3, h4, h5, h6, p, li, td, th {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── Images always responsive ── */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* ── Readable base font on mobile ── */
@media (max-width: 480px) {
  body { font-size: 15px; line-height: 1.65; }
  .container { padding: 0 12px; }

  /* Cards: 1 column on tiny screens */
  .cards-grid { grid-template-columns: 1fr !important; }
  .sub-cards { grid-template-columns: 1fr !important; }
  .dl-grid { grid-template-columns: 1fr !important; }
  .lib-grid { grid-template-columns: 1fr !important; }

  /* Section spacing tighter */
  .section { padding: 36px 0 !important; }

  /* Buttons full-width */
  .btn-saffron, .btn-green, .btn-outline-white {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
  }

  /* Table overflow */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Nav logo smaller */
  .navbar-logo .logo-img { width: 50px !important; }
  .logo-text { font-size: 1rem !important; }
  .logo-hindi { font-size: 0.7rem !important; }
}

/* ── 320px (smallest phones: iPhone SE 1st gen) ── */
@media (max-width: 360px) {
  body { font-size: 14px; }
  .section { padding: 28px 0 !important; }
  .hero-content { padding: 48px 0 32px !important; }
  h1 { font-size: clamp(1.2rem, 8vw, 1.6rem) !important; }
  h2 { font-size: clamp(1.1rem, 6vw, 1.4rem) !important; }
  .container { padding: 0 12px !important; }
  .stats-row { grid-template-columns: 1fr !important; }
  .amount-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Landscape phone ── */
@media (max-width: 768px) and (orientation: landscape) {
  .hero { min-height: 100vw; }
  .nav-drawer { max-height: 85vh; overflow-y: auto; }
}

/* ── Focus visible (keyboard navigation / accessibility) ── */
:focus-visible {
  outline: 2px solid var(--saffron, #e07822);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── Reduced motion (accessibility) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Dark mode support ── */
@media (prefers-color-scheme: dark) {
  /* Site already uses dark theme — ensure cookie banner works in dark */
  .cookie-bar {
    background: rgba(10, 20, 40, 0.98) !important;
    border-top: 1px solid rgba(200, 134, 10, 0.3) !important;
  }
}

/* ── Print styles ── */
@media print {
  .navbar, .footer, .wa-float, #back-to-top, .cookie-bar { display: none !important; }
  body { color: #000 !important; background: #fff !important; font-size: 12pt; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
  .hero { min-height: auto !important; padding: 20px 0 !important; }
}

/* ═══════════════════════════════════════════════════
   MEGA MENU — Vedic Knowledge grid dropdown
═══════════════════════════════════════════════════ */
.mega-dropdown { position: relative; }

/* Bridge: transparent pseudo-element covers the gap between trigger
   and mega-menu so :hover is never lost when moving the mouse down */
.mega-dropdown::before {
  content: ''; position: absolute; top: 100%; left: -20px; right: -20px;
  height: 12px; z-index: 1199;
}

.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 14px;
  min-width: 760px;
  box-shadow: 0 12px 40px rgba(26,58,107,0.18);
  border: 1px solid #e0e8f5;
  padding: 20px;
  z-index: 1200;
  flex-direction: row;
  gap: 0;
}
.mega-dropdown:hover .mega-menu,
.mega-dropdown.mobile-open .mega-menu { display: flex; }

.mega-col {
  flex: 1;
  padding: 0 12px;
  border-right: 1px solid #eef0f5;
}
.mega-col:first-child { padding-left: 4px; }
.mega-col:last-child { border-right: none; padding-right: 4px; }

.mega-col-title {
  font-size: .7rem;
  font-weight: 800;
  color: #e07822;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 0 10px;
  margin-bottom: 6px;
  border-bottom: 2px solid #f0e8d8;
}
.mega-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  font-size: .82rem;
  font-weight: 600;
  color: #3a3a3a;
  text-decoration: none;
  border-radius: 8px;
  transition: all .15s;
  white-space: nowrap;
}
.mega-col a:hover { background: #f0f4ff; color: #1a3a6b; }
.mega-col a.active { background: #eef2fb; color: #1a3a6b; font-weight: 700; }

/* Mobile mega menu */
@media (max-width: 900px) {
  .mega-menu {
    position: static;
    transform: none;
    flex-direction: column;
    min-width: unset;
    box-shadow: none;
    border: none;
    border-left: 3px solid #e07822;
    border-radius: 0;
    margin-left: 12px;
    padding: 4px 0;
    gap: 0;
    display: none;
  }
  .mega-dropdown.mobile-open .mega-menu { display: flex; }
  .mega-col { border-right: none; padding: 4px 0; }
  .mega-col-title { padding: 8px 12px 4px; margin-bottom: 0; border-bottom: none; }
  .mega-col a { padding: 6px 12px; font-size: .83rem; }
}

.navbar.scrolled .logo-tagline,
.navbar--dark .logo-tagline { color: #111111; }
@media(max-width:900px){ .logo-tagline { display:none; } }

/* ═══ COPY PROTECTION ═══ */
body, p, h1, h2, h3, h4, h5, h6, span, div, li, td, th, a {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
img { pointer-events: none; -webkit-user-drag: none; user-drag: none; }
