/* ==========================================================================
   REDESIGN.CSS — new premium design system for the homepage.
   Loaded after style.css/animations.css/responsive.css, so identical
   selectors here (.navbar, .hero-slide, .btn, etc.) intentionally win the
   cascade — this lets functional JS hooks (main.js, slider.js, counter.js,
   forms.js...) keep working unmodified while the visuals are rebuilt.
   New sections use the `nx-` prefix so nothing here leaks onto other pages.
   ========================================================================== */

:root {
  /* ---- Brand palette (exact spec) ---- */
  --nx-green: #2F8F3D;
  --nx-green-light: #7BC242;
  --nx-green-dark: #23702F;
  --nx-blue: #2E93D1;
  --nx-blue-light: #61B9E5;
  --nx-blue-dark: #1F6FA0;
  --nx-white: #FFFFFF;
  --nx-gray: #F7F9FC;
  --nx-gray-100: #EFF3F8;
  --nx-border: #E6ECF3;
  --nx-dark: #1A1A1A;
  --nx-text: #4B5563;

  --nx-gradient-brand: linear-gradient(120deg, var(--nx-green) 0%, var(--nx-blue) 100%);
  --nx-gradient-brand-light: linear-gradient(120deg, var(--nx-green-light) 0%, var(--nx-blue-light) 100%);
  --nx-gradient-mesh:
    radial-gradient(circle at 15% 20%, rgba(123,194,66,0.35), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(46,147,209,0.35), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(47,143,61,0.25), transparent 50%);

  --nx-radius-sm: 12px;
  --nx-radius-md: 20px;
  --nx-radius-lg: 32px;
  --nx-radius-pill: 999px;

  --nx-shadow-sm: 0 2px 10px rgba(26,26,26,0.05);
  --nx-shadow-md: 0 16px 40px rgba(26,26,26,0.08);
  --nx-shadow-lg: 0 30px 70px rgba(26,26,26,0.14);
  --nx-shadow-brand: 0 20px 45px rgba(46,147,209,0.25);
  --nx-shadow-brand-green: 0 20px 45px rgba(47,143,61,0.25);

  --nx-space-2xs: 0.4rem;
  --nx-space-xs: 0.8rem;
  --nx-space-sm: 1.4rem;
  --nx-space-md: 2.2rem;
  --nx-space-lg: 3.6rem;
  --nx-space-xl: 3.6rem;
  --nx-space-2xl: 4.5rem;

  --nx-font: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Global type + surface overrides for the redesigned homepage ---- */
body {
  font-family: var(--nx-font);
  background: var(--nx-white);
  color: var(--nx-text);
}
.nx-page h1, .nx-page h2, .nx-page h3, .nx-page h4 {
  font-family: var(--nx-font);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
html { overflow-x: visible !important; }
.nx-page { overflow-x: visible !important; }
.nx-page > main { overflow-x: hidden; display: block; }

.nx-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--nx-space-md);
}

.nx-section { padding: var(--nx-space-2xl) 0; position: relative; }
@media (max-width: 900px) { .nx-section { padding: var(--nx-space-lg) 0; } }
@media (max-width: 560px) { .nx-section { padding: var(--nx-space-md) 0; } }
.nx-section-tight { padding: var(--nx-space-xl) 0; }

.nx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px 8px 8px;
  border-radius: var(--nx-radius-pill);
  background: var(--nx-gray);
  color: var(--nx-green);
  margin-bottom: var(--nx-space-sm);
}
.nx-eyebrow .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--nx-gradient-brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.nx-eyebrow .dot svg { width: 12px; height: 12px; color: #fff; }

.nx-heading { max-width: 620px; }
.nx-heading.center { margin: 0 auto; text-align: center; }
.nx-heading h2 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); font-weight: 800; }
.nx-heading p { margin-top: var(--nx-space-xs); font-size: 1.08rem; color: var(--nx-text); }
.model-intro-divider {
  display: block;
  width: 64px;
  height: 3px;
  margin: var(--nx-space-sm) auto var(--nx-space-md);
  border-radius: 2px;
  background: var(--nx-gradient-brand);
}
.model-intro p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.85;
}

.nx-heading .nx-grad-text {
  background: var(--nx-gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--nx-font);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 17px 34px;
  border-radius: var(--nx-radius-pill);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--nx-gradient-brand); color: #fff; box-shadow: var(--nx-shadow-brand); }
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 24px 55px rgba(46,147,209,0.4); }
.btn-accent { background: var(--nx-gradient-brand-light); color: var(--nx-green-dark); box-shadow: var(--nx-shadow-brand-green); }
.btn-accent:hover { transform: translateY(-4px); box-shadow: 0 24px 55px rgba(123,194,66,0.4); }
.btn-white { background: var(--nx-white); color: var(--nx-dark); box-shadow: var(--nx-shadow-md); }
.btn-white:hover { transform: translateY(-4px); box-shadow: var(--nx-shadow-lg); }
.btn-outline { background: transparent; color: var(--nx-white); border: 1.5px solid rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }
.btn-outline-dark { background: transparent; color: var(--nx-dark); border: 1.5px solid var(--nx-border); }
.btn-outline-dark:hover { border-color: var(--nx-green); color: var(--nx-green); transform: translateY(-4px); }
.btn-sm { padding: 12px 22px; font-size: 0.88rem; }

/* ==========================================================================
   NAVBAR — transparent + blur, sticky, mega dropdown
   ========================================================================== */
.navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  font-family: var(--nx-font);
}
.navbar .container { max-width: 1280px; }
.navbar.is-scrolled {
  background: rgba(255,255,255,0.78) !important;
  background-image: none !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 30px rgba(26,26,26,0.06);
}
.navbar .nav-links a {
  font-family: var(--nx-font);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--nx-dark);
}
.navbar:not(.is-scrolled) .nav-links a { color: #fff; }
.navbar .nav-links a:hover { color: var(--nx-green); }
.navbar:not(.is-scrolled) .nav-links a:hover { color: var(--nx-green-light); }
.navbar .nav-links a::after { background: var(--nx-gradient-brand); height: 2.5px; }
.navbar .dropdown {
  border-radius: var(--nx-radius-md);
  box-shadow: var(--nx-shadow-lg);
  border: 1px solid var(--nx-border);
  padding: 10px;
  overflow: hidden;
}
.navbar .dropdown a { border-radius: var(--nx-radius-sm); font-weight: 600; }
.navbar .dropdown a:hover { background: var(--nx-gray) !important; color: var(--nx-green) !important; }
.navbar:not(.is-scrolled) .icon-btn,
.navbar:not(.is-scrolled) .login-btn { color: #fff; border-color: rgba(255,255,255,0.4); }
.navbar .btn-accent, .navbar .btn-primary {
  background: var(--nx-gradient-brand) !important;
  color: #fff !important;
  border-radius: var(--nx-radius-pill);
  box-shadow: var(--nx-shadow-brand);
  font-weight: 700;
}

/* ==========================================================================
   HERO — mesh gradient, floating glass stat card, slideshow retained
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}
.hero-slides::after {
  background: linear-gradient(180deg, rgba(26,26,26,0.35) 0%, rgba(26,26,26,0.78) 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--nx-gradient-mesh);
  mix-blend-mode: screen;
  z-index: 1;
  pointer-events: none;
}
.hero-rings circle { stroke: var(--nx-blue-light); }

.hero-content { max-width: 760px; }
.hero-content .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 18px;
  border-radius: var(--nx-radius-pill);
  color: #fff !important;
  white-space: nowrap;
}
.hero-content .eyebrow::before { display: none; }
.hero-content h1 {
  font-family: var(--nx-font);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: #fff;
}
.hero-content h1 span {
  background: var(--nx-gradient-brand-light);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-content p { font-size: 1.2rem; max-width: 600px; }

.nx-hero-stat-card {
  position: relative;
  z-index: 2;
  margin-top: var(--nx-space-lg);
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--nx-radius-lg);
  padding: var(--nx-space-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--nx-space-md);
  max-width: 760px;
  box-shadow: var(--nx-shadow-lg);
}
.nx-hero-stat-card .nx-stat .num {
  font-size: 2.1rem; font-weight: 800; color: #fff;
  font-variant-numeric: tabular-nums;
}
.nx-hero-stat-card .nx-stat .label {
  font-size: 0.82rem; color: rgba(255,255,255,0.78); margin-top: 2px; font-weight: 500;
}

.wave-divider svg path { fill: var(--nx-white); }

/* ==========================================================================
   MISSION / VISION — glass split cards
   ========================================================================== */
.nx-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--nx-space-md);
}
.nx-mv-card {
  border-radius: var(--nx-radius-lg);
  padding: var(--nx-space-lg) var(--nx-space-md);
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.45s cubic-bezier(.22,1,.36,1);
}
.nx-mv-card:hover { transform: translateY(-8px); }
.nx-mv-card.is-green { background: linear-gradient(160deg, var(--nx-green) 0%, var(--nx-green-dark) 100%); }
.nx-mv-card.is-blue { background: linear-gradient(160deg, var(--nx-blue) 0%, var(--nx-blue-dark) 100%); }
.nx-mv-card .nx-mv-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--nx-space-sm);
}
.nx-mv-card .nx-mv-icon svg { width: 26px; height: 26px; color: #fff; }
.nx-mv-card h3 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.nx-mv-card p { color: rgba(255,255,255,0.88); font-size: 1.02rem; }
.nx-mv-card::after {
  content: '';
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -90px; right: -90px;
}

/* ==========================================================================
   PROGRAMS — asymmetric bento grid
   ========================================================================== */
.nx-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: var(--nx-space-sm);
}
.nx-bento-card {
  position: relative;
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--nx-space-sm);
  color: #fff;
  isolation: isolate;
  transition: transform 0.45s cubic-bezier(.22,1,.36,1), box-shadow 0.45s ease;
}
.nx-bento-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--nx-shadow-lg); }
.nx-bento-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s ease; }
.nx-bento-card:hover img { transform: scale(1.08); }
.nx-bento-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26,26,26,0.05) 0%, rgba(26,26,26,0.82) 100%);
}
.nx-bento-card .nx-bento-tag {
  position: absolute; top: 18px; left: 18px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px; border-radius: var(--nx-radius-pill);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.nx-bento-card h4 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.nx-bento-card p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin: 0; }
.nx-bento-card.span-2 { grid-column: span 2; }
.nx-bento-card.row-2 { grid-row: span 2; }

/* ==========================================================================
   IMPACT — circular progress rings
   ========================================================================== */
.nx-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--nx-space-sm);
}
.nx-impact-card {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: var(--nx-space-md) var(--nx-space-sm);
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.nx-impact-card:hover { transform: translateY(-6px); box-shadow: var(--nx-shadow-md); border-color: transparent; }
.impact-ring { position: relative; width: 96px; height: 96px; margin: 0 auto var(--nx-space-sm); }
.impact-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.impact-ring circle.track { fill: none; stroke: var(--nx-gray-100); stroke-width: 8; }
.impact-ring circle.progress { fill: none; stroke: url(#nxRingGradient); stroke-width: 8; stroke-linecap: round; }
.impact-ring .ring-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; color: var(--nx-dark);
}
.nx-impact-card h4 { font-size: 1.02rem; margin-top: 6px; }
.nx-impact-card p { font-size: 0.86rem; color: var(--nx-text); margin-top: 4px; }

/* ==========================================================================
   FUNDRAISING — premium progress cards (keeps #fundraising-cards JS hook)
   ========================================================================== */
.fundraising-card {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: var(--nx-space-md);
  box-shadow: var(--nx-shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: block;
}
.fundraising-card:hover { transform: translateY(-6px); box-shadow: var(--nx-shadow-md); }
.fundraising-card-link { cursor: pointer; text-decoration: none; color: inherit; }
.fundraising-card-link:hover { border-color: var(--nx-green); }
.fundraising-card-cta {
  display: inline-block; margin-top: 12px; font-size: 0.84rem; font-weight: 700; color: var(--nx-green);
}
.fundraising-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.fundraising-track { height: 12px; background: var(--nx-gray-100); border-radius: var(--nx-radius-pill); overflow: hidden; }
.fundraising-fill { height: 100%; border-radius: var(--nx-radius-pill); background: var(--nx-gradient-brand); }
.fundraising-meta { display: flex; justify-content: space-between; font-size: 0.88rem; margin-top: 10px; }
.fundraising-meta strong { color: var(--nx-green); font-size: 1.1rem; }

/* ==========================================================================
   GALLERY — restyle of the featured-image + filmstrip
   ========================================================================== */
.gallery-featured-main { border-radius: var(--nx-radius-lg); box-shadow: var(--nx-shadow-lg); height: 540px; }
@media (max-width: 900px) { .gallery-featured-main { height: 380px; } }
@media (max-width: 560px) { .gallery-featured-main { height: 280px; } }
.gallery-thumb { border-radius: var(--nx-radius-sm); border-width: 3px; }
.gallery-thumb.is-active { border-color: var(--nx-green); box-shadow: 0 0 0 3px rgba(47,143,61,0.15); }

/* ==========================================================================
   TESTIMONIAL SLIDER
   ========================================================================== */
.nx-testimonial-wrap { max-width: 780px; margin: 0 auto; position: relative; }
.nx-testimonial-track { position: relative; min-height: 280px; }
.testimonial-slide {
  display: none;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: var(--nx-space-lg) var(--nx-space-md);
  text-align: center;
  box-shadow: var(--nx-shadow-md);
}
.testimonial-slide.is-active { display: block; animation: nxFadeUp 0.6s ease; }
@keyframes nxFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.testimonial-slide .quote-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--nx-gradient-brand);
  color: #fff; font-size: 1.8rem; font-family: Georgia, serif;
  margin-bottom: var(--nx-space-sm);
}
.testimonial-slide .quote { font-size: 1.25rem; color: var(--nx-dark); font-weight: 600; line-height: 1.5; margin-bottom: var(--nx-space-sm); }
.testimonial-slide .story-person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testimonial-slide .initials-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--nx-gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.testimonial-slide .story-person strong { display: block; color: var(--nx-dark); }
.testimonial-slide .story-person span { font-size: 0.85rem; color: var(--nx-text); }

.testimonial-nav {
  display: flex; justify-content: center; gap: var(--nx-space-sm); margin-top: var(--nx-space-sm);
  align-items: center;
}
.testimonial-nav button {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--nx-border); background: var(--nx-white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.3s ease, transform 0.3s ease, border-color .3s ease;
}
.testimonial-nav button:hover { background: var(--nx-gradient-brand); border-color: transparent; transform: scale(1.08); }
.testimonial-nav button:hover svg { color: #fff; }
.testimonial-nav svg { width: 18px; height: 18px; color: var(--nx-dark); }
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none;
  background: var(--nx-gray-100); padding: 0; cursor: pointer; transition: all .3s ease;
}
.testimonial-dots button.is-active { width: 26px; border-radius: var(--nx-radius-pill); background: var(--nx-gradient-brand); }

/* ==========================================================================
   NEWS + VIDEO CARDS
   ========================================================================== */
.nx-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--nx-space-sm); }
.nx-card-grid-2col { grid-template-columns: repeat(2, 1fr); }
.nx-card-grid-4col { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .nx-card-grid-2col { grid-template-columns: 1fr; } }
.news-card, .nx-news-card {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  box-shadow: var(--nx-shadow-sm);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), box-shadow 0.4s ease;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--nx-shadow-md); }
.news-media { height: 200px; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-media img { transform: scale(1.08); }
.news-body { padding: var(--nx-space-sm); }
.news-meta .cat {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--nx-green); background: var(--nx-gray);
  padding: 4px 12px; border-radius: var(--nx-radius-pill); margin-bottom: 10px;
}
.news-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.project-link { color: var(--nx-blue); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.project-link svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.project-link:hover svg { transform: translateX(4px); }

/* ==========================================================================
   PARTNERS MARQUEE
   ========================================================================== */
.nx-partners-strip { background: var(--nx-gray); border-radius: var(--nx-radius-lg); padding: var(--nx-space-md) 0; }
.partner-chip {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  padding: 14px 28px; border-radius: var(--nx-radius-pill);
  font-weight: 700; color: var(--nx-dark); font-size: 0.92rem;
  box-shadow: var(--nx-shadow-sm);
}
.partner-logo-chip {
  height: 76px; padding: 0 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-md, 12px);
  box-shadow: var(--nx-shadow-sm);
  flex-shrink: 0;
}
.partner-logo-chip img {
  max-height: 46px; max-width: 130px; width: auto; height: auto;
  object-fit: contain; display: block;
  filter: none !important; opacity: 1 !important; /* show real brand colors, not the grayscale treatment used elsewhere */
}

/* ==========================================================================
   CTA BANNER + NEWSLETTER
   ========================================================================== */
.nx-cta-banner {
  position: relative;
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  padding: var(--nx-space-xl) var(--nx-space-md);
  text-align: center;
  background: var(--nx-gradient-brand);
  isolation: isolate;
}
.nx-cta-banner::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--nx-gradient-mesh);
  mix-blend-mode: screen;
}
.nx-cta-banner h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 700px; margin: 0 auto 16px; }
.nx-cta-banner p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto var(--nx-space-md); font-size: 1.1rem; }
.nx-cta-actions { display: flex; gap: var(--nx-space-xs); justify-content: center; flex-wrap: wrap; }

.newsletter-band {
  background: var(--nx-gray);
  border-radius: var(--nx-radius-lg);
  padding: var(--nx-space-md) var(--nx-space-lg);
  display: flex; align-items: center; justify-content: space-between; gap: var(--nx-space-md); flex-wrap: wrap;
}
.newsletter-band h3 { color: var(--nx-dark) !important; font-family: var(--nx-font); }
.newsletter-band p { color: var(--nx-text) !important; }
.newsletter-icon { background: var(--nx-gradient-brand); color: #fff; width: 52px; height: 52px; border-radius: var(--nx-radius-md); display: flex; align-items: center; justify-content: center; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  padding: 15px 22px; border-radius: var(--nx-radius-pill); border: 1.5px solid var(--nx-border);
  min-width: 280px; font-family: var(--nx-font);
}
.newsletter-form input:focus { outline: none; border-color: var(--nx-green); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #12211A; }
.site-footer::before { background: var(--nx-gradient-brand); }
.footer-col a:hover, .footer-bottom a:hover { color: var(--nx-green-light) !important; }
.social-row a:hover { background: var(--nx-gradient-brand) !important; }

/* ==========================================================================
   FLOATING SHAPES + MESH BACKDROP (reused pattern, new tones)
   ========================================================================== */
.nx-glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; pointer-events: none; z-index: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .nx-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .nx-bento-card.span-2 { grid-column: span 2; }
  .nx-impact-grid { grid-template-columns: repeat(2, 1fr); }
  .nx-card-grid { grid-template-columns: 1fr 1fr; }
  .nx-hero-stat-card { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-content .eyebrow { white-space: normal; }
}
@media (max-width: 760px) {
  .nx-mv-grid { grid-template-columns: 1fr; }
  .nx-bento { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .nx-bento-card.span-2, .nx-bento-card.row-2 { grid-column: span 1; grid-row: span 1; }
  .nx-impact-grid { grid-template-columns: 1fr 1fr; }
  .nx-card-grid { grid-template-columns: 1fr; }
  .newsletter-band { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; flex-direction: column; }
  .newsletter-form input { min-width: 0; width: 100%; }
  .nx-hero-stat-card { grid-template-columns: 1fr; text-align: center; }
}


/* ==========================================================================
   FOUR PILLARS — minimal icon+label values strip (Oyate-inspired, distinct)
   ========================================================================== */
.nx-pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--nx-space-sm);
}
.nx-pillar {
  text-align: center;
  padding: var(--nx-space-md) var(--nx-space-sm);
  border-radius: var(--nx-radius-lg);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), background 0.4s ease;
}
.nx-pillar:hover { transform: translateY(-8px); background: var(--nx-gray); }
.nx-pillar-icon {
  width: 76px; height: 76px;
  margin: 0 auto var(--nx-space-sm);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--nx-gradient-brand-light);
  position: relative;
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}
.nx-pillar:hover .nx-pillar-icon { transform: scale(1.1) rotate(-6deg); }
.nx-pillar-icon svg { width: 34px; height: 34px; color: #fff; }
.nx-pillar h4 { font-size: 1.15rem; margin-bottom: 6px; }
.nx-pillar p { font-size: 0.9rem; color: var(--nx-text); margin: 0; }

/* ==========================================================================
   MANIFESTO — big centered statement banner
   ========================================================================== */
.nx-manifesto {
  text-align: center;
  padding: var(--nx-space-xl) var(--nx-space-md);
  position: relative;
  overflow: hidden;
}
.nx-manifesto::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--nx-gradient-mesh);
  opacity: 0.6;
  z-index: -1;
}
.nx-manifesto p.nx-statement {
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  font-weight: 700;
  color: var(--nx-dark);
  max-width: 980px;
  margin: 0 auto;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.nx-manifesto p.nx-statement .nx-grad-text {
  background: var(--nx-gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nx-founder-quote {
  max-width: 620px;
  margin: var(--nx-space-lg) auto 0;
  padding-top: var(--nx-space-lg);
  border-top: 1px solid var(--nx-border);
}
.nx-founder-quote p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--nx-text);
  margin-bottom: var(--nx-space-sm);
}
.nx-founder-quote .nx-founder-name {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.nx-founder-quote .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--nx-gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.nx-founder-quote strong { display: block; font-style: normal; color: var(--nx-dark); }
.nx-founder-quote span { font-size: 0.85rem; color: var(--nx-text); font-style: normal; }

/* ==========================================================================
   ACCORDION SERVICES — expandable panels with bullet points + bold stats
   ========================================================================== */
.nx-accordion { display: flex; flex-direction: column; gap: var(--nx-space-xs); max-width: 920px; margin: 0 auto; }
.nx-acc-item {
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  background: var(--nx-white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nx-acc-item.is-open { border-color: transparent; box-shadow: var(--nx-shadow-md); }
.nx-acc-head {
  width: 100%;
  display: flex; align-items: center; gap: var(--nx-space-sm);
  padding: var(--nx-space-sm) var(--nx-space-md);
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--nx-font);
}
.nx-acc-num {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--nx-gray);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--nx-green);
  transition: background 0.3s ease, color 0.3s ease;
}
.nx-acc-item.is-open .nx-acc-num { background: var(--nx-gradient-brand); color: #fff; }
.nx-acc-head h3 { flex: 1; font-size: 1.2rem; margin: 0; }
.nx-acc-head .chev { width: 22px; height: 22px; color: var(--nx-text); transition: transform 0.4s cubic-bezier(.22,1,.36,1); flex-shrink: 0; }
.nx-acc-item.is-open .chev { transform: rotate(180deg); color: var(--nx-green); }
.nx-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(.22,1,.36,1);
}
.nx-acc-item.is-open .nx-acc-body { max-height: 640px; }
.nx-acc-body-inner {
  padding: 0 var(--nx-space-md) var(--nx-space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--nx-space-md);
}
.nx-acc-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.nx-acc-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--nx-text); }
.nx-acc-list li svg { width: 18px; height: 18px; color: var(--nx-green); flex-shrink: 0; margin-top: 2px; }
.nx-acc-stats { display: flex; flex-direction: column; gap: 14px; }
.nx-acc-stat { display: flex; align-items: baseline; gap: 10px; }
.nx-acc-stat .n {
  font-size: 1.6rem; font-weight: 800;
  background: var(--nx-gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.nx-acc-stat .l { font-size: 0.88rem; color: var(--nx-text); }

@media (max-width: 760px) {
  .nx-pillars { grid-template-columns: 1fr 1fr; }
  .nx-acc-body-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SITE-WIDE COMPONENT UPGRADES — apply once redesign.css is linked on any
   page. These reuse existing class names so no HTML rewrite is required.
   ========================================================================== */

/* ---- Eyebrow badges everywhere become pill badges with a gradient dot ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--nx-font);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--nx-gray);
  color: var(--nx-green) !important;
  padding: 8px 16px 8px 8px;
  border-radius: var(--nx-radius-pill);
}
.eyebrow::before {
  content: '';
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--nx-gradient-brand);
}
.volunteer-cta .eyebrow, .hero-content .eyebrow {
  background: rgba(255,255,255,0.16); color: #fff !important;
}
.volunteer-cta .eyebrow::before, .hero-content .eyebrow::before { background: rgba(255,255,255,0.4); }

/* ---- Page hero (inner pages) — brand mesh overlay + premium type ---- */
.page-hero {
  min-height: 46vh;
  display: flex; align-items: flex-end;
  padding-bottom: var(--nx-space-lg);
  padding-top: calc(var(--nav-height) + var(--nx-space-lg));
}
.page-hero::before { background: linear-gradient(180deg, rgba(26,26,26,0.3) 0%, rgba(26,26,26,0.82) 100%) !important; }
.page-hero::after { background: var(--nx-gradient-mesh) !important; mix-blend-mode: screen; }
.page-hero h1 { font-family: var(--nx-font); font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 8px 16px; border-radius: var(--nx-radius-pill);
  font-size: 0.82rem; margin-bottom: var(--nx-space-sm);
}

/* ---- Project cards (departments, services, about) ---- */
.project-card {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-sm);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), box-shadow 0.4s ease;
}
.project-card:hover { transform: translateY(-10px); box-shadow: var(--nx-shadow-md); }
.project-tag {
  background: rgba(255,255,255,0.9); backdrop-filter: blur(6px);
  color: var(--nx-green); font-weight: 700; font-size: 0.72rem; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--nx-radius-pill);
}

/* ---- Team cards ---- */
.team-card { border-radius: var(--nx-radius-lg); border: 1px solid var(--nx-border); box-shadow: var(--nx-shadow-sm); }
.team-card:hover { transform: translateY(-8px); box-shadow: var(--nx-shadow-md); }
.team-photo .initials-avatar {
  width: 100%; height: 100%; border-radius: 0;
  background: var(--nx-gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 800;
}
.team-info h4 { font-size: 1.05rem; }

/* ---- Founder header: photo overlapping a gradient name-banner (per reference) ---- */
.news-body .team-social {
  position: static;
  justify-content: flex-start;
  background: none;
  padding: 0;
  gap: 10px;
}
.news-body .team-social a {
  background: var(--nx-gray);
  color: var(--nx-green);
}
.news-body .team-social a:hover { background: var(--nx-gradient-brand); color: #fff; }
.founder-header {
  position: relative;
  height: 100px;
  margin: 30px 0 40px 30px;
  overflow: visible;
}
.founder-band {
  position: absolute;
  top: 0; left: 60px; right: 0; height: 100%;
  background: var(--nx-gradient-brand);
  border-radius: 0 var(--nx-radius-md) var(--nx-radius-md) 0;
  display: flex;
  align-items: center;
  padding-left: 130px;
}
.founder-band h3 { color: #fff; font-size: 1.5rem; font-weight: 600; margin: 0; }
.founder-photo {
  position: absolute;
  top: -20px; left: 0;
  width: 170px; height: 170px;
  border-radius: var(--nx-radius-md);
  object-fit: cover;
  box-shadow: var(--nx-shadow-md);
  border: 4px solid var(--nx-white);
}
.founder-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--nx-gradient-brand);
  color: #fff; font-size: 3.4rem; font-weight: 800;
}
@media (max-width: 560px) {
  .founder-header { margin-left: 16px; height: 80px; }
  .founder-photo { width: 130px; height: 130px; top: -16px; }
  .founder-band { left: 46px; padding-left: 100px; }
  .founder-band h3 { font-size: 1.2rem; }
}

/* ---- Volunteer / mission CTA banner (dark image overlay) ---- */
.volunteer-cta::before {
  background: linear-gradient(120deg, rgba(18,33,26,0.94) 0%, rgba(46,147,209,0.55) 75%) !important;
}
.volunteer-cta h2 { font-family: var(--nx-font); font-weight: 800; }

/* ---- Forms everywhere ---- */
.form-field input, .form-field select, .form-field textarea {
  border-radius: var(--nx-radius-sm);
  border: 1.5px solid var(--nx-border);
  font-family: var(--nx-font);
  padding: 15px 18px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--nx-blue);
  box-shadow: 0 0 0 4px rgba(46,147,209,0.12);
  outline: none;
}
.form-field label { font-family: var(--nx-font); font-weight: 600; color: var(--nx-dark); }
.checkbox-row input { accent-color: var(--nx-green); }
.form-card { border-radius: var(--nx-radius-lg); box-shadow: var(--nx-shadow-md); border: 1px solid var(--nx-border); }
.form-success svg { color: var(--nx-green); }

/* ---- Pagination ---- */
.pagination button.is-active { background: var(--nx-gradient-brand); }
.pagination button:hover:not(.is-active) { background: var(--nx-gray); }

/* ==========================================================================
   DONATE PAGE — giving cards, tabs, payment method selector
   ========================================================================== */
.donate-tab {
  border-radius: var(--nx-radius-pill);
  background: var(--nx-gray);
  font-family: var(--nx-font); font-weight: 700; font-size: 0.9rem;
  padding: 13px 28px;
  border: 1px solid transparent;
  transition: all 0.35s ease;
}
.donate-tab.is-active { background: var(--nx-gradient-brand); color: #fff; box-shadow: var(--nx-shadow-brand); }
.donate-tab:not(.is-active):hover { border-color: var(--nx-green); color: var(--nx-green); }

.giving-grid { gap: var(--nx-space-md); }
.giving-card {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-left: 4px solid var(--nx-blue);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-sm);
  padding: var(--nx-space-md);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), box-shadow 0.4s ease;
}
.giving-card:hover { transform: translateY(-8px); box-shadow: var(--nx-shadow-md); }
.giving-price {
  font-family: var(--nx-font); font-weight: 800; font-size: 1.4rem;
  background: var(--nx-gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.giving-impact {
  display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--nx-green);
  background: var(--nx-gray); padding: 6px 14px; border-radius: var(--nx-radius-pill);
  margin: 8px 0 12px;
}
.giving-why { font-size: 0.86rem; color: var(--nx-text); background: var(--nx-gray); padding: 12px 14px; border-radius: var(--nx-radius-sm); margin-bottom: var(--nx-space-sm); }

.payment-method-tabs { gap: 12px; }
.payment-method-tab {
  border-radius: var(--nx-radius-md);
  border: 1.5px solid var(--nx-border);
  font-family: var(--nx-font); font-weight: 600;
  padding: 14px 20px;
  transition: all 0.3s ease;
}
.payment-method-tab.is-active {
  border-color: var(--nx-blue) !important;
  color: var(--nx-blue) !important;
  background: rgba(46,147,209,0.06) !important;
  box-shadow: 0 0 0 3px rgba(46,147,209,0.1);
}

.impact-calc-result { background: var(--nx-gray); border-radius: var(--nx-radius-md); font-family: var(--nx-font); }
.impact-calc-result strong { color: var(--nx-green); }

.donor-wall-grid > * {
  background: var(--nx-gray) !important;
  border-radius: var(--nx-radius-md) !important;
  font-weight: 600;
  transition: transform 0.3s ease;
}
.donor-wall-grid > *:hover { transform: translateY(-3px); background: var(--nx-gradient-brand) !important; color: #fff; }

/* ==========================================================================
   DEPARTMENTS / FILTERABLE LISTINGS — filter chips + search
   ========================================================================== */
.filter-bar { background: var(--nx-gray); border-radius: var(--nx-radius-lg); padding: var(--nx-space-sm) var(--nx-space-md); }
.filter-chip {
  border-radius: var(--nx-radius-pill);
  background: var(--nx-white);
  border: 1.5px solid var(--nx-border);
  font-family: var(--nx-font); font-weight: 600; font-size: 0.86rem;
  padding: 10px 20px;
  transition: all 0.3s ease;
}
.filter-chip.is-active, .filter-chip:hover {
  background: var(--nx-gradient-brand) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: var(--nx-shadow-brand);
}
.filter-search input {
  border-radius: var(--nx-radius-pill);
  border: 1.5px solid var(--nx-border);
  background: var(--nx-white);
  font-family: var(--nx-font);
}
.filter-search input:focus { border-color: var(--nx-blue); outline: none; box-shadow: 0 0 0 4px rgba(46,147,209,0.1); }

/* ==========================================================================
   MOBILE MENU — premium panel matching the desktop nav's quality
   ========================================================================== */
.mobile-menu {
  background: var(--nx-white);
  box-shadow: var(--nx-shadow-lg);
}
.mobile-menu::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--nx-gradient-brand);
}
.mobile-menu-close {
  background: var(--nx-gray);
  transition: background 0.3s ease, transform 0.3s ease;
}
.mobile-menu-close:hover { background: var(--nx-gradient-brand); color: #fff; transform: rotate(90deg); }

.mobile-menu ul { gap: 2px; }
.mobile-menu a {
  font-family: var(--nx-font);
  font-weight: 600;
  font-size: 1rem;
  color: var(--nx-dark);
  border-bottom: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-sm);
  padding: 15px 12px;
  transition: background 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
}
.mobile-menu a:hover, .mobile-menu a:active { background: var(--nx-gray); color: var(--nx-green); padding-left: 18px; }
.mobile-menu li.active > a { color: var(--nx-green); background: var(--nx-gray); font-weight: 700; }
.mobile-menu .mobile-submenu a.active { color: var(--nx-green); background: transparent; }

.mobile-submenu { border-left: 2px solid var(--nx-border); margin-left: 8px; padding-left: var(--nx-space-xs); }
.mobile-submenu a { color: var(--nx-text); font-weight: 500; border-bottom: none; }
.mobile-submenu a:hover { color: var(--nx-blue); background: transparent; padding-left: 16px; }

.mobile-menu [data-toggle-submenu] svg,
.mobile-menu .chevron {
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
  color: var(--nx-text);
}
.mobile-menu [data-toggle-submenu].is-open svg,
.mobile-menu [data-toggle-submenu].is-open .chevron { transform: rotate(180deg); color: var(--nx-green); }

.mobile-menu .btn-accent { justify-content: center; }

/* ==========================================================================
   SEARCH OVERLAY — remove ugly default focus ring, add branded focus state
   ========================================================================== */
.search-overlay { background: rgba(18,33,26,0.92); backdrop-filter: blur(10px); }
.search-box input {
  font-family: var(--nx-font);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  outline: none;
  transition: border-color 0.3s ease;
}
.search-box input:focus {
  outline: none;
  border-bottom-color: var(--nx-green-light);
}
.search-close {
  transition: background 0.3s ease, transform 0.3s ease;
}
.search-close:hover { background: var(--nx-gradient-brand); transform: rotate(90deg); }

/* ==========================================================================
   NEWSLETTER FORM — feedback message + layout fix
   ========================================================================== */
.newsletter-form { flex-wrap: wrap; }
.form-feedback {
  flex-basis: 100%;
  text-align: center;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nx-green);
}
.form-feedback.is-error { color: #DC2626; }

/* ==========================================================================
   TWO-TIER HEADER — dark utility/nav bar (sticky) + white logo/contact bar
   (matches the org's classic header pattern, rebuilt with the new system)
   ========================================================================== */
/* Row 1 and row 2 are now direct siblings under body (not wrapped in a
   shared container) so position:sticky has the full page as its
   containing block, instead of being bounded by a ~150px-tall wrapper. */

/* ---- Row 1: nav bar, black background, sticky ---- */
.topbar-nav.navbar {
  position: sticky;
  top: 0;
  height: 44px;
  background: #111111 !important;
  background-image: none !important;
  backdrop-filter: none !important;
  box-shadow: none;
  border-bottom: 1px solid #2a2a2a;
  transition: box-shadow 0.3s ease;
}
.topbar-nav.navbar.is-scrolled {
  height: 44px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.topbar-nav .nav-links a,
.topbar-nav.navbar:not(.is-scrolled) .nav-links a,
.topbar-nav.navbar.is-scrolled .nav-links a {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.88rem;
}
.topbar-nav .nav-links a:hover,
.topbar-nav.navbar.is-scrolled .nav-links a:hover { color: var(--nx-green-light) !important; }
.topbar-nav .nav-links li.active > a { color: var(--nx-green-light) !important; }
.topbar-nav .nav-links a::after { background: var(--nx-gradient-brand); }

.topbar-nav .icon-btn,
.topbar-nav.navbar:not(.is-scrolled) .icon-btn,
.topbar-nav.navbar.is-scrolled .icon-btn { color: rgba(255,255,255,0.85) !important; }
.topbar-nav .icon-btn:hover { background: rgba(255,255,255,0.1) !important; }
.topbar-nav .login-btn,
.topbar-nav.navbar:not(.is-scrolled) .login-btn { border-color: rgba(255,255,255,0.25) !important; }
.topbar-nav .login-btn:hover { background: rgba(255,255,255,0.1) !important; }
.topbar-nav .hamburger span { background: #fff !important; }
.topbar-nav .btn-outline-dark {
  color: #fff !important;
  border-color: rgba(255,255,255,0.3) !important;
  background: transparent !important;
}
.topbar-nav .btn-outline-dark:hover { background: rgba(255,255,255,0.1) !important; }
.topbar-nav .dropdown { top: calc(100% + 14px); }

/* ---- Row 2: white logo + contact-info bar (scrolls away with the page) ---- */
.header-contact-bar {
  background: var(--nx-white);
  border-bottom: 1px solid var(--nx-border);
  padding: 18px 0;
}
.header-contact-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-md);
  flex-wrap: wrap;
}
.header-contact-bar .brand {
  background: none;
  box-shadow: none;
  padding: 0;
}
.header-contact-bar .brand-logo-img { height: 46px; }

.header-contact-items { display: flex; align-items: center; gap: var(--nx-space-md); }
.header-contact-item { display: flex; align-items: center; gap: 12px; }
.hc-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--nx-gray);
  display: flex; align-items: center; justify-content: center;
  color: var(--nx-green);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.header-contact-item:hover .hc-icon { background: var(--nx-gradient-brand); color: #fff; transform: scale(1.08); }
.hc-icon svg { width: 20px; height: 20px; }
.hc-label {
  display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--nx-text); margin-bottom: 2px;
}
.hc-value { display: block; font-size: 0.98rem; font-weight: 700; color: var(--nx-dark); font-family: var(--nx-font); }
.header-contact-divider { width: 1px; height: 40px; background: var(--nx-border); }

/* ---- Hero no longer needs top padding — nav sits above it in normal flow ---- */
.hero { padding-top: 0; min-height: 88vh; }
.page-hero { padding-top: var(--nx-space-lg); }
.auth-shell { padding-top: 0 !important; }

@media (max-width: 1080px) {
  .header-contact-items { display: none; }
}
@media (max-width: 900px) {
  .topbar-nav .nav-links { display: none; }
}

/* ==========================================================================
   IMPACT STAT CARDS — colored top-border + soft icon circle (per reference)
   ========================================================================== */
.impact-stats-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--nx-space-sm); }
.impact-stat-card {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-top: 4px solid var(--nx-blue);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-sm);
}
.impact-stat-card:nth-child(odd) { border-top-color: var(--nx-blue); }
.impact-stat-card:nth-child(even) { border-top-color: var(--nx-green); }

.impact-stat-icon,
.impact-stat-card:nth-child(2) .impact-stat-icon,
.impact-stat-card:nth-child(3) .impact-stat-icon,
.impact-stat-card:nth-child(4) .impact-stat-icon,
.impact-stat-card:nth-child(5) .impact-stat-icon {
  background: var(--nx-gray) !important;
  width: 58px; height: 58px;
}
.impact-stat-icon svg,
.impact-stat-card:nth-child(2) .impact-stat-icon svg,
.impact-stat-card:nth-child(3) .impact-stat-icon svg,
.impact-stat-card:nth-child(4) .impact-stat-icon svg,
.impact-stat-card:nth-child(5) .impact-stat-icon svg {
  color: var(--nx-blue) !important;
  width: 26px; height: 26px;
}
.impact-stat-card .count {
  font-family: var(--nx-font);
  font-size: 2rem;
  font-weight: 800;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: var(--nx-dark) !important;
}
.impact-stat-card .desc { font-family: var(--nx-font); font-weight: 600; color: var(--nx-dark); font-size: 0.98rem; }
.impact-stat-card .desc-sub { font-family: var(--nx-font); font-weight: 400; color: var(--nx-text); font-size: 0.8rem; margin-top: 4px; }

@media (max-width: 1080px) { .impact-stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .impact-stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   HEADER v2 — dark bar now holds only 3 utility links; white bar now
   holds logo + full navigation (per updated reference).
   ========================================================================== */
.topbar-nav.navbar { height: 44px; z-index: 1100; }
.topbar-nav.navbar.is-scrolled { height: 44px; }
.topbar-utility-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1px;
  height: 100%;
  width: 100%;
}
.topbar-utility-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  padding: 6px 14px;
  border-radius: var(--nx-radius-pill);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.topbar-utility-links a:hover {
  background: var(--nx-blue);
  color: #fff;
  transform: translateY(-1px);
}
.topbar-utility-links a:hover svg { color: #fff !important; }
.topbar-utility-links a svg { width: 16px; height: 16px; flex-shrink: 0; }
.tul-divider { width: 1px; height: 18px; background: rgba(255,255,255,0.25); }

.header-contact-bar {
  position: sticky;
  top: 44px;
  z-index: 999;
  padding: 14px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.header-contact-bar .container {
  display: flex;
  align-items: center;
  gap: var(--nx-space-lg);
}
.header-contact-bar .brand-logo-img { height: 44px; }
.main-nav-row { flex: 1; }
.main-nav-row .nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: center;
}
.main-nav-row .nav-links a {
  color: var(--nx-dark);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.main-nav-row .nav-links a:hover { color: var(--nx-green); }
.main-nav-row .nav-links a::after { background: var(--nx-gradient-brand); }
.main-nav-row .dropdown { top: calc(100% + 18px); }
.header-contact-bar .nav-actions { display: flex; align-items: center; gap: 14px; }
.header-contact-bar .icon-btn { color: var(--nx-dark); border-color: var(--nx-border); }
.header-contact-bar .icon-btn:hover { background: var(--nx-gray); }
.header-contact-bar .hamburger span { background: var(--nx-dark); }

@media (max-width: 900px) {
  .main-nav-row .nav-links { display: none; }
  .topbar-nav .container { padding-left: 12px; padding-right: 12px; }
  .topbar-utility-links {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
  }
  .topbar-utility-links::-webkit-scrollbar { display: none; }
  .topbar-utility-links a {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.72rem;
    padding: 5px 10px;
    gap: 5px;
  }
  .topbar-utility-links a svg { width: 13px; height: 13px; }
  .tul-divider { flex-shrink: 0; }
}
@media (max-width: 1080px) and (min-width: 901px) {
  .main-nav-row .nav-links { gap: 18px; }
  .main-nav-row .nav-links a { font-size: 0.8rem; }
}

/* ==========================================================================
   EVENT SPOTLIGHT — centered copy/countdown on top, large full-width image
   ========================================================================== */
.event-spotlight-banner { text-align: center; }
.event-spotlight-banner .countdown-timer { justify-content: center; margin-bottom: var(--nx-space-lg); }
.event-spotlight-media { margin: 0 auto var(--nx-space-lg); max-width: 760px; }
.event-spotlight-media img {
  width: 100%;
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-lg);
  border: 4px solid rgba(255,255,255,0.25);
}
.event-spotlight-banner .whatsapp-share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff; font-weight: 700; font-size: 0.85rem;
  padding: 10px 18px; border-radius: var(--nx-radius-pill); border: none; cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-spotlight-banner .whatsapp-share-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(37,211,102,0.4); }

@media (max-width: 900px) {
  .event-spotlight-media { max-width: 100%; }
}

/* ==========================================================================
   TOPBAR UTILITY LINKS — distinct icon colors per link (oyategroup.org style)
   text stays light, only the icon glyph is colored
   ========================================================================== */
.topbar-utility-links a.tul-blue svg { color: var(--nx-blue-light); }
.topbar-utility-links a.tul-gold svg { color: #F4B740; }
.topbar-utility-links a.tul-green svg { color: var(--nx-green-light); }
.topbar-utility-links a:not(:hover) { color: rgba(255,255,255,0.9) !important; }

/* ==========================================================================
   ORG PILLARS — bordered icon cards inside Mission & Vision (per reference)
   ========================================================================== */
.nx-org-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--nx-space-sm);
  margin-bottom: var(--nx-space-xl);
}
.nx-org-pillar {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: var(--nx-space-lg) var(--nx-space-sm);
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.nx-org-pillar:hover { transform: translateY(-6px); box-shadow: var(--nx-shadow-md); border-color: transparent; }
.nx-org-pillar img { width: 64px; height: 64px; margin: 0 auto var(--nx-space-sm); object-fit: contain; }
.nx-org-pillar p { font-size: 0.98rem; color: var(--nx-text); font-weight: 600; margin: 0; line-height: 1.4; }

@media (max-width: 900px) { .nx-org-pillars { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   GOOGLE TRANSLATE WIDGET — styled to fit the header, default banner hidden
   ========================================================================== */
.lang-translate-widget {
  display: flex;
  align-items: center;
  min-width: 90px;
  max-width: 130px;
}
.lang-translate-widget .goog-te-gadget { font-family: var(--nx-font) !important; font-size: 0 !important; }
.lang-translate-widget .goog-te-gadget-simple {
  background: #F4B740 !important;
  border: 1px solid #E0A22C !important;
  border-radius: var(--nx-radius-pill) !important;
  padding: 8px 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  max-width: 130px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lang-translate-widget .goog-te-gadget-simple:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(244,183,64,0.4); }
.lang-translate-widget .goog-te-gadget-simple .goog-te-menu-value {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #3A2A00 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
  display: inline-block;
}
.lang-translate-widget img { display: none !important; } /* hide Google's little flag/arrow icon, keep text */
.lang-translate-widget .goog-te-gadget-simple span { color: #3A2A00 !important; }
.lang-translate-widget .goog-logo-link,
.lang-translate-widget .goog-te-gadget-icon { display: none !important; }
.lang-translate-widget .goog-te-gadget-simple .goog-te-menu-value span { color: #3A2A00 !important; }

/* Google injects a top banner + pushes body down when a language is picked —
   suppress both so it doesn't fight our own sticky header. */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0 !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ==========================================================================
   NEWS + NEWSLETTER SIDEBAR — two-column layout
   ========================================================================== */
.news-with-sidebar-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: var(--nx-space-lg);
  align-items: start;
}
.news-list { display: flex; flex-direction: column; gap: var(--nx-space-sm); }
.news-list-item {
  display: flex;
  gap: var(--nx-space-sm);
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  box-shadow: var(--nx-shadow-sm);
}
.news-list-item .news-media { width: 160px; flex-shrink: 0; height: auto; }
.news-list-item .news-media img { width: 100%; height: 100%; object-fit: cover; }
.news-list-item .news-body { padding: var(--nx-space-sm) var(--nx-space-sm) var(--nx-space-sm) 0; }
.news-list-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.news-list-item p { font-size: 0.88rem; margin-bottom: 8px; }

.newsletter-sidebar-card {
  position: sticky;
  top: 130px;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: var(--nx-space-md);
  box-shadow: var(--nx-shadow-sm);
  text-align: left;
}
.newsletter-card-head { display: flex; align-items: center; gap: var(--nx-space-xs); margin-bottom: var(--nx-space-xs); }
.newsletter-sidebar-card .newsletter-icon { width: 40px; height: 40px; flex-shrink: 0; margin: 0; }
.newsletter-sidebar-card h3 { font-size: 1.15rem; margin-bottom: 0; }
.newsletter-sidebar-card p { font-size: 0.9rem; margin-bottom: var(--nx-space-md); }
.newsletter-sidebar-card .newsletter-form { flex-direction: column; gap: 10px; }
.newsletter-sidebar-card .newsletter-form input { width: 100%; min-width: 0; }
.newsletter-sidebar-card .newsletter-form button { width: 100%; }

@media (max-width: 900px) {
  .news-with-sidebar-grid { grid-template-columns: 1fr; }
  .newsletter-sidebar-card { position: static; }
  .news-list-item { flex-direction: column; }
  .news-list-item .news-media { width: 100%; height: 180px; }
}

/* ==========================================================================
   HEADER BARS — remove the max-width container constraint so utility links
   and the translate widget genuinely reach the true right edge of the
   screen, not just the edge of a centered 1240px container.
   ========================================================================== */
.topbar-nav .container,
.header-contact-bar .container {
  max-width: none !important;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* ---- Reduce Run for Life poster size (was full-bleed 94vw / 1600px max) ---- */
.event-poster-wrap { max-width: 1000px !important; width: 92vw !important; }

/* ==========================================================================
   HEADER-CONTACT-BAR — mobile layout fix (was wrapping unpredictably with
   a large gap since nothing constrained Sign In / translate widget width)
   ========================================================================== */
@media (max-width: 900px) {
  .header-contact-bar .container {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    overflow-x: hidden;
  }
  .header-contact-bar .brand-logo-img { height: 34px; }
  .main-nav-row { display: none; } /* nav-links already hidden; remove the empty flex item entirely */
  .header-contact-bar .nav-actions { gap: 8px; flex-shrink: 0; }
  .header-contact-bar .login-btn span { display: none; } /* icon only, avoids crowding */
  .header-contact-bar .login-btn { padding: 8px; }
  /* Hard-locked width + forced clipping on the OUTER container — a fixed
     width (not max-width) with overflow:hidden will clip anything Google
     renders inside it, regardless of what internal class names or DOM
     structure their widget actually uses (which can't be verified here
     since this sandbox has no internet access to load the real widget). */
  .lang-translate-widget {
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 0 !important;
    max-width: 34px !important;
    height: 34px !important;
    overflow: hidden !important;
    border-radius: 50% !important;
  }
  .lang-translate-widget * { max-width: 100% !important; }
  .lang-translate-widget .goog-te-gadget-simple {
    padding: 0 !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    white-space: nowrap;
  }
  .lang-translate-widget .goog-te-gadget-simple .goog-te-menu-value {
    font-size: 0 !important;
  }
  .lang-translate-widget .goog-te-gadget-simple .goog-te-menu-value::before {
    content: '\1F310'; /* globe icon as a compact fallback when text is hidden */
    font-size: 16px !important;
  }
}

/* ==========================================================================
   BACK TO SCHOOL DRIVE — photo grid
   ========================================================================== */
.bts-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: var(--nx-space-xs);
}
.bts-photo-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--nx-radius-md);
  box-shadow: var(--nx-shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.bts-photo-grid img:hover { transform: scale(1.03); box-shadow: var(--nx-shadow-md); z-index: 1; position: relative; }
/* Tiles wrapped in .media-tile (photo/video grids) size the same way
   as bare <img> children, so either markup style works in this grid. */
.bts-photo-grid .media-tile { height: 100%; border-radius: var(--nx-radius-md); box-shadow: var(--nx-shadow-sm); }
.bts-photo-grid .media-tile:hover { transform: scale(1.03); box-shadow: var(--nx-shadow-md); z-index: 1; position: relative; }
.bts-photo-grid img:nth-child(1), .bts-photo-grid .media-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bts-photo-grid img:nth-child(6), .bts-photo-grid .media-tile:nth-child(6) { grid-column: span 2; grid-row: span 2; }

@media (max-width: 900px) {
  .bts-photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 560px) {
  .bts-photo-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .bts-photo-grid img:nth-child(1), .bts-photo-grid img:nth-child(6),
  .bts-photo-grid .media-tile:nth-child(1), .bts-photo-grid .media-tile:nth-child(6) { grid-column: span 2; grid-row: span 1; }
}

/* ==========================================================================
   ELDERLY CHRISTMAS HAMPERS — warm festive red/gold accent theme,
   distinct from the site's usual blue/green brand gradient
   ========================================================================== */
:root {
  --xmas-red: #C23B3B;
  --xmas-red-dark: #8F2A2A;
  --xmas-gold: #D9A441;
  --xmas-gradient: linear-gradient(120deg, var(--xmas-red) 0%, var(--xmas-gold) 100%);
}
.xmas-eyebrow { color: var(--xmas-red) !important; }
.xmas-eyebrow .dot { background: var(--xmas-gradient) !important; }
.xmas-grad-text {
  background: var(--xmas-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.xmas-btn-primary {
  background: var(--xmas-gradient) !important;
  box-shadow: 0 20px 45px rgba(194,59,59,0.28) !important;
}
.xmas-cta-banner { background: var(--xmas-gradient) !important; }
.xmas-cta-banner::before { opacity: 0.5; }
#xmas-fundraising-card .fundraising-fill { background: var(--xmas-gradient) !important; }
#xmas-fundraising-card .fundraising-meta strong { color: var(--xmas-red) !important; }
.xmas-hero::before { background: linear-gradient(180deg, rgba(140,30,30,0.25) 0%, rgba(26,15,10,0.82) 100%) !important; }

/* ==========================================================================
   KEEP MY VILLAGE CLEAN — teal "sustainable development" accent theme
   ========================================================================== */
:root {
  --village-teal: #1AA6A0;
  --village-teal-dark: #12766F;
  --village-gradient: linear-gradient(120deg, var(--village-teal) 0%, var(--nx-green) 100%);
}
.village-eyebrow { color: var(--village-teal-dark) !important; }
.village-eyebrow .dot { background: var(--village-gradient) !important; }
.village-grad-text {
  background: var(--village-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.village-btn-primary {
  background: var(--village-gradient) !important;
  color: #fff !important;
  box-shadow: 0 20px 45px rgba(26,166,160,0.28) !important;
}
.village-cta-banner { background: var(--village-gradient) !important; }
#village-fundraising-card .fundraising-fill { background: var(--village-gradient) !important; }
#village-fundraising-card .fundraising-meta strong { color: var(--village-teal-dark) !important; }
.village-hero::before { background: linear-gradient(180deg, rgba(18,60,58,0.25) 0%, rgba(10,20,20,0.82) 100%) !important; }

/* ==========================================================================
   SITE ALERT BANNER — fix positioning for the new two-tier header.
   The old rule used `position:fixed; top:var(--nav-height)` where
   --nav-height (84px) was the OLD single-row navbar's height. Our new
   header is actually ~116px (44px dark bar + ~72px white bar), so the
   alert banner was overlapping into the white bar instead of sitting
   below it. Making it sticky (matching our header bars) means it just
   flows naturally after them and needs no manual padding-top hack.
   ========================================================================== */
.site-alert-banner {
  position: sticky !important;
  top: 116px !important;
  z-index: 998 !important;
}
body.has-alert-banner main { padding-top: 0 !important; }
