.community-hero {
  position: relative;
}

.community-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.community-hero-text p {
  max-width: 38rem;
}

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

.community-hero-meta {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.community-hero-figure {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), rgba(15, 23, 42, 0.98));
}

.community-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-hero-figure figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.community-section-header {
  max-width: 44rem;
  margin-bottom: var(--space-8);
}

.community-section-header p {
  margin-bottom: 0;
}

.community-events-grid,
.community-zones-grid,
.community-testimonials {
  align-items: stretch;
}

.community-link-cta {
  display: inline-flex;
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
}

.community-gallery-layout,
.community-leaders-layout,
.community-join-layout,
.community-forum-layout,
.community-rules-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: flex-start;
}

.community-gallery-figure,
.community-leaders-figure {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

.community-gallery-figure figcaption,
.community-leaders-figure figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.community-bullets {
  margin-top: var(--space-3);
  display: grid;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
}

.community-bullets li::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  margin-right: var(--space-2);
  background: var(--color-primary);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.7);
}

.community-bullets li {
  display: flex;
  align-items: flex-start;
}

.community-bullets li span {
  flex: 1;
}

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

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

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

.community-join-layout {
  align-items: stretch;
}

.community-steps {
  margin-top: var(--space-3);
  display: grid;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  counter-reset: step-counter;
}

.community-steps li {
  position: relative;
  padding-left: 2.4rem;
}

.community-steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at top left, #fb923c, #ea580c);
  color: #020617;
  font-size: var(--font-size-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-primary);
}

.community-join-panel .card {
  height: 100%;
}

.community-join-note,
.community-forum-note {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

.community-testimonial p {
  font-size: var(--font-size-sm);
}

.community-forum-panel .card,
.community-rules-aside .card {
  height: 100%;
}

.community-rules-grid {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.community-rule-block h3 {
  margin-bottom: var(--space-2);
}

.community-final-cta {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.community-final-cta-inner {
  text-align: center;
  max-width: 44rem;
}

.community-final-cta-inner p {
  margin-left: auto;
  margin-right: auto;
}

.community-final-cta-actions {
  margin-top: var(--space-4);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 1024px) {
  .community-hero-grid,
  .community-gallery-layout,
  .community-leaders-layout,
  .community-join-layout,
  .community-forum-layout,
  .community-rules-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .community-gallery-media,
  .community-leaders-media {
    order: -1;
  }
}

@media (max-width: 768px) {
  .community-hero-actions,
  .community-final-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .community-rules-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
