/* =========================================================
   TRANG CHUYÊN MỤC TIN TỨC – PHẾ LIỆU THIÊN TUẤN
========================================================= */

.news-archive-page,
.news-archive-page * {
  box-sizing: border-box;
}

.news-archive-page {
  width: 100%;
  padding: 32px 0 72px;
  background: #fffdf9;
}

.news-archive-container {
  width: calc(100% - 40px);
  max-width: 1147px;
  margin: 0 auto;
}

/* Header */
.news-archive-header {
  margin-bottom: 34px;
}

.news-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #777;
  font-size: 14px;
}

.news-breadcrumb a {
  color: #777;
  text-decoration: none;
}

.news-breadcrumb a:hover {
  color: #b77b19;
}

.news-archive-header h1 {
  margin: 0 0 12px;
  color: #20242a;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
}

.news-archive-header h1::after {
  display: block;
  width: 52px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: #d9a441;
  content: "";
}

.news-category-description,
.news-category-description p {
  margin: 0;
  color: #666d69;
  font-size: 16px;
  line-height: 1.7;
}

/* Layout */
.news-archive-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.news-archive-sidebar,
.news-archive-content {
  min-width: 0;
}

.news-archive-sidebar .service-sidebar {
  position: sticky;
  top: 105px;
  width: 100%;
}

.news-archive-sidebar .service-sidebar-menu,
.news-archive-sidebar .service-sidebar-contact {
  width: 100%;
  max-width: 100%;
}

/* Tiêu đề danh sách */
.news-archive-title {
  display: none;
  margin: 0 0 24px;
  color: #171c21;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.25;
}

/* Danh sách bài */
.news-post-list {
  display: grid;
  gap: 22px;
}

.news-list-item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 0 !important;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(217, 164, 65, 0.28);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(12, 32, 27, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.news-list-item:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 164, 65, 0.5);
  box-shadow: 0 16px 34px rgba(12, 32, 27, 0.1);
}

/* Ảnh */
.news-list-thumb {
  display: block;
  width: 100%;
  height: 152px;
  overflow: hidden;
  border-radius: 12px;
  background: #f2f2f2;
}

.news-list-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.news-list-item:hover .news-list-thumb img {
  transform: scale(1.035);
}

.news-list-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 18px;
  color: #f1c96b;
  background: #0c201b;
  font-weight: 800;
  text-align: center;
}

/* Nội dung */
.news-list-content {
  min-width: 0;
}

.news-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.news-list-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8f0df;
  color: #9a6818;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-list-date {
  color: #8a8f8c;
  font-size: 13px;
}

.news-list-title {
  margin: 0 0 9px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.32;
}

.news-list-title a {
  display: block;
  color: #29323d;
  text-decoration: none;
}

.news-list-title a:hover {
  color: #b77b19;
}

.news-list-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 14px;
  color: #5f6662;
  font-size: 14.5px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-list-button {
  display: none;
  align-items: center;
  gap: 9px;
  color: #0f6048;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.news-list-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0f6048;
  color: #fff;
}

/* Không có bài */
.news-empty {
  padding: 30px;
  border: 1px solid #eadfc9;
  border-radius: 14px;
  background: #fffaf1;
}

/* Phân trang */
.news-pagination {
  margin-top: 34px;
}

.news-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(217, 164, 65, 0.38);
  border-radius: 10px;
  background: #fff;
  color: #0c201b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.news-pagination .page-numbers:hover {
  border-color: #d9a441;
  background: #fff8e8;
  color: #9a6818;
}

.news-pagination .page-numbers.current {
  border-color: #0c201b;
  background: #0c201b;
  color: #f0cd82;
}

/* Tablet */
@media (max-width: 1024px) {
  .news-archive-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 26px;
  }

  .news-list-item {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .news-list-thumb {
    height: 140px;
  }
}

/* Mobile */
@media (max-width: 849px) {
  .news-archive-page {
    padding: 32px 0 58px;
  }

  .news-archive-container {
    width: calc(100% - 28px);
  }

  .news-archive-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .news-archive-content {
    order: 1;
    width: 100%;
  }

  .news-archive-sidebar {
    order: 2;
    width: 100%;
  }

  .news-archive-sidebar .service-sidebar {
    position: static;
  }

  .news-post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .news-list-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 100%;
    padding: 0;
  }

  .news-list-thumb {
    height: 180px;
    border-radius: 16px 16px 0 0;
  }

  .news-list-content {
    flex: 1;
    padding: 16px 16px 18px;
  }

  .news-list-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 20px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .news-list-excerpt {
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 640px) {
  .news-archive-header h1 {
    font-size: 28px;
  }

  .news-archive-title {
    font-size: 25px;
  }

  .news-post-list {
    grid-template-columns: 1fr;
  }

  .news-list-thumb {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .news-list-title {
    font-size: 21px;
  }
}