/* ── Community page ─────────────────────────────────────────── */



.community-page h1 {
  margin-bottom: 3rem;
}

.community-page h2 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--color-muted);
}

.community-lead {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.community-block {
  background-color: var(--dark);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  max-width: 680px;
  text-align: center;
  margin-bottom: 3.5rem;
}

.community-block p {
  margin-bottom: 1rem;
  text-align: left;
}

.community-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  margin-top: 0.5rem;
}

/* CTAs row inside community block */
.community-ctas {
  display: inline-flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.community-ctas .leave-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 12px 32px;
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  text-decoration: none;
}

.community-ctas .leave-review-btn:hover,
.community-ctas .leave-review-btn:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  outline: none;
  text-decoration: none;
}

.community-ctas .leave-review-btn i {
  font-size: 1rem;
  line-height: 1;
}
/* Make the WhatsApp button use the same styling as the community CTAs
   even when it's placed outside the `.community-ctas` wrapper (e.g.
   in the event sidebar). */
.leave-review-btn.community-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 12px 32px;
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  text-decoration: none;
}

.leave-review-btn.community-whatsapp-btn:hover,
.leave-review-btn.community-whatsapp-btn:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  outline: none;
  text-decoration: none;
}

.leave-review-btn.community-whatsapp-btn i {
  font-size: 1rem;
  line-height: 1;
}

/* Center the WhatsApp button when it's used inside the event sidebar
   so it appears centered under the sidebar card (`.ed-card-body`). */
.ed-card-body .leave-review-btn.community-whatsapp-btn {
  display: flex;
  width: fit-content;
  margin: 12px auto 0;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

/* Ensure the inline SVG icon is sized and vertically centered */
.leave-review-btn.community-whatsapp-btn svg {
  display: block;
  width: 20px;
  height: 20px;
}
