/* style/news.css */
/* Base styles for the news page */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#0a0a0a) */
  line-height: 1.6;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #1A202C; /* Dark background for hero */
  color: #ffffff;
  overflow: hidden;
  padding-top: calc(var(--header-offset, 120px) + 60px); /* Ensure space for fixed header */
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-news__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Use secondary color for emphasis */
  line-height: 1.2;
  font-weight: bold;
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Secondary color for CTA */
  color: #1A202C; /* Dark text for bright button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

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

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
  filter: none !important; /* Ensure no filter changes color */
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding: 60px 20px;
  background-color: #0a0a0a; /* Match body background */
  color: #f0f0f0;
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

.page-news__article-card {
  background-color: #1A202C; /* Dark card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  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 25px rgba(0, 0, 0, 0.4);
}

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__article-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistent image size */
  overflow: hidden;
}

.page-news__article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  filter: none !important; /* Ensure no filter changes color */
  min-width: 200px;
  min-height: 200px;
}

.page-news__article-card:hover .page-news__article-image {
  transform: scale(1.05);
}

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

.page-news__article-title {
  font-size: 1.4em;
  color: #FFD700; /* Secondary color for article titles */
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: 600;
}

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

.page-news__article-date {
  font-size: 0.85em;
  color: #888888;
  text-align: right;
  display: block;
}

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

.page-news__pagination-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #1A202C;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 1px solid #FFD700;
}

.page-news__pagination-link:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
}

.page-news__pagination-link--active {
  background-color: #FFD700;
  color: #1A202C;
  border-color: #FFD700;
  pointer-events: none; /* Disable click for active link */
}

.page-news__pagination-link:last-child {
  width: auto;
  padding: 0 15px;
  border-radius: 20px;
}

/* Newsletter Section */
.page-news__newsletter-section {
  padding: 80px 20px;
  background-color: #1A202C; /* Primary color background */
  color: #ffffff;
  text-align: center;
}

.page-news__newsletter-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-news__newsletter-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-news__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-news__newsletter-input {
  padding: 15px 20px;
  border: 2px solid #FFD700;
  border-radius: 8px;
  font-size: 1em;
  width: 100%;
  max-width: 400px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-sizing: border-box;
}

.page-news__newsletter-input::placeholder {
  color: #cccccc;
}

.page-news__newsletter-button {
  padding: 15px 30px;
  background: #FFD700;
  color: #1A202C;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.page-news__newsletter-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 60px 15px;
    padding-top: calc(var(--header-offset, 120px) + 40px) !important; /* Mobile header offset */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__hero-content {
    margin-bottom: 30px;
  }

  .page-news__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-news__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__latest-articles-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__section-title {
    font-size: 2em;
    margin-bottom: 25px;
  }

  .page-news__section-intro-text {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-title {
    font-size: 1.2em;
  }

  .page-news__article-excerpt {
    font-size: 0.9em;
  }

  .page-news__pagination {
    margin-top: 30px;
    flex-wrap: wrap;
  }

  .page-news__pagination-link {
    width: 35px;
    height: 35px;
    font-size: 0.9em;
  }
  
  .page-news__pagination-link:last-child {
    padding: 0 12px;
  }

  .page-news__newsletter-section {
    padding: 50px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__newsletter-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-news__newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .page-news__newsletter-input,
  .page-news__newsletter-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Image mobile adaptation */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__container,
  .page-news__article-card,
  .page-news__newsletter-content,
  .page-news__article-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }
  
  .page-news__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-news__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* Ensure no filter on images - already included above, but reiterating for safety */
.page-news img {
  filter: none !important;
}

/* Specific contrast adjustments if needed (based on body background #0a0a0a) */
.page-news h1, .page-news h2, .page-news h3 {
  color: #FFD700; /* Titles use accent color for visibility */
}

.page-news p, .page-news span, .page-news li {
  color: #ffffff; /* General text is white on dark background */
}