/* style/blog.css */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding as shared.css handles body padding-top */
  padding-bottom: 40px;
  background-color: #f8f8f8; /* Light background for contrast */
  color: #333333;
}

.page-blog__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  gap: 24px;
}

.page-blog__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-blog__hero-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #017439;
}

.page-blog__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #333333;
}

.page-blog__hero-cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #017439;
}

.page-blog__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-blog__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.page-blog__latest-articles-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-blog__content-area {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-blog__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

.page-blog__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  color: #333333;
}

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

.page-blog__article-card {
  background-color: #f9f9f9;
  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;
  display: flex;
  flex-direction: column;
  color: #333333;
}

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

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

.page-blog__article-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
}

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

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

.page-blog__article-title {
  font-size: 1.4em;
  font-weight: 600;
  margin: 20px 20px 10px;
  color: #017439;
  line-height: 1.4;
}

.page-blog__article-excerpt {
  font-size: 0.95em;
  line-height: 1.5;
  margin: 0 20px 15px;
  flex-grow: 1;
  color: #555555;
}

.page-blog__article-date {
  font-size: 0.85em;
  color: #888888;
  margin: 0 20px 20px;
  display: block;
}

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

.page-blog__cta-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.page-blog__cta-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-blog__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-blog__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.4em;
  }

  .page-blog__section-title {
    font-size: 2em;
  }

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

@media (max-width: 768px) {
  /* HERO Section */
  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px !important;
  }

  .page-blog__hero-container {
    flex-direction: column;
    padding: 30px 15px;
    gap: 20px;
  }

  .page-blog__hero-content,
  .page-blog__hero-image {
    flex: 1 1 100%;
    min-width: unset;
    width: 100%;
    text-align: center;
  }

  .page-blog__hero-title {
    font-size: 2em !important;
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-blog__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
    font-size: 0.95em;
  }

  .page-blog__hero-side-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Latest Articles Section */
  .page-blog__latest-articles-section {
    padding: 40px 0;
  }

  .page-blog__content-area {
    padding: 0 15px;
  }

  .page-blog__section-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }

  .page-blog__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

  .page-blog__article-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__article-image-wrapper {
    height: 180px; /* Adjust height for mobile */
  }

  .page-blog__article-image {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  .page-blog__article-title {
    font-size: 1.2em;
    margin: 15px 15px 8px;
  }

  .page-blog__article-excerpt,
  .page-blog__article-date {
    margin: 0 15px 15px;
    font-size: 0.9em;
  }

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

  /* CTA Section */
  .page-blog__cta-section {
    padding: 50px 0;
  }

  .page-blog__cta-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }

  .page-blog__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  /* General image and container rules for mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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;
  }
}