*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --saffron: #E8670A;
  --deep-red: #8B1A1A;
  --gold: #C9922D;
  --gold2: #F0C060;
  --cream: #FDF6E3;
  --forest: #2C5234;
}
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; background-color: #0D1A0F; color: var(--cream); overflow-x: hidden; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: linear-gradient(to bottom, rgba(10,18,11,0.97), transparent);
  backdrop-filter: blur(4px);
}
.nav-logo-wrap { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo-img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(201,146,45,0.5); }
.nav-logo { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--gold); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { color: rgba(253,246,227,0.7); text-decoration: none; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }

/* HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding: 6rem 1.5rem 4rem;
}
.hero-top {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero-bottom {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  max-width: 860px;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(180,80,10,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 15% 90%, rgba(44,82,52,0.4) 0%, transparent 60%),
    radial-gradient(ellipse 55% 65% at 85% 75%, rgba(74,130,168,0.15) 0%, transparent 55%),
    #0D1A0F;
  z-index: 0;
}

/* DURGA CHAKRA MANDALA */
.mandala-wrap {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, 95vw);
  height: min(680px, 95vw);
  z-index: 1;
  pointer-events: none;
}
.m-layer { position: absolute; inset: 0; }
.m-outer { animation: spinCW 200s linear infinite; opacity: 0.13; }
.m-mid   { animation: spinCCW 100s linear infinite; opacity: 0.11; }
.m-inner { animation: spinCW 60s linear infinite; opacity: 0.10; }

.logo-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(210px, 30vw);
  height: min(210px, 30vw);
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 0 70px rgba(201,146,45,0.18), 0 0 140px rgba(201,146,45,0.07);
  border: 1.5px solid rgba(201,146,45,0.35);
}
.logo-center img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten; opacity: 0.9; }

@keyframes spinCW  { to { transform: rotate(360deg); } }
@keyframes spinCCW { to { transform: rotate(-360deg); } }

/* HERO CONTENT */
.hero-content { 
  position: relative; 
  z-index: 3; 
  max-width: 860px; 
}

.org-badge {
  display: inline-block;
  border: 1px solid rgba(201,146,45,0.45);
  color: var(--gold); 
  font-size: 0.72rem; 
  font-weight: 500; 
  letter-spacing: 0.25em; 
  text-transform: uppercase;
  padding: 0.4rem 1.4rem; 
  border-radius: 100px; 
  margin-bottom: 1.5rem;
  background: rgba(201,146,45,0.07);
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  line-height: 0.05;  
  color: rgba(255, 140, 0, 1); 
  letter-spacing: -0.02em;
  animation: fadeUp 0.9s 0.1s ease both;
  text-shadow: 0 2px 40px rgba(0,0,0,0.6);
  margin-bottom: 1rem; 
}

.hero h1 em { 
  font-style: italic; 
  color: var(--gold); 
  display: block; 
}

.hero-divider { 
  width: 80px; 
  height: 2px; 
  background: linear-gradient(to right, transparent, var(--gold), transparent); 
  margin: 3rem auto;
  animation: fadeUp 0.9s 0.2s ease both; 
}

.hero-desc { 
  font-size: clamp(0.9rem, 2.3vw, 1.1rem); 
  font-weight: 300; 
  color: rgba(253,246,227,0.72); 
  line-height: 1.85; 
  max-width: 560px; 
  margin: 0 auto 10.5rem;
  animation: fadeUp 0.9s 0.3s ease both; 
}

.hero-scroll { 
  display: inline-flex; 
  align-items: center; 
  gap: 0.5rem; 
  font-size: 0.75rem; 
  letter-spacing: 0.15em; 
  text-transform: uppercase; 
  color: rgba(253,246,227,0.38); 
  animation: fadeUp 0.9s 0.5s ease both; 
  margin-top: -10rem; 
}

.scroll-line { 
  width: 36px; 
  height: 10px; 
  background: rgba(253,246,227,0.28); 
}

@keyframes fadeUp { 
  from { opacity: 0; transform: translateY(22px); } 
  to { opacity: 1; transform: translateY(0); } 
}

/* EVENTS SLIDER */
.events-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, #0D1A0F 0%, #0A1210 100%);
  border-top: 1px solid rgba(201,146,45,0.12);
}
.events-inner { max-width: 1200px; margin: 0 auto; }
.events-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem; }
.events-nav { display: flex; gap: 0.75rem; }
.ev-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(201,146,45,0.08); border: 1px solid rgba(201,146,45,0.25);
  color: var(--gold); font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.ev-btn:hover { background: rgba(201,146,45,0.18); border-color: rgba(201,146,45,0.5); }
.events-track-wrap { overflow: hidden; }
.events-track { display: flex; gap: 1.5rem; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }

.event-card {
  flex: 0 0 calc(33.333% - 1rem); min-width: 0;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.event-card:hover { border-color: rgba(201,146,45,0.35); transform: translateY(-4px); }
.event-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.event-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.4rem;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(253,246,227,0.3);
}
.ev-tag {
  display: inline-block; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.25rem 0.75rem; border-radius: 100px; margin-bottom: 0.6rem; font-weight: 500;
}
.ev-tag.featured { background: rgba(232,103,10,0.15); color: #F0804A; border: 1px solid rgba(232,103,10,0.3); }
.ev-tag.soon     { background: rgba(201,146,45,0.12); color: var(--gold); border: 1px solid rgba(201,146,45,0.28); }
.ev-tag.annual   { background: rgba(74,143,168,0.12); color: #7ABFD4; border: 1px solid rgba(74,143,168,0.28); }
.event-body { padding: 1.25rem 1.4rem 1.5rem; }
.event-title { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--cream); margin-bottom: 0.5rem; line-height: 1.3; }
.event-meta { font-size: 0.78rem; color: rgba(253,246,227,0.45); margin-bottom: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.event-desc { font-size: 0.875rem; font-weight: 300; color: rgba(253,246,227,0.6); line-height: 1.7; }

.ev-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.75rem; }
.ev-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(201,146,45,0.25); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.ev-dot.active { background: var(--gold); transform: scale(1.3); }

/* SECTION COMMON */
section { padding: 5rem 1.5rem; }
.section-label { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; display: block; }
.section-title { font-family: 'DM Serif Display', serif; font-size: clamp(1.9rem, 4.5vw, 3rem); color: var(--cream); line-height: 1.15; margin-bottom: 1.2rem; }
.section-body { font-size: 1rem; font-weight: 300; color: rgba(253,246,227,0.7); line-height: 1.85; max-width: 620px; }

/* ABOUT */
.about { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat-card { background: rgba(201,146,45,0.07); border: 1px solid rgba(201,146,45,0.2); border-radius: 12px; padding: 1.5rem; transition: background 0.3s, border 0.3s; }
.stat-card:hover { background: rgba(201, 146, 45, 0.251); border-color: rgba(201,146,45,0.4); }
.stat-num { font-family: 'DM Serif Display', serif; font-size: 2.8rem; color: var(--saffron); line-height: 1; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.82rem; font-weight: 400; color: rgba(253,246,227,0.55); letter-spacing: 0.05em; }

/* =========================================
   GALLERY (MULTI-ITEM ROW SLIDER)
========================================= */
.gallery-section { 
  background: rgba(255,255,255,0.02); 
  border-top: 1px solid rgba(201,146,45,0.1); 
  border-bottom: 1px solid rgba(201,146,45,0.1); 
  padding: 5rem 1.5rem; 
}

.gallery-inner { 
  max-width: 1200px; 
  margin: 0 auto; 
}

.gallery-header { 
  display: flex; 
  align-items: flex-end; 
  justify-content: space-between; 
  margin-bottom: 3.5rem; 
  flex-wrap: wrap; 
  gap: 1rem; 
}

/* Track hiding the overflow */
.gallery-track-wrap { 
  overflow: hidden; 
  padding-bottom: 1.5rem; /* Leaves room for the hover shadow */
}

.gallery-track { 
  display: flex; 
  gap: 1.5rem; /* Clean 24px gap between cards */
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); 
}

/* Gallery Item Styling */
.gallery-item { 
  flex: 0 0 calc(33.333% - 1rem); /* 3 items perfectly fit the row */
  min-width: 0;
  position: relative; 
  border-radius: 12px; 
  overflow: hidden; 
  aspect-ratio: 4/3; 
  cursor: pointer; 
  background: rgba(255,255,255,0.04); 
  border: 1px solid rgba(201,146,45,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}

/* Hover Effects for UI Polish */
.gallery-item:hover {
  transform: translateY(-6px);
  border-color: rgba(201,146,45,0.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Overlay & Caption */
.gallery-overlay { 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%); 
  opacity: 0; 
  transition: opacity 0.4s; 
  display: flex; 
  align-items: flex-end; 
  padding: 1.2rem; 
  pointer-events: none; /* Keeps lightbox clicks working */
}

.gallery-item:hover .gallery-overlay { 
  opacity: 1; 
}

.gallery-caption { 
  font-size: 0.9rem; 
  font-weight: 500; 
  color: var(--cream); 
  letter-spacing: 0.02em; 
}

/* Internal Auto-Sliding Images */
.gallery-slider {
  display: flex;
  height: 100%;
  animation: slide 15s infinite;
}

.gallery-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 0 0 100%;
}

/* =========================================
   GALLERY NAVIGATION DOTS
========================================= */
.gal-dots { 
  display: flex; 
  gap: 0.5rem; 
  justify-content: center; 
  margin-top: 1.75rem; /* Changed to match Events section spacing exactly */
}

.gal-dot { 
  width: 6px; 
  height: 6px; 
  border-radius: 50%; 
  background: rgba(201,146,45,0.25); 
  cursor: pointer; 
  transition: background 0.2s, transform 0.2s; 
}

.gal-dot.active { 
  background: var(--gold); 
  transform: scale(1.3); 
}

@keyframes slide {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(0); }
  30%  { transform: translateX(-100%); }
  55%  { transform: translateX(-100%); }
  60%  { transform: translateX(-200%); }
  85%  { transform: translateX(-200%); }
  90%  { transform: translateX(-300%); }
  100% { transform: translateX(-300%); }
}

/* Responsive Rules for smaller screens */
@media (max-width: 900px) {
  .gallery-item { flex: 0 0 calc(50% - 0.75rem); } /* 2 items on tablets */
}
@media (max-width: 600px) {
  .gallery-item { flex: 0 0 100%; } /* 1 item on phones */
}
/* PROGRAMS */
.programs-inner { max-width: 1200px; margin: 0 auto; }
.programs-header { margin-bottom: 3rem; }
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.program-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 2rem 1.75rem; transition: border-color 0.3s, background 0.3s, transform 0.3s; }
.program-card:hover { border-color: rgba(201,146,45,0.35); background: rgba(201,146,45,0.05); transform: translateY(-4px); }
.program-icon { font-size: 1.9rem; margin-bottom: 1.2rem; display: block; }
.program-title { font-family: 'DM Serif Display', serif; font-size: 1.25rem; color: var(--cream); margin-bottom: 0.75rem; }
.program-desc { font-size: 0.88rem; font-weight: 300; color: rgba(253,246,227,0.6); line-height: 1.75; }

/* QUOTE */
.quote-section { text-align: center; background: linear-gradient(135deg, rgba(201,146,45,0.06), rgba(232,103,10,0.04)); border-top: 1px solid rgba(201,146,45,0.12); border-bottom: 1px solid rgba(201,146,45,0.12); }
.quote-mark { font-family: 'DM Serif Display', serif; font-size: 7rem; line-height: 0.5; color: var(--gold); opacity: 0.2; display: block; margin-bottom: 1rem; }
.quote-text { font-family: 'DM Serif Display', serif; font-size: clamp(1.3rem, 3.2vw, 2rem); font-style: italic; color: var(--cream); max-width: 740px; margin: 0 auto 1.5rem; line-height: 1.5; }
.quote-author { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

/* FOOTER */
footer { background: #080F09; padding: 2rem 1rem; text-align: center; border-top: 1px solid rgba(201,146,45,0.15); }
.footer-logo-wrap { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 0.5rem; }
.footer-logo-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(201,146,45,0.4); }
.footer-logo { font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: var(--gold); }
.footer-sub { font-size: 0.74rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(222, 172, 32, 0.86); margin-bottom: 0rem; }
.footer-links { display: flex; gap: 2rem; justify-content: center; list-style: none; margin-bottom: 1.5rem; }
.footer-links a { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(253,246,227,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.72rem; color: rgba(253,246,227,0.18); }


   /* SOCIAL MEDIA ICONS (OFFICIAL COLORS) */

.social-icons {
    align-items: center; 
  }
  
  .social-svg {
    width: 26px;
    height: 26px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), fill 0.3s;
  }
  
  /* Base states (muted cream color before hover) */
  .fb-svg { fill: rgba(253,246,227,0.4); }
  .ig-svg { fill: rgba(253,246,227,0.4); }
  .tk-cyan { fill: transparent; transition: fill 0.3s; }
  .tk-red { fill: transparent; transition: fill 0.3s; }
  .tk-white { fill: rgba(253,246,227,0.4); transition: fill 0.3s; }
  
  /* Global Hover Animation */
  .social-link:hover .social-svg {
    transform: translateY(-4px) scale(1.1);
  }

  .ig-svg { 
    fill: rgba(253,246,227,0.4); 
  }
  
  /* Facebook Official Color on Hover */
  .fb-link:hover .fb-svg {
    fill: #0866FF; 
  }
  
  
   /* RETRO INSTAGRAM LOGO LOGIC */

/* Base State: Blends into a single flat shape */
.ig-old-bot, .ig-old-top, .ig-old-stripe1, .ig-old-stripe2, .ig-old-stripe3, .ig-old-stripe4, .ig-old-lens {
    fill: rgba(253,246,227,0.4);
    transition: fill 0.3s;
  }
  
  /* Base State Cutouts: These match your footer background (#080F09) to act as negative space */
  .ig-old-ring, .ig-old-glare, .ig-old-view {
    fill: #080F09; 
    transition: fill 0.3s;
  }
  
  /* Hover State: Paints the retro colors */
  .ig-link:hover .ig-old-bot { fill: #724E3A; }      /* Brown body */
  .ig-link:hover .ig-old-top { fill: #E1D0B1; }      /* Tan top */
  .ig-link:hover .ig-old-stripe1 { fill: #C43229; }  /* Red stripe */
  .ig-link:hover .ig-old-stripe2 { fill: #E39C24; }  /* Yellow stripe */
  .ig-link:hover .ig-old-stripe3 { fill: #6CA93A; }  /* Green stripe */
  .ig-link:hover .ig-old-stripe4 { fill: #325D8F; }  /* Blue stripe */
  .ig-link:hover .ig-old-ring { fill: #2C2C2C; }     /* Grey lens bezel */
  .ig-link:hover .ig-old-lens { fill: #111111; }     /* Black glass */
  .ig-link:hover .ig-old-glare { fill: #FFFFFF; }    /* White reflection */
  .ig-link:hover .ig-old-view { fill: #111111; }     /* Black viewfinder */
  
  /* TikTok Official 3D Colors on Hover */
  .tk-link:hover .tk-cyan { fill: #25F4EE; }
  .tk-link:hover .tk-red { fill: #FE2C55; }
  .tk-link:hover .tk-white { fill: #FFFFFF; }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .about { grid-template-columns: 1fr; gap: 3rem; }
  .programs-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(5) { grid-column: auto; aspect-ratio: 4/3; }
  .event-card { flex: 0 0 calc(50% - 0.75rem); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .event-card { flex: 0 0 100%; }
  .mandala-wrap { width: min(360px, 95vw); height: min(360px, 95vw); }
  .logo-center { width: min(110px, 28vw); height: min(110px, 28vw); }
}

   /* LIGHTBOX / IMAGE POPUP */

.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 26, 15, 0.95); /* Matches your dark green theme */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
  }
  
  .lightbox.active {
    display: flex;
  }
  
  .lb-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border: 1px solid rgba(201,146,45,0.3); /* Subtle gold border */
    border-radius: 8px;
    animation: lbZoom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  @keyframes lbZoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  
  .lb-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: rgba(253,246,227,0.7);
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.2s, transform 0.2s;
  }
  
  .lb-close:hover { 
    color: var(--gold); 
    transform: scale(1.1);
  }
  
  .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201,146,45,0.1);
    border: 1px solid rgba(201,146,45,0.3);
    color: var(--gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }
  
  .lb-nav:hover {
    background: rgba(201,146,45,0.3);
    border-color: var(--gold);
    color: var(--cream);
  }
  
  .lb-prev { left: 30px; }
  .lb-next { right: 30px; }
  
  /* Let clicks pass through the overlay so the javascript registers the click on the container */
  .gallery-overlay {
    pointer-events: none; 
  }
  
  /* Responsive adjustments for mobile */
  @media (max-width: 600px) {
    .lb-prev { left: 10px; }
    .lb-next { right: 10px; }
    .lb-close { top: 15px; right: 20px; }
  }