.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #FFFFFF;
}

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

.page-blog__hero-section {
  padding-top: 10px; /* Rely on body padding-top from shared.css */
  padding-bottom: 60px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-blog__hero-content {
  flex: 1;
  max-width: 600px;
  margin-right: 40px;
  text-align: left;
}

.page-blog__hero-image-wrapper {
  flex: 1;
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-blog__hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

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

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

.page-blog__recent-posts {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-blog__post-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__post-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-blog__post-content {
  padding: 20px;
}

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

.page-blog__post-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #017439;
  text-decoration: none;
  position: relative;
}

.page-blog__read-more::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: #017439;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.page-blog__read-more:hover::after {
  transform: scaleX(1);
}

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

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item {
  display: inline-block;
}

.page-blog__category-link {
  display: block;
  padding: 10px 20px;
  background-color: #005a2e; /* Darker green for contrast */
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__category-link:hover {
  background-color: #004d26;
  transform: translateY(-2px);
}

.page-blog__faq-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: #f5f5f5;
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

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

/* Mobile Styles */
@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__hero-section {
    flex-direction: column;
    padding-top: 10px !important; /* Specific mobile top padding */
    padding-bottom: 40px;
    text-align: center;
  }

  .page-blog__hero-content {
    margin-right: 0;
    margin-bottom: 30px;
    text-align: center;
    max-width: 100%;
  }

  .page-blog__hero-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

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

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

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__hero-image-wrapper {
    max-width: 100%;
    padding: 0 15px;
  }

  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-blog__recent-posts {
    padding: 50px 0;
  }

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

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

  .page-blog__post-title {
    font-size: 18px;
  }

  .page-blog__post-excerpt {
    font-size: 14px;
  }

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

  .page-blog__category-list {
    gap: 10px;
  }

  .page-blog__category-link {
    padding: 8px 15px;
    font-size: 14px;
  }

  .page-blog__faq-section {
    padding: 50px 0;
  }

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
  }

  .page-blog__faq-qtext {
    font-size: 15px;
  }

  .page-blog__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

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

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

  /* All content sections and cards */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__recent-posts,
  .page-blog__categories-section,
  .page-blog__faq-section,
  .page-blog__post-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button containers mobile adaptation */
  .page-blog__hero-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}