.page-news {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  text-align: center;
  overflow: hidden;
}

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

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

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

.page-news__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

/* Buttons */
.page-news__btn-primary, .page-news__btn-secondary {
  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, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.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__btn-register {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00;
}

.page-news__btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
  color: #fff;
}

.page-news__btn-login {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00;
}

.page-news__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
  color: #fff;
}

/* Latest News Section */
.page-news__latest-news-section, .page-news__guides-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-news__news-card, .page-news__guide-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

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

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

.page-news__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  min-height: 60px; /* Ensure consistent height for titles */
}

.page-news__card-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

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

.page-news__card-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
  min-height: 70px; /* Ensure consistent height for excerpts */
}

.page-news__card-date {
  font-size: 0.85em;
  color: #888888;
  display: block;
  margin-bottom: 15px;
}

.page-news__card-read-more {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-news__card-read-more:hover {
  text-decoration: underline;
}

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

/* Promotions Section */
.page-news__promotions-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-news__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__promo-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__promo-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-news__promo-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

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

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  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: 15px 20px;
}

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

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

.page-news__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #017439;
}

.page-news__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3em;
  }
  .page-news__section-title {
    font-size: 2.2em;
  }
}

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

  .page-news__container {
    padding: 0 15px;
  }

  .page-news__hero-section {
    min-height: 500px;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }

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

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

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

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

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

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

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

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

  .page-news__card-excerpt {
    min-height: unset;
  }

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

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

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

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

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

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

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

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

  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__promotions-section,
  .page-news__guides-section,
  .page-news__faq-section,
  .page-news__cta-section,
  .page-news__news-card,
  .page-news__guide-card,
  .page-news__promo-item,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__hero-section { padding-left: 0; padding-right: 0; } /* Hero uses internal content padding */
  .page-news__latest-news-section { padding-left: 0; padding-right: 0; } 
  .page-news__promotions-section { padding-left: 0; padding-right: 0; } 
  .page-news__guides-section { padding-left: 0; padding-right: 0; } 
  .page-news__faq-section { padding-left: 0; padding-right: 0; } 
  .page-news__cta-section { padding-left: 0; padding-right: 0; } 

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

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 2em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
}