.page-news__hero-section {
  padding-top: var(--header-offset, 120px);
  background: #017439; /* Brand color as background */
  color: #ffffff; /* White text for contrast */
  text-align: center;
  padding-bottom: 60px;
}

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

.page-news__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  font-weight: 700;
}

.page-news__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__btn-primary {
  display: inline-block;
  background: #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;
  cursor: pointer;
  font-size: 1.1em;
}

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

.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff; /* Default for dark sections */
  font-weight: 700;
}

.page-news__latest-news, .page-news__expert-guides, .page-news__faq-section, .page-news__cta-final {
  padding: 80px 0;
  background: #017439; /* Dark background for sections */
  color: #ffffff;
}

.page-news__industry-insights, .page-news__testimonials {
  padding: 80px 0;
  background: #ffffff; /* Light background for sections */
  color: #333333;
}

.page-news__industry-insights .page-news__section-title, .page-news__testimonials .page-news__section-title {
  color: #017439;
}

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

.page-news__grid--two-columns {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-news__card {
  background: #ffffff;
  color: #333333;
  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;
}

.page-news__card:hover {
  transform: translateY(-5px);
}

.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.4em;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 600;
}

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

.page-news__card-title a:hover {
  color: #005f2e;
}

.page-news__card-description {
  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;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

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

.page-news__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-news__cta-block {
  background: #f0f0f0;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  margin-top: 60px;
  color: #333333;
}

.page-news__cta-text {
  font-size: 1.3em;
  margin-bottom: 25px;
  font-weight: 600;
}

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

.page-news__testimonial-card {
  background: #f8f8f8;
  border-left: 5px solid #017439;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-news__testimonial-text {
  font-style: italic;
  margin-bottom: 15px;
  line-height: 1.6;
  color: #555555;
}

.page-news__testimonial-author {
  font-weight: bold;
  color: #017439;
}

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

.page-news__faq-item {
  background: rgba(255, 255, 255, 0.1);
  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: 600;
  color: #ffffff;
  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;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg);
}

.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; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

.page-news__faq-answer p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-news__faq-answer a {
  color: #FFFF00; /* Link color in dark section */
  text-decoration: underline;
}

.page-news__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #017439;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
  font-size: 1.1em;
}

.page-news__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  border-color: #005f2e;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__grid--two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__main-title {
    font-size: 2.2em;
  }
  .page-news__intro-text {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__grid {
    grid-template-columns: 1fr;
  }
  .page-news__card-image {
    height: 200px;
  }
  .page-news__card-content {
    padding: 20px;
  }
  .page-news__card-title {
    font-size: 1.2em;
  }
  .page-news__text-block {
    font-size: 0.95em;
  }
  .page-news__cta-block {
    padding: 30px;
  }
  .page-news__cta-text {
    font-size: 1.1em;
  }
  .page-news__btn-primary, .page-news__btn-secondary {
    width: 100%;
    max-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 {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__testimonial-grid {
    grid-template-columns: 1fr;
  }
  .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;
  }
  /* Mobile image and container overflow fix */
  .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__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-news__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__latest-news, .page-news__industry-insights, .page-news__expert-guides, .page-news__testimonials, .page-news__faq-section, .page-news__cta-final {
    padding: 40px 0;
  }
}