.community-page{
  background:#07152b;
  min-height:100vh;
  padding:150px 6% 90px;
}

.community-page-hero{
  max-width:1000px;
  margin:0 auto 55px;
  text-align:center;
}

.community-page-hero p{
  color:#f4b400;
  text-transform:uppercase;
  font-weight:900;
  letter-spacing:1px;
  margin-bottom:12px;
}

.community-page-hero h1{
  color:white;
  font-size:clamp(46px,7vw,90px);
  line-height:1;
  margin-bottom:20px;
}

.community-page-hero span{
  display:block;
  color:rgba(255,255,255,.75);
  font-size:20px;
  line-height:1.7;
  max-width:760px;
  margin:0 auto 30px;
}

.community-page-hero a{
  display:inline-block;
  background:#25D366;
  color:white;
  padding:17px 28px;
  border-radius:50px;
  font-weight:900;
}

.community-page-container{
  max-width:1250px;
  margin:0 auto;
}

/* BUSCADOR AVANZADO */
.community-search{
  width:100%;
  max-width:1120px;
  margin:0 auto 34px;
  background:white;
  border-radius:26px;
  padding:14px;
  display:grid;
  grid-template-columns:minmax(320px,1fr) 210px 180px 120px 115px;
  gap:10px;
  align-items:center;
  box-shadow:0 18px 45px rgba(0,0,0,.22);
}

.community-search input,
.community-search select{
  width:100%;
  height:58px;
  border:1px solid #e7e7e7;
  outline:none;
  background:#f6f7fa;
  color:#061426;
  border-radius:16px;
  padding:0 16px;
  font-family:inherit;
  font-size:15px;
  font-weight:700;
}

.community-search input{
  background:white;
  font-size:17px;
}

.community-search button{
  height:58px;
  border:none;
  background:#f4b400;
  color:#061426;
  border-radius:16px;
  font-weight:900;
  cursor:pointer;
}

.community-search .clear-filter{
  height:58px;
  background:#061426;
  color:white;
  border-radius:16px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

.community-filters{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:32px;
}

.community-filters a{
  background:rgba(255,255,255,.06);
  color:white;
  padding:12px 18px;
  border-radius:999px;
  font-weight:800;
  border:1px solid rgba(255,255,255,.08);
}

.community-filters a.active,
.community-filters a:hover{
  background:#f4b400;
  color:#061426;
}

.community-results-info{
  text-align:center;
  color:rgba(255,255,255,.75);
  margin-bottom:30px;
}

.community-posts-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.community-post-card{
  position:relative;
  background:white;
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 18px 45px rgba(0,0,0,.22);
  transition:.25s;
}

.community-post-card:hover{
  transform:translateY(-6px);
}

.community-post-card.is-featured{
  border:2px solid rgba(244,180,0,.75);
}

.community-post-badge{
  position:absolute;
  top:16px;
  left:16px;
  z-index:3;
  background:#f4b400;
  color:#061426;
  padding:8px 13px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}

.community-image-link{
  display:block;
  overflow:hidden;
}

.community-post-image{
  width:100%;
  height:230px;
  background:#f1f1f1;
  display:block;
  transition:.3s;
}

.community-image-link:hover .community-post-image{
  transform:scale(1.03);
}

.image-fit-cover{
  object-fit:cover;
}

.image-fit-contain{
  object-fit:contain;
  padding:12px;
}

.community-post-body{
  padding:24px;
}

.community-post-category{
  color:#f4b400;
  text-transform:uppercase;
  font-weight:900;
  font-size:13px;
  margin-bottom:8px;
}

.community-post-body h2{
  font-size:25px;
  line-height:1.15;
  margin-bottom:12px;
}

.community-post-body h2 a{
  color:#061426;
  text-decoration:none;
}

.community-post-body h2 a:hover{
  color:#f4b400;
}

.community-post-body p{
  color:#444;
  line-height:1.6;
  margin-bottom:18px;
}

.community-post-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:18px;
}

.community-post-tags span{
  background:#f4f5f7;
  color:#061426;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}

.community-post-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.community-post-actions a{
  flex:1;
  text-align:center;
  background:#f4b400;
  color:#061426;
  padding:13px 16px;
  border-radius:14px;
  font-weight:900;
}

.community-post-actions a.share-mini{
  background:#25D366;
  color:white;
}

.community-empty{
  background:white;
  color:#061426;
  border-radius:28px;
  padding:55px;
  text-align:center;
}

.community-empty a{
  display:inline-block;
  margin-top:18px;
  background:#f4b400;
  color:#061426;
  padding:14px 22px;
  border-radius:50px;
  font-weight:900;
}

/* RESPONSIVE */
@media(max-width:1100px){
  .community-search{
    grid-template-columns:1fr 1fr;
  }

  .community-search input{
    grid-column:1 / -1;
  }

  .community-posts-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:650px){
  .community-page{
    padding:130px 5% 70px;
  }

  .community-page-hero h1{
    font-size:48px;
  }

  .community-page-hero span{
    font-size:17px;
  }

  .community-search{
    grid-template-columns:1fr;
    padding:12px;
    border-radius:22px;
  }

  .community-search input,
  .community-search select,
  .community-search button,
  .community-search .clear-filter{
    width:100%;
  }

  .community-posts-grid{
    grid-template-columns:1fr;
  }

  .community-post-actions{
    flex-direction:column;
  }
}