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

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a decent height */
  padding-top: var(--header-offset, 120px); /* Fixed header offset for PC */
  background-color: #000000; /* Fallback background for hero */
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.7; /* Slightly dim the image to make text stand out */
}

.page-blog__hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  color: #FFFFFF; /* White text over dark/dimmed hero image */
}

.page-blog__hero-content {
  position: relative;
  z-index: 3;
}

.page-blog__hero-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Gold accent for title */
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

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

.page-blog__button--primary {
  background-color: #FCBC45; /* Login color for primary action */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-blog__button--secondary {
  background-color: #000000; /* Main color for secondary action */
  color: #FFFFFF; /* Register color for secondary action */
  border: 2px solid #FFFFFF;
}

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

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

.page-blog__section-title {
  font-size: 2.8em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #000000;
}

.page-blog__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  color: #555555;
}

.page-blog__latest-posts,
.page-blog__categories-section,
.page-blog__cta-section,
.page-blog__about-jili50 {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-blog__latest-posts {
  background-color: #f9f9f9;
}

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

.page-blog__post-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 25px 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(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.page-blog__post-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

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

.page-blog__post-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

.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;
  line-height: 1.7;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto; /* Pushes button to the bottom */
}

.page-blog__read-more:hover {
  color: #e0a53b;
  text-decoration: underline;
}

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

.page-blog__category-card {
  background-color: #000000; /* Black background for categories */
  color: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-blog__category-card:hover {
  background-color: #333333;
  transform: translateY(-5px);
}

.page-blog__category-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FCBC45; /* Gold accent for category titles */
}

.page-blog__category-description {
  font-size: 1em;
  line-height: 1.5;
  color: #cccccc;
}

.page-blog__cta-section {
  background: linear-gradient(135deg, #000000 0%, #333333 100%); /* Dark gradient background */
  color: #FFFFFF;
  text-align: center;
}

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

.page-blog__cta-section .page-blog__section-intro {
  color: #f0f0f0;
}

.page-blog__cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-blog__about-jili50 p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #444444;
}

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

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

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

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

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

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

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

  .page-blog__button {
    width: 80%;
    margin: 0 auto;
  }

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

  .page-blog__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-blog__post-grid,
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

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

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

  .page-blog__latest-posts,
  .page-blog__categories-section,
  .page-blog__cta-section,
  .page-blog__about-jili50 {
    padding: 60px 0;
  }

  /* Critical: prevent content images from overflowing on mobile */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

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

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

  .page-blog__button {
    width: 90%;
  }

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