@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;700&display=swap");

/* ==========================================================================
   GLOBAL RESET & SPIRITUAL THEME - ALL PAGES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --saffron-gold: #FF9933;
  --deep-saffron: #D97706;
  --sacred-gold: #FCD34D;
  --temple-orange: #F59E0B;
  --pure-white: #FFFFFF;
  --ivory-cream: #FEF7E0;
  --sandalwood: #F5F5DC;
  --temple-shadow: rgba(249, 115, 22, 0.15);
  --spiritual-purple: #8B5CF6;
}

body {
  font-family: "Poppins", "Noto Sans Devanagari", sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background: linear-gradient(135deg, var(--ivory-cream) 0%, #FFF7ED 50%, var(--sandalwood) 100%);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120"><text x="15" y="70" font-size="50" fill="%23FF9933" opacity="0.025" font-family="Arial">ॐ</text><text x="75" y="90" font-size="30" fill="%23D97706" opacity="0.015" font-family="Arial">☸</text><text x="45" y="40" font-size="25" fill="%23FCD34D" opacity="0.01">🕉</text></svg>'),
    radial-gradient(ellipse 80% 50% at 40% 30%, rgba(255,153,51,0.02) 0%, transparent 70%);
  background-size: 120px 120px, cover;
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   NAVBAR - RESPONSIVE OPTIMIZED
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 1001;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1rem;
  white-space: nowrap;
}

.nav-menu a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
  padding-bottom: 4px;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  transition: width 0.3s;
}
.btn-donate-nav {
  text-decoration: none;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
  transition: all 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a.active-link,
.btn-donate-nav.active-link {
  color: #ff6b35;
}
/* ==========================================================================
   SLIDER & HERO
   ========================================================================== */
.slider-wrapper {
  margin-top: 80px;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pure-white), var(--ivory-cream));
  border-bottom: 4px solid var(--saffron-gold);
  padding: 25px 0;
}

/* ==========================================================================
   AUTOMATIC SLIDER (FIXED)
   ========================================================================== */
.slider-wrapper {
  margin-top: 80px;
  width: 100%;
  overflow: hidden;
  background: #fff;
  padding: 20px 0;
  border-bottom: 3px solid var(--saffron-gold);
}

.slider {
  display: flex;
  width: max-content;
  animation: slide-left 30s linear infinite;
}

.slide-item {
  flex: 0 0 auto;
  width: 220px;
  height: 150px;
  margin: 0 15px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes slide-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   HERO SECTION (UPDATED WITH CDN IMAGE)
   ========================================================================== */
.hero {
  min-height: 100vh;
  /* Using a high-quality temple placeholder from Unsplash */
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(12, 12, 17, 0.856)), 
              url('https://images.unsplash.com/photo-1544011501-2982d0d75a28?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--pure-white);
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  margin-bottom: 20px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  min-width: 150px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sacred-gold);
  display: block;
}
/* ==========================================================================
   COMMON SECTIONS
   ========================================================================== */
.section {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--saffron-gold), var(--sacred-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sanskrit-Hero {
  background: linear-gradient(135deg, var(--sacred-gold) 0%, var(--temple-orange) 100%);
  color: #7C2D12;
  font-size: 2rem;
  padding: 1.5rem;
  border-radius: 20px;
  text-align: center;
  margin: 2rem auto;
  max-width: 800px;
}
.sanskrit-hero {
    /* Layout & Spacing */
    margin: 50px auto;
    padding: 30px 60px;
    text-align: center;
    max-width: fit-content;
    
    /* Typography */
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Georgia', serif;
    
    /* Premium Gold Gradient Text */
    background: linear-gradient(to bottom, #FFD700 22%, #FF9933 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Spiritual Glow Animation */
    filter: drop-shadow(0 0 10px rgba(255, 153, 51, 0.3));
    /* animation: divineAura 3s ease-in-out infinite alternate; */
    
    /* Borders & Positioning */
    border-top: 3px double #FF9933;
    border-bottom: 3px double #FF9933;
    position: relative;
    letter-spacing: 2px;
}

/* Side Decorative Symbols using Pseudo-elements */
.sanskrit-hero::before {
    content: "✦";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    -webkit-text-fill-color: #FF9933;
    font-size: 1.5rem;
}

.sanskrit-hero::after {
    content: "✦";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    -webkit-text-fill-color: #FF9933;
    font-size: 1.5rem;
}


/* Subtle Pulsing Aura Animation */
@keyframes divineAura {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 153, 51, 0.4));
    }
    100% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(255, 153, 51, 0.8));
    }
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .sanskrit-hero {
        font-size: 1.8rem;
        padding: 20px 40px;
        margin: 30px auto;
    }
    .sanskrit-hero::before, .sanskrit-hero::after {
        display: none; /* Hide symbols on very small screens to save space */
    }
}

/* ==========================================================================
   GRID LAYOUTS
   ========================================================================== */
.projects-grid, .events-grid, .initiatives-grid, .shop-grid, .puja-grid, .donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablets & Small Desktops */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
  .section-title { font-size: 2.8rem; }
  .hero-stats { gap: 1.5rem; }
}

/* Mobile Devices (Hamburger Menu Logic) */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    flex-direction: column;
    background: var(--pure-white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding: 2rem 0;
    gap: 2rem;
  }

  /* Add .active class via JS to show menu */
  .nav-menu.active { left: 0; }

  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.1rem; }
  .sanskrit-hero { font-size: 1.8rem; }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat-num { font-size: 2rem; }

  .section { padding: 40px 15px; margin-bottom: 1.5rem; }
  .section-title { font-size: 2.2rem; }
  
  .payment-methods img {
    height: auto;
    width: 100%;
    max-width: 300px;
  }

  /* SVG Responsiveness Fix */
  svg.bank-details {
    width: 100% !important;
    height: auto !important;
  }
}

/* Very Small Phones */
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn-donate, .btn-secondary { width: 100%; text-align: center; }
  .sanskrit-quote { font-size: 1.4rem; }
  .projects-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.responsive-svg {
  width: 100%;
  height: auto;
  max-width: 630px;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: var(--saffron-gold); border-radius: 10px; }

/* Hamburger Icon Styles */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1002;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #ff6b35;
  transition: 0.3s;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
}



/* Footer Container */
.footer {
  background-color: #111111ea; /* Dark Charcoal */
  color: #ffffff;
  padding: 60px 0 20px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap; /* Allows columns to wrap on smaller screens */
  justify-content: space-between;
  padding: 0 20px;
}

/* Individual Columns */
.footer-section {
  flex: 1;
  min-width: 200px; /* Minimum width before wrapping */
  margin-bottom: 30px;
  padding: 0 15px;
}

/* Typography */
.footer-section h3 {
  color: #FF9933; /* Saffron */
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-section h4 {
  color: #FF9933;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

/* Underline decoration for titles */
.footer-section h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 30px;
  height: 2px;
  background-color: #FF9933;
}

.footer-section p {
  line-height: 1.6;
  color: #cccccc;
  font-size: 0.95rem;
}

/* Links Styling */
.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #cccccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-section ul li a:hover {
  color: #FF9933;
  padding-left: 5px; /* Subtle movement on hover */
}

/* Bottom Bar */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 40px;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: #777;
}

/* RESPONSIVE DESIGN: Mobile & Tablet */
@media (max-width: 768px) {
  .footer-section {
    flex: 0 0 50%; /* Two columns on tablets */
  }
}

@media (max-width: 480px) {
  .footer-section {
    flex: 0 0 100%; /* Single column on mobile */
    text-align: center;
  }
  
  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%); /* Centers the underline on mobile */
  }
}



/* style for the  about sanatana dharm section */
