/* style/news.css */

/* Base styles for the news page */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8; /* A light background for general sections */
}

/* Custom colors from palette */
.page-news__dark-bg {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-news__card-bg {
  background-color: #11271B; /* Card BG */
}

.page-news__text-main {
  color: #F2FFF6; /* Text Main */
}

.page-news__text-secondary {
  color: #A7D9B8; /* Text Secondary */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
  text-align: center;
}

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

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

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* CTA Buttons */
.page-news__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* A lighter green from the gradient */
  border: 2px solid #2AD16F; /* Border color */
}

.page-news__btn-secondary:hover {
  background-color: #2AD16F;
  color: #F2FFF6;
  transform: translateY(-2px);
}

/* General Section Styling */
.page-news__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-news__dark-section {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-news__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: #11A84E; /* Main color for titles */
}

.page-news__dark-section .page-news__section-title {
  color: #F2FFF6; /* Text Main for titles in dark sections */
}

.page-news__section-description {
  font-size: 1.05em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #333333;
}

.page-news__dark-section .page-news__section-description {
  color: #A7D9B8; /* Text Secondary for dark sections */
}

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

.page-news__news-card {
  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;
  background-color: #ffffff; /* Default for light background */
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-news__news-card.page-news__card-bg {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6;
  border: 1px solid #2E7A4E; /* Border */
}

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

.page-news__card-link {
  text-decoration: none;
  display: block;
  height: 100%;
}

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

.page-news__card-content {
  padding: 25px;
}

.page-news__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #11A84E; /* Main color for card titles */
}

.page-news__news-card.page-news__card-bg .page-news__card-title {
  color: #F2FFF6; /* Text Main for card titles in dark cards */
}

.page-news__card-meta {
  font-size: 0.9em;
  color: #777; /* Neutral grey for meta */
  margin-bottom: 15px;
}

.page-news__news-card.page-news__card-bg .page-news__card-meta {
  color: #A7D9B8; /* Text Secondary for dark cards */
}

.page-news__card-excerpt {
  font-size: 1em;
  color: #555; /* Slightly darker grey for excerpt */
}

.page-news__news-card.page-news__card-bg .page-news__card-excerpt {
  color: #A7D9B8; /* Text Secondary for dark cards */
}

.page-news__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

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

.page-news__faq-item {
  background-color: #ffffff; /* Default for light background */
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-news__faq-item.page-news__card-bg {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  color: #11A84E; /* Main color for question */
  list-style: none; /* For details/summary */
}

.page-news__faq-item.page-news__card-bg .page-news__faq-question {
  color: #F2FFF6; /* Text Main for question in dark card */
}

.page-news__faq-item[open] .page-news__faq-question {
  background-color: #f0f0f0; /* Slightly different background when open */
}

.page-news__faq-item.page-news__card-bg[open] .page-news__faq-question {
  background-color: #0A4B2C; /* Deep Green when open */
}

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

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555;
}

.page-news__faq-item.page-news__card-bg .page-news__faq-answer {
  color: #A7D9B8; /* Text Secondary for answer in dark card */
}

.page-news__support-link {
  color: #11A84E; /* Main color */
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  display: inline-block;
}

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

/* Final CTA Section */
.page-news__cta-final {
  text-align: center;
  padding: 80px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-content {
    padding: 15px;
  }

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

  .page-news__description {
    font-size: 1em;
  }

  .page-news__section-title {
    font-size: clamp(1.6em, 4vw, 2.2em);
  }

  .page-news__news-grid {
    gap: 20px;
  }

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

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-news__hero-section {
    padding: 10px 15px 40px 15px;
  }

  .page-news__hero-content {
    padding: 15px;
  }

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

  .page-news__description {
    font-size: 0.95em;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 90%;
    padding: 0 15px;
  }
  
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important; /* Ensure buttons take full width */
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-news__section-title {
    font-size: clamp(1.4em, 6vw, 2em);
  }

  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-news__card-content {
    padding: 20px;
  }

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

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

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

  .page-news__cta-final {
    padding: 60px 15px;
  }

  /* Image and Video Responsive Adaptations */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .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;
    overflow: hidden !important;
  }

  .page-news__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: clamp(1.4em, 8vw, 2em);
  }

  .page-news__description {
    font-size: 0.9em;
  }

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

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

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

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