/* ==========================================================================
   We're Giving -- Shared Design System
   Consolidated CSS for all pages
   ========================================================================== */

/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */
:root {
  /* Brand */
  --wg-purple: #6C3FA0;
  --wg-purple-deep: #4A2272;
  --wg-pink: #E91E8C;
  --wg-pink-soft: #F472B6;

  /* Warmth palette */
  --warmth: #FFF7ED;
  --warmth-mid: #FEF0DC;
  --warmth-deep: #FDDCAB;
  --cream: #FFFDF9;

  /* Semantic */
  --trust-green: #059669;
  --trust-green-soft: #D1FAE5;
  --trust-green-bg: #ECFDF5;
  --urgency-amber: #F59E0B;
  --urgency-red: #EF4444;

  /* Text */
  --text-primary: #1C1917;
  --text-secondary: #57534E;
  --text-muted: #A8A29E;

  /* Surfaces */
  --surface: #FFFFFF;
  --border: #E7E5E4;
  --border-soft: #F5F5F4;

  /* Typography */
  --font-display: 'Bricolage Grotesque', serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-handwritten: 'Caveat', cursive;

  /* Layout */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --content-max: 1200px;
  --section-pad: clamp(60px, 8vw, 120px);
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wg-pink);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.handwritten-note {
  font-family: var(--font-handwritten);
  font-size: 19px;
  color: var(--wg-pink);
  transform: rotate(-1.5deg);
  margin-top: 18px;
  text-align: center;
}


/* ==========================================================================
   4. NAVIGATION
   ========================================================================== */
.nav-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav-logo-img { height: 45px; width: auto; }
.footer-logo-img { height: 32px; width: auto; filter: brightness(0) invert(1); }

.alpha-sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(17, 228, 183, 0.16);
  border: 1px solid rgba(17, 228, 183, 0.54);
  color: #075E4D;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--wg-purple); }
.nav-links a.active { color: var(--wg-purple); font-weight: 700; }

.nav-links .nav-hospital-link {
  background: var(--warmth);
  border: 1px solid var(--warmth-deep);
  padding: 6px 14px;
  border-radius: 100px;
  color: var(--wg-purple);
  font-weight: 600;
  font-size: 13px;
}
.nav-links .nav-hospital-link.active {
  background: var(--wg-purple);
  color: #fff;
  border-color: var(--wg-purple);
}

.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.nav-cart {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-secondary);
}
.nav-cart svg { width: 24px; height: 24px; }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--wg-pink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-signin { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 14px; }
.nav-signin:hover { color: var(--wg-purple); }

.nav-browse-link {
  background: transparent;
  border: 2px solid var(--wg-purple);
  padding: 7px 18px;
  border-radius: 100px;
  color: var(--wg-purple) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  transition: all 0.2s;
}
.nav-browse-link:hover { background: var(--wg-purple); color: #fff !important; }
.nav-browse-link.active { background: var(--wg-purple); color: #fff !important; }

.nav-bookmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 2px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
  font-family: var(--font-body);
}
.nav-bookmark:hover { border-color: var(--wg-pink); color: var(--wg-pink); }
.nav-bookmark.bookmarked { background: #FFF1F8; border-color: var(--wg-pink); color: var(--wg-pink); }

.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; }

.mobile-nav {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}
.mobile-nav.open { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 16px;
  padding: 8px 0;
}
.mobile-nav a.active { color: var(--wg-purple); font-weight: 700; }
.mobile-nav .nav-signin { display: block; }
.mobile-nav .nav-hospital-link {
  width: fit-content;
  color: var(--wg-purple);
  font-weight: 700;
}


/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--wg-purple-deep);
  padding: 12px 26px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: rgba(255,255,255,0.8);
  padding: 12px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: all 0.3s;
}
.btn-ghost:hover { border-color: #fff; color: #fff; }

.btn-hospital {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--wg-purple), var(--wg-pink));
  color: #fff;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(108,63,160,0.25);
}
.btn-hospital:hover { transform: translateY(-2px); }

.see-all-link {
  font-weight: 600;
  color: var(--wg-purple);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}


/* ==========================================================================
   6. PROJECT CARDS
   ========================================================================== */
.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

.pc-img { height: 200px; position: relative; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card:hover .pc-img img { transform: scale(1.03); }

.pc-match-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(5,150,105,0.95);
  color: #fff;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.pc-urgency-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(245,158,11,0.95);
  color: #fff;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}
.pc-match-badge + .pc-urgency-badge,
.pc-urgency-badge:not(:first-child) { top: 42px; }

.pc-first-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(108,63,160,0.95);
  color: #fff;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}

.pc-type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pc-bookmark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  border: none;
  transition: all 0.2s;
  z-index: 2;
  color: var(--text-muted);
}
.pc-bookmark:hover { background: #fff; transform: scale(1.1); color: var(--wg-pink); }
.pc-bookmark.saved { color: var(--wg-pink); }

.pc-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }

.pc-headline { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.3; margin-bottom: 5px; }
.pc-headline a { text-decoration: none; color: inherit; }
.pc-headline a:hover { color: var(--wg-purple); }

.pc-facility { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }

.pc-progress { margin-bottom: 10px; }
.pc-progress-bar { height: 8px; background: var(--border-soft); border-radius: 100px; overflow: hidden; margin-bottom: 6px; }
.pc-progress-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--wg-purple), var(--wg-pink)); transition: width 0.6s ease; }
.pc-progress-meta { display: flex; justify-content: space-between; font-size: 12px; }
.pc-progress-meta .raised { font-weight: 700; color: var(--wg-purple); }
.pc-progress-meta .goal { color: var(--text-muted); }

.pc-impact-row { display: flex; gap: 16px; margin-bottom: 14px; font-size: 12px; color: var(--text-secondary); }
.pc-impact-row strong { color: var(--text-primary); }

/* Card CTA buttons */
.pc-cta {
  display: block;
  text-align: center;
  background: var(--wg-purple);
  color: #fff;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}
.pc-cta:hover { background: var(--wg-purple-deep); }

.pc-ctas { display: flex; gap: 8px; margin-top: auto; }

.pc-cta-cart {
  flex: 1;
  text-align: center;
  background: transparent;
  color: var(--trust-green);
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  border: 2px solid var(--trust-green);
  cursor: pointer;
  transition: all 0.2s;
}
.pc-cta-cart:hover { background: var(--trust-green); color: #fff; }

.pc-cta-give {
  flex: 1;
  text-align: center;
  background: var(--wg-purple);
  color: #fff;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px solid var(--wg-purple);
}
.pc-cta-give:hover { background: var(--wg-purple-deep); border-color: var(--wg-purple-deep); }

/* Tag pills on cards */
.pc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.pc-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pc-tag.matched { background: #D1FAE5; color: #059669; }
.pc-tag.urgent { background: #FEF3C7; color: #92400E; }
.pc-tag.first-time { background: #FCE7F3; color: #BE185D; }
.pc-tag.saving-lives { background: #FEE2E2; color: #DC2626; }
.pc-tag.play-therapy { background: #EDE9FE; color: #6C3FA0; }
.pc-tag.big-project { background: #DBEAFE; color: #1D4ED8; }
.pc-tag.event { background: #FEF3C7; color: #D97706; }

/* Urgency badges (absolute positioned on card images) */
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge-almost-funded { background: rgba(245,158,11,0.95); color: #fff; padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.badge-time-running-out { background: rgba(239,68,68,0.95); color: #fff; padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 700; }

/* Matched ribbon at bottom of card */
.match-ribbon {
  background: linear-gradient(90deg, #059669, #10B981);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  margin: 0 -1px -1px;
}
.match-ribbon .match-multiplier { font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.match-ribbon .match-thanks { font-size: 11px; opacity: 0.85; margin-top: 2px; }


/* ==========================================================================
   7. FORMS & SEARCH
   ========================================================================== */
.search-input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border: 2px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  background: var(--surface);
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--wg-purple); }
.search-input::placeholder { color: var(--text-muted); }

.sort-select {
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  cursor: pointer;
  outline: none;
  color: var(--text-secondary);
}
.sort-select:focus { border-color: var(--wg-purple); }

.location-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  margin-top: 4px;
}
.location-input:focus { border-color: var(--wg-purple); }

/* Filter group (sidebar) */
.filter-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.filter-group-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px 0;
  transition: color 0.15s;
}
.filter-group label:hover { color: var(--text-primary); }
.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
  accent-color: var(--wg-purple);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.filter-group .filter-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--border-soft);
  padding: 1px 7px;
  border-radius: 100px;
}

/* Special tag filter labels */
.filter-group label.special-matched { color: #059669; font-weight: 600; }
.filter-group label.special-urgent { color: #92400E; font-weight: 600; }
.filter-group label.special-firsttime { color: #BE185D; font-weight: 600; }
.special-2x-badge {
  display: inline-block;
  background: #D1FAE5;
  color: #059669;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}

.clear-filters-btn {
  width: 100%;
  padding: 10px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.clear-filters-btn:hover { border-color: var(--wg-pink); color: var(--wg-pink); }


/* ==========================================================================
   8. HERO
   ========================================================================== */
.hero { background: #1a1625; overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 500px;
}

.hero-content {
  padding: clamp(48px, 6vw, 80px) clamp(40px, 5vw, 64px) clamp(48px, 6vw, 80px) max(64px, calc((100vw - 1200px) / 2 + 24px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 14px;
}
.hero h1 .hero-em { position: relative; display: inline; }
.hero h1 .hero-em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: -3px;
  right: -3px;
  height: 8px;
  background: rgba(233,30,140,0.3);
  border-radius: 3px;
  z-index: -1;
}

.hero-sub {
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 440px;
}

.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }

.hero-cn { font-size: 12px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 5px; }
.hero-cn .cn-stars { color: #FBBF24; }
.hero-cn a { color: rgba(255,255,255,0.6); text-decoration: underline; }

.hero-photo { position: relative; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }


/* ==========================================================================
   9. GIVING PAGE LAYOUT
   ========================================================================== */
.hospital-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  padding: 20px 0 80px;
}

.hospital-main {}

/* Funding thermometer (sticky bar) */
.thermometer-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 52px;
  z-index: 90;
}
.thermo-inner { display: flex; align-items: center; gap: 24px; }
.thermo-progress-wrap { flex: 1; }
.thermo-stats { display: flex; justify-content: space-between; margin-bottom: 6px; }
.thermo-raised { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--wg-purple); }
.thermo-needed { font-size: 13px; font-weight: 600; color: var(--urgency-red); }
.thermo-track { height: 10px; background: var(--border-soft); border-radius: 100px; overflow: hidden; }
.thermo-fill { height: 100%; background: linear-gradient(90deg, var(--wg-purple), var(--wg-pink)); border-radius: 100px; transition: width 0.6s ease; }
.thermo-meta { display: flex; justify-content: space-between; margin-top: 5px; font-size: 12px; color: var(--text-muted); }
.thermo-expires { font-weight: 600; }
.thermo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wg-purple);
  color: #fff;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(108,63,160,0.25);
  flex-shrink: 0;
}
.thermo-cta:hover { background: var(--wg-purple-deep); transform: translateY(-1px); }

/* Boost bar (share at top) */
.boost-bar {
  background: linear-gradient(135deg, #FAF5FF, #FFF1F8);
  border: 1px solid #EDE9FE;
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-top: 20px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.boost-left { display: flex; align-items: center; gap: 12px; }
.boost-icon { font-size: 28px; }
.boost-text h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--wg-purple-deep); }
.boost-text p { font-size: 13px; color: var(--text-secondary); }
.boost-btns { display: flex; gap: 8px; }
.boost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  transition: all 0.2s;
  font-family: var(--font-body);
}
.boost-btn:hover { border-color: var(--wg-purple); color: var(--wg-purple); background: #FAF5FF; }
.boost-btn.primary { background: var(--wg-purple); color: #fff; border-color: var(--wg-purple); }
.boost-btn.primary:hover { background: var(--wg-purple-deep); }

/* Browse layout */
.browse-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 28px 0 var(--section-pad);
  align-items: start;
}

/* Browse sidebar — sticky filter rail with internal scroll. This rule is
   SCOPED to .browse-layout so it does NOT leak into project/profile/1Up
   pages (which caused the "scrollbar on profile+giving section" bug). */
.browse-layout .sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}
.browse-layout .sidebar::-webkit-scrollbar { width: 4px; }
.browse-layout .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
/* Default sidebar on all OTHER pages flows naturally with page scroll. */
.sidebar:not(.browse-layout .sidebar) {
  position: static;
  max-height: none;
  overflow: visible;
}

/* Browse content */
.content-area { min-width: 0; }

/* Search section */
.search-section { padding: 28px 0 0; }
.search-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.search-input-wrap { flex: 1; min-width: 280px; position: relative; }
.search-input-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.search-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.result-count { font-weight: 600; color: var(--text-secondary); font-size: 14px; white-space: nowrap; }
.result-count strong { color: var(--wg-purple); }

.mobile-filter-btn {
  display: none;
  padding: 10px 20px;
  border: 2px solid var(--wg-purple);
  border-radius: 100px;
  background: var(--surface);
  color: var(--wg-purple);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 12px;
}

/* Sidebar overlay for mobile */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; }
.sidebar-overlay.active { display: block; }

/* Grid view */
.grid-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.grid-view .project-card { min-width: 0; max-width: none; }

/* Carousel feeds */
.feed-section { margin-bottom: 40px; }
.feed-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.feed-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.feed-see-all { font-weight: 600; color: var(--wg-purple); text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.feed-see-all:hover { text-decoration: underline; }

.carousel-wrap { position: relative; }
.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel .project-card { min-width: 310px; max-width: 310px; flex-shrink: 0; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.2s;
}
.carousel-arrow:hover { background: var(--wg-purple); color: #fff; border-color: var(--wg-purple); }
.carousel-arrow.left { left: -12px; }
.carousel-arrow.right { right: -12px; }
.carousel-arrow svg { width: 18px; height: 18px; }


/* ==========================================================================
   10. GIVING PAGE COMPONENTS
   ========================================================================== */

/* Campaign headline */
.campaign-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

/* Gallery card */
.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.gallery-hero {
  height: 360px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-hero:hover img { transform: scale(1.02); }
.gallery-hero .verified-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--trust-green);
  color: #fff;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.gallery-hero .match-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(5,150,105,0.95);
  color: #fff;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.gallery-thumbs { display: flex; gap: 3px; padding: 3px; }
.gallery-thumbs .thumb {
  flex: 1;
  height: 80px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: opacity 0.2s;
  border: 2px solid transparent;
}
.gallery-thumbs .thumb.active { border-color: var(--wg-purple); }
.gallery-thumbs .thumb:hover { opacity: 0.85; }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Story section */
.story-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.story-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.story-section p { font-size: 16px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 16px; }
.story-section p:last-child { margin-bottom: 0; }

.story-quote {
  background: var(--warmth);
  border-left: 4px solid var(--wg-pink);
  padding: 20px 24px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  margin: 20px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.sq-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--surface);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.sq-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.sq-content { flex: 1; }
.sq-content .sq-text { font-style: italic; color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.sq-content .sq-attr {
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sq-attr .sq-role { font-weight: 500; color: var(--text-muted); }

/* Impact section */
.impact-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.impact-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.impact-card {
  text-align: center;
  padding: 18px 10px;
  border-radius: var(--radius-sm);
  background: var(--warmth);
}
.impact-card .ic-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--wg-purple);
  line-height: 1.1;
}
.impact-card .ic-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* Phases section */
.phases-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.phases-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.phases-header { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 4px 0; }
.phases-header h2 { margin: 0; }
.phases-toggle-icon { font-size: 14px; color: var(--text-muted); transition: transform 0.3s; }
.phases-toggle-icon.open { transform: rotate(180deg); }

.phase-track { position: relative; padding-left: 32px; }
.phase-track::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--border);
  border-radius: 100px;
}
.phase-item { position: relative; padding-bottom: 28px; }
.phase-item:last-child { padding-bottom: 0; }
.phase-dot {
  position: absolute;
  left: -24px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--border);
  z-index: 1;
}
.phase-dot.active { background: var(--trust-green); box-shadow: 0 0 0 2px var(--trust-green), 0 0 8px rgba(5,150,105,0.3); }
.phase-dot.current { background: var(--wg-purple); box-shadow: 0 0 0 2px var(--wg-purple), 0 0 8px rgba(108,63,160,0.3); animation: pulseDot 2s infinite; }
.phase-dot.locked { background: var(--text-muted); opacity: 0.5; }
.phase-content {}
.phase-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.phase-name .phase-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.phase-tag.funded { background: var(--trust-green-bg); color: var(--trust-green); }
.phase-tag.in-progress { background: #EDE9FE; color: var(--wg-purple); }
.phase-tag.locked { background: var(--border-soft); color: var(--text-muted); }
.phase-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.phase-goal { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }
.phase-bar { height: 6px; background: var(--border-soft); border-radius: 100px; overflow: hidden; margin-top: 6px; max-width: 260px; }
.phase-bar-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--wg-purple), var(--wg-pink)); }

/* Breakdown section */
.breakdown-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.breakdown-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  padding: 20px 28px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.breakdown-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.breakdown-toggle {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wg-purple);
  cursor: pointer;
  background: var(--border-soft);
  border: none;
  border-top: 1px solid var(--border);
  font-family: var(--font-body);
  transition: background 0.2s;
}
.breakdown-toggle:hover { background: #FAF5FF; }
.breakdown-simple { padding: 20px 28px; font-size: 16px; color: var(--text-secondary); line-height: 1.7; }
.breakdown-simple strong { color: var(--text-primary); }

/* Equipment table */
.eq-table { width: 100%; border-collapse: collapse; }
.eq-table th {
  text-align: left;
  padding: 10px 28px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--border-soft);
  border-bottom: 1px solid var(--border);
}
.eq-table td { padding: 12px 28px; font-size: 14px; border-bottom: 1px solid var(--border-soft); }
.eq-table tr:last-child td { border-bottom: none; }
.eq-table .item-name { font-weight: 600; }
.eq-table .item-qty { font-weight: 700; color: var(--wg-purple); }
.eq-table .item-cost { font-weight: 700; text-align: right; }
.eq-table .item-covered { color: var(--trust-green); font-weight: 700; font-size: 12px; }
.eq-table th:last-child { text-align: right; }
.eq-separator td {
  padding: 6px 28px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--border-soft);
}
.eq-total-row { background: var(--warmth); }
.eq-total-row td { font-weight: 800 !important; font-size: 15px !important; }
.item-unit { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

.breakdown-services { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.service-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-soft);
}
.service-line:last-child { border-bottom: none; }
.service-line.highlight span.free { color: var(--trust-green); font-weight: 600; }
.breakdown-total { margin-top: 16px; padding-top: 12px; border-top: 2px solid var(--text-primary); }
.total-line { display: flex; justify-content: space-between; font-size: 15px; padding: 4px 0; }
.breakdown-notes { margin-top: 16px; }
.breakdown-notes > div { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.breakdown-fee-note {
  padding: 14px 28px;
  background: var(--trust-green-bg);
  border-top: 1px solid rgba(5,150,105,0.1);
  font-size: 13px;
  color: var(--trust-green);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.breakdown-shipping-note {
  padding: 10px 28px;
  background: var(--border-soft);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breakdown-overfund-note {
  padding: 12px 28px;
  background: #FFF7ED;
  border-top: 1px solid rgba(245,158,11,0.15);
  font-size: 12px;
  color: #92400E;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Activity section */
.activity-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.activity-header {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.timeline-item { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.tl-dot {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.tl-dot.green { background: var(--trust-green-bg); }
.tl-dot.yellow { background: #FEF3C7; }
.tl-dot.purple { background: #EDE9FE; }
.tl-dot.pink { background: #FCE7F3; }
.tl-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.tl-desc { font-size: 13px; color: var(--text-muted); }
.tl-date { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* Submitter card */
.submitter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
}
.submitter-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 3px solid var(--surface);
  box-shadow: 0 4px 16px rgba(108,63,160,0.2);
}
.submitter-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.submitter-avatar.initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--wg-purple), var(--wg-pink));
  color: #fff;
  font-weight: 800;
  font-size: 24px;
}
.submitter-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.submitter-role { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.4; }
.submitter-facility {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 10px 14px;
  background: var(--border-soft);
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
}
.submitter-specialist {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 10px 12px;
  background: var(--warmth);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.submitter-specialist img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: center top; }
.submitter-impact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.si-stat { text-align: center; padding: 10px 8px; background: var(--warmth); border-radius: var(--radius-xs); }
.si-stat .si-num { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--wg-purple); }
.si-stat .si-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }

/* Submitter identity (merged into submitter card) */
.submitter-identity { margin: 14px 0; padding: 14px 0; border-top: 1px solid var(--border); }
.submitter-identity .id-location,
.submitter-identity .id-ages { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.submitter-identity .id-badges { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }

/* Donation card */
.donation-card {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}
.dc-progress-section { padding: 24px 22px 18px; }
.dc-raised-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.dc-raised { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--wg-purple); }
.dc-goal { font-size: 14px; color: var(--text-muted); }
.dc-bar { height: 12px; background: var(--border-soft); border-radius: 100px; overflow: hidden; margin-bottom: 10px; }
.dc-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--wg-purple), var(--wg-pink));
  position: relative;
  transition: width 2s ease;
}
.dc-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
  border-radius: 0 100px 100px 0;
}
.dc-meta-row { display: flex; justify-content: space-between; font-size: 13px; }
.dc-meta-num { font-weight: 700; }
.dc-meta-lbl { font-size: 11px; color: var(--text-muted); }

/* Donation amounts */
.dc-amounts { padding: 0 22px; margin-bottom: 16px; }
.dc-amounts-label { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.dc-amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dc-amount-btn {
  background: var(--border-soft);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.dc-amount-btn:hover { border-color: var(--wg-purple); background: #FAF5FF; }
.dc-amount-btn.selected { border-color: var(--wg-purple); background: #FAF5FF; box-shadow: 0 0 0 1px var(--wg-purple); }
.dc-amount-btn .amt { font-family: var(--font-display); font-weight: 800; font-size: 20px; display: block; }
.dc-amount-btn .impact-lbl { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.dc-amount-btn.popular::after {
  content: 'POPULAR';
  position: absolute;
  top: -7px;
  right: 6px;
  background: var(--wg-pink);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 100px;
}
.dc-custom-row { margin-top: 8px; position: relative; }
.dc-custom-input {
  width: 100%;
  padding: 11px 14px 11px 26px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}
.dc-custom-input:focus { border-color: var(--wg-purple); }
.dc-custom-input::placeholder { color: var(--text-muted); font-weight: 400; }
.dc-dollar-sign {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 15px;
}

.dc-impact-preview { font-size: 13px; color: var(--text-secondary); padding: 8px 0; text-align: center; margin: 0 22px; }
.dc-impact-preview strong { color: var(--wg-purple); }

/* Donate button */
.dc-action { padding: 0 22px 16px; }
.dc-donate-btn {
  display: block;
  width: 100%;
  background: var(--wg-pink);
  color: #fff;
  padding: 15px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  box-shadow: 0 4px 16px rgba(233,30,140,0.35);
}
.dc-donate-btn:hover { background: #C2185B; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(233,30,140,0.45); }
.dc-donate-btn:active { transform: translateY(0); }

.dc-recurring-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.dc-recurring-toggle input { accent-color: var(--wg-purple); }

.dc-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 22px;
  background: var(--border-soft);
  font-size: 10px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.dc-trust-badges span { display: flex; align-items: center; gap: 3px; }

/* Recent donors */
.dc-recent { padding: 14px 22px 18px; border-top: 1px solid var(--border); }
.dc-recent-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.dc-recent-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.dc-recent-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.dc-recent-name { font-size: 12px; font-weight: 600; flex: 1; }
.dc-recent-name strong { font-weight: 800; }
.dc-recent-time { font-size: 10px; color: var(--text-muted); }
.dc-recent-reason {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  padding-left: 34px;
  margin-top: -2px;
  margin-bottom: 4px;
}

/* Social share */
.dc-social { padding: 14px 22px; border-top: 1px solid var(--border); text-align: center; }
.dc-social-label { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.dc-social-btns { display: flex; justify-content: center; gap: 8px; }
.dc-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--border-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}
.dc-social-btn:hover { background: var(--warmth); border-color: var(--wg-purple); }

/* Identity card */
.identity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.id-location, .id-ages { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.id-location svg, .id-ages svg { color: var(--text-muted); flex-shrink: 0; }
.id-badges { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.id-badge { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.4; }
.id-badge strong { display: block; margin-bottom: 2px; font-size: 13px; }
.id-badge span { color: var(--text-secondary); font-size: 12px; }
.id-badge.equity { background: #EDE9FE; border-left: 3px solid var(--wg-purple); }
.id-badge.equity strong { color: var(--wg-purple); }
.id-badge.low-income { background: #FEF3C7; border-left: 3px solid #D97706; }
.id-badge.low-income strong { color: #92400E; }
.id-tags { margin-top: 16px; }
.id-tags-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.id-tags-list { display: flex; flex-wrap: wrap; gap: 6px; }
.id-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--border-soft);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}
.id-tag:hover { background: var(--wg-purple); color: #fff; }
.id-deadline {
  margin-top: 16px;
  padding: 12px 14px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #991B1B;
  line-height: 1.5;
}

/* Tags section */
.tags-section { margin-bottom: 32px; }
.tags-section .id-tags { margin-bottom: 14px; }

/* Similar projects */
.similar-section { margin-bottom: 24px; }
.similar-header { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.similar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.similar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  display: block;
}
.similar-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.similar-card .sc-img { height: 100px; overflow: hidden; }
.similar-card .sc-img img { width: 100%; height: 100%; object-fit: cover; }
.similar-card .sc-body { padding: 14px; }
.similar-card .sc-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 4px; line-height: 1.3; }
.similar-card .sc-loc { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.similar-card .sc-bar { height: 6px; background: var(--border-soft); border-radius: 100px; overflow: hidden; margin-bottom: 6px; }
.similar-card .sc-bar-fill { height: 100%; background: linear-gradient(90deg, var(--wg-purple), var(--wg-pink)); border-radius: 100px; }
.similar-card .sc-meta { font-size: 11px; color: var(--text-muted); }
.similar-card .sc-meta strong { color: var(--wg-purple); }

/* Bottom banner */
.bottom-banner {
  background: linear-gradient(135deg, var(--wg-purple-deep), var(--wg-purple));
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
}
.bottom-banner h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-bottom: 10px; }
.bottom-banner p { font-size: 15px; opacity: 0.85; margin-bottom: 20px; max-width: 500px; margin-left: auto; margin-right: auto; }
.bottom-banner .bb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--wg-purple-deep);
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s;
}
.bottom-banner .bb-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* Mobile donate bar */
.mobile-donate-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.mobile-donate-bar .mdb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}
.mdb-info .mdb-raised { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--wg-purple); }
.mdb-info .mdb-goal { font-size: 12px; color: var(--text-muted); }
.mdb-btn {
  background: linear-gradient(135deg, var(--wg-purple), var(--wg-pink));
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 100px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(108,63,160,0.3);
}


/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 36px;
}

.footer-impact-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.fi-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 36px);
  background: linear-gradient(135deg, #c4b5fd, #f9a8d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fi-label { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 4px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo-text { color: #fff; font-size: 24px; }
.footer-brand .nav-logo-text em { color: var(--wg-pink); }
.footer-brand p { font-size: 14px; line-height: 1.6; margin-top: 12px; max-width: 280px; }

.footer-col h4 {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }

/* Hospital page footer variant */
.page-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
  margin-top: 40px;
}

/* ==========================================================================
   11b. DC-PARITY NAV CTA + FOOTER COLUMNS
   ========================================================================== */
/* "Give Now" pink pill CTA, site-wide */
.nav-give-cta {
  background: var(--wg-pink);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(233, 30, 140, 0.32);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-give-cta:hover { background: #C2185B; transform: translateY(-1px); color: #fff !important; }

/* 4-column DC-parity footer grid */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
  line-height: 2;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }

/* Override .footer-bottom for DC-parity multi-block bottom strip */
.page-footer .footer-bottom,
footer.page-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 24px;
  padding-bottom: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  gap: 24px;
  flex-wrap: wrap;
  border-top: none;
}
.footer-bottom strong { color: rgba(255,255,255,0.85); }
.footer-bottom-left { max-width: 520px; line-height: 1.7; }
.footer-bottom-left a { color: rgba(255,255,255,0.55); text-decoration: underline; }
.footer-bottom-left a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom-right { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-bottom-right a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom-right a:hover { color: rgba(255,255,255,0.85); }

/* ==========================================================================
   12. UTILITIES & ANIMATIONS
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 2px var(--wg-purple), 0 0 8px rgba(108,63,160,0.3); }
  50% { box-shadow: 0 0 0 2px var(--wg-purple), 0 0 16px rgba(108,63,160,0.5); }
}


/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-signin { display: none; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-photo { height: 200px; }

  /* Hospital / giving page */
  .hospital-layout { grid-template-columns: 1fr; }
  .donation-card { position: static; }
  .gallery-hero { height: 260px; }
  .similar-grid { grid-template-columns: 1fr; }
  .boost-bar { flex-direction: column; text-align: center; }
  .boost-left { flex-direction: column; }
  .boost-btns { flex-wrap: wrap; justify-content: center; }
  .mobile-donate-bar { display: block; }
  body.has-mobile-donate { padding-bottom: 80px; }

  /* Browse page — mobile drawer (scoped so it doesn't leak into project/profile pages) */
  .browse-layout { grid-template-columns: 1fr; }
  .browse-layout .sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    z-index: 201;
    padding: 20px 16px;
    max-height: 100vh;
    overflow-y: auto;
    transition: left 0.3s ease;
    border-radius: 0;
  }
  .browse-layout .sidebar.open { left: 0; }
  .mobile-filter-btn { display: flex; align-items: center; gap: 6px; }
  .carousel .project-card { min-width: 270px; max-width: 270px; }
  .instant-cards { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-impact-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 40px 24px; }
  .hero-photo { height: 200px; }
}

@media (max-width: 600px) {
  /* Cards & grids */
  .grid-view { grid-template-columns: 1fr; }
  .carousel .project-card { min-width: 85vw; max-width: 85vw; }
  .instant-cards { grid-template-columns: 1fr 1fr; }
  .equity-cards { grid-template-columns: 1fr; }

  /* Hero & buttons */
  .hero h1 { font-size: clamp(28px, 3.5vw, 40px); }
  .btn-primary { width: 100%; justify-content: center; }

  /* Giving page */
  .campaign-headline { font-size: 22px; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .dc-amount-btn .amt { font-size: 17px; }
  .eq-table th, .eq-table td { padding: 10px 14px; font-size: 12px; }
  .gallery-thumbs .thumb { height: 54px; }
  .story-section { padding: 24px 20px; }
  .story-quote { flex-direction: column; gap: 12px; align-items: center; text-align: center; }
  .submitter-impact-row { grid-template-columns: 1fr 1fr; }

  /* Browse page */
  .search-row { flex-direction: column; align-items: stretch; }
  .search-meta { justify-content: space-between; }

  /* Thermometer */
  .thermo-inner { flex-direction: column; gap: 12px; }
  .thermo-cta { width: 100%; justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 20px; }
  .footer-impact-bar { grid-template-columns: repeat(2, 1fr); }
}
