/* style/news.css */
/* 
 * Trang Tin Tức - pg99 Nhà Cái
 * Màu sắc chủ đạo: #017439 (Xanh lá đậm)
 * Màu phụ: #FFFFFF (Trắng)
 * Nền: #FFFFFF
 * Nút Đăng Ký/Đăng Nhập: #C30808
 * Font Đăng Ký/Đăng Nhập: #FFFF00
 *
 * Yêu cầu BEM: Tất cả các class phải sử dụng tiền tố .page-news__
 * Yêu cầu Contrast: Đảm bảo độ tương phản WCAG AA (4.5:1)
 * Yêu cầu Responsive: Hình ảnh/Video/Nút phải responsive trên mobile
 * Yêu cầu Header Offset: Sử dụng var(--header-offset)
 * Yêu cầu Hình ảnh: Không dùng filter, kích thước tối thiểu 200x200
 */

/* ==========================================================================
   Cấu trúc chung của trang Tin Tức
   ========================================================================== */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Màu chữ mặc định cho nền sáng */
  background-color: #FFFFFF; /* Nền trang mặc định */
  padding-top: var(--header-offset, 120px); /* Đảm bảo không bị header cố định che */
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-news__section-title {
  font-size: 2.5em;
  color: #017439; /* Màu chủ đạo */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Phần Hero Section
   ========================================================================== */
.page-news__hero-section {
  display: flex;
  flex-direction: row; /* Desktop: image on right, content on left */
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.page-news__dark-bg {
  background-color: #017439; /* Màu nền xanh đậm */
  color: #FFFFFF; /* Chữ trắng cho nền đậm */
}

.page-news__light-bg {
  background-color: #FFFFFF; /* Nền trắng */
  color: #333333; /* Chữ đen cho nền sáng */
}

.page-news__hero-content {
  flex: 1;
  padding: 0 40px;
  max-width: 600px;
  z-index: 1;
}

.page-news__hero-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-news__hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên mobile */
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  max-width: 100%; /* Đảm bảo responsive trên mobile */
  box-sizing: border-box;
  white-space: normal; /* Cho phép chữ xuống dòng */
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: #C30808; /* Màu đỏ cho Đăng Ký/Đăng Nhập */
  color: #FFFF00; /* Màu vàng cho chữ */
  border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-news__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439;
}

.page-news__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  z-index: 0;
  min-width: 200px; /* Tối thiểu 200px */
}

.page-news__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Tối thiểu 200px */
  min-height: 200px; /* Tối thiểu 200px */
}