.page-blog {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

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

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

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

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

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

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-blog__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-blog__introduction-section,
.page-blog__latest-articles-section,
.page-blog__categories-section,
.page-blog__featured-post-section,
.page-blog__responsible-gaming-section,
.page-blog__why-jiliko-section,
.page-blog__cta-section {
  padding: 80px 0;
}

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

.page-blog__section-text {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

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

.page-blog__article-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;
  display: flex;
  flex-direction: column;
}

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

.page-blog__article-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

.page-blog__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

.page-blog__card-excerpt {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-btn {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: color 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

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

.page-blog__category-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-list li a {
  display: block;
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__category-list li a:hover {
  background-color: #000000;
  color: #FFFFFF;
}

.page-blog__featured-content,
.page-blog__responsible-content,
.page-blog__why-jiliko-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

.page-blog__featured-content img,
.page-blog__responsible-content img,
.page-blog__why-jiliko-content img {
  width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px;
}

.page-blog__featured-text,
.page-blog__responsible-text,
.page-blog__why-jiliko-text {
  width: 50%;
}

.page-blog__featured-text p,
.page-blog__responsible-text p,
.page-blog__why-jiliko-text p {
  font-size: 1.1em;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 25px;
}

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

.page-blog__cta-section--bottom .page-blog__section-title {
  color: #FFFFFF;
}

.page-blog__cta-section--bottom .page-blog__section-text {
  color: #F0F0F0;
  margin-bottom: 40px;
}

.page-blog__cta-btn {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  padding: 15px 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__cta-btn:hover {
  background-color: #e0a73d;
  transform: translateY(-2px);
}

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

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

  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-blog__featured-content,
  .page-blog__responsible-content,
  .page-blog__why-jiliko-content {
    flex-direction: column;
  }

  .page-blog__featured-content img,
  .page-blog__responsible-content img,
  .page-blog__why-jiliko-content img,
  .page-blog__featured-text,
  .page-blog__responsible-text,
  .page-blog__why-jiliko-text {
    width: 100%;
  }

  .page-blog__featured-content img:first-child,
  .page-blog__responsible-content img:first-child,
  .page-blog__why-jiliko-content img:first-child {
    order: -1; /* Image first on mobile */
  }
}

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

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

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

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

  .page-blog__section-text {
    font-size: 0.95em;
  }

  .page-blog__introduction-section,
  .page-blog__latest-articles-section,
  .page-blog__categories-section,
  .page-blog__featured-post-section,
  .page-blog__responsible-gaming-section,
  .page-blog__why-jiliko-section,
  .page-blog__cta-section {
    padding: 50px 0;
  }

  .page-blog__article-card img {
    height: 200px;
  }

  .page-blog__article-card img, .page-blog__featured-content img, .page-blog__responsible-content img, .page-blog__why-jiliko-content img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }

  /* Ensure all img elements within .page-blog are responsive and not too small */
  .page-blog img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
  }

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

  .page-blog__category-list li a {
    padding: 8px 15px;
    font-size: 0.9em;
  }

  .page-blog__cta-btn {
    font-size: 1em;
    padding: 12px 25px;
  }
}