.page-news {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color for dark background */
  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;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08160F; /* Dark background */
  overflow: hidden; /* Prevent content overflow */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Space between image and text */
  box-sizing: border-box;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-news__hero-content {
  width: 100%;
  max-width: 800px; /* Limit content width */
  z-index: 1; /* Ensure content is above any potential background elements */
  color: #F2FFF6; /* Light text for dark background */
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
}

.page-news__cta-button {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Button text color */
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Section Titles */
.page-news__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2FFF6; /* Main text color */
}

.page-news__section-title--light {
  color: #F2FFF6; /* Ensure light text on dark sections */
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 80px 0;
  background-color: #08160F; /* Dark background */
}

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

.page-news__news-card {
  background-color: #11271B; /* Custom card background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Custom border color */
}

.page-news__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-news__card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

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

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

.page-news__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__card-meta {
  font-size: 0.9rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
}

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

.page-news__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Featured Articles Section */
.page-news__featured-articles-section {
  padding: 80px 0;
  background-color: #11271B; /* Custom card background for dark section */
  color: #F2FFF6; /* Light text for dark section */
}

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

.page-news__article-card {
  background-color: #0A4B2C; /* Deep Green for featured cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E;
}

.page-news__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-news__card-title--light,
.page-news__card-meta--light,
.page-news__card-excerpt--light {
  color: #F2FFF6; /* Ensure text is light on dark cards */
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #08160F; /* Dark background */
}

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

.page-news__faq-item {
  background-color: #11271B; /* Custom card background */
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Light text for FAQ items */
}

.page-news__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #F2FFF6; /* Light text for question */
  transition: background-color 0.3s ease;
}

.page-news__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-news__faq-item summary:hover {
  background-color: #1E3A2A; /* Divider color on hover */
}

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

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

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text for answer */
}

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

.page-news__description--light {
  color: #A7D9B8; /* Secondary text color */
}

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

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

.page-news__cta-button--secondary {
  background: #11271B; /* Card BG for secondary button */
  color: #F2FFF6;
  border: 1px solid #2E7A4E;
}

.page-news__cta-button--secondary:hover {
  background: #0A4B2C; /* Deep Green on hover */
  transform: translateY(-2px);
}

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

  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-news__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

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

  .page-news__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

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

  .page-news__news-card,
  .page-news__article-card {
    margin-bottom: 20px;
  }

  .page-news__card-image {
    height: 180px; /* Adjust height for mobile */
  }

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

  .page-news__card-meta,
  .page-news__card-excerpt {
    font-size: 0.95rem;
  }

  .page-news__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__cta-button,
  .page-news__view-all-button,
  .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;
  }

  /* All images must be responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/buttons must be responsive */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-image-wrapper,
  .page-news__news-grid,
  .page-news__articles-grid,
  .page-news__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent overflow */
  }

  .page-news__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

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