@import url('https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Hindi:ital@0;1&family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --green-dark:  #1a4a2e;
  --green-mid:   #2d7a4f;
  --green-light: #4caf80;
  --gold:        #c8993a;
  --gold-light:  #f0c96a;
  --cream:       #faf6f0;
  --white:       #ffffff;
  --text-dark:   #1a1a1a;
  --text-mid:    #444;
  --text-light:  #777;
  --border:      #e0d8cc;
  --shadow:      0 4px 24px rgba(26,74,46,0.10);
  --radius:      12px;
  --radius-sm:   7px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.7;
}

/* ═══════════════════ NAVBAR ═══════════════════ */
nav {
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo .logo-icon {
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.nav-logo .logo-text {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1.2;
}
.nav-logo .logo-text span {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  font-weight: 300;
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: var(--gold-light);
}
.nav-links a.btn-donate {
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 600;
}
.nav-links a.btn-donate:hover { background: var(--gold-light); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.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); }

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #2d5a3a 60%, #1a4a2e 100%);
  color: var(--white);
  padding: 90px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-block;
  background: rgba(200,153,58,0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 5px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 10px;
  max-width: 800px;
  margin-left: auto; margin-right: auto;
}
.hero .hindi-name {
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--gold-light);
  margin-bottom: 20px;
  display: block;
}
.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none; cursor: pointer;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,153,58,0.35); }
.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ═══════════════════ STATS BAR ═══════════════════ */
.stats-bar {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}
.stats-inner {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-item .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--green-mid);
  font-weight: 700;
}
.stat-item .lbl {
  font-size: 0.82rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════ SECTIONS ═══════════════════ */
.section { padding: 70px 24px; }
.section-alt { background: var(--white); }
.container { max-width: 1200px; margin: auto; }
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--green-dark);
  margin-bottom: 14px;
  line-height: 1.25;
}
.section-desc {
  color: var(--text-mid);
  font-size: 1.02rem;
  max-width: 600px;
  margin-bottom: 42px;
}
.divider {
  width: 52px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 16px 0 36px;
}

/* ═══════════════════ ABOUT GRID ═══════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.about-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}
.about-card h4 { color: var(--green-dark); font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.about-card p { color: var(--text-mid); font-size: 0.95rem; }

/* ═══════════════════ PROJECT CARDS ═══════════════════ */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  border-top: 4px solid var(--green-mid);
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-icon { font-size: 2rem; margin-bottom: 14px; }
.project-card h3 { color: var(--green-dark); font-size: 1.05rem; margin-bottom: 8px; font-weight: 600; }
.project-card p { color: var(--text-mid); font-size: 0.92rem; }

/* ═══════════════════ MEMBERSHIP ═══════════════════ */
.membership-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.mem-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.2s;
  position: relative;
}
.mem-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200,153,58,0.10);
}
.mem-card.featured::before {
  content: 'Most Popular';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
}
.mem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mem-badge {
  display: inline-block;
  background: var(--green-dark);
  color: var(--white);
  font-size: 0.75rem;
  padding: 3px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.mem-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--green-dark);
  font-weight: 700;
  margin: 8px 0 4px;
}
.mem-price span { font-size: 1.1rem; font-family: 'DM Sans', sans-serif; }
.mem-card h3 { font-size: 1.15rem; color: var(--green-dark); margin-bottom: 12px; }
.mem-features { list-style: none; margin: 16px 0 24px; text-align: left; }
.mem-features li {
  padding: 7px 0;
  color: var(--text-mid);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.mem-features li::before { content: '✓'; color: var(--green-mid); font-weight: 700; }

/* ═══════════════════ COMMITTEE ═══════════════════ */
.committee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.committee-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
}
.committee-avatar {
  width: 64px; height: 64px;
  background: var(--green-dark);
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
.committee-card .role {
  font-size: 0.75rem;
  color: var(--green-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 4px;
}
.committee-card .name { font-weight: 600; color: var(--green-dark); font-size: 1rem; }

/* ═══════════════════ GALLERY ═══════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--green-dark);
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ═══════════════════ DONATE ═══════════════════ */
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.donate-info { background: var(--green-dark); color: var(--white); border-radius: var(--radius); padding: 36px; }
.donate-info h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 20px; }
.bank-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.93rem;
}
.bank-row .label { color: rgba(255,255,255,0.65); font-size: 0.8rem; }
.bank-row .value { color: var(--white); font-weight: 500; font-family: monospace; font-size: 0.95rem; }
.copy-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--gold-light);
  padding: 4px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: background 0.2s;
}
.copy-btn:hover { background: rgba(255,255,255,0.22); }
.qr-box { text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); }
.qr-box img { width: 140px; border-radius: 8px; background: white; padding: 8px; }

/* ═══════════════════ FORMS ═══════════════════ */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 7px;
}
.form-group label .req { color: #e53935; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,122,79,0.12);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group .hint { font-size: 0.78rem; color: var(--text-light); margin-top: 5px; }
.form-group .error-msg { font-size: 0.78rem; color: #e53935; margin-top: 5px; display: none; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.92rem;
  display: none;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* ═══════════════════ CONTACT ═══════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info-box {
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-box h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 24px; }
.contact-row {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 22px;
}
.contact-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-row .info .lbl { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-bottom: 2px; }
.contact-row .info .val { font-size: 0.95rem; color: var(--white); }
.social-links { display: flex; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); }
.social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.social-link:hover { background: var(--gold); color: var(--green-dark); }

/* ═══════════════════ CERTIFICATE SEARCH ═══════════════════ */
.cert-box { max-width: 560px; margin: auto; }
.cert-result {
  background: var(--white);
  border: 2px solid var(--green-mid);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-top: 24px;
  display: none;
}
.cert-result .cert-icon { font-size: 3rem; margin-bottom: 12px; }
.cert-result h3 { font-family: 'Playfair Display', serif; color: var(--green-dark); margin-bottom: 8px; }

/* ═══════════════════ ARTICLES ═══════════════════ */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-img {
  height: 180px;
  background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.article-body { padding: 22px; }
.article-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: 8px;
}
.article-body h3 { font-size: 1.1rem; color: var(--green-dark); margin-bottom: 10px; line-height: 1.35; }
.article-body p { font-size: 0.9rem; color: var(--text-mid); }
.article-date { font-size: 0.78rem; color: var(--text-light); margin-top: 14px; }

/* ═══════════════════ FOOTER ═══════════════════ */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  padding: 50px 24px 30px;
}
.footer-inner { max-width: 1200px; margin: auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand .logo-text { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { color: var(--gold-light); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  font-size: 0.83rem;
}
.footer-bottom .reg { color: var(--gold-light); }
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  text-decoration: none;
  z-index: 999;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.75); }
}

/* ═══════════════════ PAGE BANNER ═══════════════════ */
.page-banner {
  background: linear-gradient(135deg, var(--green-dark), #2d5a3a);
  color: var(--white);
  padding: 52px 24px;
  text-align: center;
}
.page-banner h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem,4vw,2.4rem); margin-bottom: 8px; }
.page-banner p { color: rgba(255,255,255,0.75); }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 10px; }
.breadcrumb a { color: var(--gold-light); text-decoration: none; }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 900px) {
  .about-grid, .donate-grid, .contact-grid, .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--green-dark); padding: 16px 24px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 60px 20px 50px; }
}
@media (max-width: 480px) {
  .section { padding: 50px 16px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
