/* ==========================================================================
   1. BANNER PARTICLES JS (THAY CHO BREADCRUMB CŨ)
   ========================================================================== */
#particles-js {
  width: 100%;
  height: 230px;
  background: #1f5c2e;
  position: relative;
  overflow: hidden;
}

#particles-js .title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-family: "Segoe UI", sans-serif;
  width: 90%;
  text-align: center;
  z-index: 2;
}

#particles-js .page-title {
  font-size: 50px;
  font-weight: bold;
  color: #f8b802;
  margin-bottom: 8px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#particles-js .breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  background: transparent;
  padding: 0;
  margin: 0;
}

#particles-js .breadcrumb a {
  color: #9cd3e6;
  text-decoration: none;
  transition: color 0.2s;
}

#particles-js .breadcrumb a:hover {
  color: #ffffff;
}

#particles-js .breadcrumb .sep {
  color: rgba(255, 255, 255, 0.6);
}

#particles-js .breadcrumb .current {
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   2. CAT-NEWS CUSTOM STYLES (DANH SÁCH BÀI VIẾT)
   ========================================================================== */
.cat-news-wrapper {
  padding-bottom: 70px;
}

.cat-news-heading {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1b2b12;
  border-bottom: 3px solid #cea679;
  display: inline-block;
  padding-bottom: 8px;
}

.cat-news-heading a {
  color: inherit;
  text-decoration: none;
  font-weight:600;
}

/* Khung Thẻ Sản Phẩm/Bài Viết */
.cat-news-card {
  background: #ffffff;
  border: 1px solid #e3ebd9;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.cat-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(53, 149, 68, 0.12);
  border-color: #cea679;
}

/* Khung Ảnh */
.cat-news-thumb {
  width: 100%;
  height: 200px;
  background-color: #eaeaea;
  position: relative;
  overflow: hidden;
}

.cat-news-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.cat-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cat-news-card:hover .cat-news-thumb img {
  transform: scale(1.05);
}

/* Nội Dung Bài Viết */
.cat-news-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cat-news-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-news-title a {
  color: #1b2b12;
  text-decoration: none;
  transition: color 0.2s ease;
  text-transform: capitalize;
}

.cat-news-title a:hover {
  color: #cea679;
}

.cat-news-desc {
  font-size: 0.88rem;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   3. PHÂN TRANG (FIX LỖI DẤU CHẤM BLACK DOTS)
   ========================================================================== */
.cat-news-pagination {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed #dbe5d2;
  display: flex;
  justify-content: flex-end;
}

.cat-news-pagination .phantrang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #555;
}

.cat-news-pagination .phantrang,
.cat-news-pagination .phantrang ul,
.cat-news-pagination .phantrang li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
}

.cat-news-pagination .phantrang ul::before,
.cat-news-pagination .phantrang li::before {
  content: none !important;
}

.cat-news-pagination .phantrang a,
.cat-news-pagination .phantrang b,
.cat-news-pagination .phantrang span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #dbe5d2;
  border-radius: 6px;
  color: #1b2b12;
  text-decoration: none;
  font-size: 0.9rem;
  background: #fff;
  transition: all 0.2s ease;
}

.cat-news-pagination .phantrang a:hover,
.cat-news-pagination .phantrang b {
  background-color: #cea679;
  color: #ffffff !important;
  border-color: #cea679;
}

.company-news-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 80px 0;
}

.company-news-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.company-news-subtitle {
  color: #cea679;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 8px;
}

.company-news-title {
  margin: 0;
  font-size: clamp(30px, 2.5vw, 42px);
  color: #111827;
  font-weight: 700;
  line-height: 1.2;
}

.company-news-line {
  display: inline-block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #cea679, #d8b58c);
  border-radius: 999px;
  margin-top: 12px;
}

.company-news-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.company-news-button:hover {
  gap: 12px;
  color: #1d4ed8;
}

.company-news-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.company-news-featured {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.company-news-image-link {
  display: block;
  overflow: hidden;
}

.company-news-image {
  margin: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.company-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.company-news-featured:hover .company-news-image img {
  transform: scale(1.05);
}

.company-news-featured-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.company-news-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.company-news-featured-content h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.company-news-featured-content h3 a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.company-news-featured-content h3 a:hover {
  color: #222222;
}

.company-news-description {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.company-news-readmore {
  margin-top: auto;
  color: #222222;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.company-news-readmore:hover {
  gap: 10px;
}

.company-news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.company-news-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.company-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border-color: #b12121;
}

.company-news-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  display: block;
}

.company-news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.company-news-card:hover .company-news-card-image img {
  transform: scale(1.06);
}

.company-news-card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.company-news-card-body h3 {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.company-news-card-body h3 a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.company-news-card-body h3 a:hover {
  color: #961d1d;
}

.company-news-card-readmore {
  margin-top: auto;
  font-size: 0.85rem;
  color: #222222;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 992px) {
  .company-news-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .company-news-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .company-news-list {
    grid-template-columns: 1fr;
  }
}
