.page-news {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--neon-dark-bg-1); /* Inherited from shared, assuming dark */
}

/* Fixed Header Offset - applied to the main content area */
.page-news {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-news__hero-section {
  background: linear-gradient(135deg, #017439, #005f2c); /* Brand primary color gradient */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-news__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FFFF00; /* Register/Login font color for emphasis */
}

.page-news__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  color: #ffffff;
}

.page-news__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-news__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

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

.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Consistent with hero title for emphasis */
}

.page-news__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.5;
  color: #ffffff;
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding: 60px 0;
  background-color: #017439; /* Brand primary color for dark background */
  color: #ffffff; /* Light text for dark background */
}

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

.page-news__article-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
  border-radius: 10px;
  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__article-card:hover {
  transform: translateY(-5px);
}

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

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

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

.page-news__article-title a {
  color: #FFFF00; /* Highlight article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #ffffff;
}

.page-news__article-excerpt {
  font-size: 0.95em;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__read-more-link {
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-news__read-more-link:hover {
  color: #ffffff;
}

.page-news__arrow {
  font-size: 1.2em;
}

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

/* Categories Section */
.page-news__categories-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Darker background for contrast */
  color: #ffffff;
}

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

.page-news__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white */
  border-radius: 10px;
  padding: 25px;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news__category-image {
  width: 100%;
  max-width: 250px; /* Constrain image size within card */
  height: 180px; /* Fixed height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-news__category-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #FFFF00; /* Highlight category titles */
}

/* About News Section - Adjusted for dark body background */
.page-news__about-news-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff; /* Light text for dark background */
}

.page-news__about-news-section .page-news__section-title {
  color: #FFFF00; /* Highlight title */
}

.page-news__about-text p {
  color: #e0e0e0; /* Lighter text for paragraphs */
}

.page-news__about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-news__about-text {
  flex: 1;
}

.page-news__about-image {
  flex: 1;
  max-width: 50%; /* Adjust as needed */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-news__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FFFF00;
}

.page-news__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  color: #ffffff;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* FAQ Section - Adjusted for dark body background */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Very dark background */
  color: #ffffff; /* Light text for dark background */
}

.page-news__faq-section .page-news__section-title {
  color: #FFFF00; /* Highlight title */
}

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

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Transparent white for cards */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* Important for max-height transition */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #FFFF00; /* Highlight question text */
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter transparent background */
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes cross */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Initial padding, vertical will be added on active */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0; /* Lighter text for answers */
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px 25px; /* Add vertical padding when active */
}

.page-news__faq-answer p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 0; /* No bottom margin for last paragraph in answer */
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2.2em;
  }
  .page-news__cta-title {
    font-size: 2.5em;
  }
  .page-news__about-content {
    flex-direction: column;
  }
  .page-news__about-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  /* Ensure main content has padding-top in case shared doesn't set it for body */
  .page-news {
    padding-top: var(--header-offset, 120px) !important;
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Responsive buttons */
  .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__hero-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Ensure vertical stacking for button groups */
    gap: 10px;
    overflow: hidden !important;
  }

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

  .page-news__articles-grid,
  .page-news__categories-grid {
    grid-template-columns: 1fr;
  }

  .page-news__article-image,
  .page-news__category-image {
    height: auto; /* Allow height to adjust */
  }

  /* Responsive images */
  .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,
  .page-news__hero-section,
  .page-news__latest-articles-section,
  .page-news__categories-section,
  .page-news__about-news-section,
  .page-news__cta-section,
  .page-news__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-news__about-image {
    max-width: 100%;
  }

  .page-news__cta-title {
    font-size: 2em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }

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

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

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