/* ============================================================
   HANVIKA - CSS tìm kiếm tin tức theo chuyên mục + phân trang
   Upload file này thành: hanvika-search.css trong thư mục theme
   Màu chủ đạo theo brand Hanvika: #1a8e8c (xanh ngọc)
   ============================================================ */

.hv-search-wrap{
  max-width:1100px;
  margin:0 auto 32px;
  font-family:inherit;
}

/* Khung bao ngoài chứa ô tìm kiếm + tab chuyên mục, tách biệt với phần danh sách bài viết */
.hv-search-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:20px 20px 16px;
  box-shadow:0 1px 3px rgba(0,0,0,0.05);
  margin-bottom:20px;
}

/* Ô tìm kiếm */
.hv-search-box{
  margin-bottom:16px;
  max-width:1100px;
}
.hv-search-box input{
  width:100% !important;
  border:1.5px solid #e2e5e9 !important;
  outline:none;
  padding:15px 18px 15px 50px !important;
  font-size:15px;
  border-radius:12px !important;
  background-color:#fff !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa1a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;
  background-position:18px center !important;
  background-size:18px 18px !important;
  box-shadow:0 1px 3px rgba(0,0,0,0.04);
  transition:border-color .15s, box-shadow .15s;
  box-sizing:border-box !important;
}
.hv-search-box input::placeholder{color:#9aa1a8;}
.hv-search-box input:focus{
  border-color:#1a8e8c;
  box-shadow:0 0 0 3px rgba(26,142,140,0.12);
}

/* Tab chuyên mục */
.hv-cat-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:0;
}
.hv-tab{
  border:1.5px solid #d8dce0;
  background:#fff;
  color:#333;
  padding:6px 14px;
  border-radius:18px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:.15s;
}
.hv-tab:hover{border-color:#1a8e8c;color:#1a8e8c;}
.hv-tab.active{
  background:#1a8e8c;
  border-color:#1a8e8c;
  color:#fff;
}

/* Responsive cho di động: hiện hết tất cả tab (wrap), thu nhỏ chữ + padding + khoảng cách cho gọn */
@media (max-width:768px){
  .hv-search-card{
    padding:14px 14px 12px;
    border-radius:14px;
  }
  .hv-search-box input{
    padding:10px 14px 10px 42px !important;
    font-size:14px;
    background-position:14px center !important;
    background-size:16px 16px !important;
  }
  .hv-cat-tabs{
    gap:6px;
    margin-bottom:0;
  }
  .hv-tab{
    padding:5px 10px;
    font-size:11.5px;
  }
  .hv-meta{margin-bottom:10px;}
  .hv-grid{gap:14px;}
}

/* Dòng thông báo số kết quả */
.hv-meta{
  font-size:13px;
  color:#6b7280;
  margin-bottom:14px;
}
.hv-meta b{color:#1c2b33;}

/* Lưới kết quả */
.hv-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
@media(max-width:900px){ .hv-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:600px){ .hv-grid{grid-template-columns:1fr;} }

/* Thẻ bài viết */
.hv-card{
  display:block;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  box-shadow:0 1px 4px rgba(0,0,0,0.06);
  transition:.2s;
}
.hv-card:hover{
  box-shadow:0 8px 20px rgba(0,0,0,0.1);
  transform:translateY(-2px);
}
.hv-card-thumb{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}
.hv-card-body{padding:14px 16px 16px;}
.hv-card-cat{
  display:inline-block;
  background:#1a8e8c;
  color:#fff;
  font-size:12px;
  font-weight:600;
  padding:4px 12px;
  border-radius:14px;
  margin-bottom:10px;
}
.hv-card-title{
  font-size:16px;
  font-weight:700;
  line-height:1.4;
  margin:0 0 8px;
  color:#1c2b33;
}
.hv-card-excerpt{
  font-size:13.5px;
  color:#6b7280;
  line-height:1.5;
  margin:0 0 10px;
}
.hv-card-date{font-size:12.5px;color:#9aa1a8;}

.hv-loading, .hv-empty{
  text-align:center;
  padding:40px 10px;
  color:#8a9199;
  grid-column:1/-1;
}

/* Phân trang - dạng hình tròn, rút gọn kiểu 1 2 3 4 ... 12 > */
.hv-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin-top:30px;
  flex-wrap:wrap;
}
.hv-page-btn{
  width:36px;
  height:36px;
  border:1.5px solid #d8dce0;
  background:#fff;
  border-radius:50%;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  transition:.15s;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hv-page-btn:hover{border-color:#1a8e8c;color:#1a8e8c;}
.hv-page-btn.active{
  background:#1a8e8c;
  border-color:#1a8e8c;
  color:#fff;
}
.hv-page-next{font-size:16px;}
.hv-page-dots{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#9aa1a8;
  font-weight:600;
}