.page-news {
  background-color: #F4F7FB;
  color: #1F2D3D;
}

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
}

.page-news__hero-image {
  width: 100%;
  max-height: 675px;
  object-fit: cover;
  display: block;
}

.page-news__hero-content {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Overlap slightly on the hero image for visual effect, but not text on image */
  position: relative;
  z-index: 1;
}

.page-news__main-title {
  color: #000000;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto 20px auto;
  /* Using clamp for responsive font size, but not fixed values */
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.page-news__hero-description {
  color: #1F2D3D;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-news__hero-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

.page-news__hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.6);
}

.page-news__articles-section {
  padding: 60px 0;
}

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

.page-news__section-heading {
  color: #000000;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-news__section-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #2F6BFF;
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

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

.page-news__article-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF;
}

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

.page-news__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

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

.page-news__article-title a:hover {
  color: #2F6BFF;
}

.page-news__article-date {
  color: #6FA3FF;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: block;
}

.page-news__article-excerpt {
  color: #1F2D3D;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-news__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 30px;
  background: #2F6BFF;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.page-news__read-more-button:hover {
  background-color: #6FA3FF;
}

.page-news__button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-news__view-all-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

.page-news__view-all-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.6);
}

.page-news__cta-section {
  background-color: #2F6BFF;
  padding: 80px 0;
  text-align: center;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-news__cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(47, 107, 255, 0.8), rgba(111, 163, 255, 0.8));
  z-index: 0;
}

.page-news__cta-content {
  position: relative;
  z-index: 1;
}

.page-news__cta-heading {
  color: #FFFFFF;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.page-news__cta-description {
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  background: #FFFFFF;
  color: #2F6BFF;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  margin: 0 10px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
  background-color: #E0EFFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button--secondary {
  background: transparent;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
}

.page-news__cta-button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -60px;
    padding: 15px;
  }

  .page-news__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }

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

  .page-news__articles-grid {
    gap: 20px;
  }

  .page-news__article-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .page-news__hero-content {
    margin-top: -40px;
    padding: 10px;
  }

  .page-news__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-news__hero-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-news__section-heading {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }

  .page-news__article-image {
    max-width: 100%;
    height: auto; /* Allow image to scale proportionally */
    min-width: 200px;
    min-height: 200px;
  }

  .page-news__article-card img,
  .page-news__articles-grid img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }

  .page-news__cta-heading {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .page-news__cta-button {
    padding: 14px 30px;
    font-size: 1.1rem;
    margin: 10px 0;
    width: calc(100% - 20px);
    max-width: 300px;
  }

  .page-news__cta-button--secondary {
    margin-top: 15px;
  }

  .page-news__button-wrapper {
    margin-top: 40px;
  }

  .page-news__view-all-button {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-news__hero-content {
    margin-top: -30px;
    padding: 10px;
  }

  .page-news__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-news__hero-description {
    font-size: 0.95rem;
  }

  .page-news__article-title {
    font-size: 1.1rem;
  }

  .page-news__article-content {
    padding: 15px;
  }

  .page-news__read-more-button {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .page-news__cta-section {
    padding: 60px 0;
  }

  .page-news__cta-heading {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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