/* style/news.css */

/* Base styles for the news page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background from shared.css */
  padding-top: var(--header-offset, 120px); /* Fixed header offset, applied to main content area */
}

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

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

.page-news__section:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for alternating sections */
}

.page-news__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-news__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 0; /* Ensures no double padding if .page-news already has it */
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.page-news__main-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

.page-news__hero-btn {
  padding: 15px 30px;
  font-size: 1.1em;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* Primary Button */
.page-news__btn-primary {
  background: #26A9E0; /* Brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
  background: #1e87b6;
  border-color: #1e87b6;
}

/* Secondary Button */
.page-news__btn-secondary {
  background: transparent;
  color: #26A9E0; /* Brand color */
  border: 2px solid #26A9E0;
  margin-left: 15px;
}

.page-news__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
}

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

.page-news__article-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff; /* Light text for card content */
}

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

.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-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: #26A9E0; /* Brand color for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #1e87b6;
}

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

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

.page-news__read-more {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #1e87b6;
}

.page-news__arrow {
  margin-left: 5px;
  transition: margin-left 0.3s ease;
}

.page-news__read-more:hover .page-news__arrow {
  margin-left: 10px;
}

/* Pagination */
.page-news__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.page-news__pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-link:hover {
  background-color: #26A9E0;
}

.page-news__pagination-link--active {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Featured Article Section */
.page-news__featured-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-news__featured-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  height: auto; /* Ensure image scales correctly */
}

.page-news__featured-text {
  flex: 1;
  color: #f0f0f0;
}

.page-news__featured-title {
  font-size: 2em;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

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

.page-news__featured-excerpt {
  font-size: 1.1em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__featured-paragraph {
  margin-bottom: 15px;
}

/* Why Follow News Section */
.page-news__content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  color: #f0f0f0;
}

.page-news__paragraph {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-news__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}