/* style/news.css */
.page-news {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-news__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 800px;
  z-index: 10;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-news__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 30px;
}

.page-news__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button */
  color: #F2FFF6; /* Custom Text Main */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Custom Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Custom Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__latest-news {
  padding: 60px 0;
  background-color: #08160F;
}

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

.page-news__news-card {
  background-color: #11271B; /* Custom Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-news__news-card-date {
  font-size: 0.9em;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 10px;
}

.page-news__news-card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-news__news-card-title a {
  color: #F2FFF6; /* Custom Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
  color: #2AD16F;
}

.page-news__news-card-excerpt {
  font-size: 1em;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__news-card-link {
  color: #2AD16F;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

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

.page-news__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F; /* Custom Border */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-news__btn-secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
}

.page-news__categories {
  padding: 60px 0;
  background-color: #0A4B2C; /* Custom Deep Green */
}

.page-news__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.page-news__category-card {
  background-color: #11271B; /* Custom Card BG */
  color: #F2FFF6; /* Custom Text Main */
  text-decoration: none;
  text-align: center;
  padding: 25px 20px;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #2E7A4E; /* Custom Border */
}

.page-news__category-card:hover {
  background-color: #2AD16F;
  color: #08160F;
}

.page-news__faq {
  padding: 60px 0;
  background-color: #08160F;
}

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

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

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

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

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

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  color: #A7D9B8; /* Custom Text Secondary */
  line-height: 1.6;
  font-size: 1em;
}

.page-news__faq-answer p {
    margin: 0;
    color: #A7D9B8;
}

.page-news__cta-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Custom Deep Green */
  text-align: center;
}

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

.page-news__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  display: block;
}

.page-news__cta-title {
  font-size: 2.2em;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__hero-content {
    position: static;
    transform: none;
    margin-top: -80px; /* Pull content up slightly over image */
    background: rgba(0, 0, 0, 0.7); /* Darker background for readability */
    width: 100%;
    border-radius: 0;
    padding: 30px 15px;
  }

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

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

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

  .page-news__section-title,
  .page-news__cta-title {
    font-size: 2em;
  }

  .page-news__news-grid,
  .page-news__category-grid {
    grid-template-columns: 1fr;
  }

  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-news,
  .page-news__categories,
  .page-news__faq,
  .page-news__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Force responsive for all images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive for all containers with images/videos/buttons */
  .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;
  }

  /* Specific adjustments for hero section on mobile */
  .page-news__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, small top padding for aesthetic */
    padding-bottom: 30px;
  }

  /* Button responsiveness */
  .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 {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}