.page-news {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Assuming body background is black */
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  text-align: center;
  background: linear-gradient(135deg, #1E90FF, #000000); /* Deep blue to black gradient */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-news__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-news__main-title {
  font-size: 3.5em;
  font-weight: bold;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-news__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: #FFD700;
  color: #1E90FF;
}

.page-news__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
  background: #1E90FF;
  color: #ffffff;
}

.page-news__btn-secondary:hover {
  background: #1a7ad9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-news__articles-section {
  padding: 60px 20px;
  background-color: #0d0d0d; /* Slightly lighter dark background */
  color: #ffffff;
}

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

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-news__article-card {
  background-color: #1a1a1a; /* Dark card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px 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 12px 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 {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 3px solid #FFD700;
}

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

.page-news__card-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.page-news__card-date {
  font-size: 0.85em;
  color: #888888;
  margin-top: auto;
  margin-bottom: 10px;
}

.page-news__read-more {
  display: inline-block;
  color: #1E90FF;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-news__pagination {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  gap: 10px;
}

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

.page-news__pagination-link:hover:not(.page-news__pagination-link--disabled):not(.page-news__pagination-link--active) {
  background-color: #FFD700;
  color: #1a1a1a;
}

.page-news__pagination-link--active {
  background-color: #FFD700;
  color: #1a1a1a;
  cursor: default;
  border-color: #FFD700;
}

.page-news__pagination-link--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #888888;
  color: #888888;
}

.page-news__cta-banner {
  background: linear-gradient(45deg, #000000, #1E90FF); /* Dark to deep blue gradient */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-news__cta-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
}

.page-news__cta-image {
  max-width: 40%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__cta-content {
  max-width: 50%;
  text-align: left;
}

.page-news__cta-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-news__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 3em;
  }
  .page-news__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    min-height: 300px;
  }
  
  .page-news__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  
  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  
  .page-news__cta-button {
    padding: 12px 25px;
    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__articles-section {
    padding: 40px 15px;
  }

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

  .page-news__article-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__article-image {
    height: 180px;
  }

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

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

  .page-news__pagination {
    margin-top: 40px;
  }

  .page-news__pagination-link {
    width: 35px;
    height: 35px;
    font-size: 0.9em;
  }

  .page-news__cta-banner {
    padding: 50px 15px;
  }

  .page-news__cta-container {
    flex-direction: column;
    gap: 30px;
  }

  .page-news__cta-image {
    max-width: 80%;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__cta-content {
    max-width: 100%;
    text-align: center;
  }

  .page-news__cta-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  /* Ensure all images and containers are responsive and don't overflow */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-container,
  .page-news__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-news__hero-section,
  .page-news__articles-section,
  .page-news__cta-banner {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  /* Specific button container for mobile to prevent overflow */
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
}