/* =========================================================
   AB Case Studies – FINAL CSS (No Bleed, No JS, No AJAX)
   ========================================================= */

.ab-case-main{
  width:100%;
}

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

/* Apply button */
.ab-case-filter-btn{
  margin-top:10px;
  width:100%;
  padding:11px 0;
  border:none;
  border-radius:8px;
  background:#5777ff;
  color:#ffffff;
  font-weight:700;
  cursor:pointer;
}
.ab-case-filter-btn:hover{
  background:#405fe4;
}

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

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

.ab-case-thumb{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
}
.ab-case-thumb--placeholder{
  height:240px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#999;
  background:#f6f6f6;
}

.ab-case-card-inner{
  padding:16px;
}

.ab-case-title{
  font-size:20px;
  line-height:1.25;
  margin:0 0 8px;
}
.ab-case-title a{
  color:#111;
  text-decoration:none;
}
.ab-case-title a:hover{
  text-decoration:underline;
}

.ab-case-meta{
  font-size:12px;
  color:#666;
  margin-bottom:10px;
}
.ab-case-dot{ margin:0 8px; }

.ab-case-excerpt{
  font-size:14px;
  line-height:1.55;
  margin:0 0 12px;
  color:#333;
}

.ab-case-readmore{
  font-weight:700;
  color:#5777ff;
  text-decoration:none;
}
.ab-case-readmore:hover{
  text-decoration:underline;
}

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

.ab-case-empty{
  padding:14px;
  border:1px solid #eee;
  border-radius:10px;
  background:#fff;
}
/* Case study card title size fix (scoped) */
.ab-case-main .ab-case-title{
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 10px;
}

/* Tablet */
@media (max-width: 991px){
  .ab-case-main .ab-case-title{
    font-size: 22px;
  }
}

/* Mobile */
@media (max-width: 767px){
  .ab-case-main .ab-case-title{
    font-size: 20px;
    line-height: 1.3;
  }
}