/* Testimonials / Social Proof */
.social-proof .sp-header {
  max-width: 860px;
  margin: 0 auto 60px;
  text-align: center;
}

.sp-kicker {
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 12px;
}

.sp-title {
  margin: 0 0 18px;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

@media (min-width: 768px) {
  .sp-title {
    font-size: 48px;
  }
  .sp-sub {
    font-size: 16px;
  }
}

.sp-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

.sp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 60px;
}

@media (min-width: 1024px) {
  .sp-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
  }
}

.sp-card {
  position: relative;
  background: rgba(232, 238, 247, 0.06);
  border: 1px solid rgba(232, 238, 247, 0.12);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
  min-height: 100%;
}

.sp-quote-badge {
  position: absolute;
  top: -16px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(143, 173, 49, 0.22);
}

.sp-quote-badge svg {
  width: 20px;
  height: 20px;
}

.sp-stars {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.sp-star {
  width: 16px;
  height: 16px;
  color: var(--primary);
  display: inline-flex;
}

.sp-star svg {
  width: 100%;
  height: 100%;
}

.sp-quote {
  margin: 0 0 20px;
  line-height: 1.85;
  font-size: 14px;
  color: rgba(232, 238, 247, 0.9);
}

.sp-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 90px;
}

.sp-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(232, 238, 247, 0.12);
}

.sp-name {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.sp-loc {
  margin: 4px 0 0;
  font-size: 13px;
}

.sp-amount {
  position: absolute;
  right: 18px;
  bottom: 18px;
}

.text-xs {
  font-size: 12px;
}

/* Donors wall (static) */
.sp-donors {
  background: rgba(232, 238, 247, 0.06);
  border: 1px solid rgba(232, 238, 247, 0.12);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .sp-donors {
    padding: 32px;
  }
}

.sp-donors-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .sp-donors-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }
}

.sp-donors-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.sp-donors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .sp-donors-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .sp-donors-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.sp-donor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(232, 238, 247, 0.05);
  border: 1px solid rgba(232, 238, 247, 0.1);
}

.sp-donor-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sp-initial {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(143, 173, 49, 0.12);
  border: 1px solid rgba(143, 173, 49, 0.22);
  color: var(--primary);
  font-weight: 900;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.sp-donor-name {
  margin: 0;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.sp-donor-time {
  margin: 6px 0 0;
  font-size: 12px;
}

.sp-donor-amt {
  margin: 0;
  font-weight: 900;
  color: var(--primary);
  white-space: nowrap;
}

/* PERFECT ALIGNMENT PATCH: Testimonials */

/* 1) Make the grid items (the .reveal wrappers) stretch */
.sp-grid > .reveal {
  height: 100%;
  display: flex;
}

/* 2) Make each card fill the available height and layout as a column */
.sp-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 72px; /* reserves space for the donated pill */
}

/* 3) Let the quote area grow, so the footer aligns */
.sp-quote {
  flex: 1 1 auto;
}

/* 4) Pin author block to the bottom, and avoid overlapping the amount pill */
.sp-author {
  margin-top: auto;
  padding-right: 120px;
}

/* 5) Lock the donated pill position */
.sp-amount {
  right: 18px;
  bottom: 18px;
}

/* 6) Center the quote badge perfectly */
.sp-quote-badge {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  top: -18px;
}
