.legal-item {
    border-bottom: 1px solid #000;
    padding: 10px 0px 5px 0px;
    color: black;
    font-weight: 400;
    font-size: 1.2rem;
    text-decoration: none;
}

a.legal-item:hover {
    color: #d71920 !important;
    /* text-decoration: underline !important; */
}


/* Phân trang */
.my-pagination {
  list-style: none;
  display: flex;
  justify-content: center;
  padding-left: 0;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px;
}
.my-page-item {
  display: inline-block;
}
.my-page-link {
  display: block;
  color: #d71920;
  background-color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  font-weight: 600;
  font-size: 1.5rem;
  text-decoration: none;
}
.my-page-item.active .my-page-link {
  background-color: #d71920;
  color: #fff;
}
.my-page-link:hover {
  background-color: #f2f2f2;
  color: #d71920;
}

/* 🔧 Responsive cho thiết bị nhỏ hơn 768px (tablet & mobile) */
@media (max-width: 768px) {
  .legal-item {
    font-size: 1rem;
    padding: 8px 0 5px 0;
  }

  .my-page-link {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 1rem;
  }
}

/* 🔧 Responsive cho thiết bị nhỏ hơn 480px (mobile nhỏ) */
@media (max-width: 480px) {
  .legal-item {
    font-size: 0.95rem;
  }

  .my-page-link {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 0.95rem;
  }
}

/* Blog */
/* Tổng thể vùng chính */
.blog-main-box {
  background-color: #ffffff;
  padding: 37px 40px 40px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* Background trắng cho các box */
.white-bg-box {
  background-color: #ffffff;
  padding: 30px;
}

/* Tiêu đề chính */
.blog-main-title {
  font-size: 20px;
  font-weight: 700;
  color: #001b61;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;  
}

/* Tiêu đề các box phụ như tìm kiếm, danh mục */
.blog-box-header .title {
  font-size: 18px;
  font-weight: 600;
  color: #1d3557;
  margin-bottom: 20px;
}

/* Ô tìm kiếm */
.blog-search-box form {
  display: flex;
  justify-content: center;
} 

.search-input-group {
  position: relative;
  width: 100%;
}

.search-input-group input {
  width: 100%;
  padding: 10px 50px 10px 20px;
  border-radius: 30px;
  border: 1px solid #ddd;
  background: #f8f9fa;
}

.search-input-group button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: none;
  background-color: #e63946;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

/* Danh sách tài liệu pháp lý */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  color: #1d3557;
  text-decoration: none;
  display: block;
  transition: 0.3s;
}

.legal-item:hover {
  color: #e63946;
}

/* Phân trang */
.pagination-box .page-link {
  border-radius: 50% !important;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
justify-content: center;
}

.pagination-box .page-item.active .page-link {
  background-color: #e63946;
  border-color: #e63946;
  color: #fff;
}

/* Sidebar */
.sidebar-wrapper {
  /* padding-left: 10px; */
}

/* .category-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
} */

.category-list ul li a {
    display: block;
    background: rgba(18, 31, 76, 0.7);
    color: #fff;
    margin-top: 10px;
    padding-left: 30px;
    line-height: 50px;
    position: relative;
}

.category-list span {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    padding: 0 16px;
    background: #091222;
    font-weight: 700;
}

/* .category-list li span {
  background-color: #e63946;
  color: #fff;
  border-radius: 50%;
  padding: 4px 10px;
  font-size: 13px;
} */

.btn-download-doc {
  background-color: #d60000;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 25px;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.btn-download-doc:hover {
  background-color: #b80000;
  color: #fff;
}