/* =========================
   FUNDRAISING LIST PAGE
========================= */

.fundraisers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: start;
}

.fundraiser-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

/* Controls the fundraiser image even if the class is missing */
.fundraiser-card > img,
.fundraiser-card .fundraiser-image {
  display: block;
  width: 100%;
  height: 220px;
  padding: 18px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  box-sizing: border-box;
  flex-shrink: 0;
}

.fundraiser-body {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.fundraiser-purpose {
  display: inline-block;
  align-self: flex-start;
  background: var(--gold);
  color: #ffffff;
  padding: 7px 15px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 15px;
}

.fundraiser-body h3 {
  font-size: 25px;
  line-height: 1.3;
  margin: 0 0 14px;
}

.fundraiser-story {
  color: #555555;
  line-height: 1.7;
  margin: 0 0 18px;
}

.fundraiser-meta {
  display: grid;
  gap: 7px;
  margin-bottom: 4px;
}

.fundraiser-meta p {
  margin: 0;
}

.fundraiser-progress {
  width: 100%;
  height: 12px;
  background: #eeeeee;
  border-radius: 999px;
  overflow: hidden;
  margin: 20px 0 12px;
}

.fundraiser-progress-bar {
  height: 100%;
  width: 0;
  background: var(--gold);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.fundraiser-money {
  margin: 0 0 8px;
  font-weight: 700;
  color: #111827;
}

.fundraiser-deadline {
  margin: 0;
  color: #333333;
}

.fundraiser-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.fundraiser-actions .btn-primary,
.fundraiser-actions .btn-secondary {
  flex: 1;
  text-align: center;
}

.fundraiser-donate-btn {
  width: 100%;
  margin-top: 18px;
  opacity: 0.75;
  cursor: not-allowed;
}

/* =========================
   FUNDRAISER DETAIL PAGE
========================= */

.fundraiser-detail-section {
  padding: 70px 20px;
}

.fundraiser-detail-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.08);
}

.fundraiser-detail-image {
  display: block;
  width: 100%;
  height: 320px;
  padding: 24px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}
.fundraiser-detail-content {
  padding: 45px;
}

.fundraiser-detail-content h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin: 18px 0 24px;
}

.fundraiser-detail-content h2 {
  margin-top: 35px;
  margin-bottom: 14px;
}

.fundraiser-full-story {
  color: #555555;
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-line;
}

.fundraiser-detail-content .fundraiser-progress {
  margin-top: 25px;
}

.fundraiser-detail-content .fundraiser-money {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .fundraisers-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .fundraiser-card > img,
  .fundraiser-card .fundraiser-image {
    height: 180px;
    padding: 14px;
}

  .fundraiser-body {
    padding: 22px;
  }

  .fundraiser-body h3 {
    font-size: 22px;
  }

  .fundraiser-detail-section {
    padding: 40px 16px;
  }

 .fundraiser-detail-image {
  height: 220px;
  padding: 18px;
}

  .fundraiser-detail-content {
    padding: 28px;
  }

  .fundraiser-actions {
    flex-direction: column;
  }
}
.fundraiser-view-btn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
  text-decoration: none;
}