/* style/news.css */
/* body đã có padding-top: var(--header-offset); nên các section đầu tiên trong main chỉ cần padding-top nhỏ */
.page-news {
  background-color: #08160F; /* Nền chính của trang */
  color: #F2FFF6; /* Màu chữ chính */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ hơn để tránh đúp với body padding-top */
  background-color: #08160F;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px;
}

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

.page-news__hero-content {
  max-width: 900px;
  margin-top: -80px; /* Kéo nội dung lên trên ảnh một chút cho hiệu ứng thị giác */
  padding: 30px;
  background-color: #11271B; /* Nền card BG */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 10;
  position: relative;
}

.page-news__main-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); /* Sử dụng clamp cho responsive H1 */
  font-weight: 700;
  color: #F2C14E; /* Màu Gold */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

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

.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 di động */
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Đảm bảo nút không tràn */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Nút chính */
  color: #F2FFF6; /* Màu Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background: transparent;
  color: #57E38D; /* Màu Glow */
  border: 2px solid #57E38D; /* Màu Glow cho border */
}

.page-news__btn-secondary:hover {
  background: #57E38D;
  color: #08160F; /* Màu nền chính */
  border-color: #57E38D;
  transform: translateY(-2px);
}

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

.page-news__section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #F2C14E; /* Màu Gold */
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #2E7A4E; /* Màu Border */
  border-radius: 2px;
}

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

.page-news__latest-articles-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Màu Deep Green */
}

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

.page-news__article-card {
  background-color: #11271B; /* Màu Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  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 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  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.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__article-title a {
  color: #F2FFF6; /* Màu Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-news__article-date {
  font-size: 0.9rem;
  color: #A7D9B8; /* Màu Text Secondary */
  margin-bottom: 15px;
  display: block;
}

.page-news__article-excerpt {
  font-size: 0.95rem;
  color: #A7D9B8; /* Màu Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #57E38D; /* Màu Glow */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more:hover {
  color: #F2C14E; /* Màu Gold */
  text-decoration: underline;
}

.page-news__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-news__industry-insights-section {
  padding: 80px 0;
  background-color: #08160F; /* Màu nền chính */
}

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

.page-news__insight-item {
  background-color: #11271B; /* Màu Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  padding-bottom: 20px;
}

.page-news__insight-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-news__insight-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #F2FFF6; /* Màu Text Main */
  padding: 0 20px;
  margin-bottom: 10px;
}

.page-news__insight-text {
  font-size: 1rem;
  color: #A7D9B8; /* Màu Text Secondary */
  padding: 0 20px;
}

.page-news__promotions-events-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Màu Deep Green */
}

.page-news__promotions-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  gap: 20px;
}

.page-news__promotion-item {
  background-color: #11271B; /* Màu Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  border-left: 5px solid #F2C14E; /* Màu Gold */
}

.page-news__promotion-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #F2FFF6; /* Màu Text Main */
  margin-bottom: 10px;
}

.page-news__promotion-text {
  font-size: 1rem;
  color: #A7D9B8; /* Màu Text Secondary */
  margin-bottom: 15px;
}

.page-news__about-vn188-section {
  padding: 80px 0;
  background-color: #08160F; /* Màu nền chính */
}

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

.page-news__feature-item {
  text-align: center;
  background-color: #11271B; /* Màu Card BG */
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-news__feature-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(87, 227, 141, 0.5)); /* Sử dụng glow cho icon */
}

.page-news__feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2FFF6; /* Màu Text Main */
  margin-bottom: 10px;
}

.page-news__feature-text {
  font-size: 0.95rem;
  color: #A7D9B8; /* Màu Text Secondary */
}

.page-news__faq-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Màu Deep Green */
}

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

.page-news__faq-item {
  background-color: #11271B; /* Màu Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden; /* For details tag */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #F2FFF6; /* Màu Text Main */
  cursor: pointer;
  background-color: #11271B;
  border-bottom: 1px solid #1E3A2A; /* Màu Divider */
}

.page-news__faq-item[open] .page-news__faq-question {
  border-bottom: 1px solid #2E7A4E; /* Màu Border khi mở */
}

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

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Màu Text Secondary */
  background-color: #08160F; /* Màu nền chính */
}

.page-news__faq-answer p {
  margin: 0;
  color: #A7D9B8; /* Đảm bảo màu chữ trong p */
}

/* Remove default details marker */
.page-news__faq-item summary {
  list-style: none;
}
.page-news__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-news__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%);
}

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

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }

  .page-news__hero-content {
    margin-top: -40px;
    padding: 20px;
  }

  .page-news__main-title {
    font-size: 1.8rem;
  }

  .page-news__description {
    font-size: 1rem;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__container {
    padding: 30px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__section-title {
    font-size: 1.8rem;
  }

  .page-news__section-description {
    font-size: 0.95rem;
  }

  .page-news__articles-grid,
  .page-news__insights-grid,
  .page-news__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__article-title {
    font-size: 1.1rem;
  }

  .page-news__article-excerpt,
  .page-news__insight-text,
  .page-news__promotion-text,
  .page-news__feature-text,
  .page-news__faq-answer {
    font-size: 0.9rem;
  }

  .page-news__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  /* Force responsive images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all image containers are responsive */
  .page-news__hero-image-wrapper,
  .page-news__article-card,
  .page-news__insight-item,
  .page-news__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Specific padding for responsive containers */
  .page-news__latest-articles-section,
  .page-news__industry-insights-section,
  .page-news__promotions-events-section,
  .page-news__about-vn188-section,
  .page-news__faq-section,
  .page-news__cta-final-section {
    padding: 40px 0 !important;
  }
}

@media (max-width: 480px) {
  .page-news__hero-content {
    margin-top: -20px;
    padding: 15px;
  }

  .page-news__main-title {
    font-size: 1.5rem;
  }

  .page-news__section-title {
    font-size: 1.5rem;
  }
}