/* style/news.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */

.page-news {
  background-color: #08160F; /* Nền tối, theo yêu cầu */
  color: #F2FFF6; /* Chữ sáng, tương phản với nền tối */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Hình ảnh trên, văn bản dưới */
  align-items: center;
  padding: 10px 20px 60px; /* Padding top nhỏ, padding bottom lớn */
  box-sizing: border-box;
}

.page-news__hero-image {
  width: 100%;
  max-width: 1200px; /* Giới hạn chiều rộng ảnh */
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 30px; /* Khoảng cách giữa ảnh và nội dung */
}

.page-news__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-news__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 dùng clamp, không fix cứng */
  font-weight: 700;
  line-height: 1.2;
  color: #F2FFF6;
  margin-bottom: 20px;
}

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

.page-news__section {
  padding: 60px 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* Ngăn tràn nội dung */
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page-news__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #13994A, #2AD16F); /* Màu chủ đạo */
  border-radius: 2px;
}

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

.page-news__news-card,
.page-news__guide-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-news__card-image {
  width: 100%;
  height: 200px; /* Chiều cao cố định cho ảnh card */
  object-fit: cover;
  display: block;
}

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

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

.page-news__card-title a {
  color: #F2FFF6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #57E38D; /* Glow color */
}

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

.page-news__card-description {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Đảm bảo nút không tràn */
}

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

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D; /* Glow */
}

.page-news__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow color */
  border: 2px solid #2E7A4E; /* Border color */
}

.page-news__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1); /* Nhẹ nhàng hơn */
  color: #F2FFF6;
  border-color: #57E38D;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên di động */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-news__dark-section {
  background-color: #11271B; /* Card BG, làm nền cho phần an toàn */
  color: #F2FFF6;
}

.page-news__security-section {
  padding: 80px 20px;
}

.page-news__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* Cho phép xuống dòng trên di động */
}

.page-news__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%; /* Giới hạn chiều rộng ảnh */
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-news__security-text {
  flex: 1;
  min-width: 300px;
}

.page-news__sub-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F2FFF6;
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-news__security-text p {
  color: #A7D9B8;
  margin-bottom: 20px;
}

.page-news__faq-section {
  padding: 80px 20px;
}

.page-news__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-news__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #F2FFF6;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F2FFF6;
  cursor: pointer;
  list-style: none; /* Bỏ dấu chấm mặc định của summary */
}

.page-news__faq-question::-webkit-details-marker {
  display: none; /* Bỏ dấu mũi tên mặc định trên Chrome */
}

.page-news__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #57E38D; /* Glow color */
}

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

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

.page-news__cta-bottom {
  text-align: center;
  padding: 80px 20px;
  background: #0A4B2C; /* Deep Green */
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .page-news__security-content {
    flex-direction: column;
  }
  .page-news__security-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 10px 15px 40px;
  }
  .page-news__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-news__intro-text {
    font-size: 1rem;
  }

  .page-news__section {
    padding: 40px 15px;
  }
  .page-news__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__section-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

  .page-news__news-grid,
  .page-news__guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  /* Responsive for all images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Responsive for all image containers */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__news-card,
  .page-news__guide-card,
  .page-news__security-section,
  .page-news__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Responsive for all buttons */
  .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; /* Add padding to prevent text from touching edges */
    padding-right: 15px;
  }
  
  /* Button containers mobile adaptation */
  .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-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    overflow: hidden !important;
  }

  .page-news__security-content {
    gap: 20px;
  }
  .page-news__security-image {
    min-width: unset;
  }
  .page-news__security-text {
    min-width: unset;
  }

  .page-news__sub-title {
    font-size: 1.3rem;
  }
  .page-news__faq-question {
    font-size: 1rem;
  }
  .page-news__faq-answer {
    font-size: 0.95rem;
  }
}