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

.page-blog__hero-section {
  background-color: #000000; /* Primary color background */
  color: #FFFFFF; /* White text for dark background */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Highlight with login color */
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-blog__hero-cta {
  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: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.page-blog__button--register {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-blog__button--register:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-blog__button--login {
  background-color: #000000;
  color: #FCBC45;
  border: 2px solid #FCBC45;
}

.page-blog__button--login:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: #000000;
  position: relative;
}

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

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

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

.page-blog__article-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 25px 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__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
}

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

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

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

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

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

.page-blog__understanding-jackpots,
.page-blog__why-vip88 {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-blog__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-blog__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-blog__content-image {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
}

.page-blog__text-block {
  flex: 1;
  max-width: 50%;
}

.page-blog__text-block p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #333333;
}

.page-blog__text-block strong {
  color: #000000;
}

.page-blog__cta-section,
.page-blog__cta-bottom-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  margin: 60px auto;
}

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45;
}

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

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

.page-blog__button--promo,
.page-blog__button--learn-more {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-blog__button--promo:hover,
.page-blog__button--learn-more:hover {
  background-color: #000000;
  color: #FCBC45;
}

.page-blog__trending-topics {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.page-blog__topic-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.page-blog__topic-tag {
  display: inline-block;
  background-color: #F0F0F0;
  color: #000000;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.page-blog__topic-tag:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__about-us-summary {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.page-blog__about-description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
}

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

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

  .page-blog__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__content-image,
  .page-blog__text-block {
    max-width: 100%;
    width: 100%;
  }

  .page-blog__content-image--left,
  .page-blog__content-image--right {
    margin-bottom: 30px;
  }

  .page-blog__content-wrapper--reverse {
    flex-direction: column;
  }
}

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

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

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

  .page-blog__article-image {
    height: 180px;
  }

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

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

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

  /* Mobile content area images must not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure content images are not too small */
    min-height: 200px;
  }

  .page-blog__content-image {
    width: 100%; /* Ensure content images take full width on mobile */
    height: auto;
  }

  .page-blog__article-card img {
    width: 100%;
    height: auto;
    min-height: 200px;
  }

  .page-blog__hero-image {
    width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }

  .page-blog__hero-section {
    padding: 60px 15px;
  }

  .page-blog__latest-articles,
  .page-blog__understanding-jackpots,
  .page-blog__why-vip88,
  .page-blog__cta-section,
  .page-blog__cta-bottom-section,
  .page-blog__trending-topics,
  .page-blog__about-us-summary {
    padding: 0 15px;
    margin: 40px auto;
  }
}