.page-news__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff; /* Dark background, light text */
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5); /* Slightly dim the image for text readability */
}

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

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

.page-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #F0F0F0;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: #C30808; /* Register/Login red */
  color: #FFFF00; /* Register/Login font yellow */
  border: 2px solid #C30808;
}

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

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

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

.page-news__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #017439; /* Brand color for titles on light background */
  font-weight: 700;
}

.page-news__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #333333; /* Dark text on light background */
}

.page-news__latest-news,
.page-news__promotions-section,
.page-news__cta-final {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333; /* Dark text */
}

.page-news__dark-bg {
  background-color: #1a1a1a; /* Body background color */
  color: #ffffff; /* Light text */
}

.page-news__light-bg {
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

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

.page-news__news-card,
.page-news__article-card,
.page-news__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text on card background */
}

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

.page-news__news-image,
.page-news__article-image,
.page-news__promo-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
}

.page-news__article-image {
  height: 263px; /* Adjusted for 800x600 ratio */
}

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

.page-news__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: #017439; /* Brand color for card titles */
}

.page-news__card-title a {
  text-decoration: none;
  color: inherit;
}

.page-news__card-title a:hover {
  text-decoration: underline;
}

.page-news__card-text {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #555555;
}

.page-news__read-more {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto; /* Pushes button to bottom */
}

.page-news__read-more:hover {
  color: #005f2e;
  text-decoration: underline;
}

.page-news__featured-articles {
  padding: 60px 0;
  color: #ffffff; /* Dark background, light text */
}

.page-news__featured-articles .page-news__section-title,
.page-news__featured-articles .page-news__section-description {
  color: #ffffff;
}

.page-news__featured-articles .page-news__card-title {
  color: #FFFF00; /* Yellow for titles on dark background */
}

.page-news__featured-articles .page-news__card-text {
  color: #F0F0F0;
}

.page-news__promotions-section .page-news__btn-secondary {
  background-color: #FFFFFF;
  color: #C30808; /* Login/Register red for secondary button text */
  border-color: #C30808;
}

.page-news__promotions-section .page-news__btn-secondary:hover {
  background-color: #C30808;
  color: #FFFF00; /* Login/Register font yellow */
}

.page-news__cta-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-news__cta-fullwidth .page-news__btn-primary {
  width: auto; /* Allow button to size naturally */
  min-width: 250px; /* Ensure a decent minimum width */
}

.page-news__faq-section {
  padding: 60px 0;
  color: #ffffff; /* Dark background, light text */
}

.page-news__faq-section .page-news__section-title,
.page-news__faq-section .page-news__section-description {
  color: #ffffff;
}

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

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  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 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFF00; /* Yellow for FAQ questions */
  list-style: none; /* For details/summary */
}

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

.page-news__faq-item[open] > .page-news__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-news__cta-final {
  text-align: center;
  padding: 80px 0;
}

.page-news__cta-final .page-news__section-title {
  color: #017439;
}

.page-news__cta-final .page-news__section-description {
  color: #333333;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__news-grid,
  .page-news__articles-grid,
  .page-news__promotions-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 0.95em;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    margin: 10px 0 !important;
    padding: 12px 20px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__news-card,
  .page-news__article-card,
  .page-news__promo-card {
    margin: 0 15px;
  }
  .page-news__container {
    padding: 0 15px;
  }

  /* Image responsive enforcement */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__news-card,
  .page-news__article-card,
  .page-news__promo-card,
  .page-news__section,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__news-grid,
  .page-news__articles-grid,
  .page-news__promotions-grid {
    grid-template-columns: 1fr;
  }
}

/* Ensure filter property is not used for color change on images */
.page-news img {
  filter: none; /* Reset any potential filter */
}

/* Specific filter for hero image for dimming effect */
.page-news__hero-image {
  filter: brightness(0.5); /* This is allowed for effect, not color change */
}