/* news.style.css - Phong cách hiện đại, chuẩn Tesla cho trang tin tức */
:root {
  --primary-orange: #f15725;
  --primary-blue: #393089;
  --gray-light: #f5f6fa;
  --gray-dark: #8a8a8a;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
}
body, button, input, textarea, select, a, h1, h2, h3, h4, h5, h6, strong, b, p, span, div {
  font-family: Inter, Open Sans, Helvetica, Arial, sans-serif !important;
  font-weight: 400;
  letter-spacing: 0;
  padding: 0px;
  margin: 0px;
}
body {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}
strong, b {
  font-weight: 500;
}
a {
  color: var(--primary-blue, #393089);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--primary-orange, #f15725);
  text-decoration: none !important;
}
.btn a, .cta-button a, .tesla-btn-secondary a {
  color: inherit !important;
  text-decoration: none !important;
}
p { margin-bottom: 1em; }
ul, ol { margin-left: 1.5em; margin-bottom: 1em; }
li { margin-bottom: 0.5em; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 8px 12px;
}

.news-hero-container,
.news-featured-list-grid,
.news-list,
.news-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px 64px 24px;
  box-sizing: border-box;
}
.news-search-bar {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.news-search-bar input, .news-search-bar select {
  min-width: 180px;
  max-width: 320px;
  border: none;
  background: var(--gray-light);
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 1rem;
  flex: 1;
}
.news-search-bar button {
  min-width: 48px;
  background: var(--primary-orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.news-search-bar button:hover {
  background: #d94c1a;
}

/* Khối tiêu điểm (featured) full-bleed, background nhẹ */
.news-featured,
.news-featured-grid {
  background: #f8faff;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  max-width: none;
  margin-left: 0;
  transform: none;
  padding-left: 0;
  padding-right: 0;
}
.news-featured-main {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
}

/* Các khối tin bên dưới để background trắng, không gian thoáng */
.news-list {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.news-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Tiêu điểm (featured) */
.news-featured {
  display: flex;
  gap: 40px;
  margin-bottom: 56px;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 32px 32px 32px;
}
.news-featured .news-card-img {
  width: 320px;
  min-width: 220px;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f5f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.news-featured .news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.news-featured-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-featured-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 12px;
  line-height: 1.2;
}
.news-featured-title a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s;
}
.news-featured-title a:hover {
  color: var(--primary-orange);
}
.news-featured-date {
  color: var(--gray-dark);
  font-size: 1rem;
  margin-bottom: 16px;
}
.news-featured-desc {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}

/* Danh sách tin */
.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 340px;
}
.news-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}
.news-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #f5f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}
.news-card-date {
  color: var(--gray-dark);
  font-size: 0.95rem;
  margin: 14px 18px 0 18px;
}
.news-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin: 8px 18px 0 18px;
  line-height: 1.3;
}
.news-card-title a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s;
}
.news-card-title a:hover {
  color: var(--primary-orange);
}
.news-card-desc {
  font-size: 1rem;
  color: #444;
  margin: 8px 18px 18px 18px;
  flex: 1;
  line-height: 1.5;
}

/* Hero và featured-list liền mạch, max-width 1100px, spacing hài hòa, không nền trắng cục bộ */
.news-hero-bg, .news-featured-list-grid, .news-list, .news-container {
  max-width: 1400px; /*Ban đầu cho load ra kích thước lớn thay từ 1100 sang 1400px*/
  margin: 0 auto;
}

/* Layout mới cho featured: 1 bài lớn bên trái, 3 bài nhỏ bên phải */
.news-featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.news-featured-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.news-featured-side .news-card {
  min-height: 120px;
  flex-direction: row;
  align-items: center;
  padding: 12px 8px;
}
.news-featured-side .news-card-img {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 8px;
  margin-right: 12px;
}
.news-featured-side .news-card-title {
  font-size: 1rem;
  margin: 0;
}

.news-hero-bg {
  background: linear-gradient(180deg, #f0f2f5 0%, #fff 100%);
  border-radius: var(--radius);
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
  padding: 40px 24px 32px 24px;
}
.news-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  background: transparent;
  border-radius: var(--radius);
  box-shadow: none;
  margin-bottom: 32px;
  padding: 0;
}
.news-featured-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0;
}
.news-featured-list-grid .news-card {
  background: transparent;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 0 8px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 220px;
}
.news-featured-list-grid .news-card-img {
  width: 100%;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  background: #f8faff;
}
.news-featured-list-grid .news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.news-featured-list-grid .news-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 8px;
  text-align: center;
}
.news-featured-list-grid .news-card-date {
  color: var(--gray-dark);
  font-size: 0.95rem;
  margin-bottom: 8px;
  text-align: center;
}
.news-featured-list-grid .news-card-desc {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
  text-align: center;
}


/* news-list bên dưới nền trắng, không nền phụ, font sans-serif */
.news-list {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 0;
}
.news-card-img {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: none !important;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: none !important;
}

/* Responsive grid cho news-list */
@media (min-width: 1400px) {
  .news-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 40px; }
}
@media (min-width: 900px) and (max-width: 1399px) {
  .news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}
@media (max-width: 599px) {
  .news-list { display: grid; grid-template-columns: 1fr; gap: 16px 0; }
}

/* Mở rộng max-width hero, featured-list, news-list lên 1400px ở desktop lớn */
.news-hero-bg.news-hero-bg-full {
  width: 100vw;
  min-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  position: relative;
  background: linear-gradient(180deg, #f0f2f5 0%, #fff 100%);
  border-radius: 0;
  box-shadow: none;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.news-hero-grid.news-hero-grid-wide {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  margin-bottom: 32px;
  padding: 0;
}
.news-hero-title-big {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary-blue);
  margin-bottom: 18px;
  line-height: 1.15;
  text-align: left;
}
.news-hero-desc-big {
  font-size: 1.25rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 0;
  text-align: left;
}
.news-featured-list-grid .news-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 8px;
  text-align: left;
}
.news-featured-list-grid .news-card-desc {
  font-size: 1.08rem;
  color: #444;
  line-height: 1.5;
  text-align: left;
}
@media (max-width: 900px) {
  .news-hero-title-big { font-size: 2rem; }
  .news-hero-desc-big { font-size: 1.1rem; }
  .news-featured-list-grid .news-card-title { font-size: 1.1rem; }
}
@media (max-width: 600px) {
  .news-hero-title-big { font-size: 1.2rem; }
  .news-hero-desc-big { font-size: 0.98rem; }
  .news-featured-list-grid .news-card-title { font-size: 1rem; }
}
.news-hero-img-big, .news-featured-list-grid .news-card-img, .news-list .news-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f8faff;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-hero-img-big img, .news-featured-list-grid .news-card-img img, .news-list .news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius);
  background: #f8faff;
  display: block;
}
.news-hero-img-big-wrapper {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}
.news-card, .news-featured-list-grid .news-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 0;
  margin: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-4px) scale(1.03);
}
.news-card-title, .news-hero-title-big, .news-featured-list-grid .news-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin: 12px 18px 0 18px;
  line-height: 1.3;
  text-align: left;
}
.news-card-desc, .news-hero-desc-big, .news-featured-list-grid .news-card-desc {
  font-size: 1rem;
  color: #444;
  margin: 8px 18px 18px 18px;
  line-height: 1.4;
  text-align: justify;
}
@media (max-width: 900px) {
  .news-hero-img-big,
  .news-featured-list-grid .news-card-img {
    aspect-ratio: 4/3;
    min-height: 100px;
    max-height: none;
  }
  .news-hero-img-big-wrapper {
    max-width: 100vw;
  }
}
@media (max-width: 600px) {
  .news-hero-img-big,
  .news-featured-list-grid .news-card-img {
    aspect-ratio: 4/3;
    min-height: 80px;
    max-height: none;
  }
  .news-hero-img-big-wrapper {
    max-width: 100vw;
  }
}
/* Xoá mọi height/aspect-ratio 16/9 ở các class ảnh bên dưới */
.news-hero-img-big,
.news-featured-list-grid .news-card-img {
  height: unset !important;
  max-height: unset !important;
  aspect-ratio: 4/3 !important;
} 


/* --- TỐI ƯU TỔNG THỂ TỶ LỆ ẢNH 4:3, XOÁ HEIGHT CỐ ĐỊNH, ĐỒNG BỘ UI/UX --- */
.news-hero-img-big,
.news-featured-list-grid .news-card-img,
.news-list .news-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f8faff;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Xoá mọi height cố định */
}
.news-hero-img-big img,
.news-featured-list-grid .news-card-img img,
.news-list .news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.news-hero-img-big-wrapper {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}
.news-card, .news-featured-list-grid .news-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 0;
  margin: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-4px) scale(1.03);
}
.news-card-title, .news-hero-title-big, .news-featured-list-grid .news-card-title {
  font-size: 1.1rem;
  font-weight: 500 !important;
  color: var(--primary-blue);
  margin: 12px 18px 0 18px;
  line-height: 1.25;
  text-align: left;
}
.news-card-desc, .news-hero-desc-big, .news-featured-list-grid .news-card-desc {
  font-size: 1rem;
  color: #444;
  margin: 8px 18px 18px 18px;
  line-height: 1.5;
  text-align: left;
}
@media (max-width: 900px) {
  .news-hero-img-big,
  .news-featured-list-grid .news-card-img,
  .news-list .news-card-img {
    aspect-ratio: 4/3;
    min-height: 100px;
    max-height: none;
  }
  .news-hero-img-big-wrapper {
    max-width: 100vw;
  }
}
@media (max-width: 600px) {
  .news-hero-img-big,
  .news-featured-list-grid .news-card-img,
  .news-list .news-card-img {
    aspect-ratio: 4/3;
    min-height: 80px;
    max-height: none;
  }
  .news-hero-img-big-wrapper {
    max-width: 100vw;
  }
}
/* Xoá mọi height/aspect-ratio 16/9 ở các class ảnh bên dưới */
.news-hero-img-big,
.news-featured-list-grid .news-card-img,
.news-list .news-card-img {
  height: unset !important;
  max-height: unset !important;
  aspect-ratio: 4/3 !important;
}

/* XÓA KHUNG VIỀN TRẮNG, BO GÓC, SHADOW TOÀN KHỐI TIN TỨC THƯỜNG */
.news-list {
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ĐẢM BẢO ẢNH TIN TỨC NHỎ LUÔN FILL ĐẦY KHUNG HÌNH 4/3, LẤY ĐIỂM GIỮA LÀM TRUNG TÂM */
.news-list .news-card-img {
  width: 100%;
  aspect-ratio: 4/3 !important;
  height: auto;
  min-height: 0;
  max-height: unset;
  background: #f8faff;
  border-radius: 0 !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0 !important;
}
.news-list .news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
  display: block;
  background: #f8faff;
  margin: 0;
  padding: 0;
}

/*Chuyển khối media bên dưới xuống*/
/* Mở rộng container trên màn lớn */
@media (min-width: 1400px) {
  .news-container { max-width: 1600px; }
  .news-list { grid-template-columns: repeat(4, 1fr); gap: 48px 40px; }
  .news-hero-bg, .news-featured-list-grid, .news-list, .news-container {
    max-width: 1400px;
  }
}
@media (max-width: 1200px) {  
  .news-featured-list-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .news-container { padding: 20px 2px 24px 2px; }  
  .news-featured, .news-featured-grid {
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
  }
  .news-featured .news-card-img { width: 100%; height: 240px; }
  .news-card-img { height: 200px; }
}

@media (max-width: 800px) {
  .news-list { grid-template-columns: repeat(2, 1fr); }
  .news-hero-bg, .news-featured-list-grid, .news-list { max-width: 98vw; }
  .news-hero-bg { padding: 16px 4px 8px 4px; }
  .news-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  
}

@media (max-width: 600px) {
  .news-list { grid-template-columns: 1fr; }
  .news-search-bar { flex-direction:column ; gap: 8px; padding: 8px 4px; justify-content: center; align-items: center; }
  .news-featured { padding: 8px; }
  .news-featured-title { font-size: 1rem; }
  .news-featured .news-card-img { height: 180px; }
  .news-card-img { height: 160px; }
  .news-card {margin:6px 0 6px !important;}
  .news-hero-grid, .news-hero-grid-wide {grid-template-columns: 1fr !important;}
  .news-featured-list-grid { grid-template-columns: 1fr; gap: 16px !important;}
}

/* --- CSS CHI TIẾT TIN TỨC (NEWS DETAIL) --- */
.breadcrumb-news {
  font-size: 1rem;
  margin: 24px 0 12px 0;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb-news a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-news a:hover { color: var(--primary-orange); }

.news-cover-wrapper {
  width: 100vw;
  min-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  position: relative;
  max-height: 520px;
  overflow: hidden;
  margin-bottom: 0;
}
.news-cover-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.news-cover-img img {
  width: 100vw;
  min-width: 100vw;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center center;
  border-radius: 0 0 18px 18px;
  display: block;
}
.news-cover-gradient {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.08) 100%);
  z-index: 2;
}
.news-cover-content {
  position: absolute;
  left: 0; bottom: 0; z-index: 3;
  padding: 32px 48px 32px 48px;
  color: #fff;
  max-width: 900px;
}
.news-title {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.news-meta {
  display: flex;
  gap: 18px;
  font-size: 1.08rem;
  color: #e0e0e0;
  align-items: center;
  margin-bottom: 12px;
}
.news-meta i { margin-right: 6px; color: var(--primary-orange); }
.news-share { margin-bottom: 0; }

.news-content-detail {
  max-width: 900px;
  margin: 48px auto 32px auto;
  font-size: 1.18rem;
  line-height: 1.7;
  color: #222;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 48px 32px;
}

.news-related {
  max-width: 1100px;
  margin: 0 auto 48px auto;
  padding: 0 8px;
}
.news-related-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--primary-blue);
}
.news-related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-related-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-related-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-4px) scale(1.03);
}
.news-related-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.news-related-title-item {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--primary-blue);
  padding: 12px 16px 16px 16px;
  text-align: left;
}

/* Responsive */
@media (max-width: 900px) {
  .news-cover-content { padding: 18px 12px; max-width: 100vw; }
  .news-title { font-size: 1.5rem; }
  .news-content-detail { padding: 24px 8px; font-size: 1.05rem; }
  .news-related-list { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  .news-cover-wrapper, .news-cover-img img { border-radius: 0; }
  .news-cover-content { position: static; color: #222; background: none; text-shadow: none; }
  .news-title { color: #222; margin-top: 12px; }
  .news-meta { color: #888; }
  .news-content-detail { padding: 12px 2px; }
}

/* --- TESLA STYLE NEWS DETAIL --- */
.tesla-news-cover {
  width: 100vw;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  position: relative;
  max-height: 520px;
  overflow: hidden;
  margin-bottom: 0;
}
.tesla-news-cover img {
  width: 100vw;
  min-width: 100vw;
  height: auto;
  aspect-ratio: 16/9;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
.tesla-news-title {
  font-size: 2.7rem;
  font-weight: 600;
  margin: 20px 0 18px 0;
  color: var(--primary-blue);
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  /* padding:0 16px 0 16px; */
}
.tesla-news-breadcrumb {
  max-width: 800px;
  margin: 32px auto 0 auto;
  padding-left: 8px;
  padding-right: 8px;
  display: flex;
  align-items: center;
}
/* --- TINH CHỈNH PHONG CÁCH TESLA SANG TRỌNG TỐI GIẢN --- */
.tesla-news-breadcrumb-link {
  border-radius: 8px !important;
  border: 2px solid transparent;
  background: none !important;
  font-weight: 500;
  padding: 7px 18px 7px 14px;
  font-size: 1.08rem;
  color: var(--primary-blue);
  box-shadow: none;
  transition: border 0.2s, color 0.2s, background 0.2s;
  outline: none;
  letter-spacing: 0.01em;
}
.tesla-news-breadcrumb-link:hover, .tesla-news-breadcrumb-link:focus {
  border: 2px solid var(--primary-blue);
  background: #f5f6fa;
  color: var(--primary-blue);
}
.tesla-news-meta {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  color: #888;
  align-items: center;
  margin-bottom: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  /* padding: 0 16px 0 16px; */
  letter-spacing: 0.01em;
}
.tesla-news-meta i { margin-right: 6px; color: var(--primary-orange); }
.tesla-news-content {
  max-width: 800px;
  margin: 0 auto 48px auto;
  font-size: 1rem;
  line-height: 1.6;
  color: #232323;
  background: none;
  border-radius: 0;
  box-shadow: none;
  /* padding: 0 8px; */
  text-align: justify;
  letter-spacing: 0.01em;
}
.tesla-news-share {
  max-width: 800px;
  margin: 0 auto 48px auto;
  padding: 0 8px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.tesla-news-share .a2a_kit {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
.tesla-news-related {
  max-width: 1100px;
  margin: 0 auto 48px auto;
  /* padding: 0 8px; */
}
/* --- TINH CHỈNH KHỐI TIN LIÊN QUAN CHUẨN TESLA --- */
.tesla-news-related-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  justify-items: center;  
  margin-top:20px;
}
.tesla-news-related-card {
  background: #fafbfc;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 0;
  box-shadow: none;
  border: 1px solid #ececec;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
}
.tesla-news-related-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #f5f6fa;
  min-height: 120px;
  max-height: 200px;
}
.tesla-news-related-title {
  font-size: 0.98rem;
  font-weight: 500;
  color: #232323;
  padding: 8px 10px 12px 10px;
  text-align: left;
  letter-spacing: 0.01em;
  min-height: 40px;
}
@media (max-width: 1200px) {
  .tesla-news-related-list {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 900px) {
  .tesla-news-related-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .tesla-news-related-card {
    max-width: 180px;
  }
  .tesla-news-related-title {
    font-size: 0.95rem;
    padding: 7px 8px 10px 8px;
    min-height: 36px;
  }
  .tesla-news-related-card img {
    min-height: 70px;
    max-height: 90px;
  }
  .tesla-news-content{margin-left:8px;margin-right: 8px;}
  .tesla-news-title {font-size: 2.18rem;}
}
@media (max-width: 600px) {
  .tesla-news-related-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .tesla-news-related-card {
    max-width: 100%;
  }
  .tesla-news-related-card img {
    border-radius: 8px 8px 0 0;
    min-height: 120px;
    max-height: 200px;
  }
  .tesla-news-related-title {
    font-size: 0.93rem;
    padding: 6px 6px 8px 6px;
    min-height: 28px;
  }
}
@media (max-width: 400px) {
  .tesla-news-related-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Đảm bảo ảnh, iframe, table trong nội dung bài viết luôn responsive, không tràn layout */
.tesla-news-content img,
.news-content-detail img,
.tesla-news-content iframe,
.news-content-detail iframe {
  max-width: 100%;
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.tesla-news-content img[style*="width"],
.news-content-detail img[style*="width"] {
  width: auto !important;
  max-width: 100% !important;
}
.tesla-news-content table,
.news-content-detail table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}
.tesla-news-content iframe,
.news-content-detail iframe {
  aspect-ratio: 16/9;
  margin: 12px auto;
}

/* --- BLOCK ẢNH 4:3 CHUẨN, ĐỒNG BỘ, KHÔNG LẶP LẠI --- */
.news-card-img, .news-featured-list-grid .news-card-img, .news-hero-img-big {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8faff;
  margin: 0;
  padding: 0;
}
.news-card-img img, .news-featured-list-grid .news-card-img img, .news-hero-img-big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  background: none !important;
  margin: 0;
  padding: 0;
}
/* Responsive: chỉ override khi thực sự cần */
@media (max-width: 900px) {
  .news-card-img, .news-featured-list-grid .news-card-img, .news-hero-img-big {
    aspect-ratio: 4/3;
    min-height: 100px;
  }
}
@media (max-width: 600px) {
  .news-card-img, .news-featured-list-grid .news-card-img, .news-hero-img-big {
    aspect-ratio: 4/3;
    min-height: 80px;
  }
}
/* XÓA TOÀN BỘ RULE height, min-height, max-height, background, border-radius ở các selector ảnh bên dưới (nếu còn) */

@media (max-width: 900px) {
  .tesla-news-title,
  .tesla-news-meta,
  .tesla-news-share,
  .tesla-news-content,
  .tesla-news-related {
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 600px) {
  .tesla-news-title,
  .tesla-news-meta,
  .tesla-news-related {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}
