@charset "utf-8";
/* CSS Document */


/* News index */
.head_news{background:url(i/icon_news.png) no-repeat; padding-left:28px !important;margin-left:5px;}
.news_item {width:675px; padding:10px 0 15px; border-bottom:#dbdbdb solid 1px; overflow:hidden;}
.news_item h3{font-size:11pt;font-weight:bolder; float:left; margin:3px 3px 6px;}
.news_item h3 a{color:#0074B4;}
.news_item h3 a:hover{color:blue;}
.news_item span{float:right; margin:3px 3px 6px; color:#666;}
.news_item img{float:left;margin: 0 7px 0 0; height:100px;border:1px solid #ccc;box-shadow: 1px 1px 2px #ccc;}
.news_item .n_content{margin:0;padding:0;color:#3f3f3f;font-size:14px;text-align:justify;}
.news_item .n_content p{line-height:20px;}
.news_item span a{margin-top:7px;}
.news_item a.n_readmore{float:right; margin:10px 3px 0;font-size:14px;font-weight:bold;}


/* News detail */
.news_detail{width:675px;}
.news_detail .news_content{border-bottom:1px solid #ccc;min-height:250px;*height:250px;}
.news_detail .news_content h3{float:left; margin:5px 3px;font-size:12pt;font-weight:bold;color:#0074B4;max-width:550px;*width:550px;}
.news_detail .news_content span{float:right; margin:5px 3px;color:#666;}
.news_detail .news_content .news_info{padding:15px 5px 20px; text-align:justify;font-size:11pt; font-family:arial;line-height:22px;}
.news_detail .news_other h2{font-size:12pt;margin:5px 3px; color:#333;}
.news_detail .news_other ul{}
.news_detail .news_other ul li{margin-left:15px;font-weight:bold;list-style:inside !important;}


/* ============================================================
   T21 — News Listing Page (Fix: breadcrumb, sidebar hardcode, image 16:9, mobile 2col)
   Scope: .news-page-wrapper, .news-page-layout
   ============================================================ */

.news-page-wrapper {
  background: #F7F7F7;
}

/* 2-column layout: sidebar + main */
.news-page-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0 48px;
}

/* ── Sidebar ── */
.news-sidebar {
  flex: 0 0 220px;
  min-width: 220px;
  position: sticky;
  top: 80px;
}

.news-sidebar-block {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  overflow: hidden;
}

.news-sidebar-title {
  background: #C62828;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 10px 14px;
}

.news-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-sidebar-list li {
  border-bottom: 1px solid #F3F4F6;
}

.news-sidebar-list li:last-child {
  border-bottom: none;
}

.news-sidebar-list li a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  transition: background .12s, color .12s;
}

.news-sidebar-list li a:hover,
.news-sidebar-list li.active > a {
  background: #FFF5F5;
  color: #C62828;
  font-weight: 600;
}

/* ── Main content ── */
.news-main {
  flex: 1 1 0;
  min-width: 0;
}

.news-main .page-title-blog {
  margin-bottom: 20px;
}

.news-main .page-title-blog h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1A1A1A;
  padding: 0 0 0 14px;
  border-left: 4px solid #C62828;
  margin: 0;
  line-height: 1.3;
}

/* ── News Grid ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* ── News Card ── */
.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transform: translateY(-3px);
}

/* 16:9 image — bulletproof: padding-bottom trick, không phụ thuộc aspect-ratio */
.news-card-image {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 = 9/16 = 56.25% */
  height: 0;
  background: #F3F4F6;
}

.news-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.news-card-meta {
  font-size: 11px;
  color: #9E9E9E;
  margin-bottom: 6px;
}

.news-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-title a {
  color: #1A1A1A;
  text-decoration: none;
  transition: color .15s;
}

.news-card-title a:hover {
  color: #C62828;
}

.news-card-desc {
  font-size: 12px;
  color: #616161;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Best seller sidebar wrapper ── */
.news-sidebar-bestseller {
  margin-top: 16px;
}

/* Tiêu đề block best seller trong news sidebar — override theme style */
.news-sidebar-bestseller .block-left-products .block-title {
  background: #C62828 !important;
  border-radius: 4px 4px 0 0 !important;
  padding: 10px 14px !important;
  margin: 0 !important;
}

.news-sidebar-bestseller .block-left-products .block-title strong {
  display: block !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .4px !important;
  padding: 0 !important;
}

.news-sidebar-bestseller .block-left-products .block-title strong::before {
  display: none !important;
}

.news-sidebar-bestseller .block-left-products .block-title strong span {
  color: #fff !important;
  background: transparent !important;
}

.news-sidebar-bestseller .block-left-products .block-content {
  border: 1px solid #E0E0E0 !important;
  border-top: none !important;
  border-radius: 0 0 4px 4px !important;
  padding: 0 !important;
}

.news-sidebar-bestseller .block-left-products {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: none;
}

/* ── Pagination (redesign: larger, clearer, mobile-friendly) ── */
.news-pagination {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.news-pagination .pages ol {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Pagination button — mỗi <li> */
.news-pagination .pages ol li {
  list-style: none;
}

.news-pagination .pages ol li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}

.news-pagination .pages ol li a:hover {
  background: #FFF5F5;
  border-color: #C62828;
  color: #C62828;
}

/* Active page */
.news-pagination .pages ol li.current a {
  background: #C62828;
  border-color: #C62828;
  color: #fff;
  cursor: default;
  pointer-events: none;
}

/* Prev / Next arrow buttons */
.news-pagination .pages ol li a.previous,
.news-pagination .pages ol li a.next,
.news-pagination .pages ol li a.i-previous {
  font-size: 16px;
  padding: 0 12px;
}

.news-pagination .pages ol li a.previous::before {
  content: '‹';
}

.news-pagination .pages ol li a.next::before {
  content: '›';
}

/* Ẩn label "Page:" */
.news-pagination .pages label {
  display: none !important;
}

/* Mobile: nút to hơn, dễ bấm */
@media (max-width: 767px) {
  .news-pagination .pages ol li a {
    min-width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .news-pagination .pages ol {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ── Breadcrumb: đảm bảo hiển thị trên trang tin tức ── */
.news-breadcrumb-bar {
  display: block !important;
}

.news-breadcrumb-bar .breadcrumbs ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  flex-wrap: wrap;
}

.news-breadcrumb-bar .breadcrumbs li {
  font-size: 12px;
  color: #9E9E9E;
}

.news-breadcrumb-bar .breadcrumbs li::after {
  content: '/';
  margin-left: 6px;
  color: #BDBDBD;
}

.news-breadcrumb-bar .breadcrumbs li:last-child::after {
  display: none;
}

.news-breadcrumb-bar .breadcrumbs a {
  color: #616161;
  text-decoration: none;
}

.news-breadcrumb-bar .breadcrumbs a:hover {
  color: #C62828;
}

.news-breadcrumb-bar .breadcrumbs strong {
  color: #C62828;
  font-weight: 600;
}

/* ── Mobile horizontal category bar ── */
.news-mobile-cats {
  display: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  padding: 10px 0 12px;
  margin-bottom: 12px;
  gap: 8px;
  scrollbar-width: none;
}

.news-mobile-cats::-webkit-scrollbar {
  display: none;
}

.news-mcat-item {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  margin-right: 6px;
  transition: background .12s, border-color .12s, color .12s;
}

.news-mcat-item.active,
.news-mcat-item:hover {
  background: #C62828;
  border-color: #C62828;
  color: #fff;
}

/* ── Tablet: 2 columns ── */
@media (max-width: 991px) and (min-width: 768px) {
  .news-page-layout {
    gap: 16px;
  }

  .news-sidebar {
    flex: 0 0 180px;
    min-width: 180px;
  }

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

/* ── Mobile: 2 cột, no sidebar, horizontal category bar ── */
@media (max-width: 767px) {
  .news-mobile-cats {
    display: flex;
  }

  .news-page-layout {
    flex-direction: column;
    gap: 0;
    padding: 0 0 32px;
  }

  .news-sidebar {
    display: none;
  }

  .news-main {
    width: 100%;
  }

  /* 2 cột trên mobile */
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .news-card-body {
    padding: 10px 10px 12px;
  }

  .news-card-title {
    font-size: 12px;
    -webkit-line-clamp: 3;
  }

  .news-card-meta {
    font-size: 10px;
  }

  .news-card-desc {
    display: none; /* ẩn mô tả trên mobile để card gọn */
  }

  .news-main .page-title-blog h1 {
    font-size: 18px;
    margin-bottom: 12px;
  }
}

/* ── Màn hình rất nhỏ < 360px: 1 cột ── */
@media (max-width: 359px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ── End T21 Fix ── */


/* ============================================================
   T22 — News Detail Page
   Scope: .news-detail-wrapper, .news-detail-layout
   ============================================================ */

.news-detail-wrapper {
  background: #F7F7F7;
}

/* 2-column flex layout */
.news-detail-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0 48px;
}

/* ── Sidebar (reuses T21 sidebar classes: news-sidebar-block, news-sidebar-title, news-sidebar-list) ── */
.news-detail-sidebar {
  flex: 0 0 220px;
  min-width: 220px;
  position: sticky;
  top: 80px;
}

/* ── Main content ── */
.news-detail-main {
  flex: 1 1 0;
  min-width: 0;
}

/* ── Article card ── */
.news-article {
  background: #fff;
  border-radius: 10px;
  padding: 28px 32px 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  margin-bottom: 24px;
}

.news-article-title {
  font-size: 24px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.4;
  margin: 0 0 12px;
}

/* Meta: date + category */
.news-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #9E9E9E;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F3F4F6;
}

.news-article-meta a {
  color: #C62828;
  text-decoration: none;
  font-weight: 600;
}

.news-article-meta a:hover {
  text-decoration: underline;
}

/* ── Article body typography ── */
.news-article-body {
  font-size: 15px;
  line-height: 1.8;
  color: #212121;
  word-break: break-word;
}

.news-article-body p {
  margin: 0 0 16px;
}

.news-article-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 24px 0 10px;
  line-height: 1.4;
}

.news-article-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 20px 0 8px;
  line-height: 1.4;
}

.news-article-body h4,
.news-article-body h5 {
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 16px 0 8px;
}

/* Ảnh trong bài: không tràn container */
.news-article-body img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 4px;
  margin: 16px auto;
}

/* Table trong bài */
.news-article-body table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.news-article-body table td,
.news-article-body table th {
  border: 1px solid #E0E0E0;
  padding: 8px 12px;
  font-size: 14px;
}

/* Links */
.news-article-body a {
  color: #C62828;
}

.news-article-body a:hover {
  text-decoration: underline;
}

/* Lists */
.news-article-body ul,
.news-article-body ol {
  padding-left: 24px;
  margin: 0 0 16px;
}

.news-article-body li {
  margin-bottom: 6px;
  line-height: 1.7;
}

/* Blockquote */
.news-article-body blockquote {
  border-left: 4px solid #C62828;
  background: #FFF5F5;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: #374151;
}

/* ── Related posts ── */
.news-related {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  margin-bottom: 24px;
}

.news-related-title {
  background: #C62828;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 10px 16px;
}

.news-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-related-list li {
  border-bottom: 1px solid #F3F4F6;
}

.news-related-list li:last-child {
  border-bottom: none;
}

.news-related-list li a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  line-height: 1.5;
  transition: color .15s, background .15s;
}

.news-related-list li a:hover {
  color: #C62828;
  background: #FFF5F5;
}

/* ── Tablet ── */
@media (max-width: 991px) and (min-width: 768px) {
  .news-detail-layout {
    gap: 16px;
  }

  .news-detail-sidebar {
    flex: 0 0 180px;
    min-width: 180px;
  }

  .news-article {
    padding: 20px 24px;
  }

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

/* ── Mobile: 1 cột, sidebar ẩn ── */
@media (max-width: 767px) {
  .news-detail-layout {
    flex-direction: column;
    gap: 0;
    padding: 12px 0 32px;
  }

  .news-detail-sidebar {
    display: none;
  }

  .news-detail-main {
    width: 100%;
  }

  .news-article {
    padding: 16px;
    border-radius: 8px;
  }

  .news-article-title {
    font-size: 20px;
  }

  .news-article-body {
    font-size: 14px;
    line-height: 1.75;
  }

  .news-article-body img {
    border-radius: 4px;
  }
}

/* ── End T22 ── */
