.page-news__hero-section {
  position: relative;
  padding: 10px 0 60px 0; /* body handles header offset, small top padding for aesthetic */
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  max-width: 1200px;
}

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

.page-news__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  max-width: 100%; /* Ensure H1 doesn't overflow on small screens */
}

.page-news__hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f8ff;
}

.page-news__news-list-section {
  padding: 60px 0;
  background: #F4F7FB; /* Custom Background */
  color: #1F2D3D; /* Custom Text Main */
}

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

.page-news__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #1F2D3D; /* Custom Text Main */
  text-align: center;
  margin-bottom: 40px;
}

.page-news__section-title--light {
  color: #ffffff;
}

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

.page-news__news-card {
  background: #FFFFFF; /* Custom Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF; /* Custom Border */
}

.page-news__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

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

.page-news__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__card-title a {
  color: #1F2D3D; /* Custom Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #2F6BFF; /* Main Color */
}

.page-news__card-meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1em;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 20px;
}

.page-news__card-link {
  display: inline-block;
  color: #2F6BFF; /* Main Color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.page-news__cta-buttons {
  text-align: center;
  margin-top: 20px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Custom Button Color */
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.6);
}

.page-news__btn-secondary {
  background: #ffffff; /* Custom Card BG */
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF; /* Main Color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-news__btn-secondary:hover {
  background: #2F6BFF; /* Main Color */
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.3);
}

.page-news__cta-section {
  background: #2F6BFF; /* Main Color */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-news__cta-text {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 20px auto 40px auto;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.5em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__card-image {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-news__main-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
    margin-bottom: 15px;
  }
  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-news__news-list-section, .page-news__cta-section {
    padding: 40px 0;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-news__card-image {
    height: 200px;
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-news__card-title {
    font-size: 1.2em;
  }
  .page-news__card-content {
    padding: 20px;
  }

  /* Mobile button adaptations */
  .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 !important;
    padding-right: 15px !important;
    margin-bottom: 15px; /* Add space between stacked buttons */
  }

  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Content area image minimum size check */
  .page-news__news-list-section img {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Ensure no image filter is applied */
  .page-news img {
    filter: none !important;
  }

}

@media (max-width: 480px) {
  .page-news__btn-primary,
  .page-news__btn-secondary {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-news__cta-text {
    font-size: 1em;
  }
}