/* style/news.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không được thêm padding-top tương tự */
.page-news {
  font-family: Arial, sans-serif;
  color: var(--text-main, #F2FFF6); /* Mặc định là màu Text Main */
  background-color: var(--bg-color, #08160F); /* Mặc định là màu Background */
  line-height: 1.6;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Đảm bảo hình ảnh trên, nội dung dưới */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Khoảng cách dưới nội dung */
  padding-top: 10px; /* Đảm bảo khoảng cách nhỏ với header, body đã xử lý offset chính */
  overflow: hidden; /* Ngăn tràn ảnh */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Giới hạn chiều cao của ảnh hero */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Khoảng cách giữa ảnh và nội dung */
}

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

.page-news__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1; /* Đảm bảo nội dung hiển thị trên ảnh (nếu có lớp phủ) */
}

.page-news__hero-title {
  font-size: clamp(2em, 4vw, 3em); /* Sử dụng clamp để kiểm soát kích thước H1 */
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-cta {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Màu nút */
  color: #ffffff; /* Luôn dùng màu trắng cho chữ nút chính */
  border: none;
}

.page-news__hero-cta:hover {
  opacity: 0.9;
}

/* General Container */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-news__section-title {
  font-size: 2.5em;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 60px 0;
  background-color: var(--bg-color, #08160F);
}

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

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

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__news-card-image {
  width: 100%;
  height: 220px; /* Kích thước tối thiểu 200px */
  object-fit: cover;
  display: block;
}

.page-news__news-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__news-card-date {
  font-size: 0.9em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 10px;
}

.page-news__news-card-title {
  font-size: 1.4em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: bold;
}

.page-news__news-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
  color: var(--glow, #57E38D); /* Màu Glow */
}

.page-news__news-card-excerpt {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__news-card-readmore {
  display: inline-block;
  color: var(--glow, #57E38D); /* Màu Glow */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__news-card-readmore:hover {
  text-decoration: underline;
}

.page-news__view-all-button-wrapper {
  text-align: center;
}

.page-news__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: transparent;
  color: var(--glow, #57E38D); /* Màu Glow */
  border: 2px solid var(--glow, #57E38D);
}

.page-news__view-all-button:hover {
  background-color: var(--glow, #57E38D);
  color: #11271B; /* Màu chữ tương phản */
}

/* Featured Articles Section */
.page-news__featured-articles-section {
  padding: 60px 0;
  background-color: var(--deep-green, #0A4B2C); /* Màu Deep Green */
}

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

.page-news__article-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-card-title {
  font-size: 1.5em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: bold;
}

.page-news__article-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-card-title a:hover {
  color: var(--glow, #57E38D);
}

.page-news__article-card-excerpt {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: var(--bg-color, #08160F);
}

.page-news__cta-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-news__cta-content {
  flex: 1;
  text-align: left;
}

.page-news__cta-title {
  font-size: 2.8em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__cta-description {
  font-size: 1.2em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-news__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên di động */
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.3s ease;
  box-sizing: border-box; /* Đảm bảo padding và border không làm tăng kích thước */
  white-space: normal; /* Cho phép chữ xuống dòng */
  word-wrap: break-word; /* Ngắt từ nếu cần */
  text-align: center;
}

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

.page-news__btn-primary:hover {
  opacity: 0.9;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--glow, #57E38D);
}

.page-news__btn-secondary:hover {
  background-color: var(--glow, #57E38D);
  color: #11271B;
}

.page-news__cta-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-news__cta-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: var(--deep-green, #0A4B2C);
}

.page-news__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-news__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--border, #2E7A4E); /* Màu Border */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  list-style: none; /* Ẩn marker mặc định của summary */
}

.page-news__faq-question::-webkit-details-marker {
  display: none; /* Ẩn marker trên Webkit */
}

.page-news__faq-qtext {
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--glow, #57E38D);
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: clamp(2em, 5vw, 2.5em);
  }

  .page-news__cta-container {
    flex-direction: column;
    text-align: center;
  }

  .page-news__cta-content {
    text-align: center;
  }

  .page-news__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 40px;
  }

  .page-news__hero-image-wrapper {
    max-height: 300px;
  }

  .page-news__hero-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
  }

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

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

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

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

  .page-news__cta-section {
    padding: 60px 0;
  }

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

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

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  /* Mobile Image/Video/Button Responsive Adaptaion */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news video,
  .page-news__video { /* Nếu có video */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__video-section, /* Nếu có video */
  .page-news__video-container, /* Nếu có video */
  .page-news__video-wrapper, /* Nếu có video */
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ngăn tràn nội dung */
  }

  /* Video section top padding for mobile */
  .page-news__video-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset, chỉ cần một khoảng cách nhỏ */
  }

  /* Buttons on mobile */
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Thêm padding ngang cho nút */
    padding-right: 15px;
  }

  .page-news__cta-buttons {
    flex-direction: column !important; /* Xếp chồng các nút */
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-section {
    padding-top: 5px;
  }
  .page-news__hero-title {
    font-size: clamp(1.6em, 8vw, 2em);
  }
  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 0 20px 15px;
  }
}