/* style/news.css */

/* --- General Styles --- */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Matches body background */
}

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

.page-news__section-title {
  font-size: 32px;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-news__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #555555;
}

.page-news__section-description--light {
  color: #f0f0f0;
}

/* --- Hero Banner Section --- */
.page-news__hero-banner {
  padding: 80px 0 60px 0;
  text-align: center;
  background-color: #f9f9f9; /* Lighter background for the banner */
}

.page-news__hero-banner .page-news__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-news__hero-title {
  font-size: 44px;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
  max-width: 900px;
}

.page-news__hero-description {
  font-size: 18px;
  color: #555555;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-news__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* --- Buttons --- */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent; /* Ensure consistent border space */
}

.page-news__btn-primary {
  background-color: #017439; /* Primary color */
  color: #ffffff; /* White text for contrast */
  border-color: #017439;
}

.page-news__btn-primary:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary {
  background-color: #ffffff; /* White background */
  color: #017439; /* Primary color text */
  border-color: #017439;
}

.page-news__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Specific button overrides from requirements */
.page-news__btn-register {
  background-color: #C30808; /* Red for register */
  color: #FFFF00; /* Yellow text for register */
  border-color: #C30808;
}

.page-news__btn-register:hover {
  background-color: #9c0606;
}

.page-news__btn-login {
  background-color: #C30808; /* Red for login */
  color: #FFFF00; /* Yellow text for login */
  border-color: #C30808;
}

.page-news__btn-login:hover {
  background-color: #9c0606;
}

/* --- Latest Articles Section --- */
.page-news__latest-articles {
  padding: 60px 0;
  background-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: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}