/* style/news.css */
/* body đã padding-top: var(--header-offset)；trang này KHÔNG được viết lại biến đó */
.page-news {
  color: #F2FFF6; /* Text Main cho nền tối */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #08160F; /* Nền chính */
}

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding for hero section */
}

.page-news__hero-image-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-news__hero-content {
  max-width: 800px;
  padding: 0 20px;
  z-index: 1;
}

.page-news__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-news__section {
  padding: 60px 0;
}

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

.page-news__section-title {
  font-size: 2.5rem;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__article-card,
.page-news__promo-card {
  background: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  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,
.page-news__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-news__article-image,
.page-news__promo-image {
  width: 100%;
  height: 200px; /* Chiều cao cố định cho hình ảnh thẻ */
  object-fit: cover;
  display: block;
}

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

.page-news__article-title,
.page-news__promo-title {
  font-size: 1.3rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-news__article-meta {
  font-size: 0.9rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-news__article-excerpt,
.page-news__promo-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-news__read-more {
  display: inline-block;
  color: #2AD16F; /* Màu xanh lá cây sáng */
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-top: auto; /* Đẩy nút xuống dưới cùng */
}

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

.page-news__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-news__cta-button--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button--primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-news__cta-button--secondary {
  background: transparent;
  color: #2AD16F; /* Màu xanh lá cây sáng */
  border: 2px solid #2AD16F;
}

.page-news__cta-button--secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
}

.page-news__cta-button--small {
  padding: 8px 15px;
  font-size: 0.9rem;
  margin-top: auto; /* Đẩy nút xuống dưới cùng trong thẻ khuyến mãi */
}

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

.page-news__featured-video {
  background: #0A4B2C; /* Deep Green */
  padding: 80px 0;
}

.page-news__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Tỷ lệ khung hình 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 30px;
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-news__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

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

.page-news__industry-updates {
  background: #08160F; /* Background color cho phần tối */
  padding: 80px 0;
}

.page-news__dark-section .page-news__section-title {
  color: #F2C14E; /* Gold */
}

.page-news__dark-section .page-news__section-description {
  color: #A7D9B8; /* Text Secondary */
}

.page-news__update-list {
  display: grid;
  gap: 40px;
}

.page-news__update-item {
  background: #11271B; /* Card B G */
  border-radius: 10px;
  padding: 30px;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__update-title {
  font-size: 1.5rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-news__update-meta {
  font-size: 0.9rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-news__update-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

.page-news__promotions-news {
  background: #0A4B2C; /* Deep Green */
}

.page-news__promo-card {
  display: flex;
  flex-direction: column;
}

.page-news__faq-section {
  background: #11271B; /* Card B G, hơi sáng hơn nền chính để tạo độ tương phản */
  color: #F2FFF6; /* Text Main */
  padding: 80px 0;
}

.page-news__faq-section .page-news__section-title {
  color: #F2C14E; /* Gold */
}

.page-news__faq-section .page-news__section-description {
  color: #A7D9B8; /* Text Secondary */
}

.page-news__faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-news__faq-item {
  background: #08160F; /* Background */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-news__faq-item[open] {
  background: #0A4B2C; /* Deep Green */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  list-style: none; /* Xóa dấu mặc định cho summary */
}

.page-news__faq-question::-webkit-details-marker {
  display: none; /* Ẩn dấu mặc định cho trình duyệt webkit */
}

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

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #F2C14E; /* Gold */
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

.page-news__faq-answer p {
  margin: 0;
}

.page-news__cta-section {
  background: linear-gradient(90deg, #11A84E, #22C768); /* Brand gradient */
  padding: 60px 0;
  text-align: center;
}

.page-news__cta-container {
  max-width: 800px;
}

.page-news__cta-title {
  font-size: 2.2rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__cta-description {
  font-size: 1.1rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-content {
    max-width: 700px;
  }
  .page-news__main-title {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
  }
  .page-news__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 30px;
  }
  .page-news__main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  .page-news__description {
    font-size: 1rem;
  }
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__section-title {
    font-size: 1.8rem;
  }
  .page-news__section-description {
    font-size: 1rem;
  }
  .page-news__article-grid,
  .page-news__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-image,
  .page-news__promo-image {
    height: 180px;
  }
  .page-news__article-title,
  .page-news__promo-title {
    font-size: 1.2rem;
  }
  .page-news__update-title {
    font-size: 1.3rem;
  }

  /* Mobile button responsive styles */
  .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;
    display: flex !important; /* Ensure flex context for wrap */
    flex-direction: column; /* Stack buttons vertically */
  }

  /* Mobile image and video responsive styles */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news video,
  .page-news__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,
  .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-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio */
  }
  .page-news__video-section {
    padding-top: 10px !important; /* Small top padding */
  }
}

@media (max-width: 480px) {
  .page-news__hero-content {
    padding: 0 10px;
  }
  .page-news__main-title {
    font-size: clamp(1.2rem, 7vw, 2rem);
  }
  .page-news__section-title {
    font-size: 1.5rem;
  }
  .page-news__cta-title {
    font-size: 1.8rem;
  }
  .page-news__cta-description {
    font-size: 0.95rem;
  }
  .page-news__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 0 20px 15px;
  }
}

/* Color contrast enforcement */
/* Đảm bảo độ tương phản màu sắc cho văn bản trên nền tối */
.page-news p,
.page-news li,
.page-news__description,
.page-news__section-description,
.page-news__article-excerpt,
.page-news__promo-text,
.page-news__update-text,
.page-news__faq-answer p {
  color: #A7D9B8; /* Text Secondary cho văn bản chung trên nền tối */
}

.page-news__cta-description {
  color: #F2FFF6; /* Text Main cho mô tả CTA trên gradient sáng */
}

/* Các phần tử văn bản cụ thể trên nền tối */
.page-news__article-title,
.page-news__promo-title,
.page-news__update-title,
.page-news__faq-question .page-news__faq-qtext,
.page-news__cta-title {
  color: #F2FFF6; /* Text Main cho tiêu đề trên nền tối */
}

/* Các phần tử màu vàng */
.page-news__main-title,
.page-news__section-title,
.page-news__faq-toggle {
  color: #F2C14E; /* Gold */
}

/* Các phần tử màu xanh lá cây nhấn */
.page-news__read-more,
.page-news__cta-button--secondary {
  color: #2AD16F;
}
.page-news__cta-button--secondary:hover {
  color: #F2FFF6;
}

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