/* ============================================================
   Sri Chaitanya Shaktipeetham — Professional Website Styles
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --saffron:       #E07B39;
  --saffron-light: #F5A623;
  --saffron-dark:  #B85F1E;
  --maroon:        #8B1A1A;
  --maroon-dark:   #5C0B0B;
  --gold:          #C8960C;
  --gold-light:    #F0C040;
  --cream:         #FFF8ED;
  --cream-2:       #F5EDD8;
  --dark:          #1A0500;
  --dark-2:        #2C0E0E;
  --text:          #2C1810;
  --text-light:    #6D4C41;
  --white:         #ffffff;
  --green:         #2E7D32;
  --green-dark:    #1B5E20;

  --font-head: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;

  --radius:    10px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.18);
  --tr:        all .3s ease;

  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); line-height: 1.7; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Section Base ---------- */
section { padding: 88px 0; }
.section-light  { background: var(--cream); }
.section-cream  { background: var(--cream-2); }
.section-dark   { background: var(--dark-2); }
.section-maroon { background: var(--maroon-dark); }
.section-saffron{ background: linear-gradient(135deg, var(--maroon) 0%, var(--saffron-dark) 60%, var(--saffron) 100%); }
.section-grand  { background: linear-gradient(160deg, #100200 0%, #3B0B0B 50%, #6B1A06 100%); }
.section-green  { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%); }

/* ---------- Section Header ---------- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--maroon); margin-top: 10px; }
.section-header h2.white { color: var(--white); }
.section-tag { display: inline-block; background: var(--saffron); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 4px 16px; border-radius: 50px; margin-bottom: 10px; }
.section-tag.white { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); }
.section-desc { color: var(--text-light); max-width: 640px; margin: 14px auto 0; font-size: .97rem; }
.section-desc.white { color: rgba(255,255,255,.85); }
.divider { font-size: 1.8rem; color: var(--gold); margin-top: 10px; }
.divider.white { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius); font-size: .95rem; font-weight: 600; transition: var(--tr); cursor: pointer; }
.btn-primary      { background: var(--saffron); color: #fff; }
.btn-primary:hover{ background: var(--saffron-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(224,123,57,.4); }
.btn-gold         { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); color: var(--dark-2); font-weight: 700; }
.btn-gold:hover   { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,150,12,.4); }
.btn-saffron      { background: var(--saffron); color: #fff; }
.btn-saffron:hover{ background: var(--saffron-dark); transform: translateY(-2px); }
.btn-enroll       { background: var(--maroon); color: #fff; font-size: .88rem; padding: 10px 22px; margin-top: auto; }
.btn-enroll:hover { background: var(--maroon-dark); transform: translateY(-2px); }
.btn-sm           { padding: 8px 18px; font-size: .85rem; }
.btn-lg           { padding: 15px 34px; font-size: 1rem; }
.btn-full         { width: 100%; justify-content: center; }
.btn-outline-dark { border: 2px solid var(--maroon); color: var(--maroon); }
.btn-outline-dark:hover { background: var(--maroon); color: #fff; }
.btn-outline-light{ border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover{ background: rgba(255,255,255,.15); }
.btn-white-green  { background: #fff; color: var(--green-dark); font-weight: 700; }
.btn-white-green:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Navigation ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(26,5,0,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,150,12,.2);
  transition: var(--tr);
}
#navbar.scrolled { background: rgba(26,5,0,1); box-shadow: var(--shadow-lg); }
.nav-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.nav-om { font-size: 1.9rem; color: var(--gold); line-height: 1; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-main { font-family: var(--font-head); font-size: .95rem; font-weight: 600; color: #fff; letter-spacing: .5px; }
.nav-logo-sub  { font-size: .72rem; color: rgba(255,255,255,.6); letter-spacing: .3px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links li { position: relative; }
.nav-links a { color: rgba(255,255,255,.85); font-size: .88rem; font-weight: 500; padding: 8px 14px; border-radius: 6px; transition: var(--tr); display: flex; align-items: center; gap: 5px; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.active { color: var(--gold); }
.nav-cta { background: var(--saffron) !important; color: #fff !important; padding: 8px 18px !important; border-radius: var(--radius) !important; }
.nav-cta:hover { background: var(--saffron-dark) !important; }

/* Dropdown */
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; background: var(--dark-2); border: 1px solid rgba(200,150,12,.2); border-radius: var(--radius); min-width: 200px; list-style: none; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: var(--tr); box-shadow: var(--shadow-lg); }
.dropdown li a { padding: 9px 20px; font-size: .85rem; white-space: nowrap; }
.dropdown li a:hover { background: rgba(224,123,57,.15); color: var(--saffron-light); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--tr); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--dark-2); z-index: 999; padding: 20px 0; border-bottom: 2px solid var(--saffron); max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.mobile-menu ul li a { display: block; padding: 12px 28px; color: rgba(255,255,255,.85); font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.06); transition: var(--tr); }
.mobile-menu ul li a:hover { color: var(--gold); background: rgba(255,255,255,.05); }
.mobile-menu.open { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding-top: var(--nav-h); }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(160deg, #100200 0%, #3B0A0A 35%, #7A2800 65%, #C8600A 85%, #E8A040 100%); z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 30%, rgba(0,0,0,.5) 100%); z-index: 1; }
/* Om watermark */
.hero-bg::after { content: 'ॐ'; position: absolute; font-size: 60vw; color: rgba(255,255,255,.03); top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; font-family: serif; line-height: 1; }
.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 0 24px; }
.hero-trust { color: rgba(255,255,255,.65); font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; }
.hero-om-symbol { font-size: clamp(3rem, 8vw, 5rem); color: var(--gold); line-height: 1; margin-bottom: 16px; filter: drop-shadow(0 0 20px rgba(200,150,12,.5)); animation: pulse-om 3s ease-in-out infinite; }
@keyframes pulse-om { 0%,100%{ filter: drop-shadow(0 0 20px rgba(200,150,12,.5)); } 50%{ filter: drop-shadow(0 0 40px rgba(200,150,12,.9)); } }
.hero-title { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.hero-title span { color: var(--gold-light); }
.hero-sub { color: rgba(255,255,255,.75); font-size: clamp(.9rem, 2vw, 1.1rem); margin-bottom: 12px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.5); font-size: 1.2rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100%{ transform: translateX(-50%) translateY(0); } 50%{ transform: translateX(-50%) translateY(10px); } }

/* ---------- Stats ---------- */
.stats-section { background: linear-gradient(135deg, var(--maroon-dark), var(--dark-2)); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; text-align: center; }
.stat-item { color: #fff; }
.stat-icon { font-size: 2rem; color: var(--gold); margin-bottom: 10px; }
.stat-num  { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--gold-light); }
.stat-plus { font-size: 1.6rem; font-weight: 700; color: var(--saffron-light); }
.stat-item p { font-size: .85rem; color: rgba(255,255,255,.7); margin-top: 6px; max-width: 140px; margin-inline: auto; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 52px; align-items: start; }
.about-img-placeholder { background: linear-gradient(135deg, var(--maroon), var(--saffron-dark)); border-radius: var(--radius-lg); height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.big-om { font-size: 6rem; color: var(--gold-light); }
.about-img-placeholder p { margin-top: 10px; font-family: var(--font-head); font-size: 1.1rem; opacity: .9; }
.about-quote { margin-top: 20px; padding: 18px 20px; background: var(--cream-2); border-left: 4px solid var(--saffron); border-radius: 0 var(--radius) var(--radius) 0; }
.about-quote blockquote { font-style: italic; color: var(--text); font-size: .95rem; line-height: 1.7; }
.about-quote cite { display: block; margin-top: 8px; font-size: .85rem; color: var(--saffron-dark); font-weight: 600; font-style: normal; }
.about-text .lead { font-size: 1.07rem; font-weight: 500; color: var(--text); margin-bottom: 16px; }
.about-text p { color: var(--text-light); margin-bottom: 14px; font-size: .96rem; }
.about-checks { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; color: var(--text); }
.check-item i { color: var(--saffron); margin-top: 3px; flex-shrink: 0; }

/* ---------- Programs ---------- */
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.program-card { background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-lg); padding: 28px; color: #fff; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; transition: var(--tr); }
.program-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.15); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.program-card.featured-card { border-color: var(--gold); background: rgba(200,150,12,.12); }
.featured-badge { position: absolute; top: 16px; right: 16px; background: var(--gold); color: var(--dark-2); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; }
.program-icon { font-size: 2.4rem; }
.program-card h3 { font-family: var(--font-head); font-size: 1.1rem; color: var(--gold-light); }
.program-card p { font-size: .9rem; color: rgba(255,255,255,.8); flex: 1; }
.feat-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.feat-list li { font-size: .85rem; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 8px; }
.feat-list li i { color: var(--gold); font-size: .75rem; }

/* ---------- Temple ---------- */
.temple-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.temple-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--saffron); transition: var(--tr); }
.temple-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.temple-card.big { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; border-top-color: var(--maroon); }
.temple-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.temple-card.big .temple-card-top { flex-direction: column; align-items: flex-start; }
.temple-icon { font-size: 2.4rem; color: var(--saffron); }
.temple-icon.sm { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.temple-card h3 { font-family: var(--font-head); font-size: 1.1rem; color: var(--maroon); margin-bottom: 10px; }
.temple-card p { font-size: .93rem; color: var(--text-light); line-height: 1.7; }
.temple-stats-row { display: flex; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.temple-stats-row span { background: var(--cream-2); padding: 5px 14px; border-radius: 50px; font-size: .83rem; font-weight: 600; color: var(--maroon); }
.state-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.state-tags span { background: var(--cream-2); padding: 4px 12px; border-radius: 50px; font-size: .78rem; font-weight: 600; color: var(--saffron-dark); }
.ayodhya-banner { margin-top: 40px; background: linear-gradient(135deg, var(--maroon-dark), var(--maroon)); border-radius: var(--radius-lg); padding: 36px; color: #fff; display: flex; gap: 28px; align-items: flex-start; }
.ayodhya-icon { font-size: 3rem; flex-shrink: 0; }
.ayodhya-banner h3 { font-family: var(--font-head); font-size: 1.25rem; color: var(--gold-light); margin-bottom: 10px; }
.ayodhya-banner p { font-size: .93rem; color: rgba(255,255,255,.85); line-height: 1.8; }

/* ---------- Welfare ---------- */
.welfare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.welfare-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 28px; color: #fff; transition: var(--tr); }
.welfare-card:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.welfare-icon { width: 52px; height: 52px; background: rgba(224,123,57,.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.welfare-icon i { font-size: 1.4rem; color: var(--saffron-light); }
.welfare-card h3 { font-family: var(--font-head); font-size: 1rem; color: var(--gold-light); margin-bottom: 10px; }
.welfare-card p { font-size: .9rem; color: rgba(255,255,255,.75); line-height: 1.7; }

/* ---------- Youth & Family ---------- */
.youth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.youth-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); transition: var(--tr); display: flex; flex-direction: column; gap: 12px; }
.youth-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.youth-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.youth-icon i { font-size: 1.3rem; color: #fff; }
.c-warning { background: #F57C00; }
.c-danger  { background: var(--maroon); }
.c-success { background: var(--green); }
.c-primary { background: var(--saffron-dark); }
.c-gold    { background: var(--gold); }
.c-saffron { background: var(--saffron); }
.youth-card h3 { font-family: var(--font-head); font-size: 1rem; color: var(--maroon); }
.youth-card p { font-size: .9rem; color: var(--text-light); line-height: 1.7; flex: 1; }

/* ---------- Tabs (Unity) ---------- */
.tabs-wrapper { }
.tab-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab-btn { padding: 10px 22px; border-radius: var(--radius); border: 2px solid var(--saffron); color: var(--saffron-dark); font-weight: 600; font-size: .88rem; transition: var(--tr); }
.tab-btn.active, .tab-btn:hover { background: var(--saffron); color: #fff; border-color: var(--saffron); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.tab-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-left: 4px solid var(--saffron); transition: var(--tr); }
.tab-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tab-card i { font-size: 1.6rem; color: var(--saffron); margin-bottom: 12px; display: block; }
.tab-card h4 { font-family: var(--font-head); font-size: .98rem; color: var(--maroon); margin-bottom: 8px; }
.tab-card p { font-size: .88rem; color: var(--text-light); line-height: 1.7; }

/* ---------- Mega Projects ---------- */
.mega-hero { border: 2px solid rgba(200,150,12,.3); border-radius: var(--radius-lg); padding: 48px; margin-bottom: 40px; background: rgba(200,150,12,.05); }
.mega-label { display: inline-block; background: var(--gold); color: var(--dark-2); font-size: .78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 14px; border-radius: 50px; margin-bottom: 16px; }
.mega-hero h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--gold-light); margin-bottom: 16px; }
.mega-lead { font-size: 1.05rem; color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 780px; }
.dasha-names { background: rgba(255,255,255,.05); border-radius: var(--radius); padding: 24px; margin-bottom: 28px; border: 1px solid rgba(200,150,12,.2); }
.dasha-names h4 { color: var(--gold); font-family: var(--font-head); margin-bottom: 14px; font-size: 1rem; }
.devi-row { display: flex; flex-wrap: wrap; gap: 10px; }
.devi-row span { background: rgba(200,150,12,.15); border: 1px solid rgba(200,150,12,.3); color: var(--gold-light); padding: 5px 14px; border-radius: 50px; font-size: .88rem; font-weight: 600; }
.also-inc { margin-top: 12px; color: rgba(255,255,255,.75); font-size: .9rem; }
.facilities-section h4 { color: var(--gold); font-family: var(--font-head); margin-bottom: 16px; font-size: 1rem; }
.facilities-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; list-style: none; }
.facilities-list li { color: rgba(255,255,255,.85); font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.facilities-list li i { color: var(--gold); font-size: .85rem; width: 18px; }
.mega-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

/* Baglamukhi */
.bagla-section { background: rgba(255,255,255,.06); border: 2px solid rgba(200,150,12,.3); border-radius: var(--radius-lg); padding: 40px; margin-bottom: 40px; text-align: center; position: relative; }
.bagla-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--saffron); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 18px; border-radius: 50px; }
.bagla-icon { font-size: 3rem; margin-bottom: 12px; }
.bagla-section h3 { font-family: var(--font-head); font-size: 1.9rem; color: var(--gold-light); margin-bottom: 14px; }
.bagla-section > p { max-width: 700px; margin: 0 auto 28px; color: rgba(255,255,255,.8); font-size: .97rem; line-height: 1.8; }
.bagla-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; margin-bottom: 32px; }
.bagla-col { background: rgba(255,255,255,.05); border-radius: var(--radius); padding: 20px; border: 1px solid rgba(200,150,12,.15); }
.bagla-col h5 { color: var(--gold); font-family: var(--font-head); margin-bottom: 12px; font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.bagla-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.bagla-col li { font-size: .88rem; color: rgba(255,255,255,.78); padding-left: 14px; position: relative; }
.bagla-col li::before { content: '·'; position: absolute; left: 0; color: var(--gold); }

/* Other Projects */
.other-projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.other-proj { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 28px; color: #fff; transition: var(--tr); }
.other-proj:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.proj-emoji { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.other-proj h4 { font-family: var(--font-head); font-size: 1rem; color: var(--gold-light); margin-bottom: 10px; }
.other-proj p { font-size: .88rem; color: rgba(255,255,255,.72); line-height: 1.7; }

/* ---------- Environment ---------- */
.env-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.env-card { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-lg); padding: 28px; color: #fff; transition: var(--tr); }
.env-card:hover { background: rgba(0,0,0,.35); transform: translateY(-4px); }
.env-card.big { grid-column: span 2; }
.env-emoji { font-size: 2.8rem; margin-bottom: 12px; }
.env-card h3 { font-family: var(--font-head); font-size: 1.1rem; color: #a5d6a7; margin-bottom: 10px; }
.env-card p { font-size: .9rem; color: rgba(255,255,255,.8); line-height: 1.7; margin-bottom: 14px; }
.env-howto h5 { color: var(--gold-light); margin-bottom: 10px; font-size: .88rem; }
.env-howto ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.env-howto li { font-size: .87rem; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 8px; }
.env-howto li i { color: #a5d6a7; }
.cow-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cow-tags span { background: rgba(165,214,167,.15); border: 1px solid rgba(165,214,167,.3); color: #a5d6a7; padding: 4px 12px; border-radius: 50px; font-size: .8rem; }

/* ---------- Policy ---------- */
.policy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.policy-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow); position: relative; border-top: 4px solid var(--saffron); transition: var(--tr); }
.policy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.policy-num { font-family: var(--font-head); font-size: 3rem; color: var(--cream-2); font-weight: 900; position: absolute; top: 12px; right: 20px; line-height: 1; }
.policy-card h3 { font-family: var(--font-head); font-size: 1.05rem; color: var(--maroon); margin-bottom: 10px; }
.policy-card p { font-size: .9rem; color: var(--text-light); line-height: 1.75; }

/* ---------- Gallery ---------- */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.gal-btn { padding: 7px 18px; border-radius: 50px; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); font-size: .83rem; transition: var(--tr); }
.gal-btn.active, .gal-btn:hover { background: var(--saffron); color: #fff; border-color: var(--saffron); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gal-item.hidden { display: none; }
.gal-placeholder { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(255,255,255,.4); transition: var(--tr); cursor: pointer; }
.gal-placeholder:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); transform: scale(1.02); }
.gal-placeholder i { font-size: 2rem; }
.gal-placeholder p { font-size: .82rem; text-align: center; padding: 0 10px; }

/* ---------- Gallery Page ---------- */
.gallery-page-banner {
  background: linear-gradient(160deg, #100200 0%, #3B0B0B 50%, #6B1A06 100%);
  padding: 120px 0 56px;
  text-align: center;
  color: #fff;
}
.gallery-banner-om {
  font-size: 3rem;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 12px;
  font-family: var(--font-head);
}
.gallery-page-banner h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold-light);
  margin-bottom: 12px;
}
.gallery-page-banner p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 20px;
}
.gallery-banner-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  transition: color .25s;
}
.gallery-banner-back:hover { color: var(--saffron-light); }

.gallery-page-section { padding: 60px 0 80px; }

/* Real image items (replaces placeholder) */
.gal-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,.05);
}
.gal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gal-item:hover .gal-img { transform: scale(1.06); }

.gal-caption {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color: #fff;
  font-size: .8rem;
  padding: 28px 10px 9px;
  text-align: center;
  opacity: 0;
  transition: opacity .3s;
}
.gal-item:hover .gal-caption { opacity: 1; }

/* Video play overlay */
.gal-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.22);
  transition: background .3s;
}
.gal-play-overlay i {
  font-size: 3rem;
  color: rgba(255,255,255,.85);
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
  transition: transform .3s, color .3s;
}
.gal-item:hover .gal-play-overlay            { background: rgba(0,0,0,.38); }
.gal-item:hover .gal-play-overlay i          { transform: scale(1.14); color: var(--saffron-light); }

/* Count label & empty state */
.gallery-count {
  color: rgba(255,255,255,.45);
  font-size: .82rem;
  text-align: right;
  margin-bottom: 14px;
}
.gallery-empty {
  text-align: center;
  color: rgba(255,255,255,.38);
  padding: 72px 0;
}
.gallery-empty i    { font-size: 3rem; display: block; margin-bottom: 14px; }
.gallery-empty.hidden { display: none; }

/* Load More */
.gallery-load-more {
  text-align: center;
  margin-top: 44px;
}
.gallery-load-more.hidden { display: none; }

/* Album badge on gallery grid */
.album-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,.65);
  color: var(--gold-light);
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  letter-spacing: .4px;
  pointer-events: none;
}
.album-badge i        { margin-right: 4px; }
.gal-item > .gal-placeholder { height: 100%; border-radius: 0; border: none; }  /* fill grid cell */
.gal-item.album .gal-caption { opacity: 1; }  /* always show title on albums */

/* ---- Event Detail Modal ---- */
.event-modal {
  position: fixed;
  inset: 0;
  z-index: 8888;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 40px;
  overflow-y: auto;
}
.event-modal.open { display: flex; }

.event-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.86);
  z-index: -1;
}
.event-modal-inner {
  position: relative;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  margin: auto;
  color: #fff;
  overflow: hidden;
}
.event-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr);
  z-index: 1;
}
.event-modal-close:hover { background: var(--maroon); color: #fff; }

.event-modal-header {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 60%, var(--saffron-dark) 100%);
  padding: 32px 56px 28px 32px;
}
.event-modal-tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: var(--gold-light);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.event-modal-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: #fff;
  margin-bottom: 10px;
}
.event-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255,255,255,.65);
  font-size: .85rem;
}
.event-modal-meta i { margin-right: 5px; color: var(--gold-light); }

.event-modal-body { padding: 28px 32px; }

.event-modal-desc {
  color: rgba(255,255,255,.78);
  font-size: .96rem;
  line-height: 1.85;
  margin-bottom: 28px;
  white-space: pre-line;
}
.event-modal-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}
.event-photo-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,.05);
}
.event-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.event-photo-item:hover img { transform: scale(1.06); }
.event-photo-caption {
  position: absolute;
  inset: auto 0 0;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: .72rem;
  padding: 4px 8px;
  text-align: center;
  opacity: 0;
  transition: opacity .3s;
}
.event-photo-item:hover .event-photo-caption { opacity: 1; }

.event-no-photos {
  color: rgba(255,255,255,.45);
  font-size: .92rem;
  text-align: center;
  padding: 32px 0;
  grid-column: 1 / -1;
}
.event-no-photos i { margin-right: 8px; }

.event-modal-links-wrap          { margin-top: 8px; }
.event-modal-links-wrap.hidden   { display: none; }
.event-modal-links-wrap h4 {
  font-family: var(--font-head);
  font-size: .85rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.event-modal-links    { display: flex; flex-wrap: wrap; gap: 10px; }
.event-link-btn       { font-size: .88rem; padding: 9px 20px; }

@media (max-width: 768px) {
  .event-modal               { padding: 60px 10px 28px; }
  .event-modal-header        { padding: 22px 46px 20px 18px; }
  .event-modal-body          { padding: 20px 18px; }
  .event-modal-photos        { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
body.lb-open   { overflow: hidden; }

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.93);
}
.lightbox-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92vw, 1200px);
  max-height: 92vh;
}
.lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 80vh;
}
.lightbox-media img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
}
.lightbox-media iframe {
  width: min(88vw, 900px);
  height: min(49.5vw, 506px); /* 16:9 */
  border: none;
  border-radius: var(--radius);
  display: block;
}
.lightbox-caption {
  color: rgba(255,255,255,.82);
  font-size: .92rem;
  margin-top: 14px;
  text-align: center;
  padding: 0 20px;
  max-width: 700px;
}
.lightbox-counter {
  color: rgba(255,255,255,.4);
  font-size: .76rem;
  margin-top: 5px;
}
.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  color: rgba(255,255,255,.75);
  font-size: 1.4rem;
  z-index: 2;
  transition: color .2s, transform .2s;
  padding: 6px;
}
.lightbox-close:hover { color: var(--saffron); transform: scale(1.2); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: rgba(255,255,255,.75);
  font-size: 1.5rem;
  background: rgba(0,0,0,.45);
  border-radius: var(--radius);
  padding: 14px 17px;
  transition: var(--tr);
}
.lightbox-prev             { left: 16px; }
.lightbox-next             { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover       { background: var(--saffron); color: #fff; }
.lightbox-prev.hidden,
.lightbox-next.hidden      { opacity: 0; pointer-events: none; }

@media (max-width: 768px) {
  .lightbox-prev { left: 4px; padding: 10px 12px; }
  .lightbox-next { right: 4px; padding: 10px 12px; }
  .lightbox-media iframe { width: 90vw; height: 50.625vw; }
}

/* ---------- Donate ---------- */
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.donate-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 32px; color: #fff; display: flex; flex-direction: column; gap: 16px; position: relative; transition: var(--tr); }
.donate-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.donate-card.featured { border-color: var(--gold); background: rgba(200,150,12,.1); }
.donate-ribbon { position: absolute; top: -13px; left: 24px; background: var(--gold); color: var(--dark-2); font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 12px; border-radius: 50px; }
.donate-icon { font-size: 2.5rem; }
.donate-card h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--gold-light); }
.donate-card p { font-size: .9rem; color: rgba(255,255,255,.78); line-height: 1.7; flex: 1; }
.donate-list { display: flex; flex-direction: column; gap: 7px; }
.donate-list li { font-size: .88rem; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 8px; }
.donate-list li i { color: var(--gold); font-size: .8rem; }
.donate-note { margin-top: 36px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 20px 24px; display: flex; gap: 14px; align-items: flex-start; }
.donate-note i { color: var(--gold); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.donate-note p { font-size: .88rem; color: rgba(255,255,255,.72); line-height: 1.7; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 52px; align-items: start; }
.contact-info h3 { font-family: var(--font-head); font-size: 1.4rem; color: var(--maroon); }
.contact-sub { font-size: .9rem; color: var(--text-light); margin-top: 4px; margin-bottom: 28px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item i { font-size: 1.1rem; color: var(--saffron); margin-top: 4px; flex-shrink: 0; width: 20px; }
.contact-item strong { display: block; color: var(--text); font-weight: 600; font-size: .93rem; }
.contact-item p { color: var(--text-light); font-size: .9rem; margin-top: 2px; }
.social-row { display: flex; gap: 12px; }
.social-row a { width: 40px; height: 40px; background: var(--cream-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--maroon); font-size: .95rem; transition: var(--tr); }
.social-row a:hover { background: var(--saffron); color: #fff; transform: scale(1.1); }
.contact-form-wrap { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.contact-form-wrap h3 { font-family: var(--font-head); font-size: 1.3rem; color: var(--maroon); margin-bottom: 24px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { border: 1.5px solid #e0d5c5; border-radius: var(--radius); padding: 10px 14px; font-family: var(--font-body); font-size: .93rem; color: var(--text); transition: var(--tr); background: var(--cream); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--saffron); background: #fff; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.footer { background: #0D0200; }
.footer-top { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-om { font-size: 2.2rem; color: var(--gold); }
.f-logo-main { font-family: var(--font-head); font-size: 1rem; color: #fff; font-weight: 600; }
.f-logo-sub { font-size: .78rem; color: rgba(255,255,255,.55); }
.footer-tagline { color: var(--saffron-light); font-size: .9rem; font-weight: 600; margin-bottom: 10px; }
.footer-desc { font-size: .85rem; color: rgba(255,255,255,.55); line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.07); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: .9rem; transition: var(--tr); }
.footer-social a:hover { background: var(--saffron); color: #fff; transform: scale(1.1); }
.footer-links-col h4 { font-family: var(--font-head); font-size: .92rem; color: var(--gold); margin-bottom: 18px; letter-spacing: .5px; }
.footer-links-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col a { font-size: .85rem; color: rgba(255,255,255,.55); transition: var(--tr); }
.footer-links-col a:hover { color: var(--saffron-light); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.4); }

/* ---------- Back to Top ---------- */
.back-to-top { position: fixed; bottom: 30px; right: 30px; z-index: 999; width: 44px; height: 44px; background: var(--saffron); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: var(--tr); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--maroon); transform: translateY(-3px); }

/* ---------- Reveal Animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .temple-grid { grid-template-columns: 1fr 1fr; }
  .temple-card.big { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-width: 480px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .bagla-grid { grid-template-columns: 1fr; }
  .env-card.big { grid-column: span 1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  section { padding: 60px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .temple-grid { grid-template-columns: 1fr; }
  .temple-card.big { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .mega-hero { padding: 28px; }
  .bagla-section { padding: 28px 20px; }
  .ayodhya-banner { flex-direction: column; gap: 14px; }
  .tab-btns { gap: 6px; }
  .tab-btn { padding: 8px 14px; font-size: .82rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .mega-actions { flex-direction: column; }
  .devi-row { gap: 6px; }
  .programs-grid { grid-template-columns: 1fr; }
}
