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

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

.page-news__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-news__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1F2D3D;
  margin-bottom: 15px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-news__subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 30px;
}

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

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-news__latest-articles {
  padding: 60px 0;
}

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

.page-news__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
}

.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;
}

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

.page-news__article-image {
  width: 100%;
  height: 220px; /* 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;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

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

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

.page-news__read-more {
  display: inline-block;
  color: #2F6BFF;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #4A8BFF;
}

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

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

.page-news__view-all-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(47, 107, 255, 0.35);
}

.page-news__about-us {
  background-color: #FFFFFF;
  padding: 60px 0;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.page-news__about-us .page-news__section-title {
  margin-bottom: 30px;
}

.page-news__text-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1F2D3D;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__read-more-about {
  display: inline-block;
  padding: 10px 20px;
  background-color: #6FA3FF;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.page-news__read-more-about:hover {
  background-color: #4A8BFF;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 30px;
  }

  .page-news__hero-image {
    max-height: 400px;
    margin-bottom: 15px;
  }

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

  .page-news__subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-news__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

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

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

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

  .page-news__article-excerpt {
    font-size: 0.95rem;
  }

  .page-news__view-all-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .page-news__text-content {
    font-size: 0.95rem;
  }

  /* Ensure content images do not overflow */
  .page-news img {
    max-width: 100%;
    height: auto;
  }
  .page-news__article-card img {
    max-width: 100%;
    height: auto; /* Override fixed height for responsiveness */
    min-height: 200px; /* Ensure min size */
  }
  .page-news__hero-image {
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-image {
    max-height: 250px;
  }
  .page-news__section-title {
    font-size: 1.8rem;
  }
  .page-news__article-title {
    font-size: 1.1rem;
  }
}