/* style/news.css */

/* Base styles for the page content, ensuring dark text on light body background */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background #f8f9fa */
  background-color: #f8f9fa; /* Inherited from body, but good to define for sections */
}

/* Page sections */
.page-news__section {
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-news__section--light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

.page-news__section--dark-bg {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Light text for dark background */
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add some padding for smaller screens */
  box-sizing: border-box;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding for hero, body handles header offset */
  background-color: #08160F; /* Fallback background */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-news__hero-content {
  position: relative; /* Ensure content is above image but not overlapping */
  z-index: 2;
  text-align: center;
  padding: 40px 15px;
  max-width: 900px;
  color: #F2FFF6; /* Light text on dark hero section background */
}

.page-news__main-title {
  font-size: clamp(2em, 5vw, 3em); /* Responsive font size for H1 */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-news__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #A7D9B8; /* Secondary text color */
}

/* Titles */
.page-news__section-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit color from section */
}

.page-news__sub-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from section */
}

/* Text blocks and paragraphs */
.page-news__text-block {
  margin-bottom: 20px;
}

.page-news__text-block p {
  margin-bottom: 15px;
  color: inherit; /* Inherit color from section */
}

/* Links */
.page-news a {
  color: #11A84E; /* Brand primary color for links */
  text-decoration: none;
}

.page-news a:hover {
  text-decoration: underline;
  color: #22C768; /* Brand auxiliary color on hover */
}

/* Lists */
.page-news__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from section */
}

.page-news__list li {
  margin-bottom: 10px;
  color: inherit; /* Inherit color from section */
}

/* Images */
.page-news__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-news__image--centered {
  margin: 30px auto;
}

/* Call to action buttons */
.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
  color: #ffffff; /* White text on button */
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-news__cta-button--small {
  padding: 12px 25px;
  font-size: 1em;
  margin-top: 20px;
}

.page-news__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2em;
  margin-top: 30px;
}

/* Flex containers for image/content columns */
.page-news__flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-news__flex-container--reverse {
  flex-direction: row-reverse;
}

.page-news__content-column,
.page-news__image-column {
  flex: 1;
  min-width: 300px; /* Ensure columns don't get too small */
}

.page-news__image-column img {
  width: 100%;
  height: auto;
}

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

.page-news__faq-item {
  background-color: #11271B; /* Card BG color */
  color: #F2FFF6; /* Main text color */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  background-color: #11271B;
  color: #F2FFF6;
  list-style: none; /* For details/summary */
}

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

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

.page-news__faq-qtext {
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #57E38D; /* Glow color for toggle */
}

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 0.95em;
  line-height: 1.5;
  color: #A7D9B8; /* Secondary text color */
}

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

/* Text alignment */
.page-news__text-center {
  text-align: center;
}


/* Responsive styles */
@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important; /* body handles header offset, small padding here */
  }

  .page-news__hero-image-wrapper {
    max-height: 300px;
  }

  .page-news__hero-content {
    padding: 20px 10px;
  }

  .page-news__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

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

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

  .page-news__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-news__flex-container {
    flex-direction: column;
    gap: 30px;
  }

  .page-news__content-column,
  .page-news__image-column {
    min-width: unset;
    width: 100%;
  }

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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;
  }
  
  /* Mobile button responsiveness */
  .page-news__cta-button,
  .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__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;
  }
}