.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Aligns with body padding-top, prevents double spacing */
  background-color: var(--background-color, #F5F7FA);
  color: var(--text-main-color, #333333);
}

.page-news__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-news__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #E53935; /* Using brand primary color for title */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-main-color, #333333);
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-news__articles-section {
  padding: 60px 0;
  background-color: var(--background-color, #F5F7FA);
  color: var(--text-main-color, #333333);
}

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

.page-news__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color, #E53935);
}

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

.page-news__article-card {
  background: var(--card-bg-color, #FFFFFF);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

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

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-news__article-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main-color, #333333);
  line-height: 1.4;
}

.page-news__article-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__article-date {
  font-size: 0.85rem;
  color: #999999;
  display: block;
  margin-top: auto; /* Pushes date to the bottom */
}

.page-news__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  gap: 10px;
}

.page-news__pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #E0E0E0);
  color: var(--text-main-color, #333333);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-news__pagination-item:hover:not(.page-news__pagination-item--active) {
  background-color: var(--secondary-color, #FF5A4F);
  color: #ffffff;
  border-color: var(--secondary-color, #FF5A4F);
}

.page-news__pagination-item--active {
  background-color: var(--primary-color, #E53935);
  color: #ffffff;
  border-color: var(--primary-color, #E53935);
  cursor: default;
}

.page-news__cta-section {
  background: var(--primary-color, #E53935);
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-news__cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-news__cta-description {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  padding: 15px 40px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__hero-image {
    border-radius: 4px;
    margin-bottom: 20px;
  }

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

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

  .page-news__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

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

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

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

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

  .page-news__pagination {
    margin-top: 40px;
  }

  .page-news__pagination-item {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

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

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

  .page-news__cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-news__btn-primary {
    padding: 12px 30px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General image responsive styles */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

/* Color contrast specific styles */
.page-news__dark-bg {
  background: var(--primary-color, #E53935);
  color: #ffffff;
}

.page-news p,
.page-news li {
  color: var(--text-main-color, #333333);
}

.page-news__article-card {
  background: var(--card-bg-color, #FFFFFF);
  color: var(--text-main-color, #333333);
  border: 1px solid var(--border-color, #E0E0E0);
}

.page-news__article-title {
  color: var(--text-main-color, #333333);
}

.page-news__pagination-item {
  border-color: var(--border-color, #E0E0E0);
  color: var(--text-main-color, #333333);
}

.page-news__pagination-item--active {
  background-color: var(--primary-color, #E53935);
  color: #ffffff;
  border-color: var(--primary-color, #E53935);
}