/* Category Pills Styles */
.cat-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #555;
  background-color: #fff;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.cat-pill:hover {
  background-color: #f5f5f5;
  color: #333;
}

.cat-pill.active {
  background-color: #506cd7;
  color: #fff;
  border-color: #506cd7;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

/* Page Header Styles */
.page-header-wrapper {
  padding: 20px;
}

.page-header-wrapper .page-header.bg-section {
  background-color: #f7f8fe;
  background-image: url("../../img/banner/bannerBaiViet/tonghop.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 30px;
  padding: 100px 20px;
  text-align: center;
  transition: background-image 0.3s ease;
}

/* Background cho từng danh mục được xử lý bằng JS */

.page-header-box h2 {
  font-size: 30px;
  font-weight: 700;
  color: #1e266d;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.page-header-box p {
  font-size: 16px;
  color: #666;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Search Box Styles */
.search-box-wrapper {
  position: relative;
  max-width: 450px;
  margin: 25px auto 0;
}

.header-search-input {
  width: 100%;
  padding: 15px 20px 15px 55px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(30, 38, 109, 0.1);
  font-size: 15px;
  color: #444;
  outline: none;
  transition: all 0.3s ease;
}

.search-box-wrapper .fa-search {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: #506cd7;
  font-size: 18px;
}

.search-box-wrapper button {
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: 8px;
  background: #506cd7;
  color: white;
  border: none;
  border-radius: 40px;
  padding: 0 25px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.search-box-wrapper button:hover {
  background: #3d54a8;
}

/* Sidebar Widget Styles */
.sidebar-widget {
  background: #f9f9f9;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid #eee;
}

.widget-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.recent-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.recent-list-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recent-list-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.recent-title {
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 5px;
}

.recent-title a {
  font-size: 15px;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  line-height: 1.4;
}

.recent-title a:hover {
  color: #506cd7;
}

.hero-meta {
  font-size: 13px;
  color: #999;
}

/* News Item Styles */
.trung-img {
  width: 100%;
}

.news-item {
  margin-bottom: 5px;
  border: none !important;
  padding: 14px 14px;
}

.news-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-content:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.news-image {
  margin: 0 !important;
  overflow: hidden;
  width: 100%;
  border-radius: 0 !important;
}

.news-image .trung-img {
  width: 100% !important;
  border-radius: 0 !important;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-content:hover .news-image img {
  transform: scale(1.05);
}

.news-text {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #666;
  gap: 10px;
}

.news-category {
  display: inline-block;
  padding: 4px 10px;
  background: #4753bf;
  color: white;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 16px;
}

.news-text h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.news-text h3 a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.news-text h3 a:hover {
  color: #506cd7;
}

.news-description {
  font-size: 0.95rem;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* Pagination Styles */
#pageNews {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.pagination {
  display: flex;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0;
}