/* ==========================================================
   SUSTINOVA – CSR Partnerships & Verified NGO Platform
   Custom styles on top of Bootstrap 5.3
   ========================================================== */

:root {
  /* Palette */
  --sx-emerald-50: #ecfdf5;
  --sx-emerald-100: #d1fae5;
  --sx-emerald-200: #a7f3d0;
  --sx-emerald-300: #6ee7b7;
  --sx-emerald-400: #34d399;
  --sx-emerald-500: #10b981;
  --sx-emerald-600: #059669;
  --sx-emerald-700: #047857;
  --sx-emerald-800: #065f46;
  --sx-emerald-900: #064e3b;
  --sx-emerald-950: #022c22;

  --sx-slate-50: #f8fafc;
  --sx-slate-100: #f1f5f9;
  --sx-slate-200: #e2e8f0;
  --sx-slate-300: #cbd5e1;
  --sx-slate-400: #94a3b8;
  --sx-slate-500: #64748b;
  --sx-slate-600: #475569;
  --sx-slate-700: #334155;
  --sx-slate-800: #1e293b;
  --sx-slate-900: #0f172a;
  --sx-slate-950: #020617;

  --sx-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sx-font-display: 'Cabinet Grotesk', 'Plus Jakarta Sans', -apple-system, sans-serif;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--sx-font-body);
  --bs-body-color: var(--sx-slate-800);
  --bs-body-bg: var(--sx-slate-50);
  --bs-primary: var(--sx-emerald-600);
  --bs-primary-rgb: 5, 150, 105;
  --bs-link-color: var(--sx-emerald-700);
  --bs-link-hover-color: var(--sx-emerald-800);
  --bs-border-color: var(--sx-slate-200);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--sx-font-body);
  color: var(--sx-slate-800);
  background-color: var(--sx-slate-50);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--sx-emerald-100); color: var(--sx-emerald-900); }

h1, h2, h3, h4, .font-display {
  font-family: var(--sx-font-display);
  letter-spacing: -0.02em;
}

.tabular-nums { font-variant-numeric: tabular-nums; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

@media (min-width: 1200px) {
  .container { max-width: 1240px; }
}

/* Anchor offset so sticky header does not hide sections */
section[id] { scroll-margin-top: 80px; }

/* ---------- Small helpers ---------- */
.text-slate-400 { color: var(--sx-slate-400) !important; }
.text-slate-500 { color: var(--sx-slate-500) !important; }
.text-slate-600 { color: var(--sx-slate-600) !important; }
.text-slate-700 { color: var(--sx-slate-700) !important; }
.text-slate-800 { color: var(--sx-slate-800) !important; }
.text-slate-900 { color: var(--sx-slate-900) !important; }
.text-emerald-300 { color: var(--sx-emerald-300) !important; }
.text-emerald-400 { color: var(--sx-emerald-400) !important; }
.text-emerald-600 { color: var(--sx-emerald-600) !important; }
.text-emerald-700 { color: var(--sx-emerald-700) !important; }
.text-emerald-800 { color: var(--sx-emerald-800) !important; }
.text-emerald-900 { color: var(--sx-emerald-900) !important; }
.text-rose-700 { color: #be123c !important; }

.bg-slate-50 { background-color: var(--sx-slate-50) !important; }
.bg-slate-100 { background-color: var(--sx-slate-100) !important; }
.bg-slate-900 { background-color: var(--sx-slate-900) !important; }
.bg-emerald-50 { background-color: var(--sx-emerald-50) !important; }
.bg-emerald-100 { background-color: var(--sx-emerald-100) !important; }
.bg-emerald-600 { background-color: var(--sx-emerald-600) !important; }
.bg-emerald-800 { background-color: var(--sx-emerald-800) !important; }

.border-slate-200 { border-color: var(--sx-slate-200) !important; }
.border-slate-100 { border-color: var(--sx-slate-100) !important; }
.border-emerald-200 { border-color: var(--sx-emerald-200) !important; }

.fs-11 { font-size: 11px !important; }
.fs-12 { font-size: 12px !important; }
.fs-13 { font-size: 13px !important; }
.fs-14 { font-size: 14px !important; }

.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }

.shadow-soft { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.shadow-pop { box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08); }

.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sx-emerald-700);
}
.kicker.muted { color: var(--sx-slate-500); }

.section-title {
  font-weight: 800;
  color: var(--sx-slate-900);
  letter-spacing: -0.02em;
  font-size: calc(1.5rem + 1vw);
}
@media (min-width: 992px) { .section-title { font-size: 2.25rem; } }

.section-pad { padding-top: 5rem; padding-bottom: 5rem; }
.section-border { border-bottom: 1px solid var(--sx-slate-200); }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 0.5rem; }

.btn-emerald {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--sx-emerald-600);
  --bs-btn-border-color: var(--sx-emerald-600);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--sx-emerald-700);
  --bs-btn-hover-border-color: var(--sx-emerald-700);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--sx-emerald-700);
  --bs-btn-active-border-color: var(--sx-emerald-700);
  --bs-btn-focus-shadow-rgb: 5, 150, 105;
  --bs-btn-disabled-bg: var(--sx-emerald-600);
  --bs-btn-disabled-border-color: var(--sx-emerald-600);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-emerald-soft {
  --bs-btn-color: var(--sx-emerald-800);
  --bs-btn-bg: var(--sx-emerald-100);
  --bs-btn-border-color: var(--sx-emerald-100);
  --bs-btn-hover-color: var(--sx-emerald-900);
  --bs-btn-hover-bg: var(--sx-emerald-200);
  --bs-btn-hover-border-color: var(--sx-emerald-200);
  --bs-btn-active-bg: var(--sx-emerald-200);
  --bs-btn-active-border-color: var(--sx-emerald-200);
}

.btn-slate {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--sx-slate-900);
  --bs-btn-border-color: var(--sx-slate-900);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--sx-slate-800);
  --bs-btn-hover-border-color: var(--sx-slate-800);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--sx-slate-800);
  --bs-btn-active-border-color: var(--sx-slate-800);
  --bs-btn-focus-shadow-rgb: 15, 23, 42;
}

.btn-outline-slate {
  --bs-btn-color: var(--sx-slate-700);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--sx-slate-300);
  --bs-btn-hover-color: var(--sx-slate-800);
  --bs-btn-hover-bg: var(--sx-slate-50);
  --bs-btn-hover-border-color: var(--sx-slate-400);
  --bs-btn-active-color: var(--sx-slate-800);
  --bs-btn-active-bg: var(--sx-slate-100);
  --bs-btn-active-border-color: var(--sx-slate-400);
  --bs-btn-focus-shadow-rgb: 100, 116, 139;
}

.btn-ghost {
  --bs-btn-color: var(--sx-slate-700);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--sx-slate-900);
  --bs-btn-hover-bg: var(--sx-slate-100);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: var(--sx-slate-100);
  --bs-btn-active-border-color: transparent;
}

.btn-white {
  --bs-btn-color: var(--sx-emerald-900);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--sx-emerald-900);
  --bs-btn-hover-bg: var(--sx-slate-100);
  --bs-btn-hover-border-color: var(--sx-slate-100);
  --bs-btn-active-bg: var(--sx-slate-100);
  --bs-btn-active-border-color: var(--sx-slate-100);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
}

.btn-emerald-dark {
  --bs-btn-color: #fff;
  --bs-btn-bg: rgba(6, 78, 59, 0.9);
  --bs-btn-border-color: rgba(5, 150, 105, 0.6);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--sx-emerald-950);
  --bs-btn-hover-border-color: rgba(5, 150, 105, 0.6);
  --bs-btn-active-bg: var(--sx-emerald-950);
  --bs-btn-active-border-color: rgba(5, 150, 105, 0.6);
}

.btn-xl { padding: 0.9rem 1.75rem; font-size: 1rem; }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-color: var(--sx-slate-300);
  border-radius: 0.5rem;
  color: var(--sx-slate-800);
}
.form-control:focus, .form-select:focus {
  border-color: var(--sx-emerald-500);
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}
.form-control.bg-soft, .form-select.bg-soft { background-color: var(--sx-slate-50); }
.form-label { font-size: 12px; font-weight: 600; color: var(--sx-slate-700); margin-bottom: 0.375rem; }

.input-icon { position: relative; }
.input-icon > i {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  color: var(--sx-slate-400); pointer-events: none; font-size: 0.85rem; z-index: 4;
}
.input-icon > .form-control, .input-icon > .form-select { padding-left: 2.4rem; }

/* ---------- Navbar ---------- */
.sx-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sx-slate-200);
  z-index: 1030;
}
.sx-header .navbar { min-height: 80px; }

.brand-mark {
  width: 36px; height: 36px; border-radius: 0.5rem;
  background: var(--sx-emerald-600); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
  transition: background-color 0.15s ease;
}
.brand-mark svg { width: 20px; height: 20px; fill: currentColor; }
.navbar-brand:hover .brand-mark { background: var(--sx-emerald-700); }
.brand-text {
  font-family: var(--sx-font-display);
  font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em;
  color: var(--sx-slate-900);
}

.sx-header .nav-link {
  font-size: 14px; font-weight: 500; color: var(--sx-slate-600);
  padding: 0.5rem 0;
}
.sx-header .nav-link:hover { color: var(--sx-slate-900); }
@media (min-width: 992px) {
  .sx-header .navbar-nav { gap: 2rem; }
}
@media (max-width: 991.98px) {
  .sx-header .nav-link { padding: 0.6rem 0.75rem; font-size: 16px; border-radius: 0.375rem; }
  .sx-header .nav-link:hover { background: var(--sx-slate-100); }
  .sx-header .navbar-collapse { padding: 0.75rem 0 1rem; border-top: 1px solid var(--sx-slate-200); margin-top: 0.5rem; }
}

.icon-btn {
  position: relative; border: 0; background: transparent;
  padding: 0.5rem; border-radius: 0.5rem; color: var(--sx-slate-600);
  line-height: 1; font-size: 1.15rem;
  transition: background-color 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--sx-slate-100); color: var(--sx-slate-900); }
.count-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px; padding: 0 4px;
  background: var(--sx-emerald-600); color: #fff;
  font-size: 11px; font-weight: 600; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.count-badge.d-none { display: none !important; }

.user-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 12px; color: var(--sx-slate-700);
  background: var(--sx-slate-100); border: 1px solid var(--sx-slate-200);
  padding: 0.375rem 0.75rem; border-radius: 0.5rem;
}
.user-chip .name { font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.get-started-menu {
  width: 16rem; border-radius: 0.75rem; border: 1px solid var(--sx-slate-200);
  padding: 0.5rem 0; box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.12);
  margin-top: 0.5rem !important;
}
.get-started-menu .menu-head {
  padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--sx-slate-100);
  font-size: 12px; font-weight: 500; color: var(--sx-slate-400);
}
.get-started-menu .dropdown-item { padding: 0.75rem 1rem; white-space: normal; }
.get-started-menu .dropdown-item:hover { background: var(--sx-emerald-50); }
.get-started-menu .dropdown-item i { color: var(--sx-emerald-600); font-size: 1.15rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 3rem 0 5rem;
  background: linear-gradient(to bottom, #fff 0%, rgba(248, 250, 252, 0.6) 50%, var(--sx-slate-50) 100%);
  border-bottom: 1px solid var(--sx-slate-200);
}
@media (min-width: 992px) { .hero { padding: 4rem 0 7rem; } }

.hero .glow { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; z-index: 0; }
.hero .glow-1 { top: 0; right: 25%; width: 24rem; height: 24rem; background: rgba(209, 250, 229, 0.5); }
.hero .glow-2 { bottom: -2.5rem; left: 2.5rem; width: 20rem; height: 20rem; background: rgba(226, 232, 240, 0.6); }
.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-weight: 800; line-height: 1.12; letter-spacing: -0.025em;
  color: var(--sx-slate-900);
  font-size: 2.25rem;
  text-wrap: balance;
}
@media (min-width: 576px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 992px) { .hero h1 { font-size: 3.25rem; } }
.hero h1 .accent { color: var(--sx-emerald-700); display: block; }
@media (min-width: 576px) { .hero h1 .accent { display: inline; } }

.hero .lead-text { font-size: 1.1rem; color: var(--sx-slate-600); max-width: 42rem; line-height: 1.7; }
@media (min-width: 576px) { .hero .lead-text { font-size: 1.19rem; } }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sx-emerald-600); display: inline-block; }

.trust-note { border-top: 1px solid rgba(226, 232, 240, 0.8); padding-top: 0.9rem; font-size: 12px; color: var(--sx-slate-500); }

.search-widget {
  background: #fff; border: 1px solid var(--sx-slate-200); border-radius: 1rem;
  padding: 1.5rem; position: relative; z-index: 10;
  box-shadow: 0 20px 25px -5px rgba(148, 163, 184, 0.3), 0 8px 10px -6px rgba(148, 163, 184, 0.2);
}
@media (min-width: 576px) { .search-widget { padding: 1.75rem; } }

.profile-preview {
  background: var(--sx-slate-900); color: #fff;
  border: 1px solid var(--sx-slate-800); border-radius: 0.75rem;
  padding: 1rem; margin-top: 1rem; position: relative; z-index: 20; cursor: pointer;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.25);
  transition: border-color 0.2s;
}
@media (min-width: 576px) { .profile-preview { margin-top: -1.5rem; margin-left: 2rem; } }
.profile-preview:hover { border-color: var(--sx-emerald-500); }
.profile-preview .pp-head { padding-bottom: 0.65rem; border-bottom: 1px solid var(--sx-slate-800); }
.profile-preview .pp-body { padding: 0.65rem 0; font-size: 12px; }
.profile-preview .pp-foot { padding-top: 0.55rem; border-top: 1px solid var(--sx-slate-800); font-size: 11px; color: var(--sx-slate-400); }
.profile-preview:hover .pp-link { text-decoration: underline; }
.profile-preview:hover .pp-ext { color: var(--sx-emerald-400); }

/* ---------- Search/Explore section ---------- */
.explore-bar {
  background: var(--sx-slate-50); border: 1px solid var(--sx-slate-200);
  border-radius: 0.75rem; padding: 0.6rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.explore-bar .form-control, .explore-bar .form-select {
  background-color: #fff; border-color: var(--sx-slate-200); font-size: 14px; padding-top: 0.6rem; padding-bottom: 0.6rem;
}
.explore-bar .form-select { padding-right: 1.75rem; text-overflow: ellipsis; }

.chip-row { display: flex; align-items: center; gap: 0.5rem; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.25rem; }
.chip {
  border: 0; background: var(--sx-slate-100); color: var(--sx-slate-600);
  font-size: 12px; font-weight: 500; padding: 0.4rem 0.9rem; border-radius: 0.5rem;
  white-space: nowrap; cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.chip:hover { background: var(--sx-slate-200); color: var(--sx-slate-900); }
.chip.active { background: var(--sx-slate-900); color: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15); }
.chip.lg { font-size: 12px; font-weight: 600; padding: 0.5rem 1rem; }

/* ---------- Dual audience cards ---------- */
.audience-card {
  background: #fff; border: 1px solid var(--sx-slate-200); border-radius: 1rem;
  padding: 2rem; height: 100%; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); transition: box-shadow 0.2s;
}
@media (min-width: 576px) { .audience-card { padding: 2.5rem; } }
.audience-card:hover { box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.08); }
.audience-card .icon-box {
  width: 48px; height: 48px; border-radius: 0.75rem; color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}
.audience-card .arrow { transition: transform 0.2s; }
.audience-card:hover .arrow { transform: translateX(4px); }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 14px; color: var(--sx-slate-700); margin-bottom: 0.75rem; }
.check-list li i { color: var(--sx-emerald-600); margin-top: 2px; flex-shrink: 0; }

/* ---------- Project cards ---------- */
.project-card {
  background: #fff; border: 1px solid var(--sx-slate-200); border-radius: 0.75rem;
  overflow: hidden; height: 100%; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); transition: box-shadow 0.2s, border-color 0.2s;
}
.project-card:hover { box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.08); border-color: var(--sx-slate-300); }

.project-media { position: relative; aspect-ratio: 16 / 9; background: var(--sx-slate-100); overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-media img { transform: scale(1.05); }
.project-media .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 6, 23, 0.7), transparent 60%); pointer-events: none; }
.project-media .cat-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(4px); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem; border-radius: 0.25rem;
}
.project-media .bookmark-btn {
  position: absolute; top: 0.75rem; right: 0.75rem; border: 0;
  width: 34px; height: 34px; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.85); color: var(--sx-slate-700); backdrop-filter: blur(4px);
  transition: background-color 0.15s, color 0.15s;
}
.project-media .bookmark-btn:hover { background: #fff; color: var(--sx-emerald-700); }
.project-media .bookmark-btn.active { background: var(--sx-emerald-600); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.project-media .media-foot {
  position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; color: #fff; font-size: 12px;
}
.project-media .media-foot .loc { font-weight: 500; opacity: 0.9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-media .media-foot .dur { font-size: 11px; font-weight: 600; color: var(--sx-emerald-300); white-space: nowrap; }

.project-title { font-size: 1.125rem; font-weight: 700; color: var(--sx-slate-900); line-height: 1.3; cursor: pointer; transition: color 0.15s; }
.project-card:hover .project-title { color: var(--sx-emerald-700); }

.metric-label { font-size: 11px; font-weight: 500; color: var(--sx-slate-400); display: block; }
.metric-value { font-weight: 700; color: var(--sx-slate-900); font-size: 14px; }

.btn-card {
  width: 100%; background: var(--sx-slate-50); color: var(--sx-slate-800);
  border: 1px solid var(--sx-slate-200); font-size: 12px; font-weight: 600; padding: 0.6rem 1rem;
  transition: all 0.15s;
}
.btn-card:hover { background: var(--sx-emerald-50); color: var(--sx-emerald-800); border-color: var(--sx-emerald-200); }
.btn-card i { color: var(--sx-slate-400); }
.btn-card:hover i { color: var(--sx-emerald-600); }

.empty-state {
  text-align: center; padding: 4rem 1rem; background: var(--sx-slate-50);
  border: 1px dashed var(--sx-slate-300); border-radius: 1rem;
}

.link-arrow { font-weight: 700; font-size: 14px; color: var(--sx-emerald-700); text-decoration: none; background: none; border: 0; }
.link-arrow:hover { color: var(--sx-emerald-800); }
.link-arrow i { display: inline-block; transition: transform 0.2s; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- How it works / Due diligence ---------- */
.step-card {
  background: #fff; border: 1px solid var(--sx-slate-200); border-radius: 0.75rem; padding: 1.5rem;
  height: 100%; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); transition: border-color 0.2s;
}
.step-card:hover { border-color: var(--sx-emerald-300); }
.step-num { font-family: var(--sx-font-display); font-weight: 900; font-size: 14px; color: var(--sx-emerald-700); }
.step-icon {
  width: 40px; height: 40px; border-radius: 0.5rem; background: var(--sx-emerald-50); color: var(--sx-emerald-700);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem; transition: all 0.2s;
}
.step-card:hover .step-icon { background: var(--sx-emerald-600); color: #fff; }
.step-foot { margin-top: 1.5rem; padding-top: 0.75rem; border-top: 1px solid var(--sx-slate-100); font-size: 11px; color: var(--sx-slate-400); display: flex; justify-content: space-between; }

.pillar-card {
  background: rgba(248, 250, 252, 0.7); border: 1px solid var(--sx-slate-200); border-radius: 0.75rem; padding: 1.5rem;
  height: 100%; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); transition: background-color 0.2s;
}
.pillar-card:hover { background: var(--sx-slate-50); }
.pillar-icon {
  width: 40px; height: 40px; border-radius: 0.5rem; background: var(--sx-emerald-100); color: var(--sx-emerald-800);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem; margin-bottom: 1rem;
}
.pillar-list { padding-top: 0.75rem; border-top: 1px solid rgba(226, 232, 240, 0.7); }
.pillar-list div { display: flex; gap: 0.4rem; align-items: center; font-size: 12px; font-weight: 500; color: var(--sx-slate-700); margin-bottom: 0.4rem; }
.pillar-list i { color: var(--sx-emerald-600); }

.disclaimer-box {
  background: var(--sx-slate-50); border: 1px solid var(--sx-slate-200); border-radius: 0.5rem;
  padding: 1rem; font-size: 12px; color: var(--sx-slate-500);
}
.disclaimer-box .link-btn { color: var(--sx-emerald-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; text-align: left; }
.disclaimer-box .link-btn:hover { color: var(--sx-emerald-800); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--sx-emerald-800); color: #fff; padding: 4rem 0; }
@media (min-width: 576px) { .cta-band { padding: 5rem 0; } }
.cta-band .blob { position: absolute; width: 24rem; height: 24rem; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.cta-band .blob-1 { top: -5rem; right: -5rem; background: rgba(4, 120, 87, 0.4); }
.cta-band .blob-2 { bottom: -5rem; left: -5rem; background: rgba(6, 78, 59, 0.6); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; font-size: 1.875rem; }
@media (min-width: 576px) { .cta-band h2 { font-size: 2.25rem; } }
@media (min-width: 768px) { .cta-band h2 { font-size: 3rem; } }

/* ---------- Footer ---------- */
.sx-footer { background: var(--sx-slate-900); color: var(--sx-slate-400); font-size: 14px; }
.sx-footer h4 { font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.sx-footer .footer-link { color: var(--sx-slate-400); text-decoration: none; background: none; border: 0; padding: 0; text-align: left; transition: color 0.15s; cursor: pointer; }
.sx-footer .footer-link:hover { color: #fff; }
.sx-footer ul { list-style: none; padding: 0; margin: 0; }
.sx-footer ul li { margin-bottom: 0.65rem; }
.sx-footer .disabled-link { color: var(--sx-slate-500); cursor: not-allowed; }
.sx-footer .soft-link { cursor: pointer; transition: color 0.15s; }
.sx-footer .soft-link:hover { color: #fff; }
.sx-footer .bottom-bar { border-top: 1px solid var(--sx-slate-800); color: var(--sx-slate-500); font-size: 12px; }
.sx-footer .brand-mark.sm { width: 32px; height: 32px; }
.sx-footer .brand-mark.sm svg { width: 16px; height: 16px; }

/* ---------- Modals ---------- */
.modal-backdrop.show { opacity: 1; background: rgba(2, 6, 23, 0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-content { border: 1px solid var(--sx-slate-200); border-radius: 1rem; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35); }
.modal-head-soft { background: var(--sx-slate-50); border-bottom: 1px solid var(--sx-slate-200); padding: 1.5rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.modal-head-dark { background: var(--sx-slate-900); color: #fff; border-bottom: 1px solid var(--sx-slate-200); padding: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.round-close { border: 0; background: transparent; color: var(--sx-slate-400); width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.15s; }
.round-close:hover { background: var(--sx-slate-200); color: var(--sx-slate-700); }
.modal-head-dark .round-close:hover { background: var(--sx-slate-800); color: #fff; }
.floating-close { position: absolute; top: 1rem; right: 1rem; z-index: 5; }

/* Project detail modal */
.pd-banner { position: relative; height: 14rem; background: var(--sx-slate-900); flex-shrink: 0; }
@media (min-width: 576px) { .pd-banner { height: 18rem; } }
.pd-banner img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.pd-banner .shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--sx-slate-950), rgba(2, 6, 23, 0.4), transparent); }
.pd-banner .close-btn { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, 0.8); color: #fff; display: flex; align-items: center; justify-content: center; }
.pd-banner .close-btn:hover { background: var(--sx-slate-900); }
.pd-banner .banner-text { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1rem; color: #fff; }
.pd-banner h2 { font-weight: 800; line-height: 1.2; font-size: 1.25rem; margin: 0.5rem 0; }
@media (min-width: 576px) { .pd-banner h2 { font-size: 1.875rem; } }
.pd-cat { background: var(--sx-emerald-600); color: #fff; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; font-size: 11px; }
.pd-highlights { background: var(--sx-slate-50); border-bottom: 1px solid var(--sx-slate-200); padding: 0.75rem 1.5rem; font-size: 12px; }
.pd-highlights .v { font-size: 1rem; font-weight: 700; color: var(--sx-slate-900); display: block; }

.pd-tabs { border-bottom: 1px solid var(--sx-slate-200); padding: 0 1.5rem; background: #fff; flex-wrap: nowrap; overflow-x: auto; gap: 1.5rem; scrollbar-width: none; }
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tabs .nav-link {
  border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none;
  padding: 0.9rem 0; font-size: 14px; font-weight: 600; color: var(--sx-slate-600); white-space: nowrap; margin-bottom: -1px;
}
.pd-tabs .nav-link:hover { color: var(--sx-slate-900); }
.pd-tabs .nav-link.active { color: var(--sx-emerald-700); border-bottom-color: var(--sx-emerald-600); background: none; }

.pd-body { padding: 1.5rem; font-size: 14px; color: var(--sx-slate-700); line-height: 1.65; }
.mini-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sx-slate-400); margin-bottom: 0.5rem; }
.info-box { background: var(--sx-slate-50); border: 1px solid var(--sx-slate-200); border-radius: 0.75rem; padding: 1rem; height: 100%; }
.info-box h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; font-family: var(--sx-font-body); }
.target-box { font-size: 13px; background: rgba(236, 253, 245, 0.6); border: 1px solid var(--sx-emerald-100); border-radius: 0.5rem; padding: 0.875rem; }
.sdg-tag { background: var(--sx-slate-100); color: var(--sx-slate-800); font-weight: 500; font-size: 12px; padding: 0.25rem 0.75rem; border-radius: 0.375rem; border: 1px solid var(--sx-slate-200); }

.budget-table { font-size: 12px; margin: 0; }
.budget-table thead th { background: var(--sx-slate-50); color: var(--sx-slate-700); font-weight: 600; padding: 0.75rem 1rem; border-bottom: 1px solid var(--sx-slate-200); white-space: nowrap; }
.budget-table tbody td { padding: 0.75rem 1rem; border-color: var(--sx-slate-100); vertical-align: top; }
.table-wrap { border: 1px solid var(--sx-slate-200); border-radius: 0.75rem; overflow: hidden; }
.warn-box { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 0.5rem; padding: 0.75rem; font-size: 12px; display: flex; gap: 0.5rem; align-items: center; }
.warn-box i { color: #b45309; }

.milestone-card { background: var(--sx-slate-50); border: 1px solid var(--sx-slate-200); border-radius: 0.75rem; padding: 1rem; }
.compliance-card { background: rgba(236, 253, 245, 0.6); border: 1px solid var(--sx-emerald-200); border-radius: 0.75rem; padding: 1rem; height: 100%; }

.inquiry-wrap { padding-top: 1.5rem; border-top: 1px solid var(--sx-slate-200); margin-top: 1.5rem; }
.inquiry-success { background: var(--sx-emerald-50); border: 1px solid var(--sx-emerald-200); border-radius: 0.75rem; padding: 1rem; text-align: center; }
.modal-footer-bar { border-top: 1px solid var(--sx-slate-200); background: var(--sx-slate-50); }

/* Role switch (Get Started) */
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.25rem; background: var(--sx-slate-100); border-radius: 0.75rem; }
.role-switch button {
  border: 0; background: transparent; color: var(--sx-slate-600); font-size: 12px; font-weight: 700;
  padding: 0.65rem 0.75rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: all 0.15s;
}
.role-switch button i { color: var(--sx-emerald-600); font-size: 1rem; }
.role-switch button:hover { color: var(--sx-slate-900); }
.role-switch button.active { background: #fff; color: var(--sx-slate-900); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1); }

.demo-box { background: var(--sx-slate-50); border: 1px solid var(--sx-slate-200); border-radius: 0.75rem; padding: 0.75rem; }
.demo-btn { background: #fff; border: 1px solid var(--sx-slate-200); border-radius: 0.5rem; padding: 0.65rem; text-align: left; width: 100%; transition: border-color 0.15s; }
.demo-btn:hover { border-color: var(--sx-emerald-500); }
.demo-btn:hover .t { color: var(--sx-emerald-700); }
.demo-btn .t { font-size: 12px; font-weight: 700; color: var(--sx-slate-900); display: flex; gap: 0.4rem; align-items: center; }
.demo-btn .t i { color: var(--sx-emerald-600); }
.demo-btn .s { font-size: 10px; color: var(--sx-slate-500); margin-top: 2px; }

.or-divider { display: flex; align-items: center; gap: 0.75rem; color: var(--sx-slate-400); font-size: 11px; font-weight: 500; margin: 1rem 0 0.5rem; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; border-top: 1px solid var(--sx-slate-200); }

/* NGO directory */
.ngo-card { padding: 1.25rem; border: 1px solid var(--sx-slate-200); border-radius: 0.75rem; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.ngo-card:hover { border-color: var(--sx-emerald-300); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
.ngo-avatar { width: 36px; height: 36px; border-radius: 0.5rem; background: var(--sx-emerald-100); color: var(--sx-emerald-800); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.tag-sm { background: var(--sx-slate-100); color: var(--sx-slate-700); padding: 0.1rem 0.5rem; border-radius: 0.25rem; font-size: 11px; }

/* Corporate/How modals */
.cap-card { background: var(--sx-slate-50); border: 1px solid var(--sx-slate-200); border-radius: 0.75rem; padding: 1.25rem; height: 100%; }
.green-box { background: var(--sx-emerald-50); border: 1px solid var(--sx-emerald-200); border-radius: 0.75rem; padding: 1rem; display: flex; gap: 0.75rem; align-items: flex-start; font-size: 12px; color: var(--sx-emerald-900); }
.num-card { padding: 1rem; border: 1px solid var(--sx-slate-200); border-radius: 0.75rem; background: #fff; }
.num-badge { width: 24px; height: 24px; border-radius: 50%; background: var(--sx-emerald-100); color: var(--sx-emerald-800); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Shortlist offcanvas ---------- */
.offcanvas.shortlist { width: 28rem; max-width: 100%; border-left: 1px solid var(--sx-slate-200); }
.offcanvas-backdrop.show { opacity: 1; background: rgba(2, 6, 23, 0.6); }
.shortlist .sl-head { padding: 1.25rem; border-bottom: 1px solid var(--sx-slate-200); background: var(--sx-slate-50); display: flex; justify-content: space-between; align-items: center; }
.shortlist .sl-body { padding: 1.25rem; overflow-y: auto; flex: 1; }
.shortlist .sl-foot { padding: 1.25rem; border-top: 1px solid var(--sx-slate-200); background: var(--sx-slate-50); }
.sl-item { padding: 1rem; border: 1px solid var(--sx-slate-200); border-radius: 0.75rem; background: #fff; margin-bottom: 1rem; transition: border-color 0.15s; }
.sl-item:hover { border-color: var(--sx-slate-300); }
.sl-cat { font-size: 10px; font-weight: 700; color: var(--sx-emerald-800); text-transform: uppercase; letter-spacing: 0.05em; background: var(--sx-emerald-50); padding: 0.1rem 0.5rem; border-radius: 0.25rem; }
.sl-title { font-weight: 700; color: var(--sx-slate-900); font-size: 14px; margin-top: 0.4rem; cursor: pointer; transition: color 0.15s; }
.sl-title:hover { color: var(--sx-emerald-700); }
.sl-remove { border: 0; background: none; color: var(--sx-slate-400); padding: 0.15rem 0.35rem; border-radius: 0.25rem; }
.sl-remove:hover { color: #e11d48; }

/* ---------- Toast ---------- */
.sx-toast {
  background: var(--sx-slate-900); color: #fff; border: 1px solid var(--sx-slate-700);
  border-radius: 0.75rem; font-size: 13px; font-weight: 500; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}
.sx-toast .toast-body { display: flex; gap: 0.5rem; align-items: center; padding: 0.75rem 1rem; }
.sx-toast .dot-green { width: 8px; height: 8px; border-radius: 50%; background: var(--sx-emerald-400); flex-shrink: 0; }

/* ---------- Small-screen tweaks ---------- */
@media (max-width: 575.98px) {
  .section-pad { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .modal-head-soft, .modal-head-dark { padding: 1.1rem; }
  .pd-body, .pd-highlights { padding-left: 1rem; padding-right: 1rem; }
  .pd-tabs { padding: 0 1rem; gap: 1.1rem; }
  .pd-banner .banner-text { left: 1rem; right: 1rem; }
  .audience-card { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Utilities & small additions ---------- */
.min-w-0 { min-width: 0; }
@media (min-width: 576px) { .w-sm-auto { width: auto !important; } }
@media (min-width: 992px) { .border-lg-0 { border: 0 !important; } }

.mini-label { font-family: var(--sx-font-body); }

.pd-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 576px) { .pd-highlights { grid-template-columns: repeat(4, 1fr); } }

/* Log In button: outlined on mobile menu, plain text on desktop navbar */
.btn-login {
  --bs-btn-color: var(--sx-slate-700);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--sx-slate-300);
  --bs-btn-hover-color: var(--sx-slate-900);
  --bs-btn-hover-bg: var(--sx-slate-50);
  --bs-btn-hover-border-color: var(--sx-slate-400);
  --bs-btn-active-color: var(--sx-slate-900);
  --bs-btn-active-bg: var(--sx-slate-100);
  --bs-btn-active-border-color: var(--sx-slate-400);
  padding: 0.6rem 1rem;
  font-size: 14px;
}
@media (min-width: 992px) {
  .btn-login {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: transparent;
    padding: 0.65rem 1rem;
  }
}
