@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root{
  --purple:#7F2EF8;
  --black:#0b0b0f;
  --white:#ffffff;
  --ink:#0f0f15;
  --muted:rgba(15,15,21,.68);
  --border:rgba(15,15,21,.12);
  --shadow:0 18px 55px rgba(0,0,0,.08);
  --bg:#fafafe;
}

.blWrap{
  font-family:"Poppins",sans-serif;
  background: var(--bg);
  padding: clamp(42px, 6vw, 90px) 0;
}

.blHead, .blBar, .blGrid, .blPager{
  width:min(1180px, calc(100% - 32px));
  margin-left:auto;
  margin-right:auto;
}

.blHead{ margin-bottom: 22px; }

.blKicker{
  margin:0 0 10px;
  font-size:12px;
  letter-spacing:.30em;
  text-transform:uppercase;
  color:rgba(15,15,21,.60);
}

.blTitle{
  margin:0 0 10px;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height:1.06;
  font-weight:700;
  color:var(--black);
}

.blSub{
  margin:0;
  color:var(--muted);
  line-height:1.75;
  max-width:70ch;
}

/* Top bar (FLEX) */
.blBar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 20px;
}

.blFilters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.blFilter{
  border:1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  padding:10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor:pointer;
  transition:.2s ease;
}

.blFilter:hover{
  border-color: rgba(127,46,248,.45);
  transform: translateY(-1px);
}

.blFilter.is-active{
  background: var(--purple);
  color: var(--white);
  border-color: rgba(127,46,248,.55);
}

.blSearch{
  flex: 1 1 260px;
  display:flex;
  justify-content:flex-end;
}

.blSearch input{
  width: min(360px, 100%);
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  outline: none;
  font-size: 13px;
}

.blSearch input:focus{
  border-color: rgba(127,46,248,.55);
  box-shadow: 0 0 0 4px rgba(127,46,248,.16);
}

/* Posts (FLEX) */
.blGrid{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:stretch;
}

.blGrid.is-loading{
  opacity:.55;
  pointer-events:none;
}

.blCard{
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 380px;
  background: var(--white);
  border: 1px solid rgba(15,15,21,.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition: transform .2s ease, border-color .2s ease;
}

.blCard:hover{
  transform: translateY(-3px);
  border-color: rgba(127,46,248,.32);
}

.blCard__img{
  display:block;
  width:100%;
  aspect-ratio: 16/10;
  background:#f1f1f6;
  overflow:hidden;
}

.blCard__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1.02);
  transition: transform .45s ease;
}

.blCard:hover .blCard__img img{
  transform: scale(1.08);
}

.blCard__ph{
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  color: rgba(15,15,21,.45);
  font-weight:600;
  font-size: 13px;
}

.blCard__body{
  padding: 16px 16px 18px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  flex:1;
}

.blCard__meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-size: 12px;
  color: rgba(15,15,21,.55);
}

.blTag a{
  color: var(--purple);
  text-decoration:none;
  font-weight:700;
}

.blDate{ white-space:nowrap; }

.blCard__title{
  margin:0;
  font-size: 16px;
  font-weight: 700;
  line-height:1.3;
}

.blCard__title a{
  color: var(--black);
  text-decoration:none;
}

.blCard__ex{
  margin:0;
  color: var(--muted);
  font-size: 13.5px;
  line-height:1.7;
}

.blCard__read{
  margin-top:auto;
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-weight: 700;
  color: var(--purple);
  text-decoration:none;
  font-size: 13px;
}

/* Pagination (FLEX) */
.blPager{
  margin-top: 22px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.blPbtn{
  padding: 10px 14px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: var(--white);
  cursor:pointer;
  font-weight: 650;
}

.blPbtn:disabled{
  opacity:.5;
  cursor:not-allowed;
}

.blPageInfo{
  color: rgba(15,15,21,.65);
  font-weight: 600;
}

.blEmpty{
  width:100%;
  padding: 18px;
  border:1px dashed rgba(15,15,21,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.7);
  color: rgba(15,15,21,.60);
}

/* Mobile */
@media (max-width:560px){
  .blHead, .blBar, .blGrid, .blPager{
    width: calc(100% - 26px);
  }
  .blSearch{
    width: 100%;
    justify-content:stretch;
  }
  .blSearch input{ width:100%; }
  .blCard{
    max-width: 100%;
    flex: 1 1 100%;
  }
}
