.fb-blog-grid-wrapper{
  max-width:1180px;
  margin:0 auto 60px;
  padding:0 10px;
}

/* Filters */
.fb-blog-grid-wrapper .fb-blog-grid-filters{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin:15px 0 30px;
}
.fb-blog-grid-wrapper .fb-filter-btn{
    border-radius: 999px;
    margin-right: 5px !important;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    padding: 1px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background .18s, color .18s, box-shadow .18s, border-color .18s, transform .12s;
}
.fb-blog-grid-wrapper .fb-filter-btn.is-active{
    background: #3bb34a;
    color: #fff;
    border-color: #3bb34a;
    transform: translateY(-1px);
}

/* Featured */
.fb-featured-wrapper{margin-bottom:32px;}
.fb-featured-inner{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr);
  gap:32px;
  background:#fff;
  border-radius:12px;
  box-shadow:0 26px 70px rgba(15,23,42,.18);
  overflow:hidden;
}
.fb-featured-media{position:relative;}
.fb-featured-thumb{display:block;height:100%;}
.fb-featured-thumb-img,
.fb-featured-thumb img{
  width:100%;height:100%;object-fit:cover;display:block;
}
.fb-featured-body{
  padding:34px 40px 34px 10px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

/* Badge */
.fb-badge{
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 4px 13px 4px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.fb-badge-featured{
    padding: 3px 11px 3px;
    background: #ff8a2f;
    color: #fff;
    margin-bottom: 12px;
}
.fb-badge-category{
  background:#16a34a;
  color:#fff;
}

/* Featured text */
.fb-featured-title{
  font-size:26px;
  margin:0 0 12px;
  color:#111827;
}
.fb-featured-title a{color:inherit;text-decoration:none;}
.fb-featured-title a:hover{color: #22c55e;}
.fb-featured-excerpt{
  font-size:15px;
  line-height:1.6;
  color:#4b5563;
  margin-bottom:16px;
}

/* Meta */
.fb-meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  align-items:center;
  font-size:13px;
  color:#6b7280;
  margin-bottom:20px;
}
.fb-meta-row--small{
  font-size:12px;
  margin-bottom:16px;
}
.fb-meta-item{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.fb-meta-icon{
  font-size:13px;
  color:#9ca3af;
}

/* Buttons */
.fb-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background .18s, color .18s, box-shadow .18s, transform .12s;
    text-decoration: none;
}
.fb-btn-primary{
  background:#22c55e;
  color:#fff;
}
.fb-btn-primary:hover{
  background:#16a34a;
  transform:translateY(-1px);
}
.fb-btn-featured{
  align-self:flex-start;
  padding-inline:38px;
}
.fb-btn-outline{
  background:#fff;
  border:1px solid #16a34a;
  color:#16a34a;
}
.fb-btn-outline:hover{
  background:#16a34a;
  color:#fff;
}
.fb-btn-card{
  margin-top:auto;
  padding-inline:34px;
}
.fb-btn-ghost{
    background: #16a34a;
    color: #ffffff;
    padding: 3px 28px;
}
.fb-btn-ghost:hover{
  background:#ff8a2f;
}

/* Grid dưới */
.fb-blog-grid-list-wrap{margin-top:10px;}
.fb-blog-grid-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
	transition: opacity .2s ease; 
}
.fb-post-card{
  background:#fff;
  border-radius:12px;
  box-shadow:0 18px 50px rgba(15,23,42,.14);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.fb-post-card-thumb{display:block;}
.fb-post-card-thumb img{
  width:100%;
  height:210px;
  object-fit:cover;
  display:block;
}
.fb-post-card-body{
  padding:18px 20px 18px;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
}
.fb-post-card-topline{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
}
.fb-post-time{
  font-size:12px;
  color:#6b7280;
}
.fb-post-title{
  font-size:16px;
  margin:0 0 10px;
  color:#111827;
}
.fb-post-title a{color:inherit;text-decoration:none;}
.fb-post-title a:hover{text-decoration:underline;}
.fb-post-excerpt{
  font-size:13px;
  line-height:1.6;
  color:#4b5563;
  margin-bottom:14px;
}
.fb-blog-grid-loadmore-wrap{
  text-align:center;
  margin-top:24px;
}

/* Responsive */
@media (max-width:1024px){
  .fb-featured-inner{grid-template-columns:1fr;}
  .fb-featured-body{padding:24px 22px 26px;}
  .fb-blog-grid-list{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:768px){
  .fb-blog-grid-wrapper{padding:0 14px;}
  .fb-featured-body{padding:22px 18px 24px;}
  .fb-featured-title{font-size:22px;}
  .fb-blog-grid-list{grid-template-columns:1fr;}
}


/* ===========================
   LOADING OVERLAY KHI FILTER
   =========================== */

/* Đảm bảo list có position để đặt spinner */
.fb-blog-grid-list {
  position: relative;
}

/* Khi wrapper đang loading */
.fb-blog-grid-wrapper.fb-loading .fb-blog-grid-list {
  opacity: 0.45;
  pointer-events: none;
}

/* Spinner nằm ngay dưới hàng filter */
.fb-blog-grid-wrapper.fb-loading .fb-blog-grid-filters {
  position: relative;
}

.fb-blog-grid-wrapper.fb-loading .fb-blog-grid-filters::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -26px; /* nằm ngay dưới dãy nút */
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.6); /* xám */
  border-top-color: #22c55e;                  /* xanh FitBlend */
  animation: fb-spin 0.8s linear infinite;
  z-index: 10;
}


@keyframes fb-spin {
  to { transform: rotate(360deg); }
}

/* Trạng thái nút "Xem thêm" khi đang tải */
.fb-blog-grid-loadmore.is-loading {
  opacity: 0.7;
  cursor: wait;
}
