/* style/news.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */
.page-news {
  background-color: var(--bg, #08160F); /* Màu nền chính cho body */
  color: var(--text-main, #F2FFF6); /* Màu chữ chính cho nền tối */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 40px;
  box-sizing: border-box;
}

/* Đảm bảo các tiêu đề và đoạn văn kế thừa màu chữ chính hoặc được đặt rõ ràng */
.page-news h1,
.page-news h2,
.page-news h3,
.page-news h4,
.page-news h5,
.page-news h6 {
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
}

.page-news p {
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 15px;
}

.page-news a {
  color: #57E38D; /* Màu Glow cho liên kết */
  text-decoration: none;
}

.page-news a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Khoảng đệm trên nhỏ, body xử lý offset của header */
  background-color: #08160F;
  color: #F2FFF6;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.page-news__hero-image-wrapper {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-news__hero-content {
  max-width: 900px;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Kích thước font chữ linh hoạt */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6;
}

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

.page-news__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên màn hình nhỏ hơn */
  width: 100%;
  box-sizing: border-box;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
}

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-news__btn-secondary:hover {
  background: #11A84E;
  color: #F2FFF6;
  transform: translateY(-2px);
}

/* General Section Styling */
.page-news__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-news__section-intro {
  text-align: center;
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__latest-articles,
.page-news__featured-news,
.page-news__faq-section,
.page-news__cta-banner {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Articles Grid */
.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-news__article-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-news__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__article-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: #F2FFF6; /* Màu chữ chính cho tiêu đề */
  text-decoration: none;
}

.page-news__article-title a:hover {
  color: #57E38D; /* Màu Glow khi di chuột */
}

.page-news__article-meta {
  font-size: 0.85em;
  color: #A7D9B8; /* Màu chữ phụ */
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 0.95em;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more-btn:hover {
  background-color: #1E3A2A; /* Màu Divider cho hover */
}

.page-news__view-all-btn-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Featured News */
.page-news__featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.page-news__featured-main {
  background-color: #11271B;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding-bottom: 20px; /* Thêm khoảng đệm dưới nội dung */
}

.page-news__featured-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.page-news__featured-title {
  font-size: 1.6em;
  font-weight: 700;
  margin: 20px 20px 10px;
  line-height: 1.3;
}

.page-news__featured-title a {
  color: #F2FFF6;
  text-decoration: none;
}

.page-news__featured-title a:hover {
  color: #57E38D;
}

.page-news__featured-excerpt {
  font-size: 1em;
  color: #A7D9B8;
  margin: 0 20px 20px;
}

.page-news__featured-main .page-news__read-more-btn {
  margin-left: 20px;
}

.page-news__featured-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-news__sidebar-card {
  background-color: #11271B;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 20px;
  flex-grow: 1;
}

.page-news__sidebar-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__sidebar-title a {
  color: #F2FFF6;
  text-decoration: none;
}

.page-news__sidebar-title a:hover {
  color: #57E38D;
}

.page-news__sidebar-meta {
  font-size: 0.8em;
  color: #A7D9B8;
  margin-bottom: 10px;
}

.page-news__sidebar-excerpt {
  font-size: 0.9em;
  color: #A7D9B8;
  margin-bottom: 15px;
}

/* FAQ Section */
.page-news__faq-list {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #1E3A2A; /* Màu Divider */
  padding-bottom: 15px;
}

.page-news__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  color: #F2FFF6;
  padding: 10px 0;
  list-style: none; /* Cho thẻ <summary> */
}

.page-news__faq-question::-webkit-details-marker {
  display: none; /* Cho thẻ <summary> */
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Màu Glow */
}

.page-news__faq-answer {
  font-size: 1em;
  color: #A7D9B8;
  padding: 10px 0 0;
  line-height: 1.5;
}

/* CTA Banner */
.page-news__cta-banner {
  text-align: center;
  background: linear-gradient(90deg, #11A84E 0%, #22C768 100%);
  border-radius: 12px;
  padding: 50px 30px;
  margin-top: 60px;
  color: #F2FFF6;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  box-sizing: border-box;
}

.page-news__cta-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #F2FFF6;
}

.page-news__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #F2FFF6;
}

.page-news__cta-banner .page-news__btn-primary {
  background: #0A4B2C; /* Deep Green cho độ tương phản */
  border: 2px solid #57E38D; /* Viền màu Glow */
  color: #F2FFF6;
}

.page-news__cta-banner .page-news__btn-primary:hover {
  background: #1E3A2A; /* Màu Divider cho hover */
  border-color: #F2FFF6;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__featured-grid {
    grid-template-columns: 1fr;
  }
  .page-news__featured-main {
    margin-bottom: 30px;
  }
  .page-news__hero-content {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 20px 15px;
    padding-top: 10px !important;
  }

  .page-news__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-news__hero-description {
    font-size: 1em;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    min-width: unset;
    padding: 12px 15px;
  }

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-news__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-news__latest-articles,
  .page-news__featured-news,
  .page-news__faq-section,
  .page-news__cta-banner {
    padding: 40px 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }

  .page-news__article-image {
    height: 180px;
  }

  .page-news__featured-image {
    max-height: 250px;
  }

  .page-news__cta-title {
    font-size: 1.5em;
  }

  .page-news__cta-description {
    font-size: 0.95em;
  }

  /* Image responsiveness for mobile */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsiveness for mobile - if any */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__video-section {
    padding-top: 10px !important;
  }

  /* Container padding for mobile */
  .page-news__hero-content,
  .page-news__articles-grid,
  .page-news__featured-grid,
  .page-news__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__faq-list {
    padding: 20px 15px;
  }
  .page-news__faq-question {
    font-size: 1em;
  }
  .page-news__faq-answer {
    font-size: 0.95em;
  }
}