.community-hero-grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.community-hero-text {
  max-width: 640px;
}

.community-hero-media {
  position: relative;
}

.community-hero-image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.community-hero-overlay {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  max-width: 280px;
}

.community-grid-main .card {
  height: 100%;
}

.community-events-layout,
.community-chat-layout {
  display: grid;
  gap: var(--space-6);
  align-items: flex-start;
}

.community-events-image,
.community-chat-image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.community-cta-row {
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  .community-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  .community-events-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  }
  .community-chat-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.05fr);
  }
}

@media (max-width: 767px) {
  .community-hero-overlay {
    position: static;
    margin-top: var(--space-4);
    max-width: none;
  }
}
