/* CSS riêng cho news-card, tránh đụng trùng toàn site */
.newsbox-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(30,136,229,0.07);
  margin-bottom: 16px;
  padding: 8px 12px 8px 8px;
  transition: box-shadow 0.18s;
  min-height: 90px;
}
.newsbox-card:hover {
  box-shadow: 0 6px 24px 0 rgba(30,136,229,0.13);
}
.newsbox-img-wrap {
  flex: 0 0 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}
.newsbox-img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 1px 6px 0 rgba(30,136,229,0.08);
  background: #f5f5f5;
}
.newsbox-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.newsbox-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 4px;
  text-decoration: none;
  display: block;
  line-height: 1.3;
  transition: color 0.18s;
}
.newsbox-title:hover {
  color: #1976d2;
  text-decoration: underline;
}
.newsbox-desc {
  font-size: 0.99rem;
  color: #444;
  margin-bottom: 2px;
  font-weight: 400;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.newsbox-date {
  font-size: 0.97rem;
  color: #888;
  font-weight: 500;
}
@media (max-width: 600px) {
  .newsbox-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 6px;
  }
  .newsbox-img-wrap {
    margin-right: 0;
    margin-bottom: 6px;
  }
  .newsbox-img {
    width: 100%;
    max-width: 220px;
    height: 60px;
  }
}
/* Trang chủ hiện đại */
.modern-section-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: #1976d2;
  margin-bottom: 1.2rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: left;
}
.modern-card {
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px 0 rgba(30, 136, 229, 0.10);
  background: #fff;
  transition: box-shadow 0.18s, transform 0.18s;
  border: none;
  padding: 1.1rem 0.7rem 0.7rem 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 220px;
}
.modern-card:hover {
  box-shadow: 0 8px 32px 0 rgba(30, 136, 229, 0.13);
  transform: translateY(-4px) scale(1.04);
}
.modern-card-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  background: #f8f9fa;
  margin-bottom: 0.7rem;
  border: 2px solid #e3eaf3;
}
.modern-card-title {
  font-size: 1.13rem;
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-bottom: 0.2rem;
  min-height: 2.2em;
}
.modern-card-count {
  font-size: 0.98rem;
  color: #888;
  text-align: center;
}
.modern-product-card {
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px 0 rgba(30, 136, 229, 0.08);
  background: #fff;
  transition: box-shadow 0.18s, transform 0.18s;
  border: none;
  padding: 1.1rem 0.7rem 0.7rem 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 320px;
}
.modern-product-card:hover {
  box-shadow: 0 8px 32px 0 rgba(30, 136, 229, 0.13);
  transform: translateY(-4px) scale(1.03);
}
.modern-product-img {
  width: 100%;
  max-width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 1rem;
  background: #f8f9fa;
  margin-bottom: 0.7rem;
}
.modern-product-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1976d2;
  text-align: center;
  margin-bottom: 0.2rem;
}
.modern-product-price {
  font-size: 1.1rem;
  color: #e53935;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.modern-product-oldprice {
  font-size: 0.98rem;
  color: #888;
  text-decoration: line-through;
  margin-left: 0.5em;
}
.modern-product-action {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.5rem;
}
.modern-product-action .btn {
  border-radius: 0.7rem;
  font-size: 1rem;
  padding: 0.5rem 1.2rem;
}
/* Ghi đè margin-right cho owl-item trong slider bài viết mới nhất */
.news-latest-slider .owl-item {
  margin-right: 0 !important;
}
/* Tiêu đề bài viết mới nhất trong slider */
.news-latest-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1976d2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
/* Sidebar danh mục dạng ul li */
.news-category-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-category-sidebar-li {
  padding: 0.7rem 0.5rem 0.5rem 0.5rem;
  border-bottom: 1px solid #e3eaf3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  transition: background 0.15s;
}
.news-category-sidebar-li:last-child {
  border-bottom: none;
}
.news-category-sidebar-li .news-sidebar-link {
  color: #111;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.news-category-sidebar-li .news-sidebar-link:hover {
  color: #0d47a1;
  text-decoration: underline;
}
.news-category-sidebar-li .news-sidebar-date {
  color: #888;
  font-size: 0.93em;
  margin-left: 0.5em;
}
.news-latest-section-title {
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(90deg, #1976d2 60%, #64b5f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  letter-spacing: 1.5px;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  text-align: left;
  text-shadow: 0 2px 12px rgba(30, 136, 229, 0.1);
  display: inline-block;
}
.news-latest-section-underline {
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, #1976d2 60%, #64b5f6 100%);
  border-radius: 2.5px;
  margin-bottom: 1.1rem;
  margin-left: 0;
}
.news-latest-item-slider {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px 0 rgba(30, 136, 229, 0.08);
  padding: 0 0 1.1rem 0;
  margin: 0 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 340px;
  min-width: 420px;
  max-width: 540px;
  width: 100%;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  transition: box-shadow 0.18s, transform 0.18s;
  overflow: hidden;
}

.news-latest-img {
  width: 100%;
  aspect-ratio: 4/3;
  height: auto;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
  margin-bottom: 0;
  background: #f6fafd;
  display: block;
  min-height: 180px;
  max-height: 220px;
}

.news-latest-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 1.1rem 0.2rem 1.1rem;
  text-align: center;
}
/* Sidebar tiêu đề lớn, line trang trí */
.news-sidebar-title-main {
  font-size: 1.7rem;
  font-weight: 900;
  color: #1976d2;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}
.news-sidebar-title-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #1976d2 60%, #64b5f6 100%);
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

/* Slider bài viết mới nhất có hình ảnh */
.news-latest-slider {
  margin-top: 0.5rem;
  width: 100%;
  max-width: 100%;
  position: static;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  justify-content: center;
}
.news-latest-item-slider {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px 0 rgba(30, 136, 229, 0.08);
  padding: 1.2rem 1.2rem 1rem 1.2rem;
  margin: 0 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px;
  min-width: 220px;
  max-width: 270px;
  width: 100%;
  transition: box-shadow 0.18s, transform 0.18s;
}
.news-latest-item-slider:hover {
  box-shadow: 0 8px 32px 0 rgba(30, 136, 229, 0.13);
  transform: translateY(-2px) scale(1.03);
}
.news-latest-img {
  width: 100%;
  object-fit: cover;
  border-radius: 0.7rem;
  margin-bottom: 0.7rem;
  background: #f6fafd;
  display: block;
}
.news-latest-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 0.2rem;
  display: block;
  text-align: center;
}
.news-latest-desc {
  font-size: 0.97rem;
  color: #444;
  text-align: center;
}
/* Tiêu đề danh mục lớn, line trang trí */
.news-category-title-text {
  font-size: 3rem;
  font-weight: 900;
  color: #1976d2;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.news-category-title-underline {
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, #1976d2 60%, #64b5f6 100%);
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

/* Sidebar danh mục dạng card nhỏ 3 cột */
.news-category-sidebar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.8rem;
}
.news-category-sidebar-card {
  background: #f8fafd;
  border-radius: 0.8rem;
  box-shadow: 0 2px 8px 0 rgba(30, 136, 229, 0.06);
  padding: 1.1rem 0.7rem 0.7rem 0.7rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 80px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.news-category-sidebar-card:hover {
  box-shadow: 0 8px 32px 0 rgba(30, 136, 229, 0.13);
  transform: translateY(-2px) scale(1.03);
}
.news-category-sidebar-card .news-sidebar-link {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 0.2rem;
}
.news-category-sidebar-card .news-sidebar-date {
  font-size: 0.97rem;
  color: #888;
}
@media (max-width: 991px) {
  .news-category-sidebar-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .news-category-sidebar-grid {
    grid-template-columns: 1fr;
  }
}
/* Danh mục dạng lưới 3 cột */
.news-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 0.5rem;
}
.news-category-item {
  background: #f8fafd;
  border-radius: 0.8rem;
  box-shadow: 0 2px 8px 0 rgba(30, 136, 229, 0.06);
  padding: 1.1rem 0.7rem 0.7rem 0.7rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 80px;
}
.news-category-item .news-sidebar-link {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 0.2rem;
}
.news-category-item .news-sidebar-date {
  font-size: 0.97rem;
  color: #888;
}
@media (max-width: 991px) {
  .news-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .news-category-grid {
    grid-template-columns: 1fr;
  }
}

/* Bài viết mới nhất cuối trang dạng grid */
.news-latest-bottom {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  background: #f8fafd;
  border-radius: 1rem;
  box-shadow: 0 2px 12px 0 rgba(30, 136, 229, 0.06);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  margin-left: auto;
  margin-right: auto;
}
.news-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.news-latest-item {
  background: #fff;
  border-radius: 0.8rem;
  box-shadow: 0 2px 8px 0 rgba(30, 136, 229, 0.06);
  padding: 1.1rem 0.7rem 0.7rem 0.7rem;
  min-height: 80px;
}
.news-latest-item .news-sidebar-link {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 0.2rem;
}
.news-latest-item .news-sidebar-desc {
  font-size: 0.97rem;
  color: #444;
}
@media (max-width: 991px) {
  .news-latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .news-latest-grid {
    grid-template-columns: 1fr;
  }
}
/* Card layout for news list, categories, and latest posts */
.news-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.news-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px 0 rgba(30, 136, 229, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  width: 100%;
  max-width: 340px;
  min-width: 260px;
}
.news-card:hover {
  box-shadow: 0 8px 32px 0 rgba(30, 136, 229, 0.15);
  transform: translateY(-4px) scale(1.03);
}
.news-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.news-card-body {
  padding: 1.1rem 1.2rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.news-card-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #1976d2;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.news-card-desc {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 1rem;
  flex: 1 1 auto;
}
.news-card-meta {
  font-size: 1.15rem;
  color: #111;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.news-card-btn {
  align-self: flex-start;
  background: linear-gradient(90deg, #1976d2 60%, #64b5f6 100%);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.5rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px 0 rgba(30, 136, 229, 0.09);
  margin-top: 0.5rem;
}
.news-card-btn:hover {
  background: linear-gradient(90deg, #1565c0 60%, #42a5f5 100%);
  color: #fff;
}

/* Sidebar category & latest posts */
.news-sidebar-section {
  background: #f8fafd;
  border-radius: 1rem;
  box-shadow: 0 2px 12px 0 rgba(30, 136, 229, 0.06);
  padding: 1.2rem 1.2rem 1.1rem 1.2rem;
  margin-bottom: 1.5rem;
}
.news-sidebar-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}
.news-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-sidebar-list li {
  margin-bottom: 1.1rem;
  border-bottom: 1px solid #e3eaf3;
  padding-bottom: 0.7rem;
}
.news-sidebar-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.news-sidebar-link {
  color: #1976d2;
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.18s;
}
.news-sidebar-link:hover {
  color: #1565c0;
  text-decoration: underline;
}
.news-sidebar-date {
  font-size: 0.97rem;
  color: #888;
  margin-left: 0.3rem;
}
.news-sidebar-desc {
  color: #444;
  font-size: 0.98rem;
  margin-top: 0.2rem;
}
@media (max-width: 991px) {
  .news-card-grid {
    gap: 1.2rem;
    justify-content: center;
  }
  .news-card {
    max-width: 100%;
    min-width: 180px;
  }
}
@media (max-width: 767px) {
  .news-card-grid {
    flex-direction: column;
    gap: 1.1rem;
  }
  .news-card {
    max-width: 100%;
    min-width: 0;
  }
}
