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

.page-news__section {
  padding: 80px 0;
  position: relative;
  overflow: hidden; /* Prevent content overflow */
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

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

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

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

/* Section Titles & Descriptions */
.page-news__section-title {
  font-size: 36px;
  color: #017439; /* Brand green for titles */
  text-align: center;
  margin-bottom: 20px;
}

.page-news__section-description {
  font-size: 18px;
  color: #f0f0f0; /* Lighter white for descriptions */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__read-more-btn {
  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, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.page-news__btn-primary {
  background-color: #017439; /* Brand green */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-news__btn-primary:hover {
  background-color: #005a2e; /* Darker green on hover */
  border-color: #005a2e;
}

.page-news__btn-secondary {
  background-color: #C30808; /* Red for login/register as specified */
  color: #FFFF00; /* Yellow for text as specified */
  border: 2px solid #C30808;
  margin-left: 15px; /* Spacing between buttons */
}

.page-news__btn-secondary:hover {
  background-color: #a30606; /* Darker red on hover */
  border-color: #a30606;
}

.page-news__read-more-btn {
  background-color: transparent;
  color: #017439;
  border: 1px solid #017439;
  padding: 8px 15px;
  font-size: 14px;
}

.page-news__read-more-btn:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Latest Articles Grid */
.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-news__article-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff; /* Text color for card content */
}

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

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

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

.page-news__article-title {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-news__article-title a {
  color: #017439; /* Brand green for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #005a2e;
}

.page-news__article-meta {
  font-size: 14px;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-news__article-summary {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Pagination */
.page-news__pagination {
  text-align: center;
  margin-top: 40px;
}

.page-news__pagination-link {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  border: 1px solid #017439;
  border-radius: 5px;
  color: #017439;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-link:hover,
.page-news__pagination-link--active {
  background-color: #017439;
  color: #ffffff;
}

/* Featured News Section */
.page-news__dark-section {
  background-color: #0d0d0d; /* Slightly darker background for contrast */
  color: #ffffff;
}

.page-news__dark-section .page-news__section-title {
  color: #ffffff;
}

.page-news__dark-section .page-news__section-description {
  color: #cccccc;
}

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

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

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

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

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

.page-news__featured-title {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
}

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

.page-news__featured-title a:hover {
  color: #005a2e;
}

.page-news__featured-summary {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* CTA Banner */
.page-news__cta-banner {
  background: linear-gradient(90deg, #017439 0%, #005a2e 100%); /* Brand green gradient */
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
}

.page-news__cta-content {
  max-width: 900px;
  margin: 0 auto;
}