.page-blog {
  color: #333333; /* Dark text for default white body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

.page-blog__hero-section {
  position: relative;
  text-align: center;
  color: #ffffff;
  padding-bottom: 60px;
  overflow: hidden; /* Prevent content overflow */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  filter: brightness(0.6); /* Darken image for text readability, not changing color */
}

.page-blog__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* Minimum height for hero */
}

.page-blog__hero-content {
  z-index: 1;
  max-width: 800px;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Primary gold color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

.page-blog__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-blog__button--primary {
  background-color: #FFD700; /* Primary gold color */
  color: #333333;
  border: 2px solid #FFD700;
}

.page-blog__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-blog__button--secondary {
  background-color: #008000; /* Secondary dark green color */
  color: #ffffff;
  border: 2px solid #008000;
}

.page-blog__button--secondary:hover {
  background-color: #006600;
  transform: translateY(-2px);
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #008000; /* Secondary dark green color */
  text-align: center;
  margin-bottom: 50px;
  margin-top: 60px;
  position: relative;
}

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

.page-blog__latest-posts {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-blog__post-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px 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(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  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.6em;
  margin-bottom: 15px;
  color: #008000;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #FFD700;
}

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

.page-blog__read-more {
  display: inline-block;
  color: #DC143C; /* Accent red color */
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-blog__read-more:hover {
  color: #a3102e;
}

.page-blog__call-to-action {
  background-color: #008000; /* Secondary dark green */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

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

.page-blog__cta-title {
  font-size: 2.8em;
  color: #FFD700; /* Primary gold */
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-blog__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

.page-blog__categories {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-blog__category-card {
  background-color: #f0f0f0;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-card:hover {
  background-color: #FFD700;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  color: #000000;
}

.page-blog__category-title {
  font-size: 1.5em;
  color: #008000;
  margin-bottom: 10px;
}

.page-blog__category-card:hover .page-blog__category-title {
  color: #333333;
}

.page-blog__category-count {
  font-size: 1em;
  color: #777777;
}

.page-blog__category-card:hover .page-blog__category-count {
  color: #555555;
}

.page-blog__more-about-jili77 {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-blog__content-paragraph {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #444444;
  text-align: justify;
}

.page-blog__content-paragraph:last-child {
  margin-bottom: 0;
}

.page-blog__contact-promo {
  background-color: #DC143C; /* Accent red color */
  padding: 70px 20px;
  text-align: center;
  color: #ffffff;
}

.page-blog__contact-content {
  max-width: 800px;
}

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

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

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

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

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }

  .page-blog__hero-container {
    padding: 80px 15px 40px;
    min-height: 300px;
  }

  .page-blog__hero-title {
    font-size: 2.5em;
  }

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

  .page-blog__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__button {
    width: 100%;
    max-width: 300px; /* Limit button width on small screens */
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

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

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

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

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

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

  .page-blog__content-paragraph {
    font-size: 1em;
  }

  /* Ensure content images do not overflow on mobile */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }

  /* Content area images specifically */
  .page-blog__post-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
  }
}

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

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

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

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