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

.page-blog__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  position: relative;
  overflow: hidden;
  color: #ffffff; /* Light text for hero content over dark image overlay */
  text-align: center;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Ensure hero image has a minimum height */
  max-height: 600px;
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 51, 102, 0.7); /* Dark blue overlay for readability */
  border-radius: 10px;
}

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

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

.page-blog__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #003366; /* Dark blue text */
  padding: 15px 30px;
  border-radius: 50px;
  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;
  transform: translateY(-3px);
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #003366; /* Dark blue */
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-blog__section-description {
  text-align: center;
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__latest-posts,
.page-blog__categories-section,
.page-blog__featured-content,
.page-blog__responsible-gaming-section,
.page-blog__app-download-cta {
  padding: 60px 0;
}

.page-blog__post-grid,
.page-blog__categories-grid,
.page-blog__featured-grid,
.page-blog__responsible-gaming-content {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-blog__post-card,
.page-blog__category-card,
.page-blog__featured-card,
.page-blog__responsible-gaming-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__post-card:hover,
.page-blog__category-card:hover,
.page-blog__featured-card:hover,
.page-blog__responsible-gaming-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__post-image,
.page-blog__featured-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-blog__post-content,
.page-blog__category-content,
.page-blog__featured-content-text,
.page-blog__responsible-gaming-excerpt {
  padding: 25px;
}

.page-blog__post-title,
.page-blog__category-title,
.page-blog__featured-title,
.page-blog__responsible-gaming-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #003366;
  line-height: 1.3;
}

.page-blog__post-title a,
.page-blog__category-title a,
.page-blog__featured-title a,
.page-blog__responsible-gaming-title a {
  text-decoration: none;
  color: #003366;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover,
.page-blog__category-title a:hover,
.page-blog__featured-title a:hover,
.page-blog__responsible-gaming-title a:hover {
  color: #FFD700;
}

.page-blog__post-excerpt,
.page-blog__category-description,
.page-blog__featured-excerpt,
.page-blog__responsible-gaming-excerpt {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 15px;
}

.page-blog__read-more-link {
  display: inline-block;
  color: #FFD700; /* Gold link */
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

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

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

.page-blog__view-all-button {
  display: inline-block;
  background-color: #003366; /* Dark blue button */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__view-all-button:hover {
  background-color: #004d99;
  transform: translateY(-2px);
}

.page-blog__cta-section {
  background: linear-gradient(135deg, #003366, #004d99); /* Gradient dark blue */
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  margin: 60px 0;
}

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold */
}

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #003366; /* Dark blue text */
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  margin: 0 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

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

.page-blog__app-download-cta {
  background-color: #f8f8f8;
  text-align: center;
  padding: 80px 20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
  .page-blog__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
  }
  .page-blog__hero-content {
    width: 90%;
    padding: 15px;
  }
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__latest-posts,
  .page-blog__categories-section,
  .page-blog__featured-content,
  .page-blog__responsible-gaming-section,
  .page-blog__app-download-cta {
    padding: 40px 0;
  }
  .page-blog__post-grid,
  .page-blog__categories-grid,
  .page-blog__featured-grid,
  .page-blog__responsible-gaming-content {
    grid-template-columns: 1fr;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-button {
    display: block;
    margin: 15px auto;
  }

  /* Ensure images in content area are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  /* Specific override for any potential fixed-width images in content */
  .page-blog__post-image,
  .page-blog__featured-image {
    max-width: 100%;
    height: auto;
    min-height: 200px; /* Maintain minimum size */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.6em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__hero-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 1.6em;
  }
  .page-blog__cta-button {
    font-size: 0.9em;
    padding: 12px 25px;
  }
}