.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #017439; /* Brand primary color for hero */
  color: #ffffff;
}

.page-news__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 900px;
}

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

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

.page-news__btn-secondary:hover {
  background-color: #ffffff;
  color: #C30808; /* Register/Login color */
}

.page-news__hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5); /* Overlay to darken video */
}

.page-news__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken video to improve text contrast */
}

/* Section titles */
.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Light Background Section */
.page-news__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-news__light-bg .page-news__section-title,
.page-news__light-bg .page-news__section-description,
.page-news__light-bg .page-news__card-title a,
.page-news__light-bg .page-news__card-text,
.page-news__light-bg .page-news__read-more,
.page-news__light-bg .page-news__category-item,
.page-news__light-bg .page-news__faq-title,
.page-news__light-bg .page-news__faq-answer p {
  color: #333333;
}

.page-news__light-bg .page-news__read-more:hover {
  color: #017439;
}

/* Dark Background Section */
.page-news__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
  padding: 60px 0;
}

.page-news__dark-section .page-news__section-title,
.page-news__dark-section .page-news__section-description,
.page-news__dark-section .page-news__card-title a,
.page-news__dark-section .page-news__card-text,
.page-news__dark-section .page-news__read-more {
  color: #ffffff;
}

.page-news__dark-section .page-news__read-more:hover {
  color: #FFFF00; /* Yellow hover for dark background */
}

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

.page-news__article-card {
  background-color: #f8f8f8; /* Light background for cards in light section */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text for card content */
}

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

.page-news__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-news__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: bold;
}

.page-news__card-title a {
  text-decoration: none;
  color: #333333; /* Dark text for links in light cards */
  transition: color 0.3s ease;
}