.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #1a1a2e, so text is light */
  background-color: transparent; /* Body background handled by shared.css */
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-news__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-news__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-news__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-news__btn-register,
.page-news__btn-login,
.page-news__btn-download {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-register {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
  border: 2px solid #C30808;
}

.page-news__btn-register:hover {
  background-color: #e02020;
  color: #ffffff;
}

.page-news__btn-login {
  background-color: #C30808; /* Custom color for login */
  color: #FFFF00; /* Custom font color for login */
  border: 2px solid #C30808;
}

.page-news__btn-login:hover {
  background-color: #e02020;
  color: #ffffff;
}

.page-news__btn-download {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-news__btn-download:hover {
  background-color: #005a2e;
}

.page-news__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-news__section-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-news__section-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-news__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-news__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439; /* Brand primary color for titles */
}

.page-news__card-title a {
  color: #017439;
  text-decoration: none;
}

.page-news__card-title a:hover {
  text-decoration: underline;
}

.page-news__card-text {
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-news__card-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-news__card-list li {
  margin-bottom: 5px;
}

.page-news__guide-section {
  background-color: #ffffff; /* Light background for guide section */
  color: #333333; /* Dark text for light background */
}

.page-news__dark-text {
  color: #333333;
}

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

.page-news__guide-item {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__guide-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-news__guide-subtitle {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #017439;
}

.page-news__guide-subtitle a {
  color: #017439;
  text-decoration: none;
}

.page-news__guide-subtitle a:hover {
  text-decoration: underline;
}

.page-news__guide-item ol,
.page-news__guide-item p {
  color: #333333;
  margin-bottom: 15px;
}

.page-news__guide-item ol {
  list-style-type: decimal;
  margin-left: 20px;
}

.page-news__faq-section {
  background-color: #1a1a2e; /* Match body background */
}

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

.page-news__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: #017439; /* Brand color for question background */
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #005a2e;
}

.page-news__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

.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); /* Change to X or rotate for active state */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-news__conclusion-section {
  background-color: #017439; /* Brand primary color for conclusion */
  color: #ffffff;
}

.page-news__conclusion-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* General image responsiveness */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-news__hero-section {
    height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-news__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-register,
  .page-news__btn-login,
  .page-news__btn-download {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9em;
  }

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

  .page-news__section-intro {
    font-size: 1em;
  }

  .page-news__card-grid,
  .page-news__guide-content {
    grid-template-columns: 1fr;
  }

  .page-news__card,
  .page-news__guide-item {
    padding: 20px;
  }

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

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

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

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

  .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__guide-item,
  .page-news__faq-list,
  .page-news__faq-item,
  .page-news__hero-cta-buttons,
  .page-news__conclusion-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-news__conclusion-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

/* Ensure content area images are not too small */
.page-news__card-image, .page-news__guide-image {
  min-width: 200px;
  min-height: 200px;
}

/* For paragraphs and list items on dark background */
.page-news p, .page-news li {
  color: #f0f0f0;
}

/* For paragraphs and list items on light background (guide section) */
.page-news__guide-section p, .page-news__guide-section li {
  color: #333333;
}