.page-blog {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Ensure page background matches body if not specified otherwise */
}

.page-blog__hero-section {
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  padding-bottom: 40px;
}

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

.page-blog__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
  border-radius: 10px;
  color: #FFFFFF;
}

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

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
  line-height: 1.5;
}

.page-blog__hero-cta-button {
  display: inline-block;
  padding: 15px 30px;
  margin: 0 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
}

.page-blog__hero-cta-button:first-of-type {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
}

.page-blog__hero-cta-button--secondary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
}

.page-blog__hero-cta-button:hover {
  opacity: 0.9;
}

.page-blog__articles-section {
  padding: 60px 20px;
  background-color: #f8f8f8;
}

.page-blog__articles-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-blog__articles-heading {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #000000;
}

.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;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

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

.page-blog__article-content {
  padding: 20px;
  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: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000000;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more-button:hover {
  background-color: #333333;
}

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

.page-blog__cta-container {
  max-width: 800px;
  margin: 0 auto;
}

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

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

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

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__cta-button--primary {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
}

.page-blog__cta-button--secondary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
}

.page-blog__cta-button:hover {
  opacity: 0.9;
}

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

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

  .page-blog__articles-heading {
    font-size: 2em;
  }

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 400px;
    padding: 40px 15px;
  }

  .page-blog__hero-container {
    padding: 15px;
  }

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

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

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

  .page-blog__articles-section {
    padding: 40px 15px;
  }

  .page-blog__articles-heading {
    font-size: 1.8em;
  }

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

  .page-blog__article-image {
    height: auto; /* Allow height to adjust for responsiveness */
    max-width: 100%;
  }

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

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

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

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

  .page-blog__cta-buttons {
    flex-direction: column;
  }

  .page-blog__cta-button {
    width: 100%;
    max-width: 300px;
  }

  /* Ensure content images do not overflow on mobile */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }

  /* Override any specific image sizing that might cause overflow */
  .page-blog__article-image {
    max-width: 100%;
    height: auto;
  }
}

/* Content area images CSS dimensions lower bound */
.page-blog img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider-icon) {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure no filter is applied to images */
.page-blog img {
  filter: none !important;
}