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

.page-news {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: #f4f7f6; /* Body background color from shared.css */
  line-height: 1.6;
}

/* Base styles for sections */
.page-news__hero-section,
.page-news__news-list-section,
.page-news__featured-video-section,
.page-news__why-choose-section,
.page-news__faq-section,
.page-news__cta-bottom-section {
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as per requirement */
  background-color: #f4f7f6; /* Light background */
}

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

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

.page-news__hero-content {
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly with image for visual effect */
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.page-news__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Clamp for desktop, not fixed large value */
  font-weight: bold;
  color: #11A84E; /* Brand color */
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-news__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #11A84E;
  text-align: center;
  margin-bottom: 20px;
}

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

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

.page-news__news-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news__card-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-news__card-image {
  width: 100%;
  height: 100%;
  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.3em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-news__card-link {
  color: #11A84E;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-link:hover {
  color: #22C768;
}

.page-news__card-date {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

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

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

/* Why Choose Section */
.page-news__why-choose-section {
  background-color: #11271B; /* Card B G */
  color: #F2FFF6; /* Text Main */
  padding: 80px 20px;
  text-align: center;
}

.page-news__why-choose-section .page-news__section-title {
  color: #F2FFF6;
}

.page-news__why-choose-section .page-news__section-description {
  color: #A7D9B8;
}

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

.page-news__why-choose-item {
  background-color: #0A4B2C; /* Deep Green */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__why-choose-item-icon {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-news__why-choose-item-title {
  font-size: 1.5em;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-news__why-choose-item-description {
  font-size: 1em;
  color: #A7D9B8;
}

/* Featured Video Section */
.page-news__featured-video-section {
  background-color: #08160F; /* Custom background */
  color: #F2FFF6; /* Custom text color */
  padding: 80px 20px;
  text-align: center;
}

.page-news__featured-video-section .page-news__section-title {
  color: #F2FFF6;
}

.page-news__featured-video-section .page-news__section-description {
  color: #A7D9B8;
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  max-width: 1280px;
  width: 100%; /* Ensure it takes full width of its container */
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer; /* Indicate clickable */
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #f4f7f6;
  padding-bottom: 80px;
}

.page-news__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.page-news__faq-item:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-news__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  color: #11A84E;
  list-style: none; /* Hide default marker */
}

.page-news__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

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

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #eee;
  margin-top: -1px; /* Overlap border */
}

/* CTA Bottom Section */
.page-news__cta-bottom-section {
  background-color: #08160F;
  color: #F2FFF6;
  text-align: center;
  padding: 80px 20px;
}

.page-news__cta-bottom-section .page-news__section-title {
  color: #F2FFF6;
}

.page-news__cta-bottom-section .page-news__section-description {
  color: #A7D9B8;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-news__btn-secondary {
  background-color: transparent;
  color: #F2FFF6;
  border: 2px solid #2E7A4E; /* Custom border color */
}

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

/* Responsive styles */
@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 20px 15px;
    padding-top: 10px !important;
  }

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

  .page-news__main-title {
    font-size: 2em;
    line-height: 1.3;
  }

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

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

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

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

  .page-news__news-card {
    margin-bottom: 20px;
  }

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

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

  .page-news__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }

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

  .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: 12px 20px;
    font-size: 1em;
  }

  .page-news__hero-image,
  .page-news__card-image,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__hero-image-wrapper,
  .page-news__card-image-wrapper,
  .page-news__video-wrapper,
  .page-news__why-choose-grid,
  .page-news__news-list-section,
  .page-news__featured-video-section,
  .page-news__why-choose-section,
  .page-news__faq-section,
  .page-news__cta-bottom-section,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-news__featured-video-section {
    padding-top: 40px; /* Adjust padding for mobile */
    padding-bottom: 40px;
  }

  .page-news__why-choose-grid {
    padding: 0; /* Remove horizontal padding as container already handles it */
  }
}

/* Ensure color contrast */
.page-news__light-bg {
  background-color: #f4f7f6;
  color: #333333;
}

.page-news__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-news__card {
  background-color: #ffffff;
  color: #333333;
}

.page-news__text-main {
  color: #F2FFF6;
}

.page-news__text-secondary {
  color: #A7D9B8;
}

.page-news a {
  color: #11A84E; /* Default link color */
}

.page-news a:hover {
  color: #22C768;
}

.page-news p, .page-news li {
  color: #555555; /* Ensure general paragraph text is dark enough */
}