/* ===========================
   NEWS CSS - TIN TỨC
   =========================== */

/* ===========================
   NEWS CATEGORY BANNER - FULL BACKGROUND
   =========================== */

.news-category-banner {
  position: relative;
  background-color: var(--grey);
}

.news-category-banner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.news-category-banner .banner {
  position: relative;
  width: 100%;
}

/* .news-category-banner .banner::after {
  background: url("../images/bg-banner-cam.png") top left repeat;
  background-repeat: round;
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
} */

.news-category-banner .banner-name {
  color: var(--white);
  position: absolute;
  font-size: 40px;
  font-weight: 700;
  top: calc(50% - 45px);
  left: 60px;
  text-transform: uppercase;
  z-index: 3;
  margin-top: 35px;
}

.news-category-banner .banners-item {
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.news-category-banner .banners-item img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
}

.news-category-banner .banner-tabs-wrapper {
  background: #f7a74d;
  padding: 0;
  margin-top: 0;
}

.news-category-banner .banner-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  justify-content: center;
}

.news-category-banner .tab-item {
  padding: 18px 25px;
  background: transparent;
  color: #ddd0d0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.3s;
  white-space: nowrap;
}

.news-category-banner .tab-item:hover {
  color: #ffffff;
}

.news-category-banner .tab-item.active {
  color: #ffffff;
}

/* ===========================
   BÀI VIẾT NỔI BẬT RIÊNG
   =========================== */

.my-featured-news {
  height: 600px;
  background: #f1f1f1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.my-featured-news-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* TITLE */
.my-featured-news-content {
  padding: 20px;
  flex-shrink: 0;
}

.my-featured-news-title {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #333;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.my-featured-news-image {
  flex: 1;
  width: 100%;
  overflow: hidden;
}

/* IMG FULL */
.my-featured-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* HOVER */
.my-featured-news-link:hover .my-featured-news-image img {
  transform: scale(1.05);
}

/* ===========================
   BÀI VIẾT NỔI BẬT
   =========================== */

.featured-news {
  /* height: 100%; */
  height: 500px !important;
  background: #f1f1f1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.featured-news-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  height: 100%;
  align-items: stretch;
}

.featured-news-image {
  flex: 0 0 50%;
  overflow: hidden;
}

.featured-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.featured-news-link:hover .featured-news-image img {
  transform: scale(1.05);
}

.featured-news-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.featured-news-category {
  color: #eb5f00;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.featured-news-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  color: #333;
  flex-shrink: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-news-meta {
  margin-bottom: 20px;
  flex-shrink: 0;
}

.featured-news-date {
  color: #999;
  font-size: 14px;
}

.featured-news-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: break-word;
}

.featured-news-category-top {
  color: #000000;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

/* ===========================
   NEWS PAGE - DANH SÁCH TIN TỨC
   =========================== */

.news-section {
  padding: 60px 0;
  background: #fff;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  position: relative;
  padding-left: 20px;
  text-align: start;
  margin-top: 20px;
}

.section-title .title-bar {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 30px;
  background: #eb5f00;
}

/* Grid Layout */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

/* News Item */
.news-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.news-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Thumbnail */
.news-thumbnail {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item:hover .news-thumbnail img {
  transform: scale(1.05);
}

/* Content */
.news-content {
  padding: 20px;
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.news-item:hover .news-title {
  color: #eb5f00;
}

/* Meta */
.news-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #999;
}

.news-category {
  color: #eb5f00;
  font-weight: 500;
}

/* Excerpt */
.news-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================
   SINGLE NEWS - TRANG CHI TIẾT TIN TỨC (2 CỘT)
   =========================== */

.single-news-page {
  background: #f9f9f9;
  padding: 40px 0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

.breadcrumb a {
  color: #d41317;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 8px;
}

/* Layout 2 cột: Bài viết (70%) + Sidebar (30%) */
.single-news-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
}

/* ========== BÊN TRÁI: Nội dung bài viết ========== */
.news-main-content {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Header */
.article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.article-title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  margin-bottom: 15px;
  text-align: justify;
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #999;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Thumbnail */
.article-thumbnail {
  margin: 30px 0;
}

.article-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Content */
.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 40px;
  text-align: justify;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #333;
  font-weight: 600;
}

.article-content h2 {
  font-size: 26px;
}

.article-content h3 {
  font-size: 22px;
}

.article-content img {
  display: block;
  margin: 20px auto;
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-content ul,
.article-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content a {
  color: #d41317;
  text-decoration: underline;
}

.article-content a:hover {
  color: #a00f12;
}

/* ========== BÊN PHẢI: Sidebar Tin nội bật ========== */
.news-sidebar {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 20px;
}

.sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid #d41317;
}

.sidebar-news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-news-item {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 20px;
}

.sidebar-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-news-link {
  display: flex;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.sidebar-news-link:hover {
  opacity: 0.8;
}

.sidebar-news-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 75px;
  overflow: hidden;
  border-radius: 6px;
}

.sidebar-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.sidebar-news-link:hover .sidebar-news-thumb img {
  transform: scale(1.05);
}

.sidebar-news-info {
  flex: 1;
}

.sidebar-news-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  margin: 0;
  max-height: calc(1.4em * 3);
}

.sidebar-news-link:hover .sidebar-news-title {
  color: #d41317;
}

/* ==== CSS riêng cho News Grid ==== */
.news-grid-custom .service-title {
  font-size: 11px;
  /* Giới hạn 2 dòng */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  text-align: justify;
  padding: 0 10px;
}

.news-grid-custom .service-overlay p {
  font-size: 12px;
}

.news-grid-custom .service-details {
  font-size: 12px;
  padding: 0 15px;
  text-align: justify;
}

.news-grid-custom .service-details ul li,
.news-grid-custom .service-details ol li {
  font-size: 12px;
}
