/* ==========================================================================
   Sunme — News (G3; G5C thiết kế lại theo bố cục DIWE, ảnh D)
   Chương KIẾN THỨC. KHÔNG kicker, KHÔNG mở bài. Nền trắng + divider.
   Header: H2 trái + nút pill đỏ "Xem thêm ↗" góc phải.
   Trang chủ: slider Swiper 3/2/1 thẻ (xem news.js), thẻ dạng 'flat'
   editorial — không viền, số ngày lớn không ô nền, vạch dọc ngăn tiêu
   đề, tiêu đề clamp 2 dòng. Archive/search/bài liên quan giữ thẻ viền
   cũ (lưới .sunme-news-grid 3/2/1 cột, xem responsive.css).
   G5: thẻ hiển thị featured image 16/9 (fallback ảnh tượng trưng
   placeholder-post.jpg khi bài chưa có ảnh). Bản gradient + icon cũ
   lưu ở evidence/G5/old-news-gradient/.
   H3 17.5px/700 (giữ nguyên đợt 1).
   ========================================================================== */

/* Nền trắng tường minh (hệ nền xen kẽ §4.2 — không dựa vào nền body). */
.sunme-news {
  background-color: var(--white);
}

/* --- Header: H2 trái + nút pill phải --- */
.sunme-news-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-24);
  margin-bottom: var(--space-40);
}

.sunme-news-head h2 {
  margin: 0;
  text-wrap: balance;
}

.sunme-news-head .sunme-btn {
  flex: none;
}

/* --- Lưới archive/search (giữ nguyên G4) --- */
.sunme-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
}

/* --- Thẻ tin tức (dạng viền — archive/search/bài liên quan) --- */
.sunme-news-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

/* G5E: DIWE card không nhấc khi hover — bỏ translateY(-6px). */
.sunme-news-card:hover {
  box-shadow: var(--shadow-lift);
}

/* --- Khu vực ảnh 16/9: featured image, fallback ảnh tượng trưng (G5) --- */
.sunme-news-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.sunme-news-thumb a {
  display: block;
  height: 100%;
}

.sunme-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* G5E: DIWE ảnh tin tức transition all 1s, hover scale 1.1. */
  transition: transform 1s ease;
}

.sunme-news-card:hover .sunme-news-thumb img {
  transform: scale(1.1);
}

/* --- Thân thẻ: meta + ô ngày + H3 link --- */
.sunme-news-body {
  padding: var(--space-24);
}

.sunme-news-meta {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 var(--space-12);
}

.sunme-news-cat {
  color: var(--red-mid);
  font-weight: 600;
}

.sunme-news-row {
  display: flex;
  gap: var(--space-16);
  align-items: flex-start;
}

.sunme-news-date {
  flex: none;
  width: 52px;
  text-align: center;
  background-color: var(--red-soft);
  border: 1px solid var(--red-line);
  border-radius: var(--radius-xs);
  padding: var(--space-8) 0 var(--space-6);
}

.sunme-news-day {
  font-size: 21px;
  font-weight: 700;
  color: var(--red-dark);
  line-height: 1;
}

.sunme-news-month {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: var(--space-2);
  white-space: nowrap;
}

.sunme-news-body h3 {
  margin: 0;
  font-size: var(--fs-h3-news);
  font-weight: 700;
  line-height: 1.4;
}

.sunme-news-body h3 a {
  color: var(--ink-heading);
  text-decoration: none;
}

.sunme-news-body h3 a:hover {
  color: var(--red);
  text-decoration: none;
}

/* --- Dạng 'flat' editorial — slider trang chủ (G5C) --- */
.sunme-news-card--flat {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sunme-news-card--flat:hover {
  transform: none;
  box-shadow: none;
}

.sunme-news-card--flat .sunme-news-body {
  padding: var(--space-16) 0 0;
}

/* Số ngày lớn không ô nền (như mẫu DIWE). */
.sunme-news-card--flat .sunme-news-date {
  width: auto;
  min-width: 56px;
  text-align: left;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.sunme-news-card--flat .sunme-news-day {
  font-size: 41px;
  color: var(--ink-heading);
}

.sunme-news-card--flat .sunme-news-month {
  font-size: 14px;
  margin-top: var(--space-4);
}

/* Vạch dọc ngăn số ngày và tiêu đề. */
.sunme-news-divider {
  width: 1px;
  align-self: stretch;
  flex: none;
  background-color: var(--line);
}

/* Tiêu đề clamp 2 dòng (như mẫu DIWE). */
.sunme-news-card--flat .sunme-news-body h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Slider trang chủ: slide cao bằng nhau, dots dưới giữa --- */
.sunme-news-swiper .swiper-slide {
  height: auto;
}

.sunme-news-pagination {
  position: static;
  margin-top: var(--space-32);
  text-align: center;
}

.sunme-news-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 var(--space-4);
  background-color: var(--chev-muted);
  opacity: 1;
  transition: background-color var(--transition-base),
    transform var(--transition-base);
}

.sunme-news-pagination .swiper-pagination-bullet:hover {
  transform: scale(1.2);
}

.sunme-news-pagination .swiper-pagination-bullet-active {
  background-color: var(--red-mid);
  transform: scale(1.15);
}
