/* style/news.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */
.page-news {
  background-color: #08160F; /* Nền tối theo tùy chỉnh */
  color: #F2FFF6; /* Chữ sáng cho nền tối */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Chỉ một khoảng cách nhỏ */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-news__hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin-top: -150px; /* Kéo nội dung lên trên hình ảnh để tạo hiệu ứng */
  padding: 40px;
  background: rgba(17, 39, 27, 0.85); /* Card B G với độ trong suốt */
  border-radius: 10px;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 1px solid #2E7A4E;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: #F2FFF6;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-news__cta-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-news__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: #F2FFF6;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  padding-top: 40px;
}

.page-news__section-description {
  font-size: 1.05em;
  color: #A7D9B8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-news__featured-news-section, .page-news__promotions-section, .page-news__guides-section, .page-news__faq-section, .page-news__cta-bottom-section {
  padding: 60px 0;
}

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

.page-news__article-card, .page-news__promotion-card, .page-news__guide-card {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E;
  display: flex;
  flex-direction: column;
}

.page-news__article-card:hover, .page-news__promotion-card:hover, .page-news__guide-card:hover {
  transform: translateY(-5px);
}

.page-news__article-thumbnail, .page-news__promotion-thumbnail, .page-news__guide-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-news__article-content, .page-news__promotion-content, .page-news__guide-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__article-title, .page-news__promotion-title, .page-news__guide-title {
  font-size: 1.4em;
  color: #F2FFF6;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a, .page-news__promotion-title a, .page-news__guide-title a {
  color: #F2FFF6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover, .page-news__promotion-title a:hover, .page-news__guide-title a:hover {
  color: #57E38D; /* Glow */
}

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

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

.page-news__read-more {
  display: inline-block;
  color: #2AD16F; /* Nút xanh */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-news__read-more:hover {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

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

.page-news__view-all-button {
  padding: 12px 25px;
  font-size: 1.1em;
}

.page-news__btn-secondary {
  background: transparent;
  border: 2px solid #2AD16F; /* Nút xanh */
  color: #2AD16F;
}

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

.page-news__cta-bottom-section .page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* FAQ Section */
.page-news__faq-list {
  margin-top: 40px;
}

.page-news__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-news__faq-question::-webkit-details-marker {
  display: none;
}

.page-news__faq-question:hover {
  background-color: #13994A;
}

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

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

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-news__faq-item[open] .page-news__faq-question {
  background-color: #13994A;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -100px;
    padding: 30px;
  }

  .page-news__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

  .page-news__articles-grid, .page-news__promotions-grid, .page-news__guides-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__container {
    padding: 0 15px !important;
  }

  .page-news__hero-section {
    padding-bottom: 40px;
  }

  .page-news__hero-content {
    margin-top: -80px;
    padding: 25px;
    max-width: 95%;
  }

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

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

  .page-news__cta-button {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-news__section-title {
    font-size: clamp(1.6em, 5vw, 2.2em);
    padding-top: 30px;
  }

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

  .page-news__featured-news-section, .page-news__promotions-section, .page-news__guides-section, .page-news__faq-section, .page-news__cta-bottom-section {
    padding: 40px 0;
  }

  .page-news__articles-grid, .page-news__promotions-grid, .page-news__guides-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-thumbnail, .page-news__promotion-thumbnail, .page-news__guide-thumbnail {
    height: 180px;
  }

  .page-news__article-content, .page-news__promotion-content, .page-news__guide-content {
    padding: 20px;
  }

  .page-news__article-title, .page-news__promotion-title, .page-news__guide-title {
    font-size: 1.2em;
  }

  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  .page-news__cta-bottom-section .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* 移动端强制适配图片 */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section, .page-news__card, .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-news__hero-section {
    padding-top: 10px !important; /* body đã承担 --header-offset */
  }

  /* 移动端强制适配按钮 */
  .page-news__cta-button,
  .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;
    padding-right: 15px;
  }
  
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }

  .page-news__cta-buttons {
    flex-direction: column !important;
  }
}