.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background: #ffffff; /* Explicitly set for clarity */
}

/* Hero Section */
.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f5f5f5; /* Light background for hero section */
  box-sizing: border-box;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-news__hero-content {
  max-width: 960px;
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  background-color: #ffffff; /* Content block on white background */
  box-sizing: border-box;
  border-radius: 8px;
  margin-top: -80px; /* Overlap with image slightly for visual appeal */
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-news__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #017439; /* Brand primary color for H1 */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Important for responsive buttons */
  box-sizing: border-box; /* Important for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

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

.page-news__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-news__btn-secondary:hover {
  background: #005a2e;
  border-color: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 60px 0;
  background: #f9f9f9;
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%; /* Ensure container takes full width */
}

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

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

.page-news__article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.page-news__article-card {
  background: #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;
}

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

.page-news__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__article-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__card-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #017439;
  font-weight: 600;
  line-height: 1.4;
}

.page-news__card-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__card-date {
  font-size: 0.85em;
  color: #888888;
  text-align: right;
  display: block;
}

.page-news__card-date--white {
  color: #cccccc;
}

.page-news__view-all-button-container {
  text-align: center;
}

.page-news__btn-center {
  display: inline-block;
  background: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  max-width: 100%; /* Important for responsive buttons */
  box-sizing: border-box; /* Important for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-news__btn-center:hover {
  background: #005a2e;
  border-color: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Featured News Section */
.page-news__featured-news {
  padding: 60px 0;
  background: #017439; /* Dark background for featured news */
  color: #ffffff;
}

.page-news__featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.page-news__featured-item {
  display: flex;
  background: rgba(0, 0, 0, 0.2); /* Slightly transparent dark background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__featured-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-news__featured-content {
  width: 60%;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__featured-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.3;
}

.page-news__featured-excerpt {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__read-more {
  color: #FFFF00; /* Yellow for read more link */
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

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

.page-news__arrow-icon {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.page-news__read-more:hover .page-news__arrow-icon {
  transform: translateX(5px);
}

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

.page-news__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

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

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

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

.page-news__cta-buttons-bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background: #ffffff;
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
  display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
  background: #f5f5f5;
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #017439; /* Brand primary color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}
.page-news__faq-answer p {
  margin: 0;
}

/* --- Responsive Styles (Mobile) --- */
@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 10px;
  }

  .page-news__hero-image {
    max-height: 250px;
    object-fit: cover;
  }

  .page-news__hero-content {
    padding: 30px 15px;
    margin-top: -50px;
  }

  .page-news__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-news__description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

  .page-news__cta-buttons,
  .page-news__cta-buttons-bottom {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news__btn-center {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-news__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-news__article-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__article-image {
    height: 180px;
  }

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

  .page-news__card-excerpt {
    font-size: 0.9em;
  }

  .page-news__featured-grid {
    grid-template-columns: 1fr;
  }

  .page-news__featured-item {
    flex-direction: column;
  }

  .page-news__featured-image {
    width: 100%;
    height: 200px;
  }

  .page-news__featured-content {
    width: 100%;
    padding: 20px;
  }

  .page-news__featured-title {
    font-size: 1.3em;
  }

  .page-news__featured-excerpt {
    font-size: 0.9em;
  }

  .page-news__cta-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px;
  }
  .page-news__faq-qtext {
    font-size: 1em;
  }
  .page-news__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 15px 15px;
  }

  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}