.page-news__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 60px;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 500px;
  background: #0d1117; /* Dark background from body, ensuring contrast */
}

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

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

.page-news__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffc107; /* Highlight with auxiliary color */
}

.page-news__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-news__btn-primary {
  display: inline-block;
  background: #007bff;
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #007bff;
}

.page-news__btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #007bff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #007bff;
  margin-left: 15px;
}

.page-news__btn-secondary:hover {
  background-color: #e2e6ea;
  transform: translateY(-2px);
}

.page-news__featured-articles,
.page-news__all-articles,
.page-news__cta-section,
.page-news__faq-section {
  padding: 80px 0;
}

.page-news__light-bg {
  background: #ffffff;
  color: #333333;
}

.page-news__dark-bg {
  background: #0d1117;
  color: #ffffff;
}

.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  color: #007bff; /* Main brand color for titles */
}

.page-news__dark-bg .page-news__section-title {
  color: #ffc107; /* Auxiliary color for titles on dark background */
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-news__featured-articles .page-news__section-description {
  color: #555555;
}

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

.page-news__article-card {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-news__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  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.4em;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.page-news__article-title a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.page-news__article-date {
  font-size: 0.9em;
  color: #6c757d;
  margin-bottom: 15px;
}

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

.page-news__read-more {
  display: inline-block;
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more:hover {
  color: #0056b3;
  text-decoration: underline;
}

.page-news__articles-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-news__list-item {
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__list-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.page-news__list-content {
  flex-grow: 1;
}

.page-news__list-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}

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

.page-news__list-title a:hover {
  color: #e0a800;
  text-decoration: underline;
}

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

.page-news__list-excerpt {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 20px;
}

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

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

.page-news__pagination-link:hover,
.page-news__pagination-link--active {
  background: #007bff;
  color: #ffffff;
}

.page-news__cta-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  color: #007bff;
}

.page-news__cta-description {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: #555555;
}

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

.page-news__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffc107;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important;
  padding: 15px 25px;
}

.page-news__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__list-item {
    flex-direction: column;
    text-align: center;
  }
  .page-news__list-image {
    width: 100%;
    height: 250px;
  }
  .page-news__list-content {
    padding-top: 20px;
  }
  .page-news__list-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    margin-left: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-news__featured-articles,
  .page-news__all-articles,
  .page-news__cta-section,
  .page-news__faq-section {
    padding: 60px 0;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-card {
    margin: 0 15px;
  }
  .page-news__list-item {
    margin: 0 15px;
    padding: 15px;
  }
  .page-news__list-image {
    height: 200px;
  }
  .page-news__list-title {
    font-size: 1.2em;
  }
  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px;
  }
  /* Ensure all images are responsive */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__articles-grid,
  .page-news__articles-list,
  .page-news__list-item,
  .page-news__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  /* Content area images CSS dimensions lower bound */
  .page-news__content-area img,
  .page-news__article-card img,
  .page-news__list-item img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
  .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__list-title {
    font-size: 1.1em;
  }
}