/* =========================
   COMMUNITY HERO
========================= */
.community-hero {
  max-width: 1200px;
  margin: 40px auto;
  padding: 32px;
  background: #f3ede4;
  border-radius: 16px;
}

.community-hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.community-hero p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
}

/* =========================
   COMMUNITY LIST
========================= */
.community-list {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* =========================
   COMMUNITY CARD
========================= */
.community-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

/* 🔥 FIX UTAMA GAMBAR */
.community-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.community-card h3 {
  font-size: 20px;
  margin: 20px 20px 10px;
}

.community-card p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 20px 20px;
  flex-grow: 1;
}

.community-card .btn-blue {
  margin: 0 20px 24px;
  padding: 12px;
  text-align: center;
  background: #002c5f;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.community-card .btn-blue:hover {
  background: #001f42;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {

  .community-hero {
    margin: 20px 16px;
    padding: 20px;
    border-radius: 12px;
  }

  .community-hero h1 {
    font-size: 22px;
  }

  .community-hero p {
    font-size: 14px;
  }

  .community-list {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }

  .community-card img {
    height: 200px; /* 🔥 bikin mobile kelihatan rapi */
  }

  .community-card h3 {
    font-size: 18px;
  }

  .community-card p {
    font-size: 13px;
  }
}
