/* ==========================================================================
   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 #359544;
  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: #359544;
}

/* 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;
}

.cat-news-title a:hover {
  color: #359544;
}

.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: #359544;
  color: #ffffff !important;
  border-color: #359544;
}

/* ==========================================================================
   4. DANAHOME INTRO SECTION STYLES
   ========================================================================== */
.danahome-intro-section {
  padding: 60px 0;
  background-color: #ffffff;
}

/* Lưới ảnh ghép bên trái */
.danahome-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 15px;
  position: relative;
}

/* Ảnh chính to bên trái (chiếm 2 hàng) */
.danahome-img-main {
  grid-row: span 2;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.danahome-img-main img,
.danahome-img-sub1 img,
.danahome-img-sub2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.danahome-gallery-grid div:hover img {
  transform: scale(1.03);
}

/* Hai ảnh phụ bên phải */
.danahome-img-sub1,
.danahome-img-sub2 {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Nút Play hiệu ứng sóng tròn */
.danahome-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 0 0 rgba(37, 99, 235, 0.4);
  animation: danahomePulse 2s infinite;
  z-index: 3;
  transition: all 0.3s ease;
}

.danahome-play-btn:hover {
  background: #ffffff;
  color: #1d4ed8;
  transform: translate(-50%, -50%) scale(1.1);
}

.danahome-play-btn i {
  margin-left: 3px; /* Cân chỉnh icon play cho chuẩn giữa */
}

@keyframes danahomePulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0.6),
      0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  70% {
    box-shadow:
      0 0 0 20px rgba(255, 255, 255, 0),
      0 0 0 35px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0),
      0 0 0 0 rgba(37, 99, 235, 0);
  }
}

/* Nội dung bên phải */
.danahome-content-right {
  display: flex;
  flex-direction: column;
}

.danahome-main-title {
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 700;
  color: #222222;
  line-height: 1.25;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.danahome-main-desc {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Các item Tầm nhìn & Giá trị cốt lõi */
.danahome-feature-item {
  display: flex;
  align-items: flex-start;
}

.danahome-feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: #eff6ff;
  color: #cea679;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 15px;
}

.danahome-feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 5px;
}

.danahome-feature-text {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 992px) {
  .danahome-gallery-grid {
    grid-template-rows: 180px 180px;
  }
}

@media (max-width: 576px) {
  .danahome-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .danahome-img-main {
    grid-row: auto;
    height: 250px;
  }
  .danahome-img-sub1,
  .danahome-img-sub2 {
    display: none; /* Ẩn bớt ảnh phụ trên mobile nếu màn hình quá nhỏ cho gọn bố cục */
  }
}
