.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  color: #ffffff;
  overflow: hidden;
}

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

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

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

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

.page-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #ffffff;
}

.page-news__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
}

.page-news__btn-primary:hover {
  background-color: #A30606;
  transform: translateY(-2px);
}

.page-news__section {
  padding: 60px 20px;
}

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

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

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  color: #333333;
}

.page-news__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-news__dark-bg .page-news__section-title,
.page-news__dark-bg .page-news__section-description {
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-news__news-card,
.page-news__feature-item,
.page-news__guide-item,
.page-news__promo-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

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

.page-news__news-image,
.page-news__feature-image,
.page-news__guide-image,
.page-news__promo-image {
  width: 100%;
  height: 220px; /* Consistent height for card images */
  object-fit: cover;
}

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

.page-news__card-title,
.page-news__feature-title,
.page-news__guide-title,
.page-news__promo-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  line-height: 1.4;
  color: #017439;
}

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

.page-news__card-title a:hover,
.page-news__feature-title a:hover,
.page-news__guide-title a:hover,
.page-news__promo-title a:hover {
  text-decoration: underline;
}

.page-news__card-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #005f2c;
  text-decoration: underline;
}

.page-news__security-info {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #333333;
}

.page-news__security-info a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-news__security-info a:hover {
  text-decoration: underline;
}

.page-news__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* FAQ Section */
.page-news__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__faq-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  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.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background: #f1f1f1;
  transition: background-color 0.3s ease;
}

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

.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); /* For '-' symbol */
}

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

.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-bottom: 10px;
  line-height: 1.6;
}

.page-news__faq-answer a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-news__faq-answer a:hover {
  text-decoration: underline;
}

.page-news__faq-more-info {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
  color: #333333;
}

.page-news__faq-more-info a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-news__faq-more-info a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__news-grid,
  .page-news__feature-grid,
  .page-news__guide-grid,
  .page-news__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__btn-primary {
    padding: 12px 25px;
    font-size: 0.9em;
  }
  .page-news__section {
    padding: 40px 15px;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 0.95em;
  }
  .page-news__news-card,
  .page-news__feature-item,
  .page-news__guide-item,
  .page-news__promo-card {
    margin-bottom: 20px;
  }
  .page-news__news-image,
  .page-news__feature-image,
  .page-news__guide-image,
  .page-news__promo-image {
    height: 180px;
  }
  .page-news__card-title,
  .page-news__feature-title,
  .page-news__guide-title,
  .page-news__promo-title {
    font-size: 1.2em;
  }
  .page-news__card-text {
    font-size: 0.9em;
  }
  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-news__faq-answer {
    padding: 0 15px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 10px 15px;
  }
  
  /* Mobile responsive image styles */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section,
  .page-news__container,
  .page-news__hero-section,
  .page-news__news-grid,
  .page-news__feature-grid,
  .page-news__guide-grid,
  .page-news__promo-grid,
  .page-news__news-card,
  .page-news__feature-item,
  .page-news__guide-item,
  .page-news__promo-card,
  .page-news__faq-list,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-news__hero-content .page-news__btn-primary {
    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-bottom .page-news__btn-primary {
    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;
  }

  /* Ensure content area images are at least 200px wide */
  .page-news__content-area img,
  .page-news__news-card img,
  .page-news__feature-item img,
  .page-news__guide-item img,
  .page-news__promo-card img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}