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

.page-blog__hero-section {
  background: linear-gradient(135deg, #3A1C71, #D72638);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

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

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

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

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

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

.page-blog__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  font-size: 1em;
}

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

.page-blog__button--primary:hover {
  background-color: #b01f2e;
  transform: translateY(-3px);
}

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

.page-blog__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.page-blog__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #3A1C71;
  color: #ffffff;
  border: 2px solid #3A1C71;
}

.page-blog__button--small:hover {
  background-color: #2b1451;
  transform: translateY(-2px);
}

.page-blog__button--large {
  padding: 18px 35px;
  font-size: 1.2em;
  background-color: #D72638;
  color: #ffffff;
  border: 2px solid #D72638;
}

.page-blog__button--large:hover {
  background-color: #b01f2e;
  transform: translateY(-3px);
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #3A1C71;
  text-align: center;
  margin: 60px 0 40px;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #D72638;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-blog__articles-section,
.page-blog__download-guides-section,
.page-blog__promotions-section,
.page-blog__gaming-categories-section,
.page-blog__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

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

.page-blog__article-card,
.page-blog__guide-card,
.page-blog__promo-card,
.page-blog__category-card {
  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;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover,
.page-blog__guide-card:hover,
.page-blog__promo-card:hover,
.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-blog__article-image,
.page-blog__guide-image,
.page-blog__promo-image,
.page-blog__category-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__article-content,
.page-blog__guide-content,
.page-blog__promo-content,
.page-blog__category-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-title,
.page-blog__guide-title,
.page-blog__promo-title,
.page-blog__category-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
  color: #3A1C71;
}

.page-blog__article-title a,
.page-blog__guide-title a,
.page-blog__promo-title a,
.page-blog__category-title a {
  text-decoration: none;
  color: #3A1C71;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover,
.page-blog__guide-title a:hover,
.page-blog__promo-title a:hover,
.page-blog__category-title a:hover {
  color: #D72638;
}

.page-blog__article-description,
.page-blog__guide-description,
.page-blog__promo-description,
.page-blog__category-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__cta-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #3A1C71;
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.page-blog__cta-section .page-blog__section-title {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 30px;
}

.page-blog__cta-section .page-blog__section-title::after {
  background-color: #D72638;
}

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

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 15px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 80%;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin: 40px 0 30px;
  }
  .page-blog__articles-section,
  .page-blog__download-guides-section,
  .page-blog__promotions-section,
  .page-blog__gaming-categories-section,
  .page-blog__cta-section {
    padding: 30px 15px;
    margin-bottom: 30px;
  }
  .page-blog__article-grid,
  .page-blog__guide-grid,
  .page-blog__promo-grid,
  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image,
  .page-blog__guide-image,
  .page-blog__promo-image,
  .page-blog__category-image {
    height: 200px; /* Ensure images are not smaller than 200px */
  }
  .page-blog__article-card img,
  .page-blog__guide-card img,
  .page-blog__promo-card img,
  .page-blog__category-card img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__button {
    width: 95%;
    padding: 12px 20px;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__article-title,
  .page-blog__guide-title,
  .page-blog__promo-title,
  .page-blog__category-title {
    font-size: 1.3em;
  }
  .page-blog__article-description,
  .page-blog__guide-description,
  .page-blog__promo-description,
  .page-blog__category-description {
    font-size: 0.9em;
  }
}