.page-news {
  color: #ffffff; /* Body background is dark, so use light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Inherit from body or shared.css */
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed for visual impact */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 0;
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__btn-register,
.page-news__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-news__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

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

.page-news__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-news__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-news__btn-register:hover {
  background-color: #a30707;
  border-color: #a30707;
}

.page-news__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-news__btn-login:hover {
  background-color: #a30707;
  border-color: #a30707;
}

.page-news__section-spacing {
  padding: 80px 0;
}

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

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

.page-news__section-intro {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

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

.page-news__news-card,
.page-news__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-news__news-card:hover,
.page-news__promo-card:hover {
  transform: translateY(-5px);
}

.page-news__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

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

.page-news__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

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

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

.page-news__card-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__card-link {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

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

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

.page-news__dark-section .page-news__section-title {
  color: #ffffff;
}

.page-news__dark-section .page-news__section-intro {
  color: #f0f0f0;
}

.page-news__article-list,
.page-news__insight-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-news__article-item,
.page-news__insight-item {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-news__article-item:nth-child(even) {
  flex-direction: row-reverse;
}

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

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

.page-news__article-title,
.page-news__insight-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-news__article-title a,
.page-news__insight-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-news__article-title a:hover,
.page-news__insight-title a:hover {
  text-decoration: underline;
}

.page-news__article-summary,
.page-news__insight-summary {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-news__article-link,
.page-news__insight-link {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

.page-news__article-link:hover,
.page-news__insight-link:hover {
  text-decoration: underline;
}

.page-news__faq-section {
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #017439;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.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; /* Sufficiently large to show content */
  padding: 15px 25px 25px 25px;
}

.page-news__faq-answer p {
  margin: 0;
  color: #f0f0f0; /* Ensure text color is light for dark background */
}

.page-news__faq-answer a {
  color: #87CEEB; /* A contrasting color for links in FAQ answers */
  text-decoration: underline;
}

.page-news__cta-section {
  text-align: center;
  padding: 100px 0;
  background-color: #017439; /* Use brand color for CTA section */
  color: #ffffff;
}

.page-news__cta-content {
  max-width: 800px;
}

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

.page-news__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

/* General image responsiveness */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-news__hero-section {
    height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
  }

  .page-news__hero-title {
    font-size: 2.2em;
  }

  .page-news__hero-description {
    font-size: 1em;
  }

  .page-news__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news__btn-register,
  .page-news__btn-login {
    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__section-spacing {
    padding: 40px 0;
  }

  .page-news__section-title {
    font-size: 2em;
  }

  .page-news__section-intro {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  .page-news__news-grid,
  .page-news__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-news__news-card,
  .page-news__promo-card {
    margin-bottom: 20px;
  }

  .page-news__article-item,
  .page-news__insight-item {
    flex-direction: column;
  }

  .page-news__article-item:nth-child(even) {
    flex-direction: column;
  }

  .page-news__article-image,
  .page-news__insight-image {
    width: 100%;
    height: auto;
  }

  .page-news__article-content,
  .page-news__insight-content {
    width: 100%;
    padding: 20px;
  }

  .page-news__article-title,
  .page-news__insight-title {
    font-size: 1.4em;
  }

  .page-news__article-summary,
  .page-news__insight-summary {
    font-size: 0.95em;
  }

  .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: 15px 20px 20px 20px;
  }

  .page-news__cta-title {
    font-size: 2em;
  }

  .page-news__cta-description {
    font-size: 1em;
  }

  .page-news__cta-actions {
    flex-direction: column;
    gap: 15px;
  }

  /* Force all images and containers to adapt to mobile width */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__container,
  .page-news__section,
  .page-news__news-card,
  .page-news__promo-card,
  .page-news__article-item,
  .page-news__insight-item,
  .page-news__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Specific padding for hero section on mobile to avoid double padding if shared.css also adds padding-top */
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}