:root {
  --primary-color: #017439;
  --auxiliary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register: #C30808;
  --button-login: #C30808;
  --font-register-login: #FFFF00;
}

/* Base styles for the news page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default dark text on light body background */
  background-color: var(--auxiliary-color); /* Matches body background from shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-news__hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color) 30%, #28a745); /* Adjusted gradient for a more vibrant green */
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-news__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: var(--font-register-login); /* Using font-register-login for high visibility */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-register); /* Specific color for register */
  color: var(--font-register-login); /* Specific font color for register/login */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--font-register-login);
}

.page-news__cta-button:hover {
  background: #a30606; /* Slightly darker red on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Section titles and descriptions */
.page-news__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

.page-news__section-description {
  font-size: 1.1em;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.85;
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 60px 0;
  background-color: var(--auxiliary-color); /* Light background */
}

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

.page-news__article-card {
  background: var(--auxiliary-color);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-news__article-title {
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-news__article-title a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #005a2e; /* Slightly darker green */
}

.page-news__article-excerpt {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__article-date {
  font-size: 0.85em;
  color: #888;
  margin-top: auto;
  margin-bottom: 10px;
}

.page-news__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-news__pagination {
  text-align: center;
  margin-top: 50px;
}

.page-news__pagination-link {
  display: inline-block;
  padding: 10px 18px;
  margin: 0 5px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.page-news__pagination-link:hover,
.page-news__pagination-link--active {
  background: var(--primary-color);
  color: var(--text-light);
}

/* Featured News Section */
.page-news__featured-news {
  background: var(--primary-color); /* Dark background */
  color: var(--text-light); /* Light text */
  padding: 80px 0;
}

.page-news__featured-news .page-news__section-title {
  color: var(--text-light);
}

.page-news__featured-news .page-news__section-description {
  color: var(--text-light);
  opacity: 0.9;
}

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

.page-news__featured-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__featured-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
}

.page-news__featured-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-news__featured-title {
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__featured-title a {
  color: var(--font-register-login); /* Use yellow for high visibility */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-news__featured-excerpt {
  font-size: 0.95em;
  color: var(--text-light);
  opacity: 0.8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__featured-item .page-news__read-more {
  color: var(--font-register-login);
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-news__featured-item .page-news__read-more:hover {
  color: #ffcc00;
  text-decoration: underline;
}

/* Why Choose Us Section */
.page-news__why-choose-us {
  padding: 60px 0;
  background-color: var(--auxiliary-color);
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: var(--auxiliary-color);
}

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