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

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

.page-blog__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: left;
  background: linear-gradient(to right, #e0ffe0, #ffffff);
  color: #333333;
}

.page-blog__hero-content {
  flex: 1;
  padding-right: 30px;
  max-width: 60%;
}

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

.page-blog__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

.page-blog__cta-group {
  display: flex;
  gap: 15px;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

.page-blog__hero-image-wrapper {
  flex: 1;
  max-width: 40%;
  display: flex;
  justify-content: flex-end;
}

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

.page-blog__featured-categories,
.page-blog__latest-posts,
.page-blog__community-section,
.page-blog__faq-section,
.page-blog__cta-section {
  padding: 60px 0;
}

.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;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__category-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

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

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

.page-blog__card-text {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
}

.page-blog__card-link {
  display: inline-block;
  color: #017439;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #017439;
  padding-bottom: 3px;
}

.page-blog__card-link:hover {
  color: #005a2d;
  border-color: #005a2d;
}

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

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

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

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

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

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

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

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

.page-blog__post-meta {
  font-size: 0.85em;
  color: #888888;
  margin-bottom: 15px;
}

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

.page-blog__read-more-btn {
  display: inline-block;
  color: #017439;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #017439;
  padding-bottom: 3px;
  align-self: flex-start;
}

.page-blog__read-more-btn:hover {
  color: #005a2d;
  border-color: #005a2d;
}

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

.page-blog__community-section {
  background-color: #f9f9f9;
}

.page-blog__community-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-blog__community-text {
  flex: 1;
  padding-right: 20px;
}

.page-blog__sub-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #017439;
}

.page-blog__community-image-wrapper {
  flex: 1;
  max-width: 50%;
  display: flex;
  justify-content: center;
}

.page-blog__community-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-blog__faq-qtext {
  color: #017439;
}

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

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: "−";
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #eee;
  margin-top: -1px;
}

.page-blog__faq-answer p {
  margin-top: 15px;
}

.page-blog__cta-section {
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

.page-blog__cta-content {
  flex: 1;
  padding-right: 40px;
  max-width: 60%;
}

.page-blog__cta-section .page-blog__section-title {
  color: #ffffff;
  font-size: 2.5em;
}

.page-blog__cta-section .page-blog__section-description {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-blog__btn-large {
  padding: 15px 35px;
  font-size: 1.2em;
  border-radius: 10px;
  background-color: #C30808; /* Custom Register color */
  border-color: #C30808;
  color: #FFFF00; /* Custom Register font color */
}

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

.page-blog__cta-image-wrapper {
  flex: 1;
  max-width: 40%;
  display: flex;
  justify-content: flex-start;
}

.page-blog__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.4em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__hero-content {
    padding-right: 20px;
  }
  .page-blog__hero-image-wrapper {
    max-width: 45%;
  }
  .page-blog__community-text {
    padding-right: 15px;
  }
  .page-blog__cta-content {
    padding-right: 20px;
  }
}

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

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

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

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

  .page-blog__main-title {
    font-size: 2em;
    margin-top: 20px;
  }

  .page-blog__intro-text {
    font-size: 1em;
  }

  .page-blog__cta-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px !important;
  }

  .page-blog__hero-image-wrapper {
    max-width: 100%;
    justify-content: center;
  }

  .page-blog__hero-image {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Ensure image is not cropped */
  }

  /* Featured Categories */
  .page-blog__section-title {
    font-size: 1.8em;
  }

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

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

  .page-blog__category-card {
    padding: 25px;
  }

  /* Latest Posts */
  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

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

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

  .page-blog__post-excerpt {
    font-size: 0.9em;
  }

  /* Community Section */
  .page-blog__community-content {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__community-text {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .page-blog__sub-title {
    font-size: 1.3em;
  }

  .page-blog__community-image-wrapper {
    max-width: 100%;
  }

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

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

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

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

  .page-blog__cta-content {
    padding-right: 0;
    max-width: 100%;
    margin-bottom: 30px;
  }

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

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

  .page-blog__btn-large {
    max-width: 100% !important;
    width: 100% !important;
    padding: 15px 20px !important;
  }

  .page-blog__cta-image-wrapper {
    max-width: 100%;
  }

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

  /* General image and container rules */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__post-card,
  .page-blog__community-content,
  .page-blog__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !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;
  }

  .page-blog__cta-group {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__hero-section,
  .page-blog__featured-categories,
  .page-blog__latest-posts,
  .page-blog__community-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 30px 0;
  }
}