.community-hero {
  position: relative;
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
}

.community-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.community-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) brightness(0.7);
}

.community-hero__content {
  position: relative;
}

.community-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(5, 2, 10, 0.75);
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.community-hero__lead {
  font-size: var(--font-size-lg);
  max-width: 52ch;
}

.community-hero__actions {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.section-header {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.community-cards {
  margin-top: var(--space-4);
}

.community-section-cta {
  margin-top: var(--space-6);
  text-align: center;
}

.community-stories__grid {
  align-items: center;
  gap: var(--space-8);
}

.community-stories__image-wrapper {
  max-width: 480px;
  margin-inline: auto;
}

.community-testimonials {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-4);
}

.community-testimonial blockquote {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.community-testimonial figcaption {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.community-gallery {
  background: radial-gradient(circle at top, rgba(107, 91, 255, 0.18), transparent 55%), var(--color-background);
}

.community-gallery__grid {
  display: grid;
  gap: var(--space-4);
  max-width: 820px;
  margin-inline: auto;
}

.community-gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.community-gallery__item img {
  width: 100%;
  height: auto;
}

.community-gallery__item figcaption {
  padding: var(--space-4);
  font-size: var(--font-size-sm);
}

.community-meetups__cta {
  margin-top: var(--space-3);
}

.community-volunteer__grid {
  align-items: flex-start;
  gap: var(--space-6);
}

.community-volunteer__columns {
  margin-top: var(--space-4);
}

.community-volunteer__aside {
  align-self: stretch;
}

.community-social__grid {
  align-items: flex-start;
  gap: var(--space-6);
}

.community-social__info {
  margin-top: var(--space-4);
}

.community-code {
  background: radial-gradient(circle at bottom, rgba(255, 63, 142, 0.15), transparent 55%), var(--color-surface);
}

.community-code__grid {
  gap: var(--space-6);
}

.community-feedback__container {
  max-width: 960px;
}

.community-feedback__grid {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-4);
}

.community-feedback__card {
  height: 100%;
}

@media (max-width: 768px) {
  .community-hero {
    padding-top: var(--space-12);
  }

  .community-hero__content {
    text-align: center;
  }

  .community-hero__actions {
    justify-content: center;
  }

  .community-stories__grid,
  .community-volunteer__grid,
  .community-social__grid {
    grid-template-columns: 1fr;
  }

  .community-volunteer__aside {
    order: -1;
  }
}
