/* fundraisers-v2.css — Human Appeal Theme */

.ha-start-strip {
  max-width: 1400px;
  margin: 32px auto 0;
  padding: 0 32px;
}
.ha-start-strip-inner {
  background: linear-gradient(135deg, var(--green-faint), white);
  border: 1px solid var(--green-light);
  border-radius: 14px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ha-start-strip-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  flex-shrink: 0;
}
.ha-start-strip-icon svg { width: 22px; height: 22px; }
.ha-start-strip-text { flex: 1; min-width: 220px; }
.ha-start-strip-text h3 { font-size: 18px; margin-bottom: 2px; font-family: 'Oakes Grotesk', 'Inter', sans-serif; font-weight: 700; }
.ha-start-strip-text p { font-size: 14px; color: var(--text-muted); }
.ha-start-strip-btn {
  background: var(--green);
  color: white;
  border: none;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ha-start-strip-btn:hover {
  background: var(--green-dark);
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(1, 170, 1, 0.4);
}
.ha-start-strip-btn svg { width: 14px; height: 14px; }

.ha-fundraiser-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 30;
}
.ha-search-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: white;
}
.ha-search-wrap input {
  border: none;
  outline: none;
  padding: 10px 16px;
  width: 220px;
  font-family: inherit;
  font-size: 15px;
  background: transparent;
  color: var(--text);
}
.ha-search-btn {
  background: var(--green);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}
.ha-search-btn:hover { background: var(--green-dark); }

.ha-fundraiser-results-count { text-align: center; color: var(--text-muted); font-size: 16px; margin: 12px 0 24px; }

.ha-fundraiser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .ha-fundraiser-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .ha-fundraiser-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ha-fundraiser-grid { grid-template-columns: 1fr; } }

.ha-fundraiser-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}
.ha-fundraiser-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }

.ha-fundraiser-image-wrap { margin: 12px; position: relative; }
.ha-fundraiser-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--border);
  object-fit: cover;
}
.ha-fundraiser-image.empty {
  background: linear-gradient(135deg, var(--bg), var(--border-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
}
.ha-fundraiser-image.empty svg { width: 40px; height: 40px; opacity: 0.6; }

.ha-fundraiser-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}
.ha-fundraiser-title {
  font-family: 'Oakes Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text);
}

.ha-fundraiser-progress { margin-top: auto; }
.ha-fundraiser-progress-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
}
.ha-fundraiser-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 999px;
  transition: width 0.6s ease;
}
.ha-fundraiser-progress-fill.over { background: var(--green-dark); }
.ha-fundraiser-progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  margin-top: 8px;
  color: var(--text-muted);
  gap: 8px;
}
.ha-f-money .ha-f-raised {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}
.ha-f-money .ha-f-of-goal {
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}
.ha-fundraiser-progress-stats .ha-f-pct {
  font-weight: 600;
  color: var(--green-dark);
  font-size: 13px;
  flex-shrink: 0;
}

.ha-fundraiser-cta {
  width: 100%;
  background: var(--pink);
  color: white;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}
.ha-fundraiser-cta:hover {
  background: var(--pink-dark);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(216, 20, 115, 0.5);
}

/* Pagination */
.ha-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 48px 0 16px;
  font-size: 15px;
  flex-wrap: wrap;
}
.ha-pagination a,
.ha-pagination span { color: var(--text-muted); text-decoration: none; cursor: pointer; padding: 4px; }
.ha-pagination .ha-pg-num { color: var(--pink); font-weight: 500; }
.ha-pagination .ha-pg-current { color: var(--text); font-weight: 700; }
.ha-pagination .ha-pg-disabled { opacity: 0.4; cursor: not-allowed; }
.ha-results-footer { text-align: center; color: var(--text-muted); margin: 48px 0; font-size: 15px; }
.ha-pagination + .ha-results-footer { margin-top: 16px; }
.ha-pagination .ha-pg-num:visited { color: var(--pink); }

/* Single Fundraiser */
.ha-single-fundraiser-hero {
  height: 250px;
  min-height: 250px;
  position: relative;
  overflow: hidden;
}
.ha-single-fundraiser-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: top center;
}
.ha-single-fundraiser-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 100%);
}
.ha-single-fundraiser-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .ha-single-fundraiser-body { grid-template-columns: 1fr; } }
.ha-fundraiser-story h1 {
  font-family: 'Fields Display', 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  color: var(--green);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}
.ha-fundraiser-story p  { font-size: 16px; line-height: 1.8; color: var(--text); margin-bottom: 16px; }
.ha-fundraiser-sidebar {
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
}
.ha-fundraiser-sidebar-goal { font-family: 'Fields Display', 'DM Serif Display', Georgia, serif; font-size: 36px; font-weight: 500; color: var(--green); }
.ha-fundraiser-sidebar-label { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.ha-fundraiser-sidebar-meta { font-size: 14px; color: var(--text-muted); margin-top: 12px; }

/* ── Single Fundraiser — Floating sidebar card ───────────── */
.ha-fundraiser-sidebar-wrap {
  position: sticky;
  top: 90px;
  align-self: start;
  margin-top: -130px;
  z-index: 10;
}
@media (max-width: 900px) {
  .ha-fundraiser-sidebar-wrap {
    position: static;
    margin-top: 0;
    z-index: auto;
    order: -1;
  }
}

/* ── Single Fundraiser — Story divider & share row ───────── */
/* Story content (the_content() output) */
.ha-story-content p  { font-size: 16px; line-height: 1.8; color: var(--text); margin-bottom: 16px; }
.ha-story-content h2 { font-family: 'Fields Display', 'DM Serif Display', Georgia, serif; font-size: clamp(22px, 2.5vw, 32px); font-weight: 500; margin: 28px 0 12px; }
.ha-story-content h3 { font-family: 'Oakes Grotesk', 'Inter', sans-serif; font-size: clamp(18px, 2vw, 24px); font-weight: 700; margin: 24px 0 10px; }
.ha-story-content ul,
.ha-story-content ol  { margin: 0 0 16px 24px; font-size: 16px; line-height: 1.8; color: var(--text); }
.ha-story-content strong { font-weight: 700; }
.ha-story-content a   { color: var(--green); text-decoration: underline; }

.ha-content-divider {
  border: 0;
  border-top: 1px solid var(--border-light);
  margin: 32px 0 28px;
}
.ha-fundraiser-share-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.ha-share-label {
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  font-family: 'Oakes Grotesk', 'Inter', sans-serif;
}
.ha-btn-outline {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-5);
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
  text-decoration: none;
  margin-left: auto;
}
.ha-btn-outline:hover {
  background: var(--green);
  color: var(--white);
  transform: scale(1.05);
}
.ha-share-icons {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.ha-share-icons a,
.ha-share-icons .ha-share-copy {
  width: var(--space-6);
  height: var(--space-6);
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  flex-shrink: 0;
}
.ha-share-icons a:hover,
.ha-share-icons .ha-share-copy:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}
.ha-share-icons i[data-lucide],
.ha-share-icons svg {
  width: var(--space-4);
  height: var(--space-4);
  pointer-events: none;
}

@media (max-width: 575px) {
  .ha-fundraiser-share-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .ha-btn-outline {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }
}

/* ── Single Fundraiser — Other Initiatives section ───────── */
.ha-single-initiatives {
  background: var(--bg);
  padding: 64px 0;
  margin-top: 48px;
}
.ha-single-initiatives-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.ha-single-initiatives-title {
  font-family: 'Fields Display', 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 32px;
}
.ha-single-initiatives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-content: center;
}
/* Override ha-grid's 4-col default — always 3 cards in this context */
.ha-single-initiatives-grid.ha-grid {
  grid-template-columns: repeat(3, minmax(0, 380px));
}
@media (max-width: 900px) {
  .ha-single-initiatives-grid,
  .ha-single-initiatives-grid.ha-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .ha-single-initiatives-grid,
  .ha-single-initiatives-grid.ha-grid { grid-template-columns: 1fr; }
}
.ha-fundraiser-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Single campaign detail: match v3 card image style — flush, no gap, square corners */
.single-campaign .ha-fundraiser-image-wrap { margin: 0; }
.single-campaign .ha-fundraiser-image { border-radius: 0; }
