/* style/news.css */
/* Variables for colors */
:root {
  --primary-color: #017439; /* Main brand color */
  --secondary-color: #FFFFFF; /* Auxiliary color */
  --text-dark: #333333; /* Dark text for light backgrounds */
  --text-light: #ffffff; /* Light text for dark backgrounds */
  --bg-light: #ffffff; /* Light background */
  --bg-dark: #017439; /* Dark background */
  --btn-register: #C30808; /* Specific color for register button */
  --btn-login: #C30808; /* Specific color for login button */
  --btn-font-login-register: #FFFF00; /* Specific font color for login/register buttons */
  --border-light: #e0e0e0;
}

/* Base styles for the page content */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--bg-light); /* Default light background */
}

/* Container for consistent padding and max-width */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #30A86F 100%); /* Green gradient */
  color: var(--text-light);
  overflow: hidden; /* Prevent image overflow */
}

.page-news__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2; /* Ensure content is above any background effects */
}

.page-news__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  color: var(--text-light);
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 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;
  line-height: 1.3;
}

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

/* Specific section background colors */
.page-news__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 60px 0;
}

.page-news__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0;
}

.page-news__dark-bg .page-news__section-title {
  color: var(--text-light);
}

.page-news__dark-bg .page-news__section-description {
  color: var(--text-light);
}

/* Latest Articles Grid */
.page-news__latest-articles {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-news__article-card {
  background: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 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(-5px);
  box-shadow: 0 8px 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.5em;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-news__article-title a:hover {
  color: #005f2c; /* Darker shade of primary color */
}

.page-news__article-meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
}

.page-news__article-summary {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more-btn:hover {
  background: #005f2c;
  transform: translateY(-2px);
}

/* Featured Articles */
.page-news__featured-articles {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-news__featured-grid {
  display: grid;
  grid-template-columns: 1fr; /* Stack on mobile */
  gap: 30px;
}

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

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

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

.page-news__featured-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  color: var(--text-dark); /* Ensure text is dark on light background */
}

.page-news__featured-title {
  font-size: 1.8em;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-news__featured-summary {
  font-size: 1.1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Promotions & Events */
.page-news__promotions-events {
  padding-top: 60px;
  padding-bottom: 60px;
}