<!DOCTYPE html>
<html>
  <head>
    <title>Home | The Satsang Foundation</title>
<meta name="description" content="The Satsang Foundation inspires social transformation through education, environment, health, and spiritual values. Join us in making a difference.">
<meta name="keywords" content="satsang foundation, sri m, spiritual education, social transformation, charity, ngo india">
<meta property="og:site_name" content="The Satsang Foundation">
<meta property="og:type" content="website">
<meta property="og:description" content="The Satsang Foundation is dedicated to inspiring social transformation through education, environment, health, and spiritual values.">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="The Satsang Foundation">
<meta name="twitter:description" content="Inspiring social transformation through education, environment, health, and spiritual values.">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <meta name="color-scheme" content="light">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="csrf-param" content="authenticity_token" />
<meta name="csrf-token" content="iwwtW2s2b5BzniTP3yWfNN1MXXk1apjtX67NtcCP1HgcMBeUef_i6Zdz96KKKQdt371rz4QsZ0xBDf5ncdJE9A" />
    <meta name="csp-nonce" />

    <link rel="canonical" href="https://satsang-foundation.org/">

      <link rel="preload" href="/assets/sri-m-hero-1-b116c6c5.webp" as="image" fetchpriority="high">


    <script type="application/ld+json">
      {"@context":"https://schema.org","@type":"NGO","name":"The Satsang Foundation","url":"https://satsang-foundation.org/","logo":"https://satsang-foundation.org/assets/TSF-small-logo-white-bd24d89a.webp","description":"The Satsang Foundation is dedicated to inspiring social transformation through education, environment, health, and spiritual values.","founder":{"@type":"Person","name":"Sri M","url":"https://satsang-foundation.org/sri-m/about"},"sameAs":["https://www.youtube.com/user/TheSatsangFoundation","https://www.instagram.com/thesatsangfoundationofficial"],"address":{"@type":"PostalAddress","addressLocality":"Madanapalle","addressRegion":"Andhra Pradesh","addressCountry":"IN"}}
    </script>

    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link rel="preload" 
          href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&family=Dancing+Script:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap" 
          as="style" 
          onload="this.onload=null;this.rel='stylesheet'">
    <noscript>
      <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&family=Dancing+Script:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap" rel="stylesheet">
    </noscript>


    <link rel="icon" type="image/webp" href="/assets/TSF-small-logo-white-bd24d89a.webp" />
    <link rel="apple-touch-icon" type="image/x-icon" href="/assets/TSF-small-logo-white-bd24d89a.webp" />

    <link rel="stylesheet" href="/assets/application-92d809b6.css" data-turbo-track="reload" />
<link rel="stylesheet" href="/assets/tailwind-f901c45b.css" data-turbo-track="reload" />
    <script type="importmap" data-turbo-track="reload">{
  "imports": {
    "application": "/assets/application-bfcdf840.js",
    "@hotwired/turbo-rails": "/assets/turbo.min-c1e82531.js",
    "@hotwired/stimulus": "/assets/stimulus.min-4b1e420e.js",
    "@hotwired/stimulus-loading": "/assets/stimulus-loading-1fc53fe7.js",
    "controllers/application": "/assets/controllers/application-3affb389.js",
    "controllers/bulk_upload_controller": "/assets/controllers/bulk_upload_controller-2a8f8e39.js",
    "controllers/carousel_controller": "/assets/controllers/carousel_controller-01c0c23d.js",
    "controllers/comment_reply_controller": "/assets/controllers/comment_reply_controller-155ceccd.js",
    "controllers/cookie_banner_controller": "/assets/controllers/cookie_banner_controller-11d2ace5.js",
    "controllers/faq_search_controller": "/assets/controllers/faq_search_controller-5f8a449f.js",
    "controllers/flash_controller": "/assets/controllers/flash_controller-07203286.js",
    "controllers": "/assets/controllers/index-2ce648e1.js",
    "controllers/kailash_yatra_controller": "/assets/controllers/kailash_yatra_controller-175017ea.js",
    "controllers/kailash_yatra_health_controller": "/assets/controllers/kailash_yatra_health_controller-2bda5465.js",
    "controllers/kailash_yatra_passport_controller": "/assets/controllers/kailash_yatra_passport_controller-6798ea79.js",
    "controllers/publish_status_controller": "/assets/controllers/publish_status_controller-c6f13776.js",
    "controllers/quote_search_controller": "/assets/controllers/quote_search_controller-5f7354b2.js",
    "controllers/subscribe_form_controller": "/assets/controllers/subscribe_form_controller-4c527efb.js",
    "controllers/tabs_controller": "/assets/controllers/tabs_controller-ac1aecbc.js",
    "controllers/turnstile_controller": "/assets/controllers/turnstile_controller-8e7a7927.js"
  }
}</script>
<link rel="modulepreload" href="/assets/application-bfcdf840.js">
<link rel="modulepreload" href="/assets/turbo.min-c1e82531.js">
<link rel="modulepreload" href="/assets/stimulus.min-4b1e420e.js">
<link rel="modulepreload" href="/assets/stimulus-loading-1fc53fe7.js">
<link rel="modulepreload" href="/assets/controllers/application-3affb389.js">
<link rel="modulepreload" href="/assets/controllers/bulk_upload_controller-2a8f8e39.js">
<link rel="modulepreload" href="/assets/controllers/carousel_controller-01c0c23d.js">
<link rel="modulepreload" href="/assets/controllers/comment_reply_controller-155ceccd.js">
<link rel="modulepreload" href="/assets/controllers/cookie_banner_controller-11d2ace5.js">
<link rel="modulepreload" href="/assets/controllers/faq_search_controller-5f8a449f.js">
<link rel="modulepreload" href="/assets/controllers/flash_controller-07203286.js">
<link rel="modulepreload" href="/assets/controllers/index-2ce648e1.js">
<link rel="modulepreload" href="/assets/controllers/kailash_yatra_controller-175017ea.js">
<link rel="modulepreload" href="/assets/controllers/kailash_yatra_health_controller-2bda5465.js">
<link rel="modulepreload" href="/assets/controllers/kailash_yatra_passport_controller-6798ea79.js">
<link rel="modulepreload" href="/assets/controllers/publish_status_controller-c6f13776.js">
<link rel="modulepreload" href="/assets/controllers/quote_search_controller-5f7354b2.js">
<link rel="modulepreload" href="/assets/controllers/subscribe_form_controller-4c527efb.js">
<link rel="modulepreload" href="/assets/controllers/tabs_controller-ac1aecbc.js">
<link rel="modulepreload" href="/assets/controllers/turnstile_controller-8e7a7927.js">
<script type="module">import "application"</script>
    
    

    <script src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit" async defer data-turbo-track="reload"></script>

      <script>
        // Google Analytics conditional loader
        (function() {
          var gaLoaded = false;
          
          function loadGoogleAnalytics() {
            if (gaLoaded) return;
            
            // Load gtag.js
            var script = document.createElement('script');
            script.async = true;
            script.src = 'https://www.googletagmanager.com/gtag/js?id=G-VMPJEPJW5C';
            document.head.appendChild(script);
            
            // Initialize GA
            window.dataLayer = window.dataLayer || [];
            function gtag(){dataLayer.push(arguments);}
            window.gtag = gtag;
            
            gtag('js', new Date());
            gtag('config', 'G-VMPJEPJW5C', {
              'anonymize_ip': true,
              'cookie_flags': 'SameSite=None;Secure'
            });
            
            gaLoaded = true;
          }
          
          function checkConsent() {
            try {
              var consent = JSON.parse(localStorage.getItem('cookieConsent') || '{}');
              if (consent.analytics === true) {
                loadGoogleAnalytics();
              }
            } catch (e) {
              console.error('Error checking consent:', e);
            }
          }
          
          // Check consent on page load
          if (document.readyState === 'loading') {
            document.addEventListener('DOMContentLoaded', checkConsent);
          } else {
            checkConsent();
          }
          
          // Listen for consent changes
          window.addEventListener('cookieConsentUpdated', function(event) {
            if (event.detail && event.detail.analytics === true) {
              loadGoogleAnalytics();
            }
          });
        })();
      </script>
    <meta name="sentry-trace" content="9e6dbf4a84d0428aa6c0348449c4b00b-8a0437d4947446cd">
<meta name="baggage" content="sentry-trace_id=9e6dbf4a84d0428aa6c0348449c4b00b,sentry-sample_rand=0.146751,sentry-environment=production,sentry-public_key=9da18f2ba788078f688673348606e896,sentry-org_id=4505542864470016">
  </head>

  <body >
    
  <style>
    :root { --announcement-height: 36px; }
  </style>
  <div id="site-announcement-bar"
       class="bg-[color:var(--color-root-dark)] text-white text-center py-2 px-4 text-sm font-source-sans-3 fixed w-full top-0 z-[60] leading-snug">
      <a class="underline hover:opacity-90" href="/kailash-yatra/guidelines">Kailash Yatra Guidelines and Important Information -&gt;</a>
  </div>
  <script>
    (function () {
      var bar = document.getElementById('site-announcement-bar');
      if (!bar) return;
      function update() {
        document.documentElement.style.setProperty('--announcement-height', bar.offsetHeight + 'px');
      }
      update();
      window.addEventListener('resize', update);
      window.addEventListener('load', update);
      document.addEventListener('turbo:load', update);
    })();
  </script>

<!-- Top Bar (Desktop Only) -->
<div class="hidden lg:block bg-[color:var(--color-earth-dark)] text-white py-2 fixed w-full z-50" style="top: var(--announcement-height)">
  <div class="container mx-auto px-6 flex justify-between items-center">
    <!-- Social Icons (Left Side) -->
    <div class="flex items-center space-x-3">
      <a href="https://www.instagram.com/thesatsangfoundationofficial/" target="_blank" rel="noopener noreferrer" aria-label="Instagram" class="text-white hover:text-[color:var(--color-earth-light)] transition-colors duration-200">
        <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
          <path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.40s-.644-1.44-1.439-1.44z"/>
        </svg>
      </a>
      <a href="https://www.youtube.com/@TheSatsangFoundation" target="_blank" rel="noopener noreferrer" aria-label="YouTube" class="text-white hover:text-[color:var(--color-earth-light)] transition-colors duration-200">
        <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
          <path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/>
        </svg>
      </a>
      <a href="https://t.me/SriMOfficial/" target="_blank" rel="noopener noreferrer" aria-label="Telegram" class="text-white hover:text-[color:var(--color-earth-light)] transition-colors duration-200">
        <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
          <path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.894 8.221l-1.97 9.28c-.145.658-.537.818-1.084.508l-3-2.21-1.446 1.394c-.14.18-.357.295-.6.295-.002 0-.003 0-.005 0l.213-3.054 5.56-5.022c.24-.213-.054-.334-.373-.121l-6.869 4.326-2.96-.924c-.64-.203-.658-.64.135-.954l11.566-4.458c.538-.196 1.006.128.832.941z"/>
        </svg>
      </a>
      <a href="https://www.facebook.com/TheSatsangFoundationOfficial/" target="_blank" rel="noopener noreferrer" aria-label="Facebook" class="text-white hover:text-[color:var(--color-earth-light)] transition-colors duration-200">
        <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
          <path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>
        </svg>
      </a>
    </div>
    
    <!-- Action Buttons (Right Side) -->
    <div class="flex items-center space-x-4">
      <a class="text-white font-body font-light text-xs px-4 py-1 hover:bg-[color:var(--color-wood-dark)] transition-colors tracking-wide rounded-full" href="/get-involved/volunteer">VOLUNTEER</a>
      <a target="_blank" rel="noopener noreferrer" class="text-white font-body font-light text-xs px-4 py-1 hover:bg-orange-600 transition-colors tracking-wide rounded-full" href="https://app.satsang-foundation.org/donate">DONATE</a>
    </div>
  </div>
</div>

<!-- Header -->
<style>
  /* Improve flyout behavior */
  .group:hover .group-hover\:visible {
    visibility: visible;
    z-index: 50;
  }
  
  /* Ensure nested flyouts appear on hover */
  [class*="group/"] > div:last-child {
    z-index: 51;
  }
  
  /* Add slight delay to prevent accidental hover-off */
  [class*="group/"] > div:last-child {
    transition-delay: 0.1s;
  }
  
  /* Header scroll styles - Default to transparent state */
  #main-header {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border-bottom: 1px solid transparent;
    top: var(--announcement-height);
  }

  @media (min-width: 1024px) {
    #main-header {
      top: calc(var(--announcement-height) + 40px);
    }
  }
  
  /* Default nav items to white (transparent state) */
  #main-header .nav-item {
    color: white;
  }
  
  #main-header .burger-line {
    background-color: white;
  }
  
  /* Logo visibility - default to white logo (transparent state) */
  #main-header .header-logo-white {
    display: block;
  }
  
  #main-header .header-logo-dark {
    display: none;
  }
  
  /* Nav item colors with smooth transitions */
  #main-header .nav-item {
    transition: color 0.3s ease, background-color 0.3s ease;
  }
  
  #main-header .nav-item svg {
    transition: color 0.3s ease;
  }
  
  /* Mobile burger menu lines */
  #main-header .burger-line {
    transition: background-color 0.3s ease;
  }
  
  /* Logo transitions */
  #main-header .header-logo {
    transition: filter 0.3s ease;
  }
  
  /* TRANSPARENT STATE (at top of page - scrollY <= 100) */
  #main-header.transparent {
    background-color: transparent !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom-color: transparent !important;
    border-bottom: 1px solid transparent !important;
  }
  
  #main-header.transparent .nav-item {
    color: white !important;
  }
  
  #main-header.transparent .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
  }
  
  #main-header.transparent .nav-item svg {
    color: white !important;
    stroke: white !important;
  }
  
  #main-header.transparent .burger-line {
    background-color: white !important;
  }
  
  /* Transparent state - show white logo */
  #main-header.transparent .header-logo-white {
    display: block !important;
  }
  
  #main-header.transparent .header-logo-dark {
    display: none !important;
  }
  
  /* SCROLLED STATE (after scrolling - scrollY > 100) */
  #main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
  }
  
  #main-header.scrolled .nav-item {
    color: rgb(75, 85, 99) !important;
  }
  
  #main-header.scrolled .nav-item:hover {
    background-color: rgb(249, 250, 251) !important;
    color: rgb(28, 25, 23) !important;
  }
  
  #main-header.scrolled .nav-item svg {
    color: rgb(75, 85, 99) !important;
    stroke: rgb(75, 85, 99) !important;
  }
  
  #main-header.scrolled .burger-line {
    background-color: rgb(17, 24, 39) !important;
  }
  
  /* Scrolled state - show dark logo */
  #main-header.scrolled .header-logo-white {
    display: none !important;
  }
  
  #main-header.scrolled .header-logo-dark {
    display: block !important;
  }
</style>
<header id="main-header" class="fixed w-full z-40" data-transparent-on-home="true">
  <div class="container mx-auto px-6 py-3">
    <!-- Main row with logo, navigation, and donate button -->
    <div class="flex items-center">
      <!-- Logo - Desktop -->
      <div class="hidden lg:flex items-center mr-4">
        <a href="/">
          <img alt="The Satsang Foundation" class="header-logo-white h-10 w-auto hover:opacity-80 transition-all duration-300" width="500" height="168" src="/assets/TSF-logo-white-9e647016.webp" />
          <img alt="The Satsang Foundation" class="header-logo-dark h-10 w-auto hover:opacity-80 transition-all duration-300" width="500" height="168" src="/assets/TSF-logo-dark-ae96e6f4.webp" />
</a>      </div>
      
      <!-- Logo - Mobile -->
      <div class="flex lg:hidden items-center mr-4">
        <a href="/">
          <img alt="The Satsang Foundation" class="header-logo-white h-10 w-auto hover:opacity-80 transition-all duration-300" width="80" height="83" src="/assets/TSF-small-logo-white-bd24d89a.webp" />
          <img alt="The Satsang Foundation" class="header-logo-dark h-10 w-auto hover:opacity-80 transition-all duration-300" width="500" height="517" src="/assets/TSF-small-logo-black-41751369.webp" />
</a>      </div>
      
      <!-- Spacer to push nav to the right -->
      <div class="flex-grow"></div>
      
      <!-- Desktop Navigation Menu -->
      <nav class="hidden lg:block">
        <ul class="flex items-center space-x-6">
          <!-- Sri M with dropdown -->
          <li class="relative group">
            <button class="nav-item flex items-center space-x-1 text-gray-600 hover:text-[color:var(--color-earth-dark)] font-body font-medium text-sm tracking-wide transition-all duration-200 py-2 px-3 rounded-md hover:bg-gray-50">
              <span>Sri M</span>
              <svg class="w-3 h-3 transition-transform duration-200 group-hover:rotate-180" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
              </svg>
            </button>
            <div class="absolute left-0 mt-0 w-64 bg-white rounded-b-lg rounded-tr-lg shadow-xl border border-gray-100 border-t-0 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
              <div class="py-1">
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/sri-m/public-programmes">Public Programmes</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/sri-m/about">About Sri M</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/sri-m/kriya-yoga">Kriya Yoga</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/sri-m/words">Sri M&#39;s Words</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/sri-m/quotes">Quotes</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/sri-m/books">Books</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/sri-m/talks-videos">Videos</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/sri-m/meet">Meet Sri M</a>
              </div>
            </div>
          </li>

          <!-- About with dropdown -->
          <li class="relative group">
            <a class="nav-item flex items-center space-x-1 text-gray-600 hover:text-[color:var(--color-earth-dark)] font-body font-medium text-sm tracking-wide transition-all duration-200 py-2 px-3 rounded-md hover:bg-gray-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--color-earth-light)]" href="/about">
              <span>About us</span>
</a>            <div class="absolute left-0 mt-0 w-64 bg-white rounded-b-lg rounded-tr-lg shadow-xl border border-gray-100 border-t-0 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
              <div class="py-1">
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/about/madanapalle-ashram">The Madanapalle Ashram</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/posts-and-updates">Posts and Updates</a>
              </div>
            </div>
          </li>

          <!-- Initiatives with dropdown -->
          <li class="relative group">
            <a class="nav-item flex items-center space-x-1 text-gray-600 hover:text-[color:var(--color-earth-dark)] font-body font-medium text-sm tracking-wide transition-all duration-200 py-2 px-3 rounded-md hover:bg-gray-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--color-earth-light)]" href="/initiatives">
              <span>Initiatives</span>
</a>            <div class="absolute left-0 mt-0 w-64 bg-white rounded-b-lg rounded-tr-lg shadow-xl border border-gray-100 border-t-0 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
              <div class="py-1">
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/initiatives/environment">Environment</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/initiatives/education">Education</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/initiatives/health-and-wellness">Health and Wellness</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/initiatives/yoga-and-consciousness">Yoga and Consciousness</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/initiatives/seva-and-serving-humanity">Seva and Serving Humanity</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/initiatives/sacred-spaces">Sacred Spaces</a>
              </div>
            </div>
          </li>

          <!-- Events with dropdown and nested flyouts -->
          <li class="relative group">
            <a class="nav-item flex items-center space-x-1 text-gray-600 hover:text-[color:var(--color-earth-dark)] font-body font-medium text-sm tracking-wide transition-all duration-200 py-2 px-3 rounded-md hover:bg-gray-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--color-earth-light)]" href="/events">
              <span>Events</span>
</a>            <div class="absolute left-0 mt-0 w-64 bg-white rounded-b-lg rounded-tr-lg shadow-xl border border-gray-100 border-t-0 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
              <div class="py-1">
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/events">Upcoming Events</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/events#recent-events">Recent Events</a>
              </div>
            </div>
          </li>

          <!-- Get Involved with dropdown (placeholder) -->
          <li class="relative group">
            <a class="nav-item flex items-center space-x-1 text-gray-600 hover:text-[color:var(--color-earth-dark)] font-body font-medium text-sm tracking-wide transition-all duration-200 py-2 px-3 rounded-md hover:bg-gray-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--color-earth-light)]" href="/get-involved">
              <span>Get involved</span>
</a>            <div class="absolute left-0 mt-0 w-64 bg-white rounded-b-lg rounded-tr-lg shadow-xl border border-gray-100 border-t-0 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
              <div class="py-1">
                <a target="_blank" rel="noopener noreferrer" class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="https://app.satsang-foundation.org/donate">Donate</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/get-involved/volunteer">Volunteer</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/get-involved/giving-back">Giving Back</a>
              </div>
            </div>
          </li>

          <!-- Contact with dropdown -->
          <li class="relative group">
            <a class="nav-item flex items-center space-x-1 text-gray-600 hover:text-[color:var(--color-earth-dark)] font-body font-medium text-sm tracking-wide transition-all duration-200 py-2 px-3 rounded-md hover:bg-gray-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--color-earth-light)]" href="/contact">
              <span>Contact us</span>
</a>            <div class="absolute left-0 mt-0 w-64 bg-white rounded-b-lg rounded-tr-lg shadow-xl border border-gray-100 border-t-0 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
              <div class="py-1">
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/contact">Contact Details</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/contact#centres">Centres</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/contact/news-and-updates">News and Updates</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/subscribe">Subscribe</a>
                <a target="_blank" rel="noopener noreferrer" class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/newsletter">Newsletter</a>
                <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md mx-1" href="/contact/socials">Socials</a>
              </div>
            </div>
          </li>
        </ul>
      </nav>
      
      <!-- Mobile menu button and donate button -->
      <div class="lg:hidden flex items-center space-x-4">
        <!-- Mobile menu toggle -->
        <button id="mobile-menu-toggle" class="p-2 hover:bg-gray-100 rounded-md transition-colors">
          <div class="burger-line w-6 h-0.5 bg-gray-900 mb-1 transition-all duration-300" id="burger-line-1"></div>
          <div class="burger-line w-6 h-0.5 bg-gray-900 mb-1 transition-all duration-300" id="burger-line-2"></div>
          <div class="burger-line w-6 h-0.5 bg-gray-900 transition-all duration-300" id="burger-line-3"></div>
        </button>
        
        <!-- Donate button (mobile) -->
        <button class="bg-[color:var(--color-root-dark)] hover:bg-orange-600 text-white font-body font-light text-xs px-6 py-2 transition-colors tracking-wide rounded-full">
          DONATE
        </button>
      </div>
    </div>
    
    <!-- Mobile Navigation Menu -->
    <div id="mobile-menu" class="lg:hidden hidden">
      <div class="mt-4 mb-6 bg-white/90 backdrop-blur-lg rounded-lg shadow-lg border border-gray-200/50">
        <div class="py-1">
          <!-- Sri M Mobile Menu -->
          <div class="px-4 py-1">
            <button id="mobile-sri-m-toggle" class="flex items-center justify-between w-full text-gray-600 font-body font-medium text-base tracking-wide py-3">
              <span>Sri M</span>
              <svg class="w-4 h-4 transition-transform duration-200" id="mobile-sri-m-arrow" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
              </svg>
            </button>
            <div id="mobile-sri-m-menu" class="hidden mt-2 ml-4 space-y-1.5">
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/sri-m/public-programmes">Public Programmes</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/sri-m/about">About Sri M</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/sri-m/kriya-yoga">Kriya Yoga</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/sri-m/words">Sri M&#39;s Words</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/sri-m/quotes">Quotes</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/sri-m/books">Books</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/sri-m/talks-videos">Videos</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/sri-m/meet">Meet Sri M</a>
            </div>
          </div>
          
          <!-- About Mobile Menu -->
          <div class="px-4 py-1 border-t border-gray-100">
            <div class="flex items-center justify-between py-3">
              <a class="flex-1 text-gray-600 font-body font-medium text-base tracking-wide" href="/about">
                <span>About us</span>
</a>              <button id="mobile-about-toggle" class="p-2 -mr-2">
                <svg class="w-4 h-4 transition-transform duration-200 text-gray-600" id="mobile-about-arrow" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
                </svg>
              </button>
            </div>
            <div id="mobile-about-menu" class="hidden mt-2 ml-4 space-y-1.5">
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/about/madanapalle-ashram">The Madanapalle Ashram</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/posts-and-updates">Posts and Updates</a>
            </div>
          </div>

          <!-- Initiatives Mobile Menu -->
          <div class="px-4 py-1 border-t border-gray-100">
            <div class="flex items-center justify-between py-3">
              <a class="flex-1 text-gray-600 font-body font-medium text-base tracking-wide" href="/initiatives">
                <span>Initiatives</span>
</a>              <button id="mobile-initiatives-toggle" class="p-2 -mr-2">
                <svg class="w-4 h-4 transition-transform duration-200 text-gray-600" id="mobile-initiatives-arrow" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
                </svg>
              </button>
            </div>
            <div id="mobile-initiatives-menu" class="hidden mt-2 ml-4 space-y-1.5">
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/initiatives/environment">Environment</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/initiatives/education">Education</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/initiatives/health-and-wellness">Health and Wellness</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/initiatives/yoga-and-consciousness">Yoga and Consciousness</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/initiatives/seva-and-serving-humanity">Seva and Serving Humanity</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/initiatives/sacred-spaces">Sacred Spaces</a>
            </div>
          </div>
          
          <!-- Events Mobile Menu -->
          <div class="px-4 py-1 border-t border-gray-100">
            <div class="flex items-center justify-between py-3">
              <a class="flex-1 text-gray-600 font-body font-medium text-base tracking-wide" href="/events">
                <span>Events</span>
</a>              <button id="mobile-events-toggle" class="p-2 -mr-2">
                <svg class="w-4 h-4 transition-transform duration-200 text-gray-600" id="mobile-events-arrow" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
                </svg>
              </button>
            </div>
            <div id="mobile-events-menu" class="hidden mt-2 ml-4 space-y-1.5">
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/events">Upcoming Events</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/events#recent-events">Recent Events</a>
            </div>
          </div>

          <!-- Get Involved Mobile Menu -->
          <div class="px-4 py-1 border-t border-gray-100">
            <div class="flex items-center justify-between py-3">
              <a class="flex-1 text-gray-600 font-body font-medium text-base tracking-wide" href="/get-involved">
                <span>Get involved</span>
</a>              <button id="mobile-get-involved-toggle" class="p-2 -mr-2">
                <svg class="w-4 h-4 transition-transform duration-200 text-gray-600" id="mobile-get-involved-arrow" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
                </svg>
              </button>
            </div>
            <div id="mobile-get-involved-menu" class="hidden mt-2 ml-4 space-y-1.5">
              <a target="_blank" rel="noopener noreferrer" class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="https://app.satsang-foundation.org/donate">Donate</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/get-involved/volunteer">Volunteer</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/get-involved/giving-back">Giving Back</a>
            </div>
          </div>

          <!-- Contact Mobile Menu -->
          <div class="px-4 py-1 border-t border-gray-100">
            <div class="flex items-center justify-between py-3">
              <a class="flex-1 text-gray-600 font-body font-medium text-base tracking-wide" href="/contact">
                <span>Contact us</span>
</a>              <button id="mobile-contact-toggle" class="p-2 -mr-2">
                <svg class="w-4 h-4 transition-transform duration-200 text-gray-600" id="mobile-contact-arrow" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
                </svg>
              </button>
            </div>
            <div id="mobile-contact-menu" class="hidden mt-2 ml-4 space-y-1.5">
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/contact">Contact Details</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/contact#centres">Centres</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/contact/news-and-updates">News and Updates</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/subscribe">Subscribe</a>
              <a target="_blank" rel="noopener noreferrer" class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/newsletter">Newsletter</a>
              <a class="block px-3 py-2 text-sm text-gray-600 hover:bg-gray-50 hover:text-[color:var(--color-earth-dark)] font-body font-medium tracking-wide transition-all duration-150 rounded-md" href="/contact/socials">Socials</a>
            </div>
          </div>

          <!-- Admin Buttons (Mobile Only) -->

          <!-- Volunteer Button (Mobile Only) -->
          <div class="px-4 py-3 border-t border-gray-100">
            <a class="bg-[color:var(--color-root-dark)] hover:bg-orange-600 text-white font-body font-light text-xs px-6 py-2 transition-colors tracking-wide rounded-full w-full block text-center" href="/get-involved/volunteer">VOLUNTEER</a>
          </div>

          <!-- Other Mobile Menu Items -->
          <a class="hidden" href="/get-involved">Get involved</a>
        </div>
      </div>
    </div>
  </div>
</header>

<!-- Mobile Menu JavaScript -->
<script>
  function initializeMobileMenu() {
    // Mobile menu toggle
    const mobileMenuToggle = document.getElementById('mobile-menu-toggle');
    const mobileMenu = document.getElementById('mobile-menu');
    const burgerLine1 = document.getElementById('burger-line-1');
    const burgerLine2 = document.getElementById('burger-line-2');
    const burgerLine3 = document.getElementById('burger-line-3');
    
    if (mobileMenuToggle) {
      // Remove existing event listeners to prevent duplicates
      const newToggle = mobileMenuToggle.cloneNode(true);
      mobileMenuToggle.parentNode.replaceChild(newToggle, mobileMenuToggle);
      
      newToggle.addEventListener('click', function() {
        mobileMenu.classList.toggle('hidden');
        
        // Animate burger menu
        if (mobileMenu.classList.contains('hidden')) {
          burgerLine1.style.transform = '';
          burgerLine2.style.opacity = '1';
          burgerLine3.style.transform = '';
        } else {
          burgerLine1.style.transform = 'rotate(45deg) translate(6px, 6px)';
          burgerLine2.style.opacity = '0';
          burgerLine3.style.transform = 'rotate(-45deg) translate(6px, -6px)';
        }
      });
    }
    
    // Helper function to setup dropdown toggle
    function setupDropdown(toggleId, menuId, arrowId) {
      const toggle = document.getElementById(toggleId);
      const menu = document.getElementById(menuId);
      const arrow = document.getElementById(arrowId);
      
      if (toggle && menu && arrow) {
        const newToggle = toggle.cloneNode(true);
        toggle.parentNode.replaceChild(newToggle, toggle);
        
        newToggle.addEventListener('click', function(e) {
          e.preventDefault();
          e.stopPropagation();
          menu.classList.toggle('hidden');
          arrow.style.transform = menu.classList.contains('hidden') ? '' : 'rotate(180deg)';
        });
      }
    }
    
    // Setup all mobile dropdowns
    setupDropdown('mobile-sri-m-toggle', 'mobile-sri-m-menu', 'mobile-sri-m-arrow');
    setupDropdown('mobile-about-toggle', 'mobile-about-menu', 'mobile-about-arrow');
    setupDropdown('mobile-initiatives-toggle', 'mobile-initiatives-menu', 'mobile-initiatives-arrow');
    setupDropdown('mobile-events-toggle', 'mobile-events-menu', 'mobile-events-arrow');
    setupDropdown('mobile-get-involved-toggle', 'mobile-get-involved-menu', 'mobile-get-involved-arrow');
    setupDropdown('mobile-contact-toggle', 'mobile-contact-menu', 'mobile-contact-arrow');
  }
  
  // Initialize on page load and after Turbo navigation
  document.addEventListener('DOMContentLoaded', initializeMobileMenu);
  document.addEventListener('turbo:load', initializeMobileMenu);
  
  // Clean up when Turbo caches the page
  document.addEventListener('turbo:before-cache', function() {
    // Close mobile menu when navigating away
    const mobileMenu = document.getElementById('mobile-menu');
    if (mobileMenu && !mobileMenu.classList.contains('hidden')) {
      mobileMenu.classList.add('hidden');
      
      // Reset burger animation
      const burgerLine1 = document.getElementById('burger-line-1');
      const burgerLine2 = document.getElementById('burger-line-2');
      const burgerLine3 = document.getElementById('burger-line-3');
      
      if (burgerLine1) burgerLine1.style.transform = '';
      if (burgerLine2) burgerLine2.style.opacity = '1';
      if (burgerLine3) burgerLine3.style.transform = '';
    }
    
    // Close all dropdowns and reset arrows
    const dropdownMenus = [
      'mobile-sri-m-menu',
      'mobile-about-menu',
      'mobile-initiatives-menu',
      'mobile-events-menu',
      'mobile-get-involved-menu',
      'mobile-contact-menu'
    ];
    
    const dropdownArrows = [
      'mobile-sri-m-arrow',
      'mobile-about-arrow',
      'mobile-initiatives-arrow',
      'mobile-events-arrow',
      'mobile-get-involved-arrow',
      'mobile-contact-arrow'
    ];
    
    dropdownMenus.forEach(menuId => {
      const menu = document.getElementById(menuId);
      if (menu && !menu.classList.contains('hidden')) {
        menu.classList.add('hidden');
      }
    });
    
    dropdownArrows.forEach(arrowId => {
      const arrow = document.getElementById(arrowId);
      if (arrow) {
        arrow.style.transform = '';
      }
    });
  });
  
  // Header scroll effect
  function handleHeaderScroll() {
    const header = document.getElementById('main-header');
    if (!header) return;
    
    // Check if transparent effect should be enabled (only on homepage)
    const isHomePage = header.getAttribute('data-transparent-on-home') === 'true';
    
    if (!isHomePage) {
      // Not homepage - always use scrolled state
      header.classList.remove('transparent');
      header.classList.add('scrolled');
      return;
    }
    
    // Homepage - use transparent effect based on scroll position
    const scrollThreshold = 100; // Pixels to scroll before changing header
    const scrollY = window.scrollY || window.pageYOffset;
    
    if (scrollY <= scrollThreshold) {
      // At top - transparent with white text
      header.classList.remove('scrolled');
      header.classList.add('transparent');
    } else {
      // Scrolled down - show white background
      header.classList.remove('transparent');
      header.classList.add('scrolled');
    }
  }
  
  // Initialize scroll listener (only once)
  if (!window.headerScrollListenerInitialized) {
    // Use window property to avoid redeclaration issues with Turbo
    window.headerScrollTicking = false;
    
    window.addEventListener('scroll', function() {
      if (!window.headerScrollTicking) {
        window.requestAnimationFrame(function() {
          handleHeaderScroll();
          window.headerScrollTicking = false;
        });
        window.headerScrollTicking = true;
      }
    }, { passive: true });
    
    window.headerScrollListenerInitialized = true;
  }
  
  // Initialize header state immediately - run as soon as this script executes
  handleHeaderScroll();
  
  // Also initialize on page load events
  if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', handleHeaderScroll);
  } else {
    handleHeaderScroll();
  }
  
  document.addEventListener('turbo:load', handleHeaderScroll);
  document.addEventListener('turbo:render', handleHeaderScroll);
</script> 

    <!-- Flash Messages -->

    <!-- Main content -->
    <main class="lg:pt-10">
      <!-- Hero Section -->
<div class="w-full relative min-h-[600px] md:min-h-[700px] flex items-end md:items-center overflow-hidden">
  <img src="/assets/sri-m-hero-1-b116c6c5.webp"
       alt=""
       fetchpriority="high"
       decoding="sync"
       class="absolute inset-0 w-full h-full object-cover object-top z-0">
  <div class="absolute inset-0 bg-black/40 z-0"></div>

  <div class="w-full pl-6 pr-8 pb-8 md:pb-0 md:pl-15 lg:pl-20 relative z-10">
    <div class="max-w-3xl">
      <h1 class="font-playfair-display text-white text-[27px] md:text-5xl lg:text-6xl font-semibold leading-tight text-left">
        <span class="block">'sanghacchadhvam…<br>samvadadhvam….</span>
        <span class="block">samvo manaamsi jaanatam..</span>
      </h1>

      <p class="mt-6 font-['Dancing_Script'] text-[color:var(--color-earth-light)] text-xl md:text-3xl lg:text-4xl leading-snug">
        "May we walk together, let's study together, with our minds put together, may we understand"
      </p>

      <div class="mt-8 flex flex-wrap gap-4">
        <a class="inline-flex items-center gap-2 bg-white text-[color:var(--color-earth-dark)] px-5 py-2.5 rounded-full font-source-sans-3 text-sm font-semibold hover:bg-[color:var(--color-earth-light)] transition-all duration-200 shadow-lg" href="/sri-m/public-programmes">
          <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path>
          </svg>
          Sri M's Public Programmes
</a>        <a class="inline-flex items-center gap-2 border border-white text-white px-5 py-2.5 rounded-full font-source-sans-3 text-sm font-semibold hover:bg-white/20 transition-all duration-200" href="/about">
          About The Foundation
</a>      </div>
    </div>
  </div>
</div>

<!-- Daily Quote Section -->
<div class="bg-white py-14">
  <div class="container max-w-4xl mx-auto px-6 md:px-8">
    <div class="text-center">
      <svg class="w-10 h-10 mx-auto mb-6 text-[color:var(--color-earth-light)]" fill="currentColor" viewBox="0 0 24 24">
        <path d="M14.017 21v-7.391c0-5.704 3.731-9.57 8.983-10.609l.995 2.151c-2.432.917-3.995 3.638-3.995 5.849h4v10h-9.983zm-14.017 0v-7.391c0-5.704 3.748-9.57 9-10.609l.996 2.151c-2.433.917-3.996 3.638-3.996 5.849h3.983v10h-9.983z"/>
      </svg>

      <blockquote class="font-playfair-display text-[color:var(--color-earth-dark)] text-xl md:text-2xl lg:text-3xl font-normal leading-relaxed mb-6">
        In the process of delving into the mind, there is a lot of churning. When you churn, just like the ancient ‘Samudra Manthan’ (churning of the ocean), the first thing that emerges is poison. Unfortunately for us, there is no Shiva around to consume it. This poison must appear first and, then only will the Amrit (nectar) come.
      </blockquote>

      <a class="inline-flex items-center gap-2 text-[color:var(--color-earth-dark)] font-source-sans-3 text-sm font-semibold hover:underline transition-all duration-200 mt-8" href="/sri-m/quotes">
        More Quotes by Sri M
        <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8l4 4m0 0l-4 4m4-4H3"/>
        </svg>
</a>    </div>
  </div>
</div>

<!-- Tabbed Section: About Sri M, Books, Kriya Yoga -->
<div class="bg-white py-12">
  <div class="container max-w-6xl mx-auto px-6 md:px-8">
    <div data-controller="tabs">
      <!-- Tab Navigation -->
      <div class="flex justify-center border-b border-gray-200 mb-10">
        <button data-action="click->tabs#showTab"
                data-tabs-target="tab"
                data-tab="about"
                class="px-3 md:px-10 py-3 text-sm md:text-sm font-source-sans-3 text-[color:var(--color-root-dark)] border-b-2 border-[color:var(--color-accent-sunrise)] bg-white focus:outline-none tab-active">
          About Sri M
        </button>
        <button data-action="click->tabs#showTab"
                data-tabs-target="tab"
                data-tab="books"
                class="px-3 md:px-10 py-3 text-sm md:text-sm font-source-sans-3 text-gray-500 border-b-2 border-transparent hover:text-[color:var(--color-root-dark)] hover:border-gray-300 focus:outline-none">
          Books
        </button>
        <button data-action="click->tabs#showTab"
                data-tabs-target="tab"
                data-tab="kriya"
                class="px-3 md:px-10 py-3 text-sm md:text-sm font-source-sans-3 text-gray-500 border-b-2 border-transparent hover:text-[color:var(--color-root-dark)] hover:border-gray-300 focus:outline-none">
          Kriya Yoga
        </button>
      </div>

      <!-- Tab Content -->
      <div data-tabs-target="contentWrapper" class="tab-content relative transition-all duration-300">
        <!-- About Sri M Tab -->
        <div data-tabs-target="content" data-tab="about" class="tab-panel">
          <div class="max-w-md mx-auto">
            <p class="text-gray-700 font-source-sans-3 text-sm leading-relaxed mb-4">
            Sri M, a spiritual teacher, social reformer, educationist, author, and global speaker, has inspired many with his transformational journey. Born into a Muslim family on November 6, 1949, in Thiruvananthapuram, Kerala, he left home at the age of 19 to search for a master in the Himalayas, where he spent three years under the guidance of Sri Maheshwarnath Babaji, a senior disciple of Sri Guru Babaji. He was initiated into the Nath tradition and later instructed to return to the plains to carry forward his spiritual mission.
            </p>
            <p class="text-gray-700 font-source-sans-3 text-sm leading-relaxed mb-4">
            Sri M initiated the <span class="text-[color:var(--color-earth-dark)] italic">Walk of Hope</span> in 2015, a padayatra for peace, harmony, and social unity. Covering 7,500 km in 16 months, it brought together people from all walks of life, engaging people at the grassroots level. <span class="text-[color:var(--color-earth-dark)] italic">The Manav Ekta Mission</span>, another movement founded by Sri M, works towards the oneness of humanity. It seeks to transcend religious, racial, geographical, cultural, and ideological differences, encouraging individuals to see the good in every human being.
            </p>
            <p class="text-gray-700 font-source-sans-3 text-sm leading-relaxed mb-4">
            His mission extends globally through centres he has founded in the USA, UK, Switzerland, Australia, New Zealand, Malaysia, and Singapore. As a speaker he has addressed the <span class="text-[color:var(--color-earth-dark)] italic">United Nations</span>, the <span class="text-[color:var(--color-earth-dark)] italic">World Bank</span>, and the <span class="text-[color:var(--color-earth-dark)] italic">World Economic Forum</span>. An accomplished author, educationist, and painter, he is the Chancellor of Maulana Azad National Urdu University, and serves on the faculty of IIT Delhi and as Honorary Professor of Human Values at IIM Calcutta.
            </p>
            <p class="text-gray-700 font-source-sans-3 text-sm leading-relaxed mb-6">
            Sri M received the prestigious <span class="text-[color:var(--color-earth-dark)] italic">Padma Bhushan</span> in January 2020, one of the highest civilian awards of India, for distinguished service of highest order in spirituality, and an <span class="text-[color:var(--color-earth-dark)] italic">Honorary Doctorate</span> from IIM Calcutta in 2025. His central teaching — <em>"Go to the core"</em> — urges seekers to transcend dogma and discover the universal essence within through self-inquiry and Kriya Yoga.
            </p>
            <div class="text-center">
              <a class="inline-flex items-center gap-3 bg-[#AA945E] text-white px-8 py-2.5 font-source-sans-3 font-light text-sm rounded-full hover:bg-opacity-90 transition-all duration-200 mx-auto" href="/sri-m/about">
                <img alt="TSF Logo" class="h-5 w-auto" loading="lazy" decoding="async" src="/assets/TSF-small-logo-white-bd24d89a.webp" />
                <span>Learn More About Sri M</span>
</a>            </div>
          </div>
        </div>

        <!-- Books Tab -->
        <div data-tabs-target="content" data-tab="books" class="tab-panel hidden">
          <div class="max-w-4xl mx-auto">
            <div class="flex flex-col items-center justify-center gap-6 lg:gap-8 w-full">
              <!-- Image -->
              <div class="w-full max-w-lg">
                <img alt="Books by Sri M" class="w-full h-auto rounded-lg shadow-md" loading="lazy" decoding="async" width="1024" height="455" src="/assets/books-image-d4c9720b.webp" />
              </div>

              <!-- Text -->
              <div class="max-w-2xl w-full text-center md:text-left">
                <p class="text-gray-700 font-source-sans-3 text-sm md:text-base leading-relaxed">
                  Sri M has written several books across diverse genres including the bestselling memoir- Apprenticed to a Himalayan Master: A Yogi's Autobiography. His works have been translated in multiple languages and are widely accessible.
                </p>
              </div>

              <!-- Button -->
              <a class="inline-flex items-center gap-3 bg-[#AA945E] text-white px-6 py-2.5 font-source-sans-3 font-light text-sm rounded-full hover:bg-opacity-90 transition-all duration-200 self-center" href="/sri-m/books">
                <img alt="TSF Logo" class="h-5 w-auto" loading="lazy" decoding="async" src="/assets/TSF-small-logo-white-bd24d89a.webp" />
                <span>Explore Sri M's Books</span>
</a>            </div>
          </div>
        </div>

        <!-- Kriya Yoga Tab -->
        <div data-tabs-target="content" data-tab="kriya" class="tab-panel hidden">
          <div class="max-w-md mx-auto">
            <p class="text-gray-700 font-source-sans-3 text-sm leading-relaxed mb-4">
            The aim of Kriya Yoga is to help the aspirant advance towards freedom from the constant fluctuations of a disturbed mind. It is a form of rhythmic breathing by which you can manipulate your breathing and connect it to the energy, Prana, and make it ascend to higher levels of awareness.
            </p>
            <p class="text-gray-700 font-source-sans-3 text-sm leading-relaxed mb-6">
            Rooted in the Nath Sampradaya tradition, Kriya Yoga encompasses asanas, pranayama, bandhas, and mudras — practices perfected over centuries. Sri M offers initiation into these practices, guiding seekers on a path toward stillness and self-realization.
            </p>
            <div class="text-center">
              <a class="inline-flex items-center gap-3 bg-[#AA945E] text-white px-8 py-2.5 font-source-sans-3 font-light text-sm rounded-full hover:bg-opacity-90 transition-all duration-200 mx-auto" href="/sri-m/kriya-yoga">
                <img alt="TSF Logo" class="h-5 w-auto" loading="lazy" decoding="async" src="/assets/TSF-small-logo-white-bd24d89a.webp" />
                <span>Learn More About Kriya Yoga</span>
</a>            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<!-- Carousel Section -->
<div class="bg-white py-6 md:py-12">
  <div class="container max-w-6xl mx-auto px-0 md:px-8">
    <div class="relative overflow-hidden rounded-none md:rounded-lg shadow-lg"
         data-controller="carousel">
       <div data-carousel-target="track" class="flex transition-transform duration-500 ease-in-out">
          <div data-carousel-target="slide" class="w-full flex-shrink-0">
              <a class="block relative h-72 md:h-96 lg:h-[500px] bg-gray-900" href="/sri-m/public-programmes">
                <img alt="Sri M Public Programs" class="w-full h-full object-contain" loading="eager" decoding="auto" src="/assets/Sri-M-Public-Programs-0fafaadf.webp" />
</a>          </div>
          <div data-carousel-target="slide" class="w-full flex-shrink-0">
              <a class="block relative h-72 md:h-96 lg:h-[500px] bg-gray-900" href="/posts-and-updates/kailash-manasarovar-yatra-with-sri-m">
                <img alt="Kailash - Manasarovar Yatra with Sri M" class="w-full h-full object-contain" loading="lazy" decoding="async" src="/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODYwLCJwdXIiOiJibG9iX2lkIn19--fcd3a097f253f7c3b64ced2f90f616de85dd838b/kailash-mansarovar.webp" />
</a>          </div>
          <div data-carousel-target="slide" class="w-full flex-shrink-0">
              <a class="block relative h-72 md:h-96 lg:h-[500px] bg-gray-900" target="_blank" rel="noopener noreferrer" href="/newsletter">
                <img alt="April-2026-Newsletter" class="w-full h-full object-contain" loading="lazy" decoding="async" src="https://pub-e33c19983bde494297725c271bcbd6ba.r2.dev/rp3nskdpqyt3q2f2rho4dipralgz" />
</a>          </div>
          <div data-carousel-target="slide" class="w-full flex-shrink-0">
              <a class="block relative h-72 md:h-96 lg:h-[500px] bg-gray-900" href="/events/guru-purnima-2026-with-sri-m-at-madanapalle-save-the-date">
                <img alt="Guru Purnima 2026 Celebrations" class="w-full h-full object-contain" loading="lazy" decoding="async" src="https://pub-e33c19983bde494297725c271bcbd6ba.r2.dev/ksb1fav9x38b51n49wlcp5cdsgnv" />
</a>          </div>
      </div>

        <button data-action="click->carousel#prev"
                type="button"
                aria-label="Previous slide"
                class="absolute left-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white text-[color:var(--color-earth-dark)] p-3 rounded-full shadow-lg transition-all duration-200 z-10">
          <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />
          </svg>
        </button>

        <button data-action="click->carousel#next"
                type="button"
                aria-label="Next slide"
                class="absolute right-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white text-[color:var(--color-earth-dark)] p-3 rounded-full shadow-lg transition-all duration-200 z-10">
          <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
          </svg>
        </button>

        <div class="absolute bottom-6 left-1/2 -translate-x-1/2 flex gap-2 z-10">
            <button data-carousel-target="dot"
                    data-action="click->carousel#goToSlide"
                    data-slide="0"
                    class="w-3 h-3 rounded-full bg-white opacity-100 transition-all duration-200"></button>
            <button data-carousel-target="dot"
                    data-action="click->carousel#goToSlide"
                    data-slide="1"
                    class="w-3 h-3 rounded-full bg-white opacity-60 transition-all duration-200"></button>
            <button data-carousel-target="dot"
                    data-action="click->carousel#goToSlide"
                    data-slide="2"
                    class="w-3 h-3 rounded-full bg-white opacity-60 transition-all duration-200"></button>
            <button data-carousel-target="dot"
                    data-action="click->carousel#goToSlide"
                    data-slide="3"
                    class="w-3 h-3 rounded-full bg-white opacity-60 transition-all duration-200"></button>
        </div>
    </div>
  </div>
</div>

<!-- About The Satsang Foundation + Core Initiatives -->
<div class="bg-white py-16">
  <div class="container max-w-6xl mx-auto px-6 md:px-10">
    <!-- About TSF -->
    <div class="flex flex-col md:flex-row gap-8 md:gap-12 items-center md:items-start max-w-4xl mx-auto mb-16">
      <div class="w-full md:w-1/2 flex justify-center md:justify-start md:mt-7">
        <img alt="The Satsang Foundation emblem" class="w-52 md:w-full h-auto" loading="lazy" decoding="async" width="400" height="135" src="/assets/TSF-Final-Logo-black-0e870c62.webp" />
      </div>
      <div class="w-full md:w-1/2 flex flex-col justify-end">
        <div class="space-y-6 text-left">
          <p class="font-source-sans-3 text-black text-base leading-relaxed">
            Sri M led a quiet, working family life while preparing to share all that he had learnt and experienced through writing and teaching. A few years after his master's passing, Sri M received the signal to commence his teaching mission. He then established The Satsang Foundation as a home for spiritual seekers of all backgrounds, emphasizing service and inner transformation.
          </p>
          <p class="font-source-sans-3 text-[color:var(--color-earth-dark)] text-base leading-relaxed italic">
            The Satsang Foundation embodies the inclusive spirit of bringing together people from different backgrounds, religions and beliefs to live and work harmoniously in the world.
          </p>
        </div>
      </div>
    </div>

    <!-- Core Initiatives -->
    <h2 class="font-playfair-display font-bold text-[color:var(--color-earth-dark)] text-2xl md:text-2xl lg:text-3xl text-center mb-10">
      The <em>Core</em> of The Satsang Foundation
    </h2>

    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-8">
      <div class="text-center">
        <h3 class="font-playfair-display text-[color:var(--color-earth-dark)] text-xl font-semibold mb-3 italic">Environment</h3>
        <p class="font-source-sans-3 text-black text-sm leading-relaxed">
          protection and restoration of nature
        </p>
      </div>

      <div class="text-center">
        <h3 class="font-playfair-display text-[color:var(--color-earth-dark)] text-xl font-semibold mb-3 italic">Education</h3>
        <p class="font-source-sans-3 text-black text-sm leading-relaxed">
          without barriers for the underprivileged
        </p>
      </div>

      <div class="text-center">
        <h3 class="font-playfair-display text-[color:var(--color-earth-dark)] text-xl font-semibold mb-3 italic">Health & Wellness</h3>
        <p class="font-source-sans-3 text-black text-sm leading-relaxed">
          accessible healthcare and holistic well-being
        </p>
      </div>

      <div class="text-center">
        <h3 class="font-playfair-display text-[color:var(--color-earth-dark)] text-xl font-semibold mb-3 italic">Yoga & Consciousness</h3>
        <p class="font-source-sans-3 text-black text-sm leading-relaxed">
          spiritual growth and higher awareness
        </p>
      </div>

      <div class="text-center">
        <h3 class="font-playfair-display text-[color:var(--color-earth-dark)] text-xl font-semibold mb-3 italic">Seva & Serving Humanity</h3>
        <p class="font-source-sans-3 text-black text-sm leading-relaxed">
          compassionate service to all in need
        </p>
      </div>
    </div>

    <div class="flex flex-col md:flex-row justify-center gap-4 mt-12">
      <a class="bg-[color:var(--color-earth-dark)] text-white px-12 py-3 font-source-sans-3 font-light text-sm rounded-full hover:bg-opacity-90 transition-all duration-200 w-full md:w-80 text-center" href="/about">About the Satsang Foundation</a>
      <a class="bg-[color:var(--color-earth-dark)] text-white px-12 py-3 font-source-sans-3 font-light text-sm rounded-full hover:bg-opacity-90 transition-all duration-200 w-full md:w-80 text-center" href="/initiatives">Explore Initiatives</a>
    </div>
  </div>
</div>

<!-- Sacred Spaces Section -->
<div class="bg-white py-16">
  <div class="container max-w-4xl mx-auto px-8">
    <h2 class="font-playfair-display text-[color:var(--color-earth-dark)] text-3xl md:text-4xl font-normal text-center mb-12">
      Sacred Spaces
    </h2>

    <!-- Mobile Carousel (swipeable) -->
    <div class="md:hidden" data-controller="carousel">
      <div class="relative overflow-hidden">
        <div data-carousel-target="track" class="flex transition-transform duration-500 ease-in-out">
        <!-- Card 1: Madanapalle Ashram -->
        <div data-carousel-target="slide" class="w-full flex-shrink-0 px-1">
          <div class="bg-white rounded-lg border border-gray-300 overflow-hidden flex flex-col">
            <div class="h-80 overflow-hidden">
              <img alt="Madanapalle Ashram" class="w-full h-full object-cover" loading="lazy" decoding="async" width="700" height="466" src="/assets/madanapalle-ashram-7e7188d1.webp" />
            </div>
            <div class="p-6 flex flex-col flex-grow">
              <h3 class="font-playfair-display text-gray-700 text-lg md:text-xl font-semibold mb-4">
                Madanapalle Ashram
              </h3>
              <p class="font-source-sans-3 text-gray-700 text-sm leading-relaxed mb-6 flex-grow">
                Nestled in the peaceful town of Madanapalle, The Satsang Foundation Ashram, is a sanctuary for spiritual seekers. The sacred space has numerous quiet spots for contemplation and swadhyaya (Self-study).
              </p>
              <a class="inline-flex items-center gap-3 bg-[color:var(--color-earth-dark)] text-white px-6 py-2.5 font-source-sans-3 font-light text-sm rounded-full hover:bg-opacity-90 transition-all duration-200 w-fit mt-auto" aria-label="Learn more about Madanapalle Ashram" href="/about/madanapalle-ashram">
                <img alt="TSF Logo" class="h-5 w-auto" loading="lazy" decoding="async" src="/assets/TSF-small-logo-white-bd24d89a.webp" />
                <span>Learn More About Madanapalle Ashram</span>
</a>            </div>
          </div>
        </div>

        <!-- Card 2: Sacred Spaces -->
        <div data-carousel-target="slide" class="w-full flex-shrink-0 px-1">
          <div class="bg-white rounded-lg border border-gray-300 overflow-hidden flex flex-col">
            <div class="h-80 bg-gradient-to-br from-[color:var(--color-wood-light)] to-[color:var(--color-wood-dark)] flex items-center justify-center">
              <div class="text-center">
                <svg class="w-16 h-16 text-white mx-auto mb-2" fill="currentColor" viewBox="0 0 20 20">
                  <path fill-rule="evenodd" d="M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm12 12H4l4-8 3 6 2-4 3 6z" clip-rule="evenodd"/>
                </svg>
                <p class="text-white text-sm">Sacred Spaces</p>
              </div>
            </div>
            <div class="p-6 flex flex-col flex-grow">
              <h3 class="font-playfair-display text-gray-700 text-lg md:text-xl font-semibold mb-4">
                Sacred Spaces
              </h3>
              <p class="font-source-sans-3 text-gray-700 text-sm leading-relaxed mb-6 flex-grow">
                Sacred spaces consecrated by Sri M, in India and across the world for the spiritual upliftment of people, providing a space to connect with divine within.
              </p>
              <a class="inline-flex items-center gap-3 bg-[color:var(--color-earth-dark)] text-white px-6 py-2.5 font-source-sans-3 font-light text-sm rounded-full hover:bg-opacity-90 transition-all duration-200 w-fit mt-auto" href="/initiatives/sacred-spaces">
                <img alt="TSF Logo" class="h-5 w-auto" loading="lazy" decoding="async" src="/assets/TSF-small-logo-white-bd24d89a.webp" />
                <span>More Sacred Spaces</span>
</a>            </div>
          </div>
        </div>
        </div>

        <!-- Arrows -->
        <button data-action="click->carousel#prev"
                type="button"
                aria-label="Previous sacred space"
                class="absolute left-2 top-1/2 -translate-y-1/2 bg-white/90 hover:bg-white text-[color:var(--color-earth-dark)] p-2.5 rounded-full shadow-lg transition-all duration-200">
          <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />
          </svg>
        </button>

        <button data-action="click->carousel#next"
                type="button"
                aria-label="Next sacred space"
                class="absolute right-2 top-1/2 -translate-y-1/2 bg-white/90 hover:bg-white text-[color:var(--color-earth-dark)] p-2.5 rounded-full shadow-lg transition-all duration-200">
          <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
          </svg>
        </button>
      </div>

      <!-- Dot Indicators -->
      <div class="mt-4 flex justify-center gap-2">
        <button data-carousel-target="dot"
                data-action="click->carousel#goToSlide"
                data-slide="0"
                class="w-3 h-3 rounded-full bg-[color:var(--color-earth-dark)] opacity-100 transition-all duration-200"></button>
        <button data-carousel-target="dot"
                data-action="click->carousel#goToSlide"
                data-slide="1"
                class="w-3 h-3 rounded-full bg-[color:var(--color-earth-dark)] opacity-60 transition-all duration-200"></button>
      </div>
    </div>

    <!-- Desktop Grid -->
    <div class="hidden md:grid grid-cols-2 gap-6 lg:gap-8">
      <!-- Card 1: Madanapalle Ashram -->
      <div class="bg-white rounded-lg shadow-lg overflow-hidden flex flex-col">
        <div class="h-80 overflow-hidden">
          <img alt="Madanapalle Ashram" class="w-full h-full object-cover" loading="lazy" decoding="async" width="700" height="466" src="/assets/madanapalle-ashram-7e7188d1.webp" />
        </div>
        <div class="p-6 flex flex-col flex-grow">
          <h3 class="font-playfair-display text-gray-700 text-lg md:text-xl font-semibold mb-4">
            Madanapalle Ashram
          </h3>
          <p class="font-source-sans-3 text-gray-700 text-sm leading-relaxed mb-6 flex-grow">
            Nestled in the peaceful town of Madanapalle, The Satsang Foundation Ashram, is a sanctuary for spiritual seekers. The sacred space has numerous quiet spots for contemplation and swadhyaya (Self-study).
          </p>
          <a class="inline-flex items-center gap-3 bg-[color:var(--color-earth-dark)] text-white px-6 py-2.5 font-source-sans-3 font-light text-sm rounded-full hover:bg-opacity-90 transition-all duration-200 w-fit mt-auto" aria-label="Learn more about Madanapalle Ashram" href="/about/madanapalle-ashram">
            <img alt="TSF Logo" class="h-5 w-auto" loading="lazy" decoding="async" src="/assets/TSF-small-logo-white-bd24d89a.webp" />
            <span>Learn More About Madanapalle Ashram</span>
</a>        </div>
      </div>

      <!-- Card 2: Sacred Spaces -->
      <div class="bg-white rounded-lg shadow-lg overflow-hidden flex flex-col">
        <div class="h-80 bg-gradient-to-br from-[color:var(--color-wood-light)] to-[color:var(--color-wood-dark)] flex items-center justify-center">
          <div class="text-center">
            <svg class="w-16 h-16 text-white mx-auto mb-2" fill="currentColor" viewBox="0 0 20 20">
              <path fill-rule="evenodd" d="M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm12 12H4l4-8 3 6 2-4 3 6z" clip-rule="evenodd"/>
            </svg>
            <p class="text-white text-sm">Sacred Spaces</p>
          </div>
        </div>
        <div class="p-6 flex flex-col flex-grow">
          <h3 class="font-playfair-display text-gray-700 text-lg md:text-xl font-semibold mb-4">
            Sacred Spaces
          </h3>
          <p class="font-source-sans-3 text-gray-700 text-sm leading-relaxed mb-6 flex-grow">
            Sacred spaces consecrated by Sri M, in India and across the world for the spiritual upliftment of people, providing a space to connect with divine within.
          </p>
          <a class="inline-flex items-center gap-3 bg-[color:var(--color-earth-dark)] text-white px-6 py-2.5 font-source-sans-3 font-light text-sm rounded-full hover:bg-opacity-90 transition-all duration-200 w-fit mt-auto" href="/initiatives/sacred-spaces">
            <img alt="TSF Logo" class="h-5 w-auto" loading="lazy" decoding="async" src="/assets/TSF-small-logo-white-bd24d89a.webp" />
            <span>More Sacred Spaces</span>
</a>        </div>
      </div>
    </div>
  </div>
</div>

<!-- Blog Posts Section -->
<div class="bg-white py-16">
  <div class="container max-w-6xl mx-auto px-8">
    <h2 class="font-playfair-display text-[color:var(--color-earth-dark)] text-3xl md:text-4xl text-center font-normal mb-6">
      Latest from the Satsang Foundation
    </h2>
      <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
          <div class="bg-white rounded-lg shadow-lg overflow-hidden hover:shadow-xl transition-shadow duration-300">
              <a href="/posts-and-updates/creating-ripples-of-selfless-service-transforming-communities-across-india-the-satsang-seva-mission">
                <img alt="Creating ripples of selfless service, transforming communities across India |  The Satsang Seva Mission" class="w-full h-48 object-cover" loading="lazy" decoding="async" src="https://satsang-foundation.org/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTI0LCJwdXIiOiJibG9iX2lkIn19--7cbf49cd562594fa36e0d4e3d0162760b5ecc697/Picture%203.png" />
</a>            <div class="p-6">
              <h3 class="font-playfair-display text-[color:var(--color-earth-dark)] text-xl font-semibold mb-2 hover:text-[color:var(--color-accent-sunrise)] transition-colors">
                <a href="/posts-and-updates/creating-ripples-of-selfless-service-transforming-communities-across-india-the-satsang-seva-mission">Creating ripples of selfless service, transforming communities across India |  The Satsang Seva Mission</a>
              </h3>
              <p class="font-source-sans-3 text-[color:var(--color-root-dark)] text-sm mb-3">
                May 30, 2026 • 
              </p>
              <p class="font-source-sans-3 text-gray-600 text-sm leading-relaxed mb-4">
                As the summer heat sears through the land, quiet ripples of soothing comfort are reaching our rural and urban...
              </p>
              <a class="font-source-sans-3 text-[color:var(--color-earth-dark)] text-sm font-semibold hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200 inline-block" href="/posts-and-updates/creating-ripples-of-selfless-service-transforming-communities-across-india-the-satsang-seva-mission">Read More →</a>
            </div>
          </div>
          <div class="bg-white rounded-lg shadow-lg overflow-hidden hover:shadow-xl transition-shadow duration-300">
              <a href="/posts-and-updates/seen-heard-proud-the-ssdc-batch-15-parents-meet">
                <img alt="Seen. Heard. Proud: The SSDC Batch 15 Parents’ Meet" class="w-full h-48 object-cover" loading="lazy" decoding="async" src="https://satsang-foundation.org/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTM0LCJwdXIiOiJibG9iX2lkIn19--d3008acc1037b755b9937b2a9efd5335cb3eb16e/1.jpg" />
</a>            <div class="p-6">
              <h3 class="font-playfair-display text-[color:var(--color-earth-dark)] text-xl font-semibold mb-2 hover:text-[color:var(--color-accent-sunrise)] transition-colors">
                <a href="/posts-and-updates/seen-heard-proud-the-ssdc-batch-15-parents-meet">Seen. Heard. Proud: The SSDC Batch 15 Parents’ Meet</a>
              </h3>
              <p class="font-source-sans-3 text-[color:var(--color-root-dark)] text-sm mb-3">
                May 30, 2026 • 
              </p>
              <p class="font-source-sans-3 text-gray-600 text-sm leading-relaxed mb-4">
                The Parents’ Meet for SSDC Batch 15 was more than a formal gathering, it became a space where emotions, memories, and...
              </p>
              <a class="font-source-sans-3 text-[color:var(--color-earth-dark)] text-sm font-semibold hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200 inline-block" href="/posts-and-updates/seen-heard-proud-the-ssdc-batch-15-parents-meet">Read More →</a>
            </div>
          </div>
          <div class="bg-white rounded-lg shadow-lg overflow-hidden hover:shadow-xl transition-shadow duration-300">
              <a href="/posts-and-updates/roadmap-to-moksha">
                <img alt="Roadmap to Moksha" class="w-full h-48 object-cover" loading="lazy" decoding="async" src="https://satsang-foundation.org/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTA4LCJwdXIiOiJibG9iX2lkIn19--bd1d960af628d9d492c45e4ea91f38893dee6784/Image%201%20-%20Feature%20image.jpg" />
</a>            <div class="p-6">
              <h3 class="font-playfair-display text-[color:var(--color-earth-dark)] text-xl font-semibold mb-2 hover:text-[color:var(--color-accent-sunrise)] transition-colors">
                <a href="/posts-and-updates/roadmap-to-moksha">Roadmap to Moksha</a>
              </h3>
              <p class="font-source-sans-3 text-[color:var(--color-root-dark)] text-sm mb-3">
                May 30, 2026 • 
              </p>
              <p class="font-source-sans-3 text-gray-600 text-sm leading-relaxed mb-4">
                There Is Nowhere to Go
There is no roadmap. Let me explain.
First, we have to define Moksha. All the great saints...
              </p>
              <a class="font-source-sans-3 text-[color:var(--color-earth-dark)] text-sm font-semibold hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200 inline-block" href="/posts-and-updates/roadmap-to-moksha">Read More →</a>
            </div>
          </div>
      </div>
    <div class="text-center mt-12">
      <a class="inline-block bg-[color:var(--color-root-dark)] text-white px-8 py-3 rounded-full hover:bg-[color:var(--color-earth-dark)] transition-colors duration-300 font-source-sans-3 text-sm font-light" href="/posts-and-updates">View All Blog Posts</a>
    </div>
  </div>
</div>

<!-- Newsletter + Support Section -->
<div class="bg-white py-16">
  <div class="container max-w-5xl mx-auto px-6 md:px-8">
    <div class="text-center mb-12">
      <h2 class="font-playfair-display text-[color:var(--color-earth-dark)] text-3xl md:text-4xl lg:text-5xl font-normal mb-4">
        Stay Connected
      </h2>
      <p class="font-source-sans-3 text-[color:var(--color-root-dark)] text-lg max-w-2xl mx-auto">
        Choose what you'd like to receive in your inbox from The Satsang Foundation.
      </p>
    </div>

    <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
      <div class="bg-white border border-gray-200 rounded-2xl shadow-sm p-8 flex flex-col"
     data-controller="subscribe-form"
     data-subscribe-form-url-value="/subscribe">
  <h2 class="font-playfair-display text-[color:var(--color-earth-dark)] text-2xl md:text-3xl font-normal mb-3">
    Newsletter
  </h2>
  <p class="font-source-sans-3 text-[color:var(--color-root-dark)] text-base leading-relaxed mb-6 flex-grow">
    Get The Satsang Foundation&#39;s newsletter with stories, talks, and updates from across our work.
  </p>

  <div id="home-subscribe-newsletter-message" class="hidden w-full mb-3" data-subscribe-form-target="message">
    <div id="home-subscribe-newsletter-message-content" class="px-4 py-2 rounded-full font-source-sans-3 text-sm text-center" data-subscribe-form-target="messageContent"></div>
  </div>

  <form id="home-subscribe-newsletter" class="w-full" data-turbo="false" data-subscribe-form-target="form" data-action="submit-&gt;subscribe-form#submit" action="/subscribe" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="VgEJEU-t9safSw8Intt0tvjP0VbQaG65urSZ-uT-WKEc8O2pHIeswoSImUwLTiaT8XigF_YDpLr8r8v7IVNflA" autocomplete="off" />
    <input type="hidden" name="list_type" id="list_type" value="newsletter" autocomplete="off" />
    <div class="flex flex-col gap-3">
      <input type="text" name="name" id="name" placeholder="Your name (optional)" class="w-full px-5 py-2.5 font-source-sans-3 text-sm border border-gray-200 rounded-full focus:outline-none focus:ring-1 focus:ring-[color:var(--color-accent-sunrise)] focus:border-transparent" />
      <div class="relative w-full">
        <input type="email" name="email" id="email" placeholder="Enter your email" required="required" class="w-full pl-5 pr-32 py-2.5 font-source-sans-3 text-sm border border-gray-200 rounded-full focus:outline-none focus:ring-1 focus:ring-[color:var(--color-accent-sunrise)] focus:border-transparent" />
        <button name="button" type="submit" id="home-subscribe-newsletter-submit" data-subscribe-form-target="submit" class="absolute right-1 top-1/2 -translate-y-1/2 bg-[color:var(--color-earth-dark)] text-white px-5 py-1.5 font-source-sans-3 font-light text-xs rounded-full hover:bg-opacity-90 transition-all duration-200">
          Subscribe
</button>      </div>
      <div class="mt-1" data-controller="turnstile" data-turnstile-sitekey-value="0x4AAAAAADJRvb3tOvUyax1a"></div>
    </div>
</form></div>


      <div class="bg-white border border-gray-200 rounded-2xl shadow-sm p-8 flex flex-col"
     data-controller="subscribe-form"
     data-subscribe-form-url-value="/subscribe">
  <h2 class="font-playfair-display text-[color:var(--color-earth-dark)] text-2xl md:text-3xl font-normal mb-3">
    Daily Quotes, Events &amp; Updates
  </h2>
  <p class="font-source-sans-3 text-[color:var(--color-root-dark)] text-base leading-relaxed mb-6 flex-grow">
    Receive Sri M&#39;s daily words of wisdom along with notifications about new events and updates.
  </p>

  <div id="home-subscribe-updates-message" class="hidden w-full mb-3" data-subscribe-form-target="message">
    <div id="home-subscribe-updates-message-content" class="px-4 py-2 rounded-full font-source-sans-3 text-sm text-center" data-subscribe-form-target="messageContent"></div>
  </div>

  <form id="home-subscribe-updates" class="w-full" data-turbo="false" data-subscribe-form-target="form" data-action="submit-&gt;subscribe-form#submit" action="/subscribe" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="dHVXwpKvXuWWB0I8SZLh-kTrLJKi8xFsjUjpZn5buos-hLN6wYUE4Y3E1HjcB7PfTVxd04SY22_LU7tnu_a9vg" autocomplete="off" />
    <input type="hidden" name="list_type" id="list_type" value="updates" autocomplete="off" />
    <div class="flex flex-col gap-3">
      <input type="text" name="name" id="name" placeholder="Your name (optional)" class="w-full px-5 py-2.5 font-source-sans-3 text-sm border border-gray-200 rounded-full focus:outline-none focus:ring-1 focus:ring-[color:var(--color-accent-sunrise)] focus:border-transparent" />
      <div class="relative w-full">
        <input type="email" name="email" id="email" placeholder="Enter your email" required="required" class="w-full pl-5 pr-32 py-2.5 font-source-sans-3 text-sm border border-gray-200 rounded-full focus:outline-none focus:ring-1 focus:ring-[color:var(--color-accent-sunrise)] focus:border-transparent" />
        <button name="button" type="submit" id="home-subscribe-updates-submit" data-subscribe-form-target="submit" class="absolute right-1 top-1/2 -translate-y-1/2 bg-[color:var(--color-earth-dark)] text-white px-5 py-1.5 font-source-sans-3 font-light text-xs rounded-full hover:bg-opacity-90 transition-all duration-200">
          Subscribe
</button>      </div>
      <div class="mt-1" data-controller="turnstile" data-turnstile-sitekey-value="0x4AAAAAADJRvb3tOvUyax1a"></div>
    </div>
</form></div>

    </div>

    <p class="text-gray-400 text-xs text-center mt-8">
      Protected by reCAPTCHA.
      <a href="https://policies.google.com/privacy" class="underline">Privacy</a> &amp;
      <a href="https://policies.google.com/terms" class="underline">Terms</a>.
    </p>

    <!-- Donate CTA -->
    <div class="mt-12 pt-10 border-t border-gray-200 max-w-md mx-auto text-center">
      <p class="font-source-sans-3 text-[color:var(--color-root-dark)] text-base mb-6">
        Support the Foundation's work in education, environment, health, and spiritual growth.
      </p>
      <a target="_blank" rel="noopener noreferrer" class="inline-flex items-center gap-2 bg-[color:var(--color-root-dark)] text-white px-8 py-3 font-source-sans-3 font-light text-sm rounded-full hover:bg-opacity-90 transition-all duration-200 group" href="https://app.satsang-foundation.org/donate">
        <span>DONATE</span>
        <svg class="w-4 h-4 transition-transform duration-200 group-hover:translate-x-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8l4 4m0 0l-4 4m4-4H3"/>
        </svg>
</a>    </div>
  </div>
</div>

    </main>

    <!-- Footer -->
<footer class="bg-[color:var(--color-earth-dark)] text-white">
  <!-- Mobile Footer (Compact) -->
  <div class="block md:hidden px-6 py-8">
    <!-- TSF Info (Always Visible) -->
    <div class="text-center mb-6">
      <div class="flex items-center justify-center mb-3">
        <img alt="The Satsang Foundation Logo" class="h-10 w-auto mr-3" loading="lazy" decoding="async" width="226" height="226" src="/assets/TSF-small-Logo-4fbe27ed.webp" />
        <h3 class="font-playfair-display text-base font-semibold text-[color:var(--color-earth-light)]">
          The Satsang Foundation
        </h3>
      </div>
      
      <!-- Social Media Icons -->
      <div class="flex justify-center space-x-4 mb-4">
        <a href="https://www.instagram.com/thesatsangfoundationofficial/" target="_blank" rel="noopener noreferrer" aria-label="Instagram" class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200">
          <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
            <path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.40s-.644-1.44-1.439-1.44z"/>
          </svg>
        </a>
        <a href="https://www.youtube.com/@TheSatsangFoundation" target="_blank" rel="noopener noreferrer" aria-label="YouTube" class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200">
          <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
            <path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/>
          </svg>
        </a>
        <a href="https://t.me/SriMOfficial/" target="_blank" rel="noopener noreferrer" aria-label="Telegram" class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200">
          <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
            <path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.894 8.221l-1.97 9.28c-.145.658-.537.818-1.084.508l-3-2.21-1.446 1.394c-.14.18-.357.295-.6.295-.002 0-.003 0-.005 0l.213-3.054 5.56-5.022c.24-.213-.054-.334-.373-.121l-6.869 4.326-2.96-.924c-.64-.203-.658-.64.135-.954l11.566-4.458c.538-.196 1.006.128.832.941z"/>
          </svg>
        </a>
        <a href="https://www.facebook.com/TheSatsangFoundationOfficial/" target="_blank" rel="noopener noreferrer" aria-label="Facebook" class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200">
          <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
            <path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>
          </svg>
        </a>
      </div>
    </div>

    <!-- Mobile Accordion Links -->
    <div class="space-y-3">
      <!-- Essential Links (Always Visible) -->
      <div class="flex flex-wrap justify-center gap-4 text-xs">
        <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/about">About</a>
        <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/events">Events</a>
        <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/contact">Contact</a>
        <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/subscribe">Subscribe</a>
        <a target="_blank" rel="noopener noreferrer" class="text-[color:var(--color-accent-sunrise)] font-semibold hover:text-white transition-colors duration-200" href="https://app.satsang-foundation.org/donate">Donate</a>
      </div>

      <!-- Expandable More Links -->
      <div class="text-center">
        <button id="mobile-footer-toggle" class="text-[color:var(--color-earth-light)] text-sm hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200 flex items-center mx-auto">
          <span>More Links</span>
          <svg id="mobile-footer-arrow" class="w-4 h-4 ml-1 transition-transform duration-200" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
          </svg>
        </button>
        
        <div id="mobile-footer-menu" class="hidden mt-3 pt-3 border-t border-[color:var(--color-earth-light)]/20">
          <div class="grid grid-cols-2 gap-2 text-xs">
            <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200 py-1" href="/sri-m/kriya-yoga">Kriya Yoga</a>
            <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200 py-1" href="/initiatives/education">Education</a>
            <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200 py-1" href="/initiatives/health-and-wellness">Health and Wellness</a>
            <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200 py-1" href="/initiatives/environment">Environment</a>
            <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200 py-1" href="/get-involved/volunteer">Volunteer</a>
            <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200 py-1" href="/posts-and-updates">Posts and Updates</a>
            <a target="_blank" rel="noopener noreferrer" class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200 py-1" href="/newsletter">Newsletter</a>
          </div>
        </div>
      </div>
    </div>

    <!-- Mobile Copyright -->
    <div class="text-center mt-6 pt-4 border-t border-[color:var(--color-earth-light)]/20">
      <p class="font-source-sans-3 text-[color:var(--color-earth-light)] text-xs">
        © 2026 The Satsang Foundation
      </p>
    </div>
  </div>

  <!-- Desktop Footer (Full Layout) -->
  <div class="hidden md:block">
    <div class="container max-w-6xl mx-auto px-8 py-12">
      <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
        
        <!-- TSF Info Column -->
        <div class="lg:col-span-1">
          <div class="flex items-center mb-4">
            <img alt="The Satsang Foundation Logo" class="h-12 w-auto mr-3" loading="lazy" decoding="async" width="226" height="226" src="/assets/TSF-small-Logo-4fbe27ed.webp" />
            <h3 class="font-playfair-display text-lg font-semibold text-[color:var(--color-earth-light)]">
              The Satsang Foundation
            </h3>
          </div>
          <p class="font-source-sans-3 text-[color:var(--color-earth-light)] text-sm leading-relaxed mb-4">
            
          </p>
          
          <!-- Social Media Icons -->
          <div class="flex space-x-4 mb-6">
            <a href="https://www.instagram.com/thesatsangfoundationofficial/" target="_blank" rel="noopener noreferrer" aria-label="Instagram" class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200">
              <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
                <path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.40s-.644-1.44-1.439-1.44z"/>
              </svg>
            </a>
            
            <a href="https://www.youtube.com/@TheSatsangFoundation" target="_blank" rel="noopener noreferrer" aria-label="YouTube" class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200">
              <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
                <path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/>
              </svg>
            </a>
            
            <a href="https://t.me/SriMOfficial/" target="_blank" rel="noopener noreferrer" aria-label="Telegram" class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200">
              <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
                <path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.894 8.221l-1.97 9.28c-.145.658-.537.818-1.084.508l-3-2.21-1.446 1.394c-.14.18-.357.295-.6.295-.002 0-.003 0-.005 0l.213-3.054 5.56-5.022c.24-.213-.054-.334-.373-.121l-6.869 4.326-2.96-.924c-.64-.203-.658-.64.135-.954l11.566-4.458c.538-.196 1.006.128.832.941z"/>
              </svg>
            </a>
            
            <a href="https://www.facebook.com/TheSatsangFoundationOfficial/" target="_blank" rel="noopener noreferrer" aria-label="Facebook" class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200">
              <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
                <path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>
              </svg>
            </a>
          </div>
        </div>
      
        <!-- Quick Links Column -->
        <div>
          <h3 class="font-playfair-display text-lg font-semibold text-[color:var(--color-earth-light)] mb-4">
            Quick Links
          </h3>
          <ul class="font-source-sans-3 text-sm space-y-3">
            <li>
              <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/sri-m/about">About Sri M</a>
            </li>
            <li>
              <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/about">About TSF</a>
            </li>
            <li>
              <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/sri-m/kriya-yoga">Kriya Yoga</a>
            </li>
            <li>
              <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/events">Events</a>
            </li>
            <li>
              <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/posts-and-updates">Posts and Updates</a>
            </li>
            <li>
              <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/contact">Contact</a>
            </li>
            <li>
              <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/subscribe">Subscribe</a>
            </li>
            <li>
              <a target="_blank" rel="noopener noreferrer" class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/newsletter">Newsletter</a>
            </li>
          </ul>
        </div>

        <!-- Initiatives Column -->
        <div>
          <h3 class="font-playfair-display text-lg font-semibold text-[color:var(--color-earth-light)] mb-4">
            Our Initiatives
          </h3>
          <ul class="font-source-sans-3 text-sm space-y-3">
            <li>
              <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/initiatives/education">Education</a>
            </li>
            <li>
              <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/initiatives/health-and-wellness">Health and Wellness</a>
            </li>
            <li>
              <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/initiatives/environment">Environment</a>
            </li>
            <li>
              <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/initiatives/seva-and-serving-humanity">Seva and Serving Humanity</a>
            </li>
            <li>
              <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/initiatives/yoga-and-consciousness">Yoga &amp; Consciousness</a>
            </li>
            <li>
              <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/initiatives/sacred-spaces">Sacred Spaces</a>
            </li>
          </ul>
        </div>
        
        <!-- Get Involved Column -->
        <div>
          <h3 class="font-playfair-display text-lg font-semibold text-[color:var(--color-earth-light)] mb-4">
            Get Involved
          </h3>
          <ul class="font-source-sans-3 text-sm space-y-3 mb-6">
            <li>
              <a target="_blank" rel="noopener noreferrer" class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="https://app.satsang-foundation.org/donate">Donate</a>
            </li>
            <li>
              <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/get-involved/volunteer">Volunteer</a>
            </li>
            <li>
              <a class="text-[color:var(--color-earth-light)] hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/contact#centres">Centres</a>
            </li>
          </ul>
          
          <!-- CTA Button -->
          <div>
            <a class="inline-block bg-[color:var(--color-accent-sunrise)] text-[color:var(--color-earth-dark)] px-6 py-2 font-source-sans-3 font-light text-xs rounded-full hover:bg-opacity-90 transition-all duration-200 uppercase tracking-wide" href="/get-involved/volunteer">
              Support Our Mission
</a>          </div>
        </div>
      </div>
      
      <!-- Bottom Section -->
      <div class="border-t border-[color:var(--color-earth-light)]/20 mt-8 pt-8">
        <div class="flex flex-col md:flex-row justify-between items-center">
          <!-- Copyright -->
          <div class="mb-4 md:mb-0">
            <p class="font-source-sans-3 text-[color:var(--color-earth-light)] text-sm">
              © 2026 The Satsang Foundation. All rights reserved.
            </p>
          </div>
          
          <!-- Footer Links -->
          <div class="flex flex-wrap justify-center md:justify-end space-x-6">
            <a class="font-source-sans-3 text-[color:var(--color-earth-light)] text-sm hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/privacy-policy">Privacy Policy</a>
            <a class="font-source-sans-3 text-[color:var(--color-earth-light)] text-sm hover:text-[color:var(--color-accent-sunrise)] transition-colors duration-200" href="/terms-of-service">Terms of Service</a>
          </div>
        </div>
      </div>
    </div>
  </div>
</footer>

<!-- Mobile Footer JavaScript -->
<script>
  function initializeMobileFooter() {
    const footerToggle = document.getElementById('mobile-footer-toggle');
    const footerMenu = document.getElementById('mobile-footer-menu');
    const footerArrow = document.getElementById('mobile-footer-arrow');
    
    if (footerToggle) {
      // Remove existing event listeners to prevent duplicates
      const newToggle = footerToggle.cloneNode(true);
      footerToggle.parentNode.replaceChild(newToggle, footerToggle);
      
      newToggle.addEventListener('click', function() {
        footerMenu.classList.toggle('hidden');
        footerArrow.style.transform = footerMenu.classList.contains('hidden') ? '' : 'rotate(180deg)';
      });
    }
  }
  
  // Initialize on page load and after Turbo navigation
  document.addEventListener('DOMContentLoaded', initializeMobileFooter);
  document.addEventListener('turbo:load', initializeMobileFooter);
  
  // Clean up when Turbo caches the page
  document.addEventListener('turbo:before-cache', function() {
    const footerMenu = document.getElementById('mobile-footer-menu');
    const footerArrow = document.getElementById('mobile-footer-arrow');
    
    if (footerMenu && !footerMenu.classList.contains('hidden')) {
      footerMenu.classList.add('hidden');
      if (footerArrow) footerArrow.style.transform = '';
    }
  });
</script>

    
    <!-- Cookie Consent Banner -->
<div data-controller="cookie-banner" 
     data-cookie-banner-target="banner"
     class="fixed bottom-0 left-0 right-0 z-50 transform translate-y-full transition-transform duration-300 hidden">
  
  <!-- Main Banner Content -->
  <div data-cookie-banner-target="mainContent" 
       class="bg-white border-t-2 border-orange-500 shadow-2xl">
    <div class="container mx-auto px-4 py-6 lg:py-8">
      <div class="flex flex-col lg:flex-row lg:items-center lg:justify-between gap-6">
        
        <!-- Message -->
        <div class="flex-1">
          <div class="flex items-start gap-3">
            <!-- Cookie Icon -->
            <svg class="w-8 h-8 text-orange-600 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            
            <div>
              <h3 class="text-lg font-semibold text-gray-900 mb-2">
                We Value Your Privacy
              </h3>
              <p class="text-sm text-gray-600 leading-relaxed">
                We use cookies to ensure basic functionality, protect our forms from spam (via Google reCAPTCHA), deliver fonts for the best visual experience, and understand how visitors use our website (via Google Analytics). 
                By clicking "Accept All", you consent to our use of cookies including those from third parties like Google. 
                You can manage your preferences or learn more in our 
                <a href="/privacy-policy" class="text-orange-600 hover:text-orange-700 underline">Privacy Policy</a>.
              </p>
            </div>
          </div>
        </div>

        <!-- Action Buttons -->
        <div class="flex flex-col sm:flex-row gap-3 lg:flex-shrink-0">
          <button type="button"
                  data-action="click->cookie-banner#showPreferences"
                  class="px-6 py-2.5 text-sm font-medium text-gray-700 bg-white border-2 border-gray-300 rounded-lg hover:bg-gray-50 transition-colors duration-200">
            Customize
          </button>
          
          <button type="button"
                  data-action="click->cookie-banner#acceptNecessary"
                  class="px-6 py-2.5 text-sm font-medium text-gray-700 bg-white border-2 border-gray-300 rounded-lg hover:bg-gray-50 transition-colors duration-200">
            Necessary Only
          </button>
          
          <button type="button"
                  data-action="click->cookie-banner#acceptAll"
                  class="px-6 py-2.5 text-sm font-medium text-white bg-orange-600 border-2 border-orange-600 rounded-lg hover:bg-orange-700 transition-colors duration-200 shadow-md">
            Accept All
          </button>
        </div>
      </div>
    </div>
  </div>

  <!-- Preferences Panel -->
  <div data-cookie-banner-target="preferences" 
       class="bg-white border-t-2 border-orange-500 shadow-2xl hidden">
    <div class="container mx-auto px-4 py-6 lg:py-8">
      <form data-action="submit->cookie-banner#savePreferences">
        
        <!-- Header -->
          <div class="mb-6">
          <h3 class="text-xl font-semibold text-gray-900 mb-2">
            Cookie Preferences
          </h3>
          <p class="text-sm text-gray-600">
            Choose which cookies you want to accept. Necessary cookies cannot be disabled as they are required for the website to function properly.
          </p>
        </div>

        <!-- Cookie Categories -->
        <div class="space-y-4 mb-6">
          
          <!-- Necessary Cookies -->
          <div class="border border-gray-200 rounded-lg p-4 bg-gray-50">
            <div class="flex items-start justify-between">
              <div class="flex-1">
                <h4 class="font-semibold text-gray-900 mb-1 flex items-center gap-2">
                  <svg class="w-5 h-5 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                  Necessary & Security Cookies
                </h4>
                <p class="text-sm text-gray-600 mt-2 mb-3">
                  Essential for website functionality, security, and fraud prevention. These include session management, CSRF protection, and Google reCAPTCHA for form security.
                </p>
                <details class="text-xs text-gray-500">
                  <summary class="cursor-pointer hover:text-orange-600 font-medium">View cookies used</summary>
                  <ul class="mt-2 ml-4 space-y-1 list-disc">
                    <li><code>_tsf_website_session</code> - Session management</li>
                    <li><code>remember_user_token</code> - Admin authentication</li>
                    <li><code>_GRECAPTCHA</code>, <code>rc::*</code> - reCAPTCHA security</li>
                  </ul>
                </details>
              </div>
              <div class="ml-4 flex-shrink-0">
                <span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-green-100 text-green-800">
                  Always Active
                </span>
              </div>
            </div>
          </div>

          <!-- Functional Cookies (Google Fonts) -->
          <div class="border border-gray-200 rounded-lg p-4">
            <div class="flex items-start justify-between">
              <div class="flex-1">
                <h4 class="font-semibold text-gray-900 mb-1 flex items-center gap-2">
                  <svg class="w-5 h-5 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"></path>
                  </svg>
                  Functional Cookies
                </h4>
                <p class="text-sm text-gray-600 mt-2 mb-3">
                  Enhance website functionality and user experience. Includes Google Fonts for better typography. Disabling may affect visual appearance.
                </p>
                <details class="text-xs text-gray-500">
                  <summary class="cursor-pointer hover:text-orange-600 font-medium">View cookies used</summary>
                  <ul class="mt-2 ml-4 space-y-1 list-disc">
                    <li><code>__Secure-ENID</code>, <code>NID</code> - Google Fonts delivery</li>
                    <li>Purpose: Font optimization and abuse prevention</li>
                    <li>Provider: Google (fonts.googleapis.com)</li>
                  </ul>
                </details>
              </div>
              <div class="ml-4 flex-shrink-0">
                <label class="relative inline-flex items-center cursor-pointer">
                  <input type="checkbox" name="functional" class="sr-only peer" checked>
                  <div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-orange-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-orange-600"></div>
                </label>
              </div>
            </div>
          </div>

          <!-- Analytics Cookies -->
          <div class="border border-gray-200 rounded-lg p-4">
            <div class="flex items-start justify-between">
              <div class="flex-1">
                <h4 class="font-semibold text-gray-900 mb-1 flex items-center gap-2">
                  <svg class="w-5 h-5 text-purple-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"></path>
                  </svg>
                  Analytics Cookies
                </h4>
                <p class="text-sm text-gray-600 mt-2 mb-3">
                  Help us understand how visitors interact with our website by collecting and reporting information anonymously via Google Analytics. This helps improve the user experience.
                </p>
                <details class="text-xs text-gray-500">
                  <summary class="cursor-pointer hover:text-orange-600 font-medium">View cookies used</summary>
                  <ul class="mt-2 ml-4 space-y-1 list-disc">
                    <li><code>_ga</code> - Distinguishes unique users (2 years)</li>
                    <li><code>_ga_*</code> - Maintains session state (2 years)</li>
                    <li><code>_gid</code> - Distinguishes users (24 hours)</li>
                    <li>Provider: Google Analytics (analytics.google.com)</li>
                  </ul>
                </details>
              </div>
              <div class="ml-4 flex-shrink-0">
                <label class="relative inline-flex items-center cursor-pointer">
                  <input type="checkbox" name="analytics" class="sr-only peer" checked>
                  <div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-orange-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-orange-600"></div>
                </label>
              </div>
            </div>
          </div>

          <!-- Marketing Cookies (Not Currently Used) -->
          <div class="border border-gray-200 rounded-lg p-4 opacity-60">
            <div class="flex items-start justify-between">
              <div class="flex-1">
                <h4 class="font-semibold text-gray-900 mb-1 flex items-center gap-2">
                  <svg class="w-5 h-5 text-pink-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z"></path>
                  </svg>
                  Marketing Cookies
                  <span class="text-xs font-normal text-gray-500">(Not currently used)</span>
                </h4>
                <p class="text-sm text-gray-600 mt-2">
                  Would track online activity for advertising purposes. Currently not implemented on this site.
                </p>
              </div>
              <div class="ml-4 flex-shrink-0">
                <label class="relative inline-flex items-center cursor-pointer opacity-50 pointer-events-none">
                  <input type="checkbox" name="marketing" class="sr-only peer" disabled>
                  <div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-orange-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-orange-600"></div>
                </label>
              </div>
            </div>
          </div>
        </div>

        <!-- Action Buttons -->
        <div class="flex flex-col sm:flex-row gap-3 justify-end">
          <button type="button"
                  data-action="click->cookie-banner#hidePreferences"
                  class="px-6 py-2.5 text-sm font-medium text-gray-700 bg-white border-2 border-gray-300 rounded-lg hover:bg-gray-50 transition-colors duration-200">
            Back
          </button>
          
          <button type="submit"
                  class="px-6 py-2.5 text-sm font-medium text-white bg-orange-600 border-2 border-orange-600 rounded-lg hover:bg-orange-700 transition-colors duration-200 shadow-md">
            Save Preferences
          </button>
        </div>
      </form>
    </div>
  </div>
</div>


  </body>
</html>
