.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Body background from shared.css */
}

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

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  position: relative;
  text-align: center;
  background-color: #f5f5f5;
  overflow: hidden;
  padding-bottom: 40px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.page-blog__hero-content {
  max-width: 800px;
  margin: 20px auto 0 auto;
  padding: 0 20px;
}

.page-blog__hero-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  line-height: 1.2;
  margin-bottom: 15px;
}

.page-blog__hero-description {
  font-size: 1.1em;
color: #333333;
}

.page-blog__section-title {
  font-size: 2em;
  font-weight: bold;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-blog__articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.page-blog__article-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-blog__article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

.page-blog__article-date {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1em;
  color: #333333;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-button {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto;
  text-align: center;
}

.page-blog__read-more-button:hover {
  background-color: #005f2c;
}

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-blog__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-blog__btn-primary:hover {
  background-color: #005f2c;
  border-color: #005f2c;
}

.page-blog__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #005f2c;
}

.page-blog__cta-section {
  background-color: #017439; /* Brand primary color for dark background */
  color: #ffffff; /* White text for dark background */
  padding: 60px 20px;
  text-align: center;
}

.page-blog__cta-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for important CTAs */
}

.page-blog__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* General image responsive styles */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__hero-section {
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .page-blog__hero-title {
    font-size: 1.8em;
  }

  .page-blog__hero-description {
    font-size: 1em;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-blog__articles-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

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

  .page-blog__article-title {
    font-size: 1.1em;
  }

  .page-blog__article-excerpt {
    font-size: 0.95em;
  }

  .page-blog__view-all-wrapper {
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-blog__view-all-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-blog__cta-title {
    font-size: 1.8em;
  }

  .page-blog__cta-description {
    font-size: 1em;
  }

  .page-blog__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}