/* =========================================================
   AB Blog Layout – LIGHT CSS (Same UX, Less Weight)
   ========================================================= */

/* Main wrapper */
.ab-blog-main{
  width:100%;
}

/* Sidebar blocks */
.ab-search-form,
.ab-filter-form,
.ab-recent-posts{
  background:#ffffff;
  padding:22px;
  border-radius:12px;
  border:1px solid #eeeeee;
  margin-bottom:22px;
}

/* Search */
.ab-search-form input[type="search"]{
  width:100%;
  padding:13px 15px;
  font-size:15px;
  border:1px solid #dddddd;
  border-radius:8px;
  background:#fafafa;
}
.ab-search-btn{
  width:100%;
  margin-top:10px;
  padding:11px 0;
  border:none;
  border-radius:8px;
  background:#5777ff;
  color:#ffffff;
  font-size:15px;
  font-weight:700;
}

/* Filter */
.ab-filter-form label{
  display:block;
  font-size:15px;
  font-weight:600;
  margin-bottom:6px;
}
.ab-filter-form select{
  width:100%;
  padding:11px 13px;
  border-radius:8px;
  border:1px solid #dddddd;
  background:#fafafa;
  font-size:14px;
}

/* Recent posts */
.ab-sidebar-heading{
  font-size:17px;
  font-weight:700;
  margin-bottom:14px;
  border-bottom:2px solid #5777ff;
  padding-bottom:6px;
}
.ab-recent-posts ul{
  list-style:none;
  margin:0;
  padding:0;
}
.ab-recent-posts li{
  margin-bottom:10px;
}
.ab-recent-posts li a{
  display:block;
  padding:9px 12px;
  border-radius:6px;
  background:#f4f1eb;
  color:#111111;
  font-weight:600;
  text-decoration:none;
}
.ab-recent-date{
  display:block;
  font-size:12px;
  color:#777777;
  margin-top:3px;
}

/* Blog grid */
.ab-blog-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
}
@media (max-width: 991px){
  .ab-blog-grid{
    grid-template-columns:repeat(2, 1fr);
    gap:22px;
  }
}
@media (max-width: 767px){
  .ab-blog-grid{
    grid-template-columns:1fr;
    gap:20px;
  }
}

/* Blog card */
.ab-blog-card{
  background:#ffffff;
  border-radius:12px;
  border:1px solid #eeeeee;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

/* Thumbnail */
.ab-blog-thumb{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
}
.ab-blog-thumb--placeholder{
  height:240px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#999999;
}

/* Card inner */
.ab-blog-card-inner{
  padding:16px;
}

/* Category badge */
.ab-blog-cat-badge{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  background:#f4f1eb;
  padding:5px 9px;
  border-radius:999px;
  margin-bottom:8px;
  border:1px solid #e6e1da;
}

/* Title */
.ab-blog-card-title{
  font-size:17px;
  line-height:1.3;
  margin:0 0 8px;
}
.ab-blog-card-title a{
  color:#111111;
  text-decoration:none;
}

/* Meta */
.ab-blog-meta{
  font-size:12px;
  color:#666666;
  margin-bottom:8px;
}

/* Excerpt */
.ab-blog-excerpt{
  font-size:14px;
  line-height:1.55;
  margin:0 0 12px;
  color:#333333;
}

/* Read more */
.ab-blog-read-more{
  font-weight:700;
  color:#5777ff;
  text-decoration:none;
}

/* Pagination */
.ab-blog-pagination{
  margin-top:18px;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.ab-blog-pagination a{
  min-width:34px;
  height:34px;
  padding:0 10px;
  border-radius:8px;
  border:1px solid #e6e6e6;
  background:#ffffff;
  color:#111111;
  font-weight:700;
  text-decoration:none;
}
.ab-blog-pagination a.current{
  background:#5777ff;
  color:#ffffff;
  border-color:#5777ff;
}

/* Empty */
.ab-blog-empty{
  padding:14px;
  border:1px solid #eeeeee;
  border-radius:10px;
  background:#ffffff;
}
/* Blog card title size fix (scoped, safe) */
.ab-blog-main .ab-blog-card-title {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 10px;
}

@media (max-width: 991px){
  .ab-blog-main .ab-blog-card-title {
    font-size: 20px;
  }
}

@media (max-width: 767px){
  .ab-blog-main .ab-blog-card-title {
    font-size: 18px;
    line-height: 1.3;
  }
}