.page-blog {
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #0A2342;
  color: #ffffff;
  padding: 0;
  text-align: center;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.7;
  filter: brightness(0.8); /* Slightly darken the image to improve text readability */
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  background: rgba(10, 35, 66, 0.7); /* Semi-transparent dark blue background for text */
  border-radius: 10px;
}

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

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-blog__hero-cta {
  display: inline-block;
  background-color: #FFD700; /* Gold accent for CTA button */
  color: #0A2342; /* Dark blue text on gold button */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #0A2342;
  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__featured-articles,
.page-blog__latest-posts,
.page-blog__categories-section,
.page-blog__why-read-section,
.page-blog__exclusive-offers-section,
.page-blog__about-jili80-section,
.page-blog__responsible-gaming-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-blog__featured-articles {
  background-color: #f8f8f8;
}

.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: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__article-content {
  padding: 25px;
}

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

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

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

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-blog__post-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-blog__post-item {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.page-blog__post-image {
  width: 300px; /* Fixed width for list items */
  height: 169px; /* Aspect ratio 16:9 */
  object-fit: cover;
  flex-shrink: 0;
}

.page-blog__post-content {
  padding: 20px 25px;
  flex-grow: 1;
}

.page-blog__post-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

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

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

.page-blog__post-excerpt {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

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

.page-blog__view-all-button {
    display: inline-block;
    background-color: #0A2342;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-blog__view-all-button:hover {
    background-color: #FFD700;
    color: #0A2342;
}

.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: #f0f0f0;
  padding: 30px 20px;
  border-radius: 10px;
  text-decoration: none;
  color: #0A2342;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-blog__category-image {
  width: 200px; /* Enforcing minimum size for category images */
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-blog__category-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #0A2342;
}

.page-blog__category-card:hover .page-blog__category-title {
    color: #0A2342; /* Ensure text remains dark on gold hover */
}

.page-blog__why-read-section p,
.page-blog__about-jili80-section p,
.page-blog__responsible-gaming-section p {
  font-size: 1.05em;
  color: #555555;
  margin-bottom: 20px;
}

.page-blog__why-read-section .page-blog__content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__exclusive-offers-section {
  background-color: #0A2342;
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-blog__promo-image {
  width: 800px; /* Enforcing minimum size for promo image */
  height: 450px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__promo-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__promo-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-blog__promo-cta {
  display: inline-block;
  background-color: #FFD700;
  color: #0A2342;
  padding: 18px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-blog__about-jili80-section,
.page-blog__responsible-gaming-section {
  background-color: #f8f8f8;
}

.page-blog__about-jili80-section .page-blog__content-wrapper,
.page-blog__responsible-gaming-section .page-blog__content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__about-image,
.page-blog__responsible-gaming-image {
  width: 400px; /* Enforcing minimum size for images */
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-blog__learn-more-button,
.page-blog__safe-betting-button {
  display: inline-block;
  background-color: #0A2342;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-blog__learn-more-button:hover,
.page-blog__safe-betting-button:hover {
  background-color: #FFD700;
  color: #0A2342;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__promo-image {
    width: 100%;
    height: auto;
    max-width: 600px;
  }
  .page-blog__about-image,
  .page-blog__responsible-gaming-image {
    width: 100%;
    height: auto;
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-blog__hero-content {
    max-width: 90%;
  }
  .page-blog__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-blog__hero-cta {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 2em;
    margin: 40px 0 30px;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-item {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__post-image {
    width: 100%;
    height: auto;
    max-width: 100%; /* Ensure images don't overflow */
  }
  .page-blog__post-content {
    padding: 20px;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .page-blog__category-image {
    width: 150px;
    height: 112px;
  }
  .page-blog__promo-image {
    width: 100%;
    height: auto;
    max-width: 100%; /* Ensure images don't overflow */
  }
  .page-blog__promo-cta {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-blog__about-image,
  .page-blog__responsible-gaming-image {
    width: 100%;
    height: auto;
    max-width: 100%; /* Ensure images don't overflow */
  }

  /* Critical: Ensure content images do not cause horizontal scroll */
  .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__section-title {
    font-size: 1.8em;
  }
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }
}