.page-news__hero-section {
  background-color: var(--bg-background);
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small padding, relying on body for header offset */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 1390px;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

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

.page-news__main-title {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  /* Use clamp for responsive font size, avoiding fixed large values */
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

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

.page-news__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  font-weight: 600;
  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(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-news__latest-news-section {
  padding: 60px 20px;
  max-width: 1390px;
  margin: 0 auto;
  background-color: var(--bg-background);
}

.page-news__section-title {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

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

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

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

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

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

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

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

.page-news__card-title a:hover {
  color: var(--main-color);
}

.page-news__card-date {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 15px;
}

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

.page-news__read-more {
  display: inline-block;
  color: var(--main-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: var(--accent-color);
}

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

.page-news__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  font-weight: 600;
  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__view-all-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-news__about-section {
  padding: 60px 20px;
  max-width: 1390px;
  margin: 0 auto;
  text-align: center;
  background-color: var(--bg-background);
}

.page-news__text-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button--small {
  padding: 10px 20px;
  font-size: 1rem;
}

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

  .page-news__hero-image-wrapper {
    margin-bottom: 20px;
  }

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

  .page-news__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-news__latest-news-section {
    padding: 40px 15px;
  }

  .page-news__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }

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

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

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

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

  .page-news__about-section {
    padding: 40px 15px;
  }

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

  /* Ensure all images in content area are responsive and not smaller than 200px */
  .page-news img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum width for content images */
    min-height: 200px; /* Enforce minimum height for content images */
  }

  .page-news__card-image {
    min-width: unset; /* Card images can be smaller if aspect ratio dictates */
    min-height: unset;
    height: 200px; /* Keep consistent height for card images */
  }
}

/* Base styles for the color scheme */
:root {
  --main-color: #2F6BFF;
  --accent-color: #6FA3FF;
  --btn-background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --bg-card-bg: #FFFFFF;
  --bg-background: #F4F7FB;
  --text-main: #1F2D3D;
  --text-custom-color-1776249996415: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

/* Apply custom colors */
.page-news__main-title,
.page-news__description,
.page-news__section-title,
.page-news__card-title a,
.page-news__card-excerpt,
.page-news__text-content {
  color: var(--text-main);
}

.page-news__card-title a:hover,
.page-news__read-more {
  color: var(--main-color);
}

.page-news__read-more:hover {
  color: var(--accent-color);
}

.page-news__cta-button,
.page-news__view-all-button {
  background: var(--btn-background);
}

.page-news__news-card {
  background-color: var(--bg-card-bg);
  border: 1px solid var(--border-color);
}

.page-news__hero-section,
.page-news__latest-news-section,
.page-news__about-section {
  background-color: var(--bg-background);
}

/* Ensure images are not filtered */
.page-news__hero-image, .page-news__card-image {
  filter: none;
}

/* Ensure content area images are at least 200x200px by default */
.page-news__latest-news-section img, .page-news__about-section img {
  min-width: 200px;
  min-height: 200px;
}

/* Specific adjustment for card images if they are naturally smaller than 200px in one dimension but need to fit */
.page-news__card-image {
  min-width: unset; /* Allow card image width to adapt if it's the main image */
  min-height: unset;
  height: 250px; /* Keep fixed height for visual consistency in grid */
}

/* Ensure HTML width/height attributes are respected or overridden responsively */
.page-news__hero-image[width][height] {
  width: var(--img-width, 100%);
  height: var(--img-height, auto);
}
.page-news__card-image[width][height] {
  width: var(--img-width, 100%);
  height: var(--img-height, auto);
}

/* Ensure no text overlay on hero image */
.page-news__hero-section {
  position: relative; /* For context */
}
.page-news__hero-image-wrapper {
  z-index: 1;
}
.page-news__hero-content {
  z-index: 2; /* Content is above background, but below image in DOM flow */
  position: relative;
  margin-top: -20px; /* Slight overlap for visual appeal, but not over the image itself */
}

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