.page-news {
  color: #333333; /* Default text color for light body background */
  background-color: var(--secondary-color); /* Matches body background: #FFFFFF */
}

.page-news__hero-banner {
  background: linear-gradient(135deg, #017439, #009944); /* Gradient using primary color */
  padding: 60px 20px;
  text-align: center;
  color: #ffffff; /* White text for dark background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-news__hero-title {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 20px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

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

.page-news__main-article-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-news__main-article {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
}

.page-news__article-title {
  font-size: 36px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-news__article-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  margin-bottom: 30px;
  object-fit: cover;
}

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

.page-news__article-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

.page-news__article-content h3 {
  font-size: 26px;
  font-weight: 600;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-news__highlight {
  font-weight: bold;
  color: #017439;
}

.page-news__cta-button {
  display: inline-block;
  padding: 12px 25px;
  background: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
}

.page-news__cta-button:hover {
  background: #a10707;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-news__inline-link {
  color: #017439;
  text-decoration: underline;
  font-weight: 600;
}

.page-news__inline-link:hover {
  color: #004d2b;
}

.page-news__recent-articles-section {
  padding: 60px 0;
  background-color: #017439; /* Primary color background */
  color: #ffffff; /* White text for dark background */
}

.page-news__section-heading {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #ffffff;
}

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

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

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

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

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

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

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

.page-news__card-title a:hover {
  color: #004d2b;
  text-decoration: underline;
}

.page-news__card-meta {
  font-size: 13px;
  color: #888888;
  margin-bottom: 15px;
}

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

.page-news__card-link {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-news__card-link:hover {
  color: #004d2b;
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 38px;
  }
  .page-news__hero-description {
    font-size: 18px;
  }
  .page-news__article-title {
    font-size: 30px;
  }
  .page-news__main-article {
    padding: 30px;
  }
  .page-news__article-content h3 {
    font-size: 24px;
  }
  .page-news__section-heading {
    font-size: 32px;
  }
  .page-news__card-title {
    font-size: 20px;
  }
  .page-news__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-banner {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__hero-title {
    font-size: 32px;
  }
  .page-news__hero-description {
    font-size: 16px;
  }
  .page-news__main-article-section {
    padding: 40px 0;
  }
  .page-news__main-article {
    padding: 20px;
  }
  .page-news__article-title {
    font-size: 26px;
  }
  .page-news__article-content p {
    font-size: 15px;
  }
  .page-news__article-content h3 {
    font-size: 22px;
  }
  .page-news__cta-button {
    padding: 10px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__recent-articles-section {
    padding: 40px 0;
  }
  .page-news__section-heading {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-news__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__card-image {
    height: 160px;
  }
  .page-news__card-content {
    padding: 20px;
  }
  .page-news__card-title {
    font-size: 18px;
  }
  .page-news__card-excerpt {
    font-size: 14px;
  }
  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-news__container,
  .page-news__article-card,
  .page-news__main-article {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 28px;
  }
  .page-news__hero-description {
    font-size: 15px;
  }
  .page-news__article-title {
    font-size: 22px;
  }
  .page-news__article-content h3 {
    font-size: 20px;
  }
  .page-news__section-heading {
    font-size: 24px;
  }
  .page-news__card-image {
    height: 140px;
  }
  .page-news__card-title {
    font-size: 16px;
  }
  .page-news__article-card {
    padding: 0;
  }
}