.page-news__hero-section {
  position: relative;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  background: linear-gradient(135deg, #017439, #005f2c);
  color: #ffffff;
  overflow: hidden;
}

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

.page-news__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.page-news__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-news__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

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

.page-news__featured-section, .page-news__promotions-update, .page-news__guides-section, .page-news__events-section, .page-news__faq-section, .page-news__cta-bottom {
  padding: 60px 20px;
}

.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: #017439;
  font-weight: 700;
}

.page-news__featured-section {
  background-color: #f8f8f8;
}

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

.page-news__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px 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__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.page-news__article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

.page-news__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

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

.page-news__article-title a:hover {
  color: #004d24;
}

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

.page-news__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more-btn:hover {
  background-color: #005f2c;
}

.page-news__promotions-update, .page-news__events-section, .page-news__cta-bottom {
  background-color: #017439;
  color: #ffffff;
}

.page-news__promotions-update .page-news__section-title,
.page-news__events-section .page-news__section-title,
.page-news__cta-bottom .page-news__section-title {
  color: #ffffff;
}

.page-news__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: #f0f0f0;
}

.page-news__guides-section {
  background-color: #f0f0f0;
}

.page-news__faq-section {
  background-color: #f8f8f8;
}

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

.page-news__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-news__faq-item details > summary {
  list-style: none;
}

.page-news__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  background-color: #e6f7ed;
  border-bottom: 1px solid #d0e8db;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #d0e8db;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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: 1em;
  color: #333333;
  line-height: 1.7;
  border-top: 1px solid #e0e0e0;
}

.page-news__cta-bottom .page-news__description {
  color: #f0f0f0;
}

/* General text colors for contrast on dark body background */
.page-news {
  color: #ffffff; /* Default text color for the page content */
}

/* Specific elements on light backgrounds should have dark text */
.page-news__light-bg {
  color: #333333;
  background-color: #ffffff;
}

/* Specific elements on dark backgrounds should have light text */
.page-news__dark-bg {
  color: #ffffff;
  background-color: #017439;
}

/* Ensure contrast for titles on various backgrounds */
.page-news__section-title {
  color: #017439; /* Default for light backgrounds */
}

.page-news__dark-bg .page-news__section-title {
  color: #ffffff; /* For sections with dark brand background */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-news__main-title {
    font-size: 2.2em;
  }

  .page-news__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-news__article-image {
    height: 200px;
  }

  .page-news__article-card {
    margin: 0 15px;
  }

  .page-news__card-content {
    padding: 20px;
  }

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

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

  .page-news__read-more-btn {
    padding: 8px 15px;
    font-size: 0.9em;
  }

  .page-news__text-block {
    font-size: 1em;
    padding: 0 15px;
  }

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

  .page-news__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

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

  /* Responsive containers for images/videos/buttons */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__articles-grid,
  .page-news__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__video-section {
    padding-top: var(--header-offset, 120px) !important; 
  }
}