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

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

.page-blog__hero-section {
  position: relative;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
  padding-bottom: 40px; /* Add some padding below content */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  min-height: 400px; /* Ensure hero image has a minimum height */
  z-index: 0;
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  max-width: 800px;
  margin: 60px auto;
  border-radius: 10px;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for prominence */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-blog__hero-cta {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1.1em;
}

.page-blog__hero-cta:hover {
  background-color: #FFD700;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
}

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

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

.page-blog__post-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__post-thumbnail {
  width: 100%;
  height: 300px; /* Enforce min 200px height for content images */
  object-fit: cover;
}

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

.page-blog__post-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000000;
}

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

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

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

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

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

.page-blog__featured-article {
  background-color: #000000; /* Main color as background */
  color: #FFFFFF;
  padding: 60px 0;
  margin-top: 60px;
}

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

.page-blog__featured-image {
  flex: 1 1 400px;
  max-width: 600px;
  height: 450px; /* Enforce min 200px height */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-blog__featured-text {
  flex: 2 1 400px;
}

.page-blog__featured-text .page-blog__post-title {
  color: #FCBC45;
  font-size: 2em;
}

.page-blog__featured-text .page-blog__post-title a {
  color: #FCBC45;
}

.page-blog__featured-text .page-blog__post-excerpt {
  color: #E0E0E0;
  margin-bottom: 30px;
}

.page-blog__featured-cta {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 20px;
  margin-right: 15px;
}

.page-blog__featured-cta:hover {
  background-color: #FFD700;
}

.page-blog__categories {
  padding: 60px 0;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}

.page-blog__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #F8F8F8;
  border-radius: 10px;
  padding: 25px;
  text-decoration: none;
  color: #000000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 150px;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.page-blog__category-icon {
  font-size: 3em;
  margin-bottom: 10px;
}

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

.page-blog__more-articles {
  padding: 60px 0;
  background-color: #F0F0F0;
}

.page-blog__articles-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-blog__list-item {
  display: flex;
  flex-wrap: wrap;
  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__list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-blog__list-thumbnail {
  flex: 0 0 200px;
  height: 200px; /* Enforce min 200px height for content images */
  object-fit: cover;
  margin-right: 20px;
}

.page-blog__list-content {
  flex: 1;
  padding: 20px;
}

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

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

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

.page-blog__list-excerpt {
  font-size: 0.95em;
  color: #555555;
}

.page-blog__cta-section {
  background-color: #FCBC45; /* Login button color */
  padding: 60px 0;
  text-align: center;
  color: #000000;
}

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

.page-blog__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__cta-btn {
  display: inline-block;
  padding: 15px 35px;
  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-btn--register {
  background-color: #000000; /* Main color */
  color: #FFFFFF;
}

.page-blog__cta-btn--register:hover {
  background-color: #333333;
}

.page-blog__cta-btn--login {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #000000;
}

.page-blog__cta-btn--login:hover {
  background-color: #E0E0E0;
}

.page-blog__responsible-gaming {
  padding: 60px 0;
  text-align: center;
  background-color: #F8F8F8;
}

.page-blog__responsible-cta {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 30px;
}

.page-blog__responsible-cta:hover {
  background-color: #333333;
}

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

  .page-blog__hero-content {
    margin: 30px auto;
    padding: 60px 20px;
  }

  .page-blog__featured-content {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__featured-image {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .page-blog__list-item {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__list-thumbnail {
    margin-right: 0;
    margin-bottom: 20px;
    max-width: 100%;
    height: auto; /* Allow height to adjust for responsiveness */
  }
}

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

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

  .page-blog__hero-content {
    padding: 40px 15px;
    margin: 20px auto;
  }

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

  .page-blog__section-intro {
    font-size: 1em;
  }

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

  .page-blog__list-item {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__list-thumbnail {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and don't overflow */
    margin-right: 0;
    margin-bottom: 15px;
  }

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

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

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

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

  /* Ensure all images within .page-blog are responsive and do not cause overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

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

  .page-blog__hero-content {
    padding: 30px 10px;
  }

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