/* NGO Portal — Public Site (pro-quality) */
:root {
  --brand:        #1F6E33;
  --brand-2:      #2E8B57;
  --brand-soft:   #E8F3EC;
  --brand-deep:   #143F1E;
  --ink:          #0F172A;
  --muted:        #64748B;
  --bg-soft:      #F4F7F5;
}
* { box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01","cv11";
}
img { max-width: 100%; }

/* Buttons */
.btn-brand     { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-2); border-color: var(--brand-2); color: #fff; box-shadow: 0 4px 14px rgba(31,110,51,.25); }
.btn-outline-brand { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* Topbar */
.topbar {
  background: var(--brand-deep);
  color: rgba(255,255,255,.78);
  padding: .45rem 0;
  font-size: .82rem;
}
.topbar a { transition: color .15s; }
.topbar a:hover { color: #fff; }

/* Navbar */
.main-nav { padding: .8rem 0; border-bottom: 1px solid #EEF1F0; }
.main-nav .navbar-brand { display: flex; align-items: center; gap: .65rem; padding: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: 0 6px 18px rgba(31,110,51,.3);
}
.brand-name { font-weight: 800; font-size: 1.18rem; line-height: 1.1; color: var(--ink); }
.brand-tagline { font-size: .76rem; color: var(--muted); font-weight: 500; }
.main-nav .nav-link {
  color: var(--ink); font-weight: 500; padding: .65rem 1rem; position: relative;
  transition: color .15s;
}
.main-nav .nav-link:hover { color: var(--brand); }
.main-nav .nav-link.active { color: var(--brand); font-weight: 700; }
.main-nav .nav-link.active::after {
  content: ''; position: absolute; left: 1rem; right: 1rem; bottom: .35rem; height: 3px;
  background: var(--brand); border-radius: 2px;
}
@media (max-width: 991px) {
  .main-nav .nav-link.active::after { display: none; }
  .main-nav .nav-link { padding: .8rem 0; border-bottom: 1px solid #F1F5F4; }
}
.main-nav .dropdown-menu {
  border: 0; box-shadow: 0 12px 40px rgba(0,0,0,.10);
  border-radius: 12px; padding: .5rem; min-width: 220px;
}
.main-nav .dropdown-item { border-radius: 8px; padding: .55rem .85rem; font-weight: 500; font-size: .92rem; }
.main-nav .dropdown-item:hover { background: var(--brand-soft); color: var(--brand); }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  padding: 5rem 0 6rem;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.06), transparent 40%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.15rem; opacity: .95; max-width: 640px; }
.hero-cta { gap: .75rem; }
.hero-cta .btn { padding: .75rem 1.5rem; font-weight: 700; border-radius: 10px; }
.hero-cta .btn-light { color: var(--brand); }

/* Section */
section { padding: 4rem 0; }
section.tight { padding: 3rem 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 2.5rem; }
.section-eyebrow {
  display: inline-block; color: var(--brand); font-weight: 700;
  font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: .5rem;
}
.section-title { font-weight: 800; font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-bottom: .75rem; }
.section-sub { color: var(--muted); }

/* Card grid (members, programs, news, gallery) */
.tile {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 6px 18px rgba(16,24,40,.06);
  transition: transform .15s, box-shadow .15s;
  height: 100%;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(16,24,40,.12); }
.tile a { color: inherit; text-decoration: none; }
.tile-img {
  aspect-ratio: 16/10; background: var(--brand-soft); object-fit: cover; width: 100%;
  display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 2rem;
}
.tile-body { padding: 1rem 1.15rem; }
.tile-title { font-weight: 700; font-size: 1rem; margin-bottom: .35rem; line-height: 1.3; }
.tile-meta { color: var(--muted); font-size: .82rem; }

/* Member card */
.member-card { text-align: center; padding: 1.25rem .75rem; }
.member-photo {
  width: 110px; height: 110px; border-radius: 50%;
  object-fit: cover; margin: 0 auto .65rem;
  border: 4px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.08);
  background: var(--brand-soft); display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-weight: 800; font-size: 2rem;
}
.member-card .name { font-weight: 700; font-size: 1rem; margin-bottom: .15rem; }
.member-card .role { color: var(--brand); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.member-card .loc  { color: var(--muted); font-size: .82rem; margin-top: .25rem; }
.member-card .mno  { color: var(--muted); font-size: .75rem; font-family: 'Courier New', monospace; }

/* Stats strip */
.stats-strip { background: var(--bg-soft); }
.stat { text-align: center; padding: 1.5rem 1rem; }
.stat-num { font-weight: 800; font-size: 2.2rem; color: var(--brand); line-height: 1; }
.stat-label { color: var(--muted); font-size: .9rem; margin-top: .35rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }

/* Donation banner */
.donate-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; border-radius: 18px; padding: 3rem; position: relative; overflow: hidden;
}
.donate-banner::before {
  content: '\F415'; font-family: 'bootstrap-icons'; position: absolute; right: -10px; top: -10px;
  font-size: 14rem; opacity: .08; line-height: 1;
}
.donate-banner h3 { font-weight: 800; }

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; padding: 3rem 0;
}
.page-header h1 { font-weight: 800; margin: 0; }
.page-header .breadcrumb { background: transparent; padding: 0; margin: .5rem 0 0; }
.page-header .breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.page-header .breadcrumb-item.active { color: #fff; }

/* Filter pills (committee level) */
.level-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.level-pills a {
  padding: .45rem 1rem; border-radius: 999px; background: #fff;
  border: 1px solid #E2E8F0; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: .87rem; transition: all .15s;
}
.level-pills a:hover { border-color: var(--brand); color: var(--brand); }
.level-pills a.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(31,110,51,.25); }

/* Forms */
.form-card {
  background: #fff; border-radius: 16px; padding: 2rem;
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 6px 22px rgba(16,24,40,.07);
}
.required::after { content: ' *'; color: #DC2626; }

/* QR payment box */
.qr-box {
  border: 2px dashed var(--brand);
  border-radius: 14px; padding: 1.5rem; text-align: center; background: var(--brand-soft);
}
.qr-box img { max-width: 240px; }
.qr-box .upi-id { font-family: 'Courier New', monospace; font-weight: 700; color: var(--brand-deep); font-size: 1.05rem; }

/* Footer */
.site-footer {
  background: #0F172A; color: rgba(255,255,255,.75);
}
.site-footer .footer-title {
  color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em;
}
.site-footer .footer-list { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-list a {
  color: rgba(255,255,255,.65); text-decoration: none; display: block; padding: .25rem 0; font-size: .9rem; transition: color .15s;
}
.site-footer .footer-list a:hover { color: #fff; }
.social-row a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  margin-right: .35rem; transition: all .15s;
}
.social-row a:hover { background: var(--brand); transform: translateY(-2px); }
.footer-bottom { background: rgba(0,0,0,.35); color: rgba(255,255,255,.55); }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 1030;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  box-shadow: 0 6px 22px rgba(37,211,102,.4); text-decoration: none;
  transition: transform .15s;
}
.whatsapp-float:hover { transform: scale(1.05); color: #fff; }

/* Login / Join card */
.auth-shell {
  min-height: 80vh; display: flex; align-items: center; padding: 2rem 0;
  background: linear-gradient(135deg, #F4F7F5 0%, #fff 100%);
}
.auth-card { max-width: 460px; margin: 0 auto; }
.auth-card.wide { max-width: 920px; }

/* Empty state */
.empty-state {
  text-align: center; padding: 4rem 1rem; color: var(--muted);
}
.empty-state i { font-size: 3rem; opacity: .4; margin-bottom: .5rem; display: block; }

/* Member panel */
.member-shell { background: var(--bg-soft); min-height: calc(100vh - 80px); padding: 2rem 0; }
.member-side {
  background: #fff; border-radius: 14px; padding: 1rem; box-shadow: 0 1px 2px rgba(16,24,40,.06);
}
.member-side .nav-link {
  color: var(--ink); padding: .55rem .85rem; font-weight: 500; border-radius: 8px; margin-bottom: 2px;
  display: flex; align-items: center;
}
.member-side .nav-link:hover { background: var(--brand-soft); color: var(--brand); }
.member-side .nav-link.active { background: var(--brand); color: #fff; }
.member-side .nav-link i { width: 22px; }

/* Misc */
.text-brand { color: var(--brand) !important; }
.bg-brand-soft { background: var(--brand-soft) !important; }
.shadow-soft { box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 6px 22px rgba(16,24,40,.07); }
.rounded-xl { border-radius: 14px; }
