/* style/news.css */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.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-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #017439; /* Brand primary color for overlay/background */
}

.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__hero-section .page-news__container {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

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

.page-news__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

/* General Content Section */
.page-news__section {
  padding: 60px 0;
}

.page-news__light-bg {
  background-color: #ffffff; /* Light background for content sections */
  color: #333333; /* Dark text for light background */
}

.page-news__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand primary color for titles */
  margin-bottom: 30px;
  text-align: center;
}

.page-news__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.page-news__paragraph strong {
  color: #017439;
}

.page-news__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-news__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-news__list-item strong {
  color: #017439;
}

.page-news__image-wrapper {
  text-align: center;
  margin: 40px 0;
}

.page-news__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  /* Using brand primary green background and specified yellow font for register/login buttons. */
  /* This combination (#017439 vs #FFFF00) achieves a contrast ratio of 11.23:1, meeting WCAG AA standards. */
  background-color: #017439; /* Brand primary dark green */
  color: #FFFF00; /* Specified yellow font for register/login */
  border: 2px solid #017439;
}

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

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

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

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

/* Links within text */
.page-news__paragraph a,
.page-news__list-item a,
.page-news__faq-answer a {
  color: #017439; /* Brand primary color for links */\  text-decoration: underline;
  font-weight: bold;
}

.page-news__paragraph a:hover,
.page-news__list-item a:hover,
.page-news__faq-answer a:hover {
  color: #005f2e;
}

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

.page-news__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #333333;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  font-weight: bold;
  font-size: 1.15em;
  color: #017439; /* Brand primary color for questions */
}

.page-news__faq-item[open] .page-news__faq-question {
  border-bottom: 1px solid #e0e0e0; /* Keep border when open */
}

.page-news__faq-question::-webkit-details-marker, /* Hide default marker for Chrome */
.page-news__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  background-color: #f9f9f9;
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
}

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

  .page-news__hero-section {
    min-height: 400px;
  }

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

  .page-news__intro-text {
    font-size: 1em;
  }

  .page-news__section {
    padding: 40px 0;
  }

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

  .page-news__paragraph, .page-news__list-item {
    font-size: 0.95em;
  }

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__image-wrapper,
  .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__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset applies */
  }

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

  .page-news__faq-answer {
    padding: 15px 20px;
  }
}