.page-blog {
  color: #ffffff; /* Light text for dark body background */
  background-color: #2c3e50; /* Inherited from body, ensuring contrast */
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

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

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  background-color: #1A202C; /* Auxiliary dark background */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for text readability */
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 900px;
  z-index: 10;
  padding: 20px;
}

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

.page-blog__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #1A202C; /* Dark text for gold button */
  padding: 15px 30px;
  border-radius: 8px;
  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: #e6c200; /* Darker gold on hover */
  transform: translateY(-3px);
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin: 60px 0 40px;
  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: #1A202C; /* Dark background for content section */
}

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

.page-blog__post-card {
  background-color: #2a3340; /* Slightly lighter dark background for cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  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 25px rgba(0, 0, 0, 0.6);
}

.page-blog__post-image {
  width: 100%;
  height: 225px;
  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;
  line-height: 1.4;
}

.page-blog__post-title a {
  color: #FFD700; /* Gold for post titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-blog__read-more {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #FFD700;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-blog__view-all {
  text-align: center;
  margin-top: 50px;
}

.page-blog__view-all-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A202C;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__view-all-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

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

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

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

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

.page-blog__category-card h3 {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-blog__category-card p {
  font-size: 1em;
  color: #cccccc;
}

.page-blog__cta-section {
  background-color: #1A202C;
  padding: 80px 20px;
  text-align: center;
}

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

.page-blog__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A202C;
  padding: 18px 45px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 0 15px;
}

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

.page-blog__cta-button--secondary {
  background-color: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
}

.page-blog__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-blog__about-jili100 {
  padding: 80px 0;
  background-color: #2c3e50;
}

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

.page-blog__about-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.page-blog__about-text {
  flex: 2;
  min-width: 300px;
}

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

.page-blog__about-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A202C;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 10px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__about-content {
    flex-direction: column;
  }
  .page-blog__about-image, .page-blog__about-text {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .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;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
    margin: 10px 0;
  }
  .page-blog__cta-button + .page-blog__cta-button {
    margin-left: 0;
  }
  .page-blog__about-text p {
    font-size: 1em;
  }
  /* CRITICAL: Mobile content area image constraint */
  .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__hero-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-blog__post-title {
    font-size: 1.4em;
  }
  .page-blog__read-more {
    padding: 6px 12px;
    font-size: 0.9em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-button {
    display: block;
    width: fit-content;
    margin: 15px auto;
  }
}