.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
}

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background-color: #f8f8f8;
}

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

.page-blog__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: #333333;
}

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

.page-blog__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

.page-blog__hero-image-wrapper {
  flex: 1 1 45%;
  text-align: center;
}

.page-blog__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-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: #005a2d;
  border-color: #005a2d;
}

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

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

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

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

.page-blog__section-title--light {
  color: #ffffff;
}

.page-blog__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__section-description--light {
  color: #f0f0f0;
}

.page-blog__intro-section {
  background-color: #ffffff;
  color: #333333;
}

.page-blog__articles-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-blog__article-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: #333333;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__article-media {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-blog__article-media img {
  width: 100%;
  height: 100%;
  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.4em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

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

.page-blog__article-excerpt {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
}

.page-blog__view-all-button {
  text-align: center;
}

.page-blog__latest-news-section {
  background-color: #f8f8f8;
  color: #333333;
}

.page-blog__news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.page-blog__news-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
  color: #888888;
  margin-bottom: 10px;
}

.page-blog__news-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-blog__news-title a {
  color: #017439;
  text-decoration: none;
}

.page-blog__news-title a:hover {
  text-decoration: underline;
}

.page-blog__news-excerpt {
  color: #555555;
}

.page-blog__tips-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-blog__tip-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #333333;
  display: flex;
  flex-direction: column;
}

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

.page-blog__tip-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #017439;
  padding: 15px 20px 10px;
}

.page-blog__tip-excerpt {
  padding: 0 20px 15px;
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
}

.page-blog__tip-link {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px 20px;
}

.page-blog__tip-link:hover {
  text-decoration: underline;
}

.page-blog__faq-section {
  background-color: #ffffff;
  color: #333333;
}

.page-blog__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.page-blog__faq-question::-webkit-details-marker, 
.page-blog__faq-question::marker {
  display: none;
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-blog__faq-answer {
  padding: 0 25px 18px;
  font-size: 1em;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-blog__faq-item[open] .page-blog__faq-answer {
  max-height: 2000px; /* Large enough to accommodate content */
  padding-top: 10px;
}

.page-blog__cta-section {
  background-color: #017439;
  padding: 60px 0;
  text-align: center;
}

.page-blog__cta-container {
  max-width: 900px;
}

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

.page-blog__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

/* All containers holding images or text that could overflow */
.page-blog__section,
.page-blog__card,
.page-blog__container,
.page-blog__articles-grid,
.page-blog__news-list,
.page-blog__tips-grid,
.page-blog__faq-list,
.page-blog__hero-buttons,
.page-blog__cta-buttons {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent content from overflowing horizontally */
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
  .page-blog {
    font-size: 15px;
    line-height: 1.5;
  }

  /* HERO Section */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body for header offset */
  }

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

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

  .page-blog__hero-title {
    font-size: 2em;
    text-align: center;
  }

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

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

  /* Buttons */
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__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;
    flex-direction: column;
  }

  /* Section Titles & Descriptions */
  .page-blog__section-title {
    font-size: 1.8em;
  }

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

  /* Article Grid */
  .page-blog__articles-grid,
  .page-blog__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  /* News List */
  .page-blog__news-item {
    padding: 20px;
  }

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

  /* Tips Section */
  .page-blog__tip-image {
    height: 180px;
  }

  .page-blog__tip-title {
    font-size: 1.2em;
  }

  /* FAQ */
  .page-blog__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-blog__faq-toggle {
    font-size: 1.2em;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }

  /* CTA Section */
  .page-blog__cta-title {
    font-size: 2em;
  }

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

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

  /* All content containers for mobile padding */
  .page-blog__container,
  .page-blog__articles-section .page-blog__container,
  .page-blog__latest-news-section .page-blog__container,
  .page-blog__tips-section .page-blog__container,
  .page-blog__faq-section .page-blog__container,
  .page-blog__cta-section .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
}