/* style/news.css */

/* General page styling */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light background */
  background-color: #f8f8f8; /* Inherited from body, explicit for clarity */
}

/* Fixed Header Spacing */
.page-news__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-news__section {
  padding: 60px 0;
}

.page-news__section-title {
  font-size: 36px;
  color: #017439; /* Primary brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Adjust padding-top is handled by var(--header-offset) */
  background: linear-gradient(135deg, #017439, #00A65A); /* Gradient with brand color */
  color: #ffffff;
}

.page-news__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-news__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-news__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-news__main-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color for emphasis */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-news__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* CTA Buttons */
.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-news__btn-primary {
  background: #C30808; /* Red for primary action */
  color: #FFFF00; /* Yellow font for primary action */
}

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

.page-news__btn-secondary {
  background: #ffffff;
  color: #017439; /* Primary brand color for secondary action */
  border: 2px solid #017439;
}

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

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Featured Article Section */
.page-news__featured-article-section {
  background-color: #ffffff;
}

.page-news__featured-article {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 30px;
}

.page-news__featured-image {
  flex: 1;
  min-width: 400px;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-news__featured-content {
  flex: 2;
}

.page-news__featured-title {
  font-size: 28px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-news__featured-meta {
  font-size: 14px;
  color: #777777;
  margin-bottom: 10px;
}

.page-news__featured-excerpt {
  font-size: 16px;
  color: #444444;
  margin-bottom: 25px;
}

/* Latest Articles Grid */
.page-news__latest-articles {
  background-color: #f8f8f8;
}

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