.page-news__hero-section {
  position: relative;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background: var(--dark-bg-1, #017439); /* Fallback to brand color if var not defined, ensuring dark background */
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
}

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

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  z-index: 1;
  position: relative;
  color: #ffffff;
}

.page-news__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 30px;
  z-index: 1;
  position: relative;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 1;
  position: relative;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

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

.page-news__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.6;
  color: #333333;
}

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

.page-news__latest-articles.page-news__light-bg,
.page-news__categories.page-news__light-bg,
.page-news__faq-section.page-news__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-news__featured-articles.page-news__dark-bg,
.page-news__cta-section.page-news__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-news__featured-articles .page-news__section-title,
.page-news__cta-section .page-news__cta-title {
  color: #ffffff;
}

.page-news__featured-articles .page-news__section-description,
.page-news__cta-section .page-news__cta-description {
  color: #f0f0f0;
}

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

.page-news__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px 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 10px 30px rgba(0, 0, 0, 0.15);
}

.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.4;
  color: #017439;
}

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

.page-news__article-title a:hover {
  color: #005f2e;
}

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

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

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

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

.page-news__categories {
  background-color: #FFFFFF;
}

.page-news__category-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 1000px;
}

.page-news__category-item {
  background-color: #f0f0f0;
  border-radius: 25px;
  padding: 10px 25px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__category-item:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.page-news__category-item a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
}

.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-news__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-news__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-news__faq-section {
  background-color: #FFFFFF;
}

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

.page-news__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #e6e6e6;
}

.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: #555555;
  background-color: #ffffff;
}

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

.page-news__faq-answer p {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3em;
  }
  .page-news__section-title {
    font-size: 2.5em;
  }
  .page-news__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-news__hero-title {
    font-size: 2.5em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__section-description {
    font-size: 0.95em;
  }
  .page-news__cta-title {
    font-size: 2em;
  }
  .page-news__article-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-card {
    margin-bottom: 20px;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 1.3em;
  }
  .page-news__category-list {
    flex-direction: column;
    align-items: center;
  }
  .page-news__category-item {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }
  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 10px 20px;
  }

  /* Mobile responsive for images, videos, buttons */
  .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__cta-section,
  .page-news__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    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,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}