.page-news__main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  padding-top: var(--header-offset, 120px);
  color: #333333;
}

.page-news__main-title {
  font-size: 38px;
  color: #007bff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-news__intro-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.6;
  color: #555555;
}

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

.page-news__article-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  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 8px 25px rgba(0, 0, 0, 0.1);
}

.page-news__article-image-wrapper {
  width: 100%;
  height: 220px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

.page-news__article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-news__article-card:hover .page-news__article-image {
  transform: scale(1.05);
}

.page-news__article-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px 10px;
  font-size: 13px;
  color: #888888;
}

.page-news__article-category {
  font-weight: 600;
  color: #007bff;
  text-transform: uppercase;
}

.page-news__article-title {
  font-size: 22px;
  font-weight: 700;
  padding: 0 20px;
  margin-bottom: 10px;
}

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

.page-news__article-title a:hover {
  color: #007bff;
}

.page-news__article-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background: #ffc107;
  color: #333333;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__read-more-btn:hover {
  background: #e0a800;
  transform: translateY(-2px);
}

.page-news__cta-section {
  background: #007bff;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 40px;
}

.page-news__cta-title {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.page-news__cta-description {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #ffc107;
  color: #333333;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  background: #e0a800;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-news__main-content {
    padding: 30px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

  .page-news__main-title {
    font-size: 28px;
  }

  .page-news__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

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

  .page-news__article-title {
    font-size: 18px;
    padding: 0 15px;
  }

  .page-news__article-excerpt {
    font-size: 14px;
    padding: 0 15px;
  }

  .page-news__read-more-btn {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
    text-align: center;
  }

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

  .page-news__cta-title {
    font-size: 24px;
  }

  .page-news__cta-description {
    font-size: 16px;
  }

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

  /* Ensure all images are responsive and do not cause overflow */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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