.page-news__hero-section {
  position: relative;
  padding: 100px 20px 60px; /* Adjusted padding-top for header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background-color: #017439; /* Brand primary color */
  padding-top: var(--header-offset, 120px);
}

.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: bold;
  line-height: 1.2;
  color: #FFFF00; /* Custom font color for emphasis */
}

.page-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: #C30808; /* Custom register/login color */
  color: #FFFF00; /* Custom register/login font color */
  border: 2px solid #C30808;
}

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

.page-news__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

.page-news__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
}

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

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

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

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

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

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

.page-news__news-card,
.page-news__category-card {
  background-color: #ffffff;
  border-radius: 12px;
  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;
  color: #333333;
}

.page-news__news-card:hover,
.page-news__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-news__card-image,
.page-news__category-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

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

.page-news__card-title a {
  color: #017439; /* Brand primary color */
  text-decoration: none;
}

.page-news__card-title a:hover {
  text-decoration: underline;
}

.page-news__card-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__card-link {
  display: inline-block;
  color: #C30808; /* Custom login/register color */
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
}

.page-news__card-link:hover {
  text-decoration: underline;
}

.page-news__category-card {
  text-align: center;
  color: #333333;
  text-decoration: none;
}

.page-news__category-title {
  font-size: 1.3em;
  font-weight: bold;
  margin: 15px 0 0;
  color: #017439; /* Brand primary color */
}

.page-news__featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-news__featured-card {
  display: flex;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-news__featured-image {
  width: 50%;
  height: auto;
  object-fit: cover;
}

.page-news__featured-content {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news__featured-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.page-news__featured-title a {
  color: #017439;
  text-decoration: none;
}

.page-news__featured-title a:hover {
  text-decoration: underline;
}

.page-news__featured-text {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-news__faq-list {
  margin-top: 40px;
}

.page-news__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.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; /* Brand primary color */
  cursor: pointer;
  background-color: #e8f5e9;
  border-bottom: 1px solid #dcdcdc;
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #C30808; /* Custom color for toggle */
}

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

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

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__featured-card {
    flex-direction: column;
  }
  .page-news__featured-image,
  .page-news__featured-content {
    width: 100%;
  }
  .page-news__featured-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__news-grid,
  .page-news__categories-grid {
    grid-template-columns: 1fr;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-news__latest-news-section,
  .page-news__categories-section,
  .page-news__featured-articles-section,
  .page-news__cta-section,
  .page-news__faq-section {
    padding: 50px 0;
  }
  .page-news__news-card,
  .page-news__category-card {
    margin: 0 15px;
  }
  .page-news__featured-card {
    margin: 0 15px;
  }
  .page-news__card-image, .page-news__category-image, .page-news__featured-image, .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section, .page-news__card, .page-news__container, .page-news__cta-buttons, .page-news__faq-item, .page-news__faq-list, .page-news__news-grid, .page-news__categories-grid, .page-news__featured-grid, .page-news__featured-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px;
  }
}