/* style/news.css */
/* 
 * Trang Tin Tức (News Page)
 * Tông màu chủ đạo: #017439 (xanh lá đậm) và #FFFFFF (trắng)
 * Body background: #000000 (đen) - Văn bản chính sẽ là màu trắng để đảm bảo độ tương phản
 */

/* Thiết lập cơ bản cho trang Tin Tức */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Mặc định văn bản trắng trên nền body đen */
  background-color: #000000; /* Body background */
  overflow-x: hidden; /* Ngăn chặn cuộn ngang */
}

/* Các phần chung */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Nút CTA chung */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__btn-tertiary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Cho phép xuống dòng */
  word-wrap: break-word; /* Cho phép ngắt từ */
  max-width: 100%;
}

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

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

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

.page-news__btn-secondary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-news__btn-tertiary {
  background-color: #017439; /* Màu xanh lá đậm cho Tải Ứng Dụng */
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-news__btn-tertiary:hover {
  background-color: #005f2c;
  border-color: #005f2c;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #017439; /* Deep green background for hero */
  color: #ffffff; /* White text for hero */
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3; /* Overlay effect */
}

.page-news__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__intro-text {
  font-size: 1.3em;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-news__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Featured News Section */
.page-news__featured-news-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* White background */
  color: #333333; /* Dark text for contrast */
}

.page-news__featured-news-section .page-news__section-title,
.page-news__featured-news-section .page-news__section-description {
  color: #333333; /* Dark text */
}

.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}