.page-news {
  color: #ffffff;
  background-color: #1a1a1a; /* Body background is dark, use light text */
}

.page-news__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

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

.page-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-news__hero-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;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.page-news__btn-primary {
  background-color: #C30808; /* Custom color for registration/login */
  color: #FFFF00; /* Custom font color */
  border-color: #C30808;
}

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

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

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

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

.page-news__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Use brand color for titles on light background */
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555; /* Darker text for readability on light background */
  line-height: 1.6;
}

.page-news__latest-articles {
  background-color: #ffffff; /* Light background for this section */
  color: #333333; /* Dark text for readability */
  padding: 60px 0;
}

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

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

.page-news__article-card:hover {
  transform: translateY(-5px);
}

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

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

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

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

.page-news__article-link:hover {
  color: #005a2e;
  text-decoration: underline;
}

.page-news__article-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 15px;
  line-height: 1.5;
  flex-grow: 1;
}

.page-news__article-date {
  font-size: 0.85em;
  color: #999999;
  margin-top: auto;
}

.page-news__view-more-container {
  text-align: center;
  margin-top: 50px;
}

.page-news__industry-insights {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-news__industry-insights .page-news__section-title,
.page-news__industry-insights .page-news__section-description {
  color: #ffffff;
}

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

.page-news__insight-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
}

.page-news__insight-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-news__insight-title {
  font-size: 1.3em;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-news__insight-card .page-news__article-link {
  color: #ffffff;
}

.page-news__insight-card .page-news__article-link:hover {
  color: #FFFF00;
}

.page-news__insight-excerpt {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 20px;
  line-height: 1.5;
}

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

.page-news__faq-section .page-news__section-title {
  color: #017439;
}

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

.page-news__faq-item {
  background-color: #f8f8f8;
  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;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: #eee;
  color: #333333;
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-news__faq-question::-webkit-details-marker {
  display: none;
}

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

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

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-news__faq-link {
  color: #017439;
  text-decoration: underline;
}

.page-news__faq-link:hover {
  color: #005a2e;
}

.page-news__cta-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

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

.page-news__cta-section .page-news__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

/* Ensure text contrast for specific elements on light background */
.page-news__text-contrast-fix {
  color: #333333; 
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

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

  .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__hero-buttons {
    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__container {
    padding: 20px 15px;
  }

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-news__articles-grid,
  .page-news__insights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-image,
  .page-news__insight-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__article-card,
  .page-news__insight-card {
    padding-bottom: 15px;
  }

  .page-news__article-title {
    font-size: 1.2em;
  }

  .page-news__insight-title {
    font-size: 1.1em;
  }

  .page-news__faq-question {
    padding: 15px;
    font-size: 1em;
  }

  .page-news__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 0.95em;
  }

  .page-news__latest-articles,
  .page-news__industry-insights,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 40px 0;
  }

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

  .page-news__view-more-container {
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__hero-description {
    font-size: 0.9em;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 12px 20px;
    font-size: 0.9em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
}