/* style/news.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không được thêm lại padding-top cho body hoặc các phần tử đầu tiên của main */

.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a, so light text */
  background-color: transparent; /* Main content background is transparent, relies on body bg */
}

.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; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #0a0a0a; /* Ensure hero section has a background */
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Space between image and content */
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  filter: none; /* Ensure no filter is applied */
}

.page-news__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 1; /* Ensure content is above any potential background elements */
}

.page-news__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Use clamp for H1 */
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__description {
  font-size: 1.1em;
  color: #f0f0f0; /* Light text for description */
  margin-bottom: 30px;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-news__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Brand color for text */
  border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-news__latest-articles {
  padding: 60px 0;
  background-color: #0a0a0a; /* Section background to ensure contrast */
}

.page-news__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

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

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

.page-news__article-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have consistent height */
  display: flex;
  flex-direction: column;
}

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

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

.page-news__article-image {
  width: 100%;
  height: 220px; /* Fixed height for article images */
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no filter is applied */
}

.page-news__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__article-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-date {
  font-size: 0.9em;
  color: #cccccc;
  margin-bottom: 15px;
  display: block;
}

.page-news__article-excerpt {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-news__read-more {
  display: inline-block;
  color: #26A9E0;
  font-weight: bold;
  text-decoration: none;
  align-self: flex-start;
}

.page-news__read-more:hover {
  text-decoration: underline;
}

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

.page-news__featured-promotion {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly different dark background */
}

.page-news__featured-promotion .page-news__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.page-news__dark-bg {
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
  padding: 40px;
  border-radius: 8px;
}

.page-news__content-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-news__featured-promotion .page-news__section-title {
  color: #ffffff;
  text-align: left;
  margin-bottom: 15px;
}

.page-news__featured-promotion .page-news__section-description {
  color: #f0f0f0;
  text-align: left;
  margin-bottom: 30px;
}

.page-news__image-wrapper {
  flex-shrink: 0;
  max-width: 400px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.page-news__cta-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: none; /* Ensure no filter is applied */
}

.page-news__faq-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

.page-news__faq-section .page-news__section-title {
  margin-bottom: 40px;
}

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

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-news__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-news__faq-answer p {
  margin: 0;
  padding-top: 15px;
}

/* For non-details based FAQ, if fallback is needed */
.page-news__faq-item:not(details) .page-news__faq-answer {
  max-height: 0;
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}

.page-news__faq-item:not(details).active .page-news__faq-answer {
  max-height: 2000px; /* Sufficiently large to show content */
  transition: max-height 0.5s ease-in;
}

.page-news__faq-item:not(details).active .page-news__faq-toggle {
  content: '−';
}


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

  .page-news__section-title {
    font-size: 2em;
  }

  .page-news__featured-promotion .page-news__container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .page-news__featured-promotion .page-news__section-title,
  .page-news__featured-promotion .page-news__section-description {
    text-align: center;
  }

  .page-news__image-wrapper {
    margin-bottom: 30px;
  }
}

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

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

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

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }

  .page-news__latest-articles,
  .page-news__featured-promotion,
  .page-news__faq-section {
    padding: 40px 0;
  }

  .page-news__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

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

  .page-news__article-image {
    height: 180px; /* Adjust image height for mobile */
  }

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

  .page-news__article-excerpt {
    font-size: 0.95em;
  }

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

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

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

  .page-news__faq-answer {
    padding: 0 15px 15px;
  }

  /* Mobile image and video responsive adaptation */
  .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__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  
  .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;
  }
}