.page-news {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-color: #F4F7FB;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  background-color: var(--background-color);
  color: var(--text-main);
}

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

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

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Max height for hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-news__hero-content {
  position: relative; /* Ensure content is above any potential background effect, but not over image */
  z-index: 2;
  max-width: 800px;
  padding: 0 15px;
}

.page-news__main-title {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-black);
  margin-bottom: 20px;
  max-width: 100%; /* Ensure H1 doesn't overflow */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-news__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 30px;
}

.page-news__button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--button-gradient);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
}

.page-news__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
}

.page-news__articles-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

.page-news__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-black);
  text-align: center;
  margin-bottom: 40px;
}

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

.page-news__article-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

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

.page-news__article-title a {
  color: var(--text-black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: var(--primary-color);
}

.page-news__article-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  display: block; /* Ensure time element is block for proper margin */
}

.page-news__article-excerpt {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 20px;
}

.page-news__read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more:hover {
  text-decoration: underline;
}

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

.page-news__cta-section {
  background-color: var(--primary-color);
  padding: 80px 0;
  text-align: center;
  color: #FFFFFF;
}

.page-news__cta-content {
  max-width: 900px;
}

.page-news__cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-news__cta-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #E0E0E0;
}

.page-news__cta-section .page-news__button {
  background: #FFFFFF; /* White button for contrast */
  color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-news__cta-section .page-news__button:hover {
  background: #F0F0F0;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 40px;
  }

  .page-news__main-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem); /* Use clamp for H1 */
  }

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

  .page-news__section-title {
    font-size: 2rem;
  }

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

  .page-news__article-image {
    height: 200px; /* Adjust height for smaller screens */
  }

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

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

  .page-news__cta-title {
    font-size: 1.8rem;
  }

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

  /* Ensure all content area images are responsive */
  .page-news img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size even on mobile if possible without overflow */
    min-height: 200px;
  }

  .page-news__hero-image {
    min-width: unset;
    min-height: unset;
  }

  .page-news__article-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-section {
    padding-bottom: 30px;
  }

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

  .page-news__button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .page-news__section-title {
    font-size: 1.8rem;
  }

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