.page-blog {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px);
}

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #003366;
  color: #ffffff;
  overflow: hidden;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-blog__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFD700;
}

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

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

.page-blog__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__button--primary {
  background-color: #FFD700;
  color: #003366;
  border: 2px solid #FFD700;
}

.page-blog__button--primary:hover {
  background-color: #e6c200;
  color: #001a33;
}

.page-blog__button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

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

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

.page-blog__section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
}

.page-blog__featured-articles,
.page-blog__latest-posts,
.page-blog__categories-section,
.page-blog__responsible-gaming-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-blog__articles-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: 225px;
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #003366;
}

.page-blog__article-title a {
  color: #003366;
  text-decoration: none;
}

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

.page-blog__article-meta {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__button--link {
  color: #003366;
  background-color: transparent;
  border: 2px solid #003366;
  padding: 8px 15px;
  align-self: flex-start;
}

.page-blog__button--link:hover {
  background-color: #003366;
  color: #ffffff;
}

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

.page-blog__post-item {
  display: flex;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-blog__post-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.page-blog__post-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.page-blog__post-title {
  font-size: 1.3em;
  margin-bottom: 8px;
  color: #003366;
}

.page-blog__post-title a {
  color: #003366;
  text-decoration: none;
}

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

.page-blog__post-meta {
  font-size: 0.85em;
  color: #777777;
  margin-bottom: 10px;
}

.page-blog__button--read {
  color: #FFD700;
  background-color: #003366;
  border: 2px solid #003366;
  padding: 8px 15px;
  align-self: flex-start;
  margin-top: auto; /* Pushes button to the bottom */
}

.page-blog__button--read:hover {
  background-color: #001a33;
  border-color: #001a33;
  color: #FFD700;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-blog__category-card {
  background-color: #003366;
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-blog__category-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-blog__category-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-blog__cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20px;
  background-color: #003366;
  color: #ffffff;
  text-align: left;
  gap: 40px;
  max-width: 1200px;
  margin: 60px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-section--alt-bg {
  background-color: #003366;
  color: #ffffff;
}

.page-blog__cta-content {
  flex: 1;
}

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

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

.page-blog__cta-image {
  flex-shrink: 0;
  border-radius: 8px;
  width: 600px;
  height: 337px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-blog__responsible-gaming-section {
  text-align: center;
  margin-bottom: 80px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__cta-section {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__cta-image {
    width: 100%;
    height: auto;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
  }
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 100%;
    max-width: 280px;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-item {
    flex-direction: column;
  }
  .page-blog__post-image {
    width: 100%;
    height: 200px;
  }
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  /* CRITICAL: Ensure all images within .page-blog are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__post-title {
    font-size: 1.1em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__category-title {
    font-size: 1.5em;
  }
}