/* ============================================================
   DAGA Foundation — Main Stylesheet
   Fonts: Tiro Marathi (headings), Noto Sans (body)
   Colors: Forest Green + Amber Accent
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --green-dark:    #1B5E20;
  --green-mid:     #2E7D32;
  --green-light:   #4CAF50;
  --green-pale:    #E8F5E9;
  --amber:         #FF8F00;
  --amber-light:   #FFB300;
  --amber-pale:    #FFF8E1;
  --bg:            #F9F6F0;
  --bg-card:       #FFFFFF;
  --text-dark:     #1A1A1A;
   --text-mid:      #1A1A1A  ;
 /* --text-mid:      #4A4A4A;*/
  --text-light:    #757575;
  --border:        #E0E0E0;
  --shadow:        0 1px 2px rgba(20,30,20,0.04), 0 6px 20px rgba(20,30,20,0.07);
  --shadow-hover:  0 4px 10px rgba(20,30,20,0.06), 0 14px 34px rgba(20,30,20,0.13);
  --radius:        14px;
  --radius-sm:     8px;
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber); }
ul { list-style: none; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Tiro Marathi', serif;
  color: var(--text-dark);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem); }
h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2rem); }
h3 { font-size: 1.5rem; }
p  { margin-bottom: 1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section {
  padding-block: 5rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  min-height: 44px;
  min-width: 120px;
  border-radius: var(--radius-sm);
  font-family: 'Noto Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.btn:active { transform: translateY(0); filter: brightness(0.96); }

.btn-green {
  background: var(--green-mid);
  color: #fff;
  border-color: var(--green-mid);
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,94,32,0.35);
}

.btn-amber {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}
.btn-amber:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,143,0,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--green-mid);
  border-color: var(--green-mid);
}
.btn-outline:hover {
  background: var(--green-mid);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.alert--success {
  background: #E8F5E9;
  color: #1B5E20;
  border: 1px solid #A5D6A7;
}
.alert--error {
  background: #FFEBEE;
  color: #B71C1C;
  border: 1px solid #EF9A9A;
}

/* ── Section Headings ────────────────────────────────────── */
.section-eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}
.section-title--center { text-align: center; }
.section-intro {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
  color: var(--text-mid);
  margin-bottom: 2.5rem;
}
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ── Navbar ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar {
  background: var(--green-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled { background: rgba(27,94,32,0.97); backdrop-filter: blur(8px); box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.nav-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-icon { font-size: 1.6rem; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: 'Tiro Marathi', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.brand-tagline {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.3;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.nav-link--active {
  color: #fff;
  background: rgba(255,255,255,0.18);
}
.nav-link--donate {
  background: var(--amber);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-weight: 700;
}
.nav-link--donate:hover {
  background: var(--amber-light) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.lang-toggle-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: rgba(255,255,255,0.88);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.lang-toggle-btn:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.hamburger-bar {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-dark) 0%, #2d5016 50%, #1a3a0a 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,143,0,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(76,175,80,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 800px;
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}
.hero-title {
  font-family: 'Tiro Marathi', serif;
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-tagline {
  font-size: 1.4rem;
  color: var(--amber-light);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.hero-reg {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2.25rem;
  letter-spacing: 0.04em;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--green-dark) 0%, #2d5016 100%);
  padding-block: 4rem;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  pointer-events: none;
}
.page-hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
}
.page-hero__content h1 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}
.page-hero__content p { color: rgba(255,255,255,0.78); margin: 0; }

/* ── Two Column Layout ───────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.two-col__image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}
.marathi-quote {
  font-family: 'Tiro Marathi', serif;
  font-size: 1.1rem;
  color: var(--green-mid);
  border-left: 3px solid var(--amber);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

/* ── Impact Counters ─────────────────────────────────────── 
.impact-section {
  background: var(--green-dark);
  color: #fff;
}
.impact-section .section-title {
  color: #fff;
}
*/
/* ══════════════════════════════════════════════════════════════
   FIX 4 — IMPACT SECTION: colourful cards, counter text visible
   The JS counter writes to .impact-number — just ensure colours
   are right so the animated number is readable
   ══════════════════════════════════════════════════════════════ */
.impact-section {
  background: linear-gradient(135deg, #0D3B14 0%, #1B5E20 45%, #1a3f5c 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}
.impact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(255,143,0,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(77,182,172,0.09) 0%, transparent 50%);
  pointer-events: none;
}
.impact-section .section-title { color: #fff !important; }



.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.impact-card {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform var(--transition);
}
.impact-card:hover { transform: translateY(-4px); }
.impact-number {
  display: block;
  font-family: 'Tiro Marathi', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--amber-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.impact-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
}

/* ── Activities Grid ─────────────────────────────────────── */
.activities-section { background: var(--bg-card); }
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.activity-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.activity-card__img-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center !important;
}
.activity-card__body { padding: 1.5rem; }
.activity-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-mid);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.activity-card__body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}
.activity-card__body p {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
}
.card-link {
  font-weight: 600;
  color: var(--green-mid);
  font-size: 0.88rem;
}
.card-link:hover { color: var(--amber); }

/* ── News Section ────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border-top: 3px solid var(--amber);
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.news-source {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-mid);
  margin-bottom: 0.5rem;
}
.news-headline {
  font-family: 'Tiro Marathi', serif;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.news-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* News Page Grid */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
.news-card-full {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card-full:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.news-card-full__img {
  width: 100%;
  height: 200px;
  background-color: #eee;
  overflow: hidden;
  position: relative;
}

.news-card-full__img a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.news-card-full__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}

.news-card-full__img a::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.news-card-full:hover .news-card-full__img img {
  transform: scale(1.02);
}

.news-card-full:hover .news-card-full__img a::after {
  opacity: 1;
}
.news-card-full__body { padding: 1.5rem; }
.news-card-full__source {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: var(--amber-pale);
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}
.news-card-full__headline {
  font-family: 'Tiro Marathi', serif;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.news-card-full__headline-mr {
  font-family: 'Tiro Marathi', serif;
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.news-card-full__date {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ── Transparency Table ──────────────────────────────────── */
.transparency-section { background: var(--bg-card); }
.transparency-table-wrap {
  max-width: 700px;
  margin-inline: auto;
  margin-top: 2.5rem;
}
.transparency-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.transparency-table th,
.transparency-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.transparency-table thead th {
  background: var(--green-dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}
.transparency-table tbody tr:nth-child(even) { background: var(--green-pale); }
.transparency-table tbody tr:last-child td { border-bottom: none; }
.stat-value { font-weight: 700; color: var(--green-mid); }

/* ── Donate CTA Banner ───────────────────────────────────── */
.donate-cta-section {
  background: linear-gradient(135deg, #E65100 0%, #FF8F00 100%);
  padding-block: 5rem;
}
.donate-cta-inner {
  text-align: center;
  color: #fff;
}
.donate-cta-inner h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}
.donate-cta-inner p {
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ── Gallery Page ────────────────────────────────────────── */
.gallery-lang-notice {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}
/* 2. Improve the Gallery Grid for varying image sizes */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start; /* Prevents cards from stretching to match height */
}
.gallery-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.gallery-card__img {
    width: 100%;
    height: 240px; /* Set a fixed height */
    background-color: #eee;
    overflow: hidden;
    position: relative;
}

.gallery-card__img a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.gallery-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops images to fill the box without stretching */
    object-position: center top; 
    transition: transform 0.5s ease;
    display: block;
}

.gallery-card__img a::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-card:hover .gallery-card__img img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.gallery-card:hover .gallery-card__img a::after {
    opacity: 1;
}
.gallery-card__body { padding: 1.5rem; }
.gallery-card__date {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.gallery-card__title {
  font-family: 'Tiro Marathi', serif;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.gallery-card__desc {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.6;
}
.gallery-loadmore-wrap { text-align: center; margin-top: 3rem; }

.gallery-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.gallery-page-btn {
  min-width: 2.2rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.95rem;
}

.gallery-page-btn.active,
.gallery-page-btn:disabled {
  background: var(--green-mid);
  color: #fff;
  cursor: default;
  opacity: 0.85;
}

.gallery-pagination-dots {
  display: inline-flex;
  align-items: center;
  color: #666;
  padding: 0 0.4rem;
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.gallery-controls label {
  font-weight: 600;
  color: var(--text-dark);
}

.gallery-controls select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--text-dark);
}

/* ── Magnific Popup Lightbox Customization ──────────────── */
.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
  opacity: 0;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.mfp-with-zoom.mfp-ready .mfp-container {
  opacity: 1;
}

.mfp-with-zoom.mfp-ready.mfp-bg {
  opacity: 0.8;
}

.mfp-with-zoom.mfp-removing .mfp-container,
.mfp-with-zoom.mfp-removing.mfp-bg {
  opacity: 0;
}

.mfp-img {
  padding: 0;
  max-width: 100%;
  height: auto;
}

.mfp-figure {
  line-height: 0;
}

.mfp-title {
  text-align: left;
  padding: 0.8rem 0;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.mfp-counter {
  position: fixed;
  top: 3rem;
  right: 1.5rem;
  color: #fff;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.6);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

/* ── Loading Spinner ─────────────────────────────────────── */
/* 1. Fix the Loading Spinner: Ensure it takes up space so cards don't overlap it */
.loading-spinner {
    display: flex;
    flex-direction: column; /* Stack ring and text */
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 1.5rem;
    width: 100%;
    grid-column: 1 / -1; /* Take full width in the grid */
}
.spinner-ring {
  display: inline-block;
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--green-mid);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
.loading-spinner[hidden], .loading-spinner.hidden {
  display: none !important;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── About Page ──────────────────────────────────────────── */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.mvv-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
}
.mvv-card--mission { border-top: 4px solid var(--green-mid); }
.mvv-card--vision  { border-top: 4px solid var(--amber); }
.mvv-card--values  { border-top: 4px solid var(--green-light); }
.mvv-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.mvv-card h3 { margin-bottom: 0.75rem; }

.timeline { margin-top: 2.5rem; }
.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; margin-bottom: 0; }
.timeline-marker {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-body h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.team-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
}
.team-avatar { font-size: 3rem; margin-bottom: 1rem; }
.team-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.team-card p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

.registration-section { background: var(--bg-card); }
.reg-card { max-width: 750px; margin-inline: auto; margin-top: 2.5rem; }
.reg-table { width: 100%; border-collapse: collapse; }
.reg-table th,
.reg-table td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.reg-table th {
  width: 200px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.88rem;
}
.reg-table td { color: var(--text-dark); }
.reg-table tr:last-child th,
.reg-table tr:last-child td { border-bottom: none; }

/* ── Donate Page ─────────────────────────────────────────── */
.donate-methods-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.donate-method-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.donate-method-card h2 { font-size: 1.4rem; margin-bottom: 1.25rem; }
.donate-method-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.bank-table { width: 100%; border-collapse: collapse; }
.bank-table th,
.bank-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.bank-table th { width: 45%; font-weight: 600; color: var(--text-light); font-size: 0.88rem; }
.bank-table tr:last-child th,
.bank-table tr:last-child td { border-bottom: none; }
.donate-note {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 1rem;
  background: var(--green-pale);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
}
.donate-method-card--upi { text-align: center; }
.qr-wrap { margin-block: 1rem; }
.qr-image {
  /* Change height to auto so it doesn't squish */
  width: 200px; 
  height: auto; 
  
  margin-inline: auto;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  
  /* Change 'cover' to 'contain' 👇 */
  object-fit: contain;
}
.qr-label {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* ── Forms ───────────────────────────────────────────────── */
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  max-width: 680px;
  margin-inline: auto;
}
.form-card h2 { margin-bottom: 1.5rem; }
.form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group--full { grid-column: 1 / -1; }
.form-submit-row { justify-content: flex-end; }
.field-error { font-size: 0.78rem; color: #C62828; min-height: 1em; }
.required { color: #C62828; }
.form-msg {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-weight: 500;
  font-size: 0.9rem;
}
.form-msg.success {
  background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7;
}
.form-msg.error {
  background: #FFEBEE; color: #B71C1C; border: 1px solid #EF9A9A;
}

/* Quick Amount Buttons */
.quick-amounts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.quick-amounts__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
}
.quick-amount-btn {
  background: var(--green-pale);
  border: 1.5px solid var(--green-light);
  color: var(--green-mid);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 36px;
}
.quick-amount-btn:hover,
.quick-amount-btn.active {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: #fff;
}

/* ── Contact Page ────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.contact-info-card h2 { margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}
.contact-detail:last-child { border-bottom: none; }
.contact-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-detail strong { display: block; font-size: 0.82rem; color: var(--text-light); margin-bottom: 0.2rem; }
.contact-detail p { margin: 0; color: var(--text-dark); font-size: 0.95rem; }
.contact-detail a { color: var(--green-mid); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-form-col .form-card { max-width: none; margin: 0; }

/* ── Error Page ──────────────────────────────────────────── */
.error-page-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-page-inner { padding: 3rem 1.5rem; }
.error-icon { font-size: 4rem; margin-bottom: 1rem; }
.error-code { font-size: 6rem; color: var(--green-dark); line-height: 1; margin-bottom: 0.5rem; }
.error-title { font-size: 1.8rem; margin-bottom: 0.25rem; }
.error-title-mr { font-family: 'Tiro Marathi', serif; font-size: 1.4rem; color: var(--text-mid); margin-bottom: 1rem; }
.error-desc { color: var(--text-mid); margin-bottom: 0.25rem; }
.error-desc-mr { font-family: 'Tiro Marathi', serif; font-size: 0.9rem; color: var(--text-light); margin-bottom: 2rem; }
.error-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(135deg, #0D3B14 0%, #1B5E20 45%, #1a3f5c 100%) !important;
  border-top: 5px solid var(--amber) !important;
}
.footer-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-heading {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--amber);
  display: inline-block;
}
.footer-text { font-size: 0.88rem; line-height: 1.8; color: rgba(255,255,255,0.72); }
.footer-reg { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 0.75rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--amber-light); }

/* footer address */

.footer-icon {
    font-size: 18px;
    margin-right: 8px;
    vertical-align: middle;
    color: #ffcc00; /* golden highlight (visible on green) */
}

/* Optional: improve text alignment */
.footer-address p {
  color: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

/* Links styling */
.footer-address a {
    color: #ffffff;
    text-decoration: none;
}

.footer-address a:hover {
    text-decoration: underline;
}
/* end of footer address */

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem 1.5rem;
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin: 0; }
.footer-marathi { font-family: 'Tiro Marathi', serif; font-size: 0.85rem !important; color: var(--amber-light) !important; }

/* ── WhatsApp Button ─────────────────────────────────────── */
#whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}
#whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}
#whatsapp-btn svg { width: 28px; height: 28px; }
#whatsapp-btn::after {
  content: 'Chat with us';
  position: absolute;
  right: calc(100% + 12px);
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.78rem;
  font-family: 'Noto Sans', sans-serif;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
#whatsapp-btn:hover::after { opacity: 1; }


/* ── Team Section ──────────────────────────────────────────── */     
/* .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.team-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.2s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.team-name {
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 1.2rem;
}

.team-role {
    color: var(--primary-color); 
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.team-profession {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}
*/

/*.team-card {
    padding: 25px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
}*/
/* Colour palette for cards — cycles through 4 theme colours */
.team-card {
    padding: 25px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-top: 4px solid var(--green-mid);
    position: relative;
    overflow: hidden;
}

/* Coloured top-bar cycles: green → amber → teal → coral → repeat */
.team-card:nth-child(4n+1) { border-top-color: #2E7D32; }  /* green   */
.team-card:nth-child(4n+2) { border-top-color: #FF8F00; }  /* amber   */
.team-card:nth-child(4n+3) { border-top-color: #00796B; }  /* teal    */
.team-card:nth-child(4n+4) { border-top-color: #0277BD; }  /* blue    */

/* Matching soft background tint per card */
.team-card:nth-child(4n+1) { background: linear-gradient(160deg, #F1F8E9 0%, #fff 55%); }
.team-card:nth-child(4n+2) { background: linear-gradient(160deg, #FFF8E1 0%, #fff 55%); }
.team-card:nth-child(4n+3) { background: linear-gradient(160deg, #E0F2F1 0%, #fff 55%); }
.team-card:nth-child(4n+4) { background: linear-gradient(160deg, #E3F2FD 0%, #fff 55%); }

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}


.team-edu {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #2e7d32;
}

/* Edu badge colour matches card accent */
.team-card:nth-child(4n+1) .team-edu { color: #2E7D32; }
.team-card:nth-child(4n+2) .team-edu { color: #E65100; }
.team-card:nth-child(4n+3) .team-edu { color: #00695C; }
.team-card:nth-child(4n+4) .team-edu { color: #01579B; }

.team-profession {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    min-height: 40px; /* Keeps cards aligned */
}

/*.team-contact {
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.8rem;
    color: #888;
}*/

.team-contact {
  border-top: 1px solid #0c0c0c;
    margin-right: 5px;
    color: #FF8F00;
}
.team-card:nth-child(4n+1) .team-contact  { color: #2E7D32; }
.team-card:nth-child(4n+2) .team-contact  { color: #FF8F00; }
.team-card:nth-child(4n+3) .team-contact { color: #00796B; }
.team-card:nth-child(4n+4) .team-contact  { color: #0277BD; }
/*---------- hero slider ---------*/
/* ════════════════════════════════════════════════════════
   HERO SLIDER - BOTTOM RIGHT TEXT & CENTERED BUTTON
   ════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════
   UPDATED HERO SLIDER - SHORTER HEIGHT TO PREVENT SCROLL
   ════════════════════════════════════════════════════════ */

.hero-slider {
    position: relative;
    width: 100%;
    
    /* 1. Use a wider ratio (21:9 instead of 16:9) so the image is shorter */
    aspect-ratio: 21 / 9; 

    /* 2. IMPORTANT: Cap the height for larger monitors so it fits on one page */
    max-height: calc(100vh - 80px); /* Adjust '80px' to match your header height */
    min-height: 400px; /* Never let it get too small */

    overflow: hidden;
    background-color: #000;
}

.slider-container {
    height: 100%;
    width: 100%;
}

.slide {
    display: none;
    height: 100%;
    width: 100%;
    /* We switch back to 'cover' so it fills the shorter, wider container */
    background-size: cover;
    background-repeat: no-repeat;
    /* 'top center' ensures faces are prioritize on shorter containers */
    background-position: top center;
    position: relative;
    animation: fadeEffect 0.8s ease-in-out;
}

.slide.active {
    display: block;
}

/* --- THE TEXT BOX (Bottom Right) --- */
.hero-info-box {
    position: absolute;
    right: 20px;
    bottom: 80px; /* Keeps it above the dots/button */
    background: rgba(0, 0, 0, 0.7); 
    color: #fff;
    padding: 1rem 1.5rem;
    max-width: 350px;
    border-radius: var(--radius-sm);
    text-align: left;
    backdrop-filter: blur(5px);
    z-index: 5;
}

.slide-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #fff;
}

.slide-text {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* --- ALWAYS PRESENT DONATE BUTTON (Center Bottom) --- */
.hero-permanent-action {
    position: absolute;
    bottom: 25px; /* Adjust 25px to move up/down slightly */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.hero-permanent-action .btn {
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 50px;
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 992px) {
    .hero-slider {
        aspect-ratio: 16 / 9; /* Back to a normal ratio on mobile */
        max-height: none;
    }
}

@media (max-width: 768px) {
    .hero-info-box {
        display: none; /* Hide complex text boxes on small mobile screens */
    }
}

/* FADE EFFECT */
@keyframes fadeEffect {
    from { opacity: 0.5; }
    to { opacity: 1; }
}
/*---------- for footer section ---------*/
/* Styling for the new channel links */
/* --- Permanent Color Highlights ---
.footer-link-highlight {
    cursor: pointer !important;
    display: inline-block;
    position: relative;
    z-index: 10000 !important;
    pointer-events: auto !important; /* Ensures the mouse can 'hit' the link */
}

/* WhatsApp: Always Green 
.whatsapp-color {
    color: #25D366 !important;
    background: rgba(37, 211, 102, 0.1); /* Very light green background */
    border: 1px solid rgba(37, 211, 102, 0.3);
}

/* Telegram: Always Blue 
.telegram-color {
    color: #0088cc !important;
    background: rgba(0, 136, 204, 0.1); /* Very light blue background */
    border: 1px solid rgba(0, 136, 204, 0.3);
}

/* Hover Effect: Makes them pop out 
.footer-link-highlight:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #fff !important; /* Turns white on hover for contrast */
}

/* Ensure icons match slightly 
.footer-icon {
    margin-right: 5px;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
}
.footer-social-links {
    position: relative;
    z-index: 9999 !important; /* Forces the links to the very front */
}
/*////Social link///////////////*/
/* Container */
/* Make icons horizontal */
/* Social container */
.footer-social-links {
    display: flex;
    gap: 12px;
    align-items: center;
      flex-direction: row !important;
}

/* Base style */
.footer-social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #fff; /* ICON WHITE */
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25); /* IMPORTANT */
      flex: 0 0 auto !important;   /* prevents vertical stacking */
}

/* EXACT brand colors */
.footer-social-links a.whatsapp {
    background: #25D366; /* WhatsApp green */
}

.footer-social-links a.twitter {
    background: #000000; /* X */
}

.footer-social-links a.facebook {
    background: #1877F2; /* official */
}

.footer-social-links a.instagram {
    background: radial-gradient(circle at 30% 30%, 
        #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

.footer-social-links a.linkedin {
    background: #0A66C2; /* official */
}
.footer-social-links a.youtube {
    background: #FF0000; /* YouTube red */
}

.footer-social-links a.telegram {
    background: #0088cc; /* Telegram blue */
}
/* Hover = premium effect */
.footer-social-links a:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}