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

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

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

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #017439;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small padding, body handles header offset */
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-blog__hero-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Recent Posts Section */
.page-blog__recent-posts {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

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

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

.page-blog__post-thumbnail {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

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

.page-blog__post-date {
  color: #999999;
}

.page-blog__post-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-excerpt {
  font-size: 15px;
  color: #555555;
  margin-bottom: 15px;
}

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

.page-blog__read-more::after {
  content: '→';
  margin-left: 5px;
  transition: margin-left 0.2s ease;
}

.page-blog__post-link:hover .page-blog__read-more::after {
  margin-left: 10px;
}

.page-blog__center-button {
  text-align: center;
  margin-top: 40px;
}

.page-blog__view-all-btn {
  display: inline-block;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

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

.page-blog__categories-section .page-blog__section-title::after {
  background-color: #ffffff;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.page-blog__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__category-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

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

.page-blog__category-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 15px;
  display: block;
}

.page-blog__category-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

/* Main Content Section */
.page-blog__main-content {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-blog__main-content h3 {
  font-size: 26px;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-blog__main-content h4 {
  font-size: 22px;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 10px;
}

.page-blog__main-content p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #333333;
}

.page-blog__main-content a {
  color: #017439;
  text-decoration: underline;
}

.page-blog__main-content a:hover {
  color: #005f2e;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 60px 0;
  background-color: #f0f0f0;
  text-align: center;
}

.page-blog__cta-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: #555555;
}

.page-blog__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-button span {
  margin-left: 10px;
}

.page-blog__cta-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

/* FAQ Section */
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;
}

/* Button Styles */
.page-blog__btn-primary {
  background-color: #017439;
  color: #FFFFFF;
  border: none;
}

.page-blog__btn-primary:hover {
  background-color: #005f2e;
  transform: scale(1.02);
}

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

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: scale(1.02);
}

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

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

  .page-blog__posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-blog__categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

  /* Hero Section */
  .page-blog__hero-section {
    padding-top: 0; /* body handles header offset, small padding already applied */
  }

  .page-blog__hero-image {
    object-fit: contain; /* Ensure full image is visible */
    max-height: 400px; /* Adjust height for mobile */
  }

  .page-blog__hero-content {
    position: static;
    transform: none;
    padding: 20px 15px;
    background: rgba(0, 0, 0, 0.6); /* Darker overlay for text readability on smaller screens */
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
    margin-top: -5px; /* Pull up slightly to meet image */
  }

  .page-blog__hero-title {
    font-size: 32px;
    margin-bottom: 10px;
  }

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

  .page-blog__hero-cta {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Recent Posts Section */
  .page-blog__recent-posts {
    padding: 40px 0;
  }

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

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

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

  .page-blog__view-all-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Categories Section */
  .page-blog__categories-section {
    padding: 40px 0;
  }

  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-blog__category-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  .page-blog__category-title {
    font-size: 16px;
  }

  /* Main Content Section */
  .page-blog__main-content {
    padding: 40px 0;
  }

  .page-blog__main-content h3 {
    font-size: 24px;
    margin-top: 30px;
  }

  .page-blog__main-content h4 {
    font-size: 20px;
    margin-top: 25px;
  }

  .page-blog__main-content p {
    font-size: 15px;
  }

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

  .page-blog__cta-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-blog__cta-button {
    font-size: 18px;
    padding: 12px 25px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__cta-icon {
    width: 25px;
    height: 25px;
  }

  /* FAQ Section */
  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 15px; }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }

  /* General Image & Button Responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-blog__hero-section, .page-blog__recent-posts, .page-blog__categories-section, .page-blog__main-content, .page-blog__cta-section, .page-blog__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .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;
    padding-right: 15px;
  }

  .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;
  }
}

/* Color Contrast & Brand Colors */
.page-blog__dark-section {
  background: #017439;
  color: #ffffff;
}
.page-blog__dark-section .page-blog__section-title {
  color: #ffffff;
}
.page-blog__dark-section .page-blog__section-title::after {
  background-color: #ffffff;
}
.page-blog__post-title,
.page-blog__read-more,
.page-blog__main-content a {
  color: #017439;
}
.page-blog__main-content a:hover {
  color: #005f2e;
}
.page-blog__btn-primary {
  background: #017439;
  color: #ffffff;
}
.page-blog__btn-primary:hover {
  background: #005f2e;
}
.page-blog__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}
.page-blog__btn-secondary:hover {
  background: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
}
.page-blog__faq-qtext {
  color: #333333;
}
.page-blog__faq-toggle {
  color: #666;
}
.page-blog__faq-answer {
  color: #555555;
}
.page-blog__post-card {
  background-color: #ffffff;
  color: #333333;
}
.page-blog__post-excerpt {
  color: #555555;
}
.page-blog__cta-text {
  color: #555555;
}