/* ================= HERO ================= */

.community-hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background-size: cover;
  background-position: center top;
}

.community-hero-bg {
  object-fit: fill !important;
  z-index: 0;
}

.community-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(#0000000f, #02140da3 90%);
  z-index: 1;
}

.community-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 150px;
  max-width: 800px;
}

.hero-badge {
  background: rgba(0,255,133,0.2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
}

.community-hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin: 20px 0;
}

.community-hero p {
  color: var(--color-text-muted);
  max-width: 550px;
}

/* ================= FILTER BAR ================= */

.community-filter-bar {
  padding: 30px 5%;
  border-bottom: 1px solid rgba(0,255,133,0.15);
}

.filter-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-buttons button {
  background: transparent;
  border: 1px solid rgba(0,255,133,0.2);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  margin-right: 8px;
  cursor: pointer;
}

.filter-buttons .active {
  background: var(--color-primary);
  color: black;
}

.search-input {
  background: transparent;
  border: 1px solid rgba(0,255,133,0.2);
  padding: 8px 14px;
  border-radius: 999px;
  color: white;
}

/* ================= GRID ================= */

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  position: relative;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
}

.blog-img {
  object-fit: cover;
}

.blog-content {
  position: absolute;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.blog-tag {
  font-size: 11px;
  background: rgba(0,255,133,0.3);
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--color-primary);
}

.blog-content h3 {
  margin: 8px 0;
}

.newsletter-card {
  background: var(--color-primary);
  color: black;
  padding: 30px;
  border-radius: 16px;
}

.newsletter-card input {
  width: 100%;
  margin: 15px 0;
  padding: 10px;
  border-radius: 8px;
  border: none;
}

.quote-card {
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 16px;
  font-style: italic;
}

.load-more-wrap {
  text-align: center;
  margin-top: 50px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .community-grid {
    grid-template-columns: 1fr 1fr;
  }

  .filter-inner {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .community-grid {
    grid-template-columns: 1fr;
  }

  .community-hero h1 {
    font-size: 2.2rem;
  }
}
.category-btn .active{
background: #000;
color: #fff;
}
