.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
}

.page-news__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  font-weight: bold;
}

.page-news__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-news__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

/* Section Titles */
.page-news__section-title {
  font-size: 2.5em;
  color: #017439; /* Primary color for titles on light background */
  text-align: center;
  margin-bottom: 50px;
  padding-top: 40px;
}

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

.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-news__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 60px 0;
}

/* Article Grid */
.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: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.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: 250px;
  object-fit: cover;
  display: block;
}

.page-news__article-content {
  padding: 20px;
}

.page-news__article-date {
  display: block;
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 10px;
}

.page-news__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: #017439; /* Primary color for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #00562e;
}

.page-news__article-summary {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

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

.page-news__read-more:hover {
  color: #00562e;
  text-decoration: underline;
}

/* Categories Section */
.page-news__category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.page-news__category-item {
  display: block;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-news__category-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* FAQ Section */
.page-news__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

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

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

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

.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; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

.page-news__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-news__faq-answer a {
  color: #FFFF00; /* Yellow for links in dark section */
  text-decoration: underline;
}

.page-news__faq-answer a:hover {
  color: #ffe000;
}

/* CTA Section */
.page-news__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-news__cta-section .page-news__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-news__cta-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-news__cta-content {
  flex: 1;
  text-align: left;
}

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

.page-news__cta-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-news__btn-register {
  display: inline-block;
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__cta-section .page-news__container {
    flex-direction: column;
    text-align: center;
  }
  .page-news__cta-image {
    max-width: 80%;
    margin-bottom: 30px;
  }
  .page-news__cta-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 60px 0;
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-news__article-grid {
    grid-template-columns: 1fr;
  }
  .page-news__category-list {
    flex-direction: column;
    align-items: center;
  }
  .page-news__category-item {
    width: 80%;
    max-width: 300px;
  }
  .page-news__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 10px 20px;
  }
  .page-news__cta-section .page-news__container {
    padding: 0 15px;
  }
  .page-news__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__cta-title {
    font-size: 2em;
  }
  .page-news__cta-description {
    font-size: 0.95em;
  }

  /* Mobile image and video responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure hero is pushed down */
  }
  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"],
  .page-news__btn-register {
    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;
  }
}