/* =========================
   Theme: Blue + White (NGO)
   ========================= */
:root{
  /* palette */
  --blue-900:#0A3D62;   /* headings, header bg on scroll */
  --blue-700:#0A66C2;   /* brand primary */
  --blue-600:#1E6FDB;   /* primary hover */
  --blue-100:#E8F3FF;   /* sky section bg */
  --blue-050:#F5F9FF;   /* subtle page bg */
  --accent-600:#0F5EC2; /* link focus/outline */
  --text-900:#1F2937;   /* main text */
  --text-700:#374151;   /* secondary text */
  --text-inverse:#ffffff;
  --border:#E5E7EB;

  /* layout */
  --max:1100px;
  --pad:16px;
  --radius:14px;
  --shadow:0 8px 24px rgba(10,102,194,.08);
  --shadow-sm:0 4px 12px rgba(10,61,98,.10);
}

/* base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--blue-050); color:var(--text-900);
  font:16px/1.65 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x: hidden;
}
img{max-width:100%; height:auto; border-radius:10px}
a{color:var(--blue-700); text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:3px solid var(--accent-600); outline-offset:2px}

/* layout helpers */
.container{max-width:var(--max); margin:0 auto; padding:28px var(--pad); width:100%}
.section{padding:48px 0}
.section.sky{background:var(--blue-100)}
.section.white{background:#fff}
.section .container{padding-top:0; padding-bottom:0}

/* header */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(1.2) blur(8px);
  background:rgba(255,255,255,.82); border-bottom:1px solid rgba(229,231,235,.6);
}
.nav{max-width:var(--max); margin:0 auto; padding:12px var(--pad);
  display:flex; gap:14px; align-items:center}
.brand{margin-right:auto; font-weight:800; letter-spacing:.2px; color:var(--blue-900)}
.nav a{color:var(--text-700)}
.nav a.btn-primary{color:var(--text-inverse)}

/* hero */
.hero{
  position: relative;
  padding:64px var(--pad); border-radius:22px;
  background:linear-gradient(135deg, #FFFFFF 0%, #F7FAFF 40%, #E8F3FF 100%);
  border:1px solid var(--border); box-shadow:var(--shadow);
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(circle at 20% 20%, rgba(30,111,219,0.08), transparent 55%),
             radial-gradient(circle at 80% 15%, rgba(10,61,98,0.10), transparent 50%);
  border-radius:22px;
  pointer-events:none;
}
.hero > *{position:relative}
.hero h1{font-size: clamp(28px, 4vw, 42px); line-height:1.15; margin:0 0 12px}
.hero p{font-size: clamp(16px, 2.2vw, 18px); color:var(--text-700); margin:0 0 20px}
.actions{display:flex; gap:12px; flex-wrap:wrap}

/* cards + grids */
.grid{display:grid; gap:18px; grid-template-columns:repeat(auto-fit, minmax(240px,1fr))}
.core-grid{grid-template-columns:repeat(3, minmax(0,1fr))}
.core-grid .card{padding:16px}
.core-grid p{margin-bottom:10px}
.get-involved-grid{grid-template-columns:repeat(3, minmax(0,1fr))}
.card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  padding:18px; box-shadow:var(--shadow-sm)
}
.card h3{margin:0 0 8px}
.stats{display:flex; gap:24px; list-style:none; padding:0; margin:0; flex-wrap:wrap}
.stats li{
  background:#fff; border:1px solid var(--border); border-radius:12px;
  padding:14px 16px; box-shadow:var(--shadow-sm);
  flex:1 1 220px;
}
.stats strong{font-size:20px; color:var(--blue-900); display:block}

/* galleries */
.gallery-section{margin-top:24px}
.gallery-header h3{margin:0 0 8px; font-size:18px}
.gallery-header p{margin:0 0 14px; color:var(--text-700); font-size:14px}
.gallery-grid{display:grid; gap:12px; grid-template-columns:repeat(auto-fit, minmax(160px,1fr))}
.gallery-carousel{
  display:flex; gap:12px; overflow-x:auto; padding-bottom:6px;
  scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
}
.gallery-carousel::-webkit-scrollbar{height:8px}
.gallery-carousel::-webkit-scrollbar-thumb{background:rgba(10,61,98,.2); border-radius:999px}
.gallery-item{
  margin:0; border-radius:12px; overflow:hidden; background:#fff;
  border:1px solid var(--border); box-shadow:var(--shadow-sm);
  aspect-ratio:4/3;
}
.gallery-carousel .gallery-item{flex:0 0 220px; scroll-snap-align:start}
.gallery-zoom{
  width:100%; height:100%; padding:0; border:0; background:transparent;
  cursor:zoom-in; display:block;
}
.gallery-item img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .2s ease;
}
.gallery-item:hover img{transform:scale(1.03)}
.gallery-item img{user-select:none; -webkit-user-drag:none}

/* lightbox */
.lightbox{
  position:fixed; inset:0; background:rgba(10, 20, 30, 0.75);
  display:flex; align-items:center; justify-content:center;
  padding:24px; opacity:0; pointer-events:none; transition:opacity .2s ease;
  z-index:1200;
}
.lightbox.is-open{opacity:1; pointer-events:auto}
.lightbox img{
  max-width:min(1100px, 92vw);
  max-height:85vh;
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  background:#fff;
}
.lightbox img{user-select:none; -webkit-user-drag:none}
.lightbox-close{
  position:absolute; top:18px; right:18px;
  width:40px; height:40px; border-radius:999px;
  border:1px solid rgba(255,255,255,.6);
  background:rgba(255,255,255,.1); color:#fff;
  font-size:22px; line-height:1; cursor:pointer;
}

/* buttons */
.btn,.btn-outline,.btn-primary{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 16px; border-radius:12px; border:1px solid transparent;
  text-decoration:none; cursor:pointer; transition:transform .05s ease, background .15s ease, border-color .15s ease;
}
.btn-primary{background:var(--blue-700); color:var(--text-inverse)}
.btn-primary:hover{background:var(--blue-600); transform:translateY(-1px)}
.btn-outline{border-color:var(--blue-700); color:var(--blue-700); background:transparent}
.btn-outline:hover{background:#fff; transform:translateY(-1px)}

/* spacing helpers */
.mt-2{margin-top:8px}
.mt-3{margin-top:16px}
.center{text-align:center}

/* footer */
.footer{max-width:var(--max); margin:0 auto; padding:24px var(--pad); color:var(--text-700)}
.footer a{color:inherit}

/* typography rhythm */
h1,h2,h3{line-height:1.2}
h2{font-size: clamp(22px, 3vw, 30px); margin:0 0 12px}

.form-label{display:block; font-weight:600; margin:12px 0 6px}
.form-input,.form-textarea{
  width:100%; padding:10px 12px; border:1px solid var(--border);
  border-radius:10px; background:#fff; font:inherit;
}
.form-input:focus,.form-textarea:focus{outline:3px solid var(--accent-600); outline-offset:2px}

.site-header {
  border-bottom: 1px solid #eee;
}



/* */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 60px;   /* control header height */
  width: auto;
  display: block;
}

.brand-text {
  font-weight: 600;
  white-space: nowrap;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-item{position:relative}
.nav-link{color:var(--text-700)}
.dropdown-toggle{
  border:0; background:transparent; color:var(--text-700);
  cursor:pointer; font-size:14px; padding:4px 6px;
}
.nav-toggle{
  display:none;
  border:1px solid var(--border); background:#fff; color:var(--text-700);
  padding:8px 12px; border-radius:10px; cursor:pointer;
  gap:8px; align-items:center;
}
.nav-toggle-icon{
  width:18px; height:12px; position:relative; display:inline-block;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after,
.nav-toggle-icon span{
  content:""; position:absolute; left:0; right:0; height:2px;
  background:var(--text-700); border-radius:999px;
}
.nav-toggle-icon::before{top:0}
.nav-toggle-icon::after{bottom:0}
.nav-toggle-icon span{top:5px}
.nav-toggle-icon{display:inline-block}
.nav-toggle-icon::before,
.nav-toggle-icon::after{display:block}
.nav-toggle-icon::before,
.nav-toggle-icon::after,
.nav-toggle-icon span{transition:transform .2s ease, opacity .2s ease}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before{transform:translateY(5px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after{transform:translateY(-5px) rotate(-45deg)}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span{opacity:0}
.dropdown{
  position:absolute; top:100%; left:0; min-width:210px;
  background:#fff; border:1px solid var(--border); border-radius:12px;
  box-shadow:var(--shadow-sm); padding:8px; display:none; z-index:100;
}
.dropdown a{
  display:block; padding:8px 10px; border-radius:10px; color:var(--text-700);
}
.dropdown a:hover{background:var(--blue-100); text-decoration:none}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown{display:block}

@media (max-width: 760px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin: 6px 0 10px;
  }

  .nav-toggle-label{
    font-size:14px;
  }

  .nav-links {
    display:none;
    width: 100%;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:14px;
    box-shadow:var(--shadow-sm);
  }

  .nav-links.is-open{
    display:flex;
  }

  .nav-links a,
  .nav-item{
    width:100%;
    text-align:center;
  }

  .dropdown{
    position:static; min-width:unset; width:100%;
    margin:6px 0 2px; display:none;
    box-shadow:none;
  }

  .nav-item.is-open .dropdown{
    display:block;
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown{
    display:none;
  }

  .section {
    padding: 32px 0;
  }

  .hero {
    padding: 40px var(--pad);
  }

  .stats {
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .brand-text {
    display: none;
  }

  .nav-links a {
    font-size: 14px;
  }

  .container {
    padding: 20px var(--pad);
  }

  .actions {
    justify-content: center;
  }

  .stats li {
    flex: 1 1 100%;
  }

  .grid,
  .donate-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .core-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
  .get-involved-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
}

@media (max-width: 640px) {
  .core-grid{grid-template-columns:1fr}
  .get-involved-grid{grid-template-columns:1fr}
}


.site-header .brand-logo {
  height: 36px !important;
  width: auto !important;
  max-height: 36px !important;
  max-width: 160px !important;
  border-radius: 0 !important;
}

.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--pad);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--text-700);
  font-size: 14px;
  line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--blue-900);
}

.footer-links a,
.footer-social a {
  display: block;
  font-size: 14px;
  color: var(--text-700);
  margin-bottom: 8px;
  text-decoration: none;
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px var(--pad);
  text-align: center;
  font-size: 13px;
  color: var(--text-700);
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Footer logo bigger */
.footer-logo {
  height: 152px;      /* increase size here */
  width: auto;
  display: block;
  margin-bottom: 12px;
  border-radius: 0;  /* keeps logo crisp */
}

/* Social links with SVG icons */
.social-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-700);
  text-decoration: none;
}

.social-link:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

.social-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor; /* icon color matches text */
  display: block;
}

.footer-brand {
  padding-right: 16px;
}

.footer-links h4,
.footer-social h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.social-list {
  gap: 8px;   /* instead of 10px */
}
.footer {
  background: #fafcff; /* very subtle blue tint */
}

@media (max-width: 560px) {
  .footer-logo {
    height: 72px;
  }
}


/* --- Force icon + text to stay on one line in footer socials --- */
.footer-social a.social-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  white-space: nowrap;            /* prevents icon/text splitting */
  line-height: 1.2;
}

.footer-social a.social-link .social-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;                 /* icon never shrinks */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social a.social-link .social-icon svg {
  width: 18px;
  height: 18px;
  display: block;                 /* removes baseline weirdness */
  fill: currentColor;
}

.footer-social a.social-link span {
  display: inline-block;
}


/* Programs page polish */
.card h3 {
  margin: 0 0 8px;
}

.card p {
  margin: 0 0 12px;
  color: var(--text-700);
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-700);
}

.card ul li {
  margin: 6px 0;
}

/* Make cards feel consistent in height & layout */
.grid .card {
  display: flex;
  flex-direction: column;
}

/* Slightly tighter sections for content-heavy page */
.section .container h2 {
  margin-top: 0;
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
}

/* Floating chat button – blue theme */
.chat-float {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 52px;
  height: 52px;
  border-radius: 50%;

  background: linear-gradient(135deg, #1E6FDB, #0A66C2);
  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  text-decoration: none;

  box-shadow: 0 8px 20px rgba(10, 102, 194, 0.35);
  z-index: 1000;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chat-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(10, 102, 194, 0.45);
}
/* Donate page helpers */
.donate-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.donate-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.donate-list li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(229, 231, 235, 0.9);
}

.donate-list li:last-child {
  border-bottom: 0;
}

.upi-qr {
  width: 220px;
  max-width: 100%;
  height: auto;
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px;
}

.small {
  font-size: 13px;
  color: var(--text-700);
}
