.page-blog {
  color: #333333; /* Dark text for light body background */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-blog__hero-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px; /* Minimum height for hero section */
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
  padding: 40px;
  border-radius: 10px;
  max-width: 800px;
  margin: 20px;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF; /* Ensure high contrast */
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #F0F0F0; /* Slightly lighter for description */
  line-height: 1.6;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color for CTA */
  color: #000000; /* Dark text for bright button */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__hero-button:hover {
  background-color: #e0a030;
  transform: translateY(-2px);
}

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

.page-blog__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin: 60px 0 40px;
  position: relative;
}

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

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

.page-blog__post-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  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: 220px;
  object-fit: cover;
}

.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;
  line-height: 1.3;
}

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

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

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

.page-blog__read-more {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: color 0.3s ease;
  margin-top: auto;
}

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

.page-blog__pagination {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 80px;
}

.page-blog__pagination-link {
  display: inline-block;
  padding: 10px 18px;
  margin: 0 5px;
  border: 1px solid #FCBC45;
  border-radius: 5px;
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover,
.page-blog__pagination-link--active {
  background-color: #FCBC45;
  color: #FFFFFF;
}

.page-blog__categories-section {
  background-color: #f8f8f8;
  padding: 80px 0;
}

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

.page-blog__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__category-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-blog__category-title {
  font-size: 1.4em;
  color: #000000;
  font-weight: bold;
}

.page-blog__cta-section {
  background-color: #000000; /* Main color for dark CTA */
  padding: 80px 20px;
  text-align: center;
}

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

.page-blog__cta-title {
  font-size: 3em;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-blog__cta-description {
  font-size: 1.2em;
  color: #F0F0F0;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color for CTA */
  color: #000000; /* Dark text for bright button */
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__cta-button:hover {
  background-color: #e0a030;
  transform: translateY(-3px);
}

.page-blog__about-newjili-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-blog__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 25px;
}

.page-blog__sub-title {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
}

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

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

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

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

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
    min-height: 400px;
  }

  .page-blog__hero-content {
    padding: 30px 20px;
    margin: 10px;
  }

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

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

  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-blog__section-title {
    font-size: 2em;
    margin: 40px 0 30px;
  }

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

  .page-blog__post-image {
    width: 100%;
    max-width: 100%;
    height: auto; /* Ensure images are responsive and not too small */
    min-height: 200px; /* Enforce minimum height */
    object-fit: cover;
  }

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

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

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

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

  .page-blog__category-image {
    width: 100%;
    max-width: 100%;
    height: auto; /* Ensure images are responsive and not too small */
    min-height: 200px; /* Enforce minimum height */
    object-fit: cover;
  }

  .page-blog__cta-section {
    padding: 60px 20px;
  }

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

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

  .page-blog__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  .page-blog__text-block {
    font-size: 1em;
  }

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

  /* Ensure no horizontal scroll for content */
  .page-blog {
    overflow-x: hidden;
  }
  .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__hero-image,
  .page-blog__post-image,
  .page-blog__category-image {
    max-width: 100%;
    height: auto;
  }
}

/* Global image rules for content area - enforce min size */
.page-blog img:not(.shared-header img):not(.shared-footer img) {
  min-width: 200px;
  min-height: 200px;
}

/* Specific overrides for responsiveness if needed */
@media (max-width: 768px) {
  .page-blog img:not(.shared-header img):not(.shared-footer img) {
    max-width: 100% !important;
    height: auto !important;
  }
}