/* style/blog.css */
.page-blog {
  color: #ffffff; /* Light text for dark body background #111 */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  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 {
  background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--primary-color, #FFD700);
}

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

.page-blog__hero-title {
  font-size: 3.2em;
  color: var(--primary-color, #FFD700);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  font-weight: bold;
}

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

.page-blog__hero-button {
  display: inline-block;
  background-color: var(--action-color, #DC143C);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin: 40px auto 0;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-blog__section-title {
  font-size: 2.5em;
  color: var(--primary-color, #FFD700);
  text-align: center;
  margin-bottom: 60px;
  padding-top: 40px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.page-blog__articles-section,
.page-blog__game-guides-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-blog__article-card,
.page-blog__guide-card {
  background-color: #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog__article-card:hover,
.page-blog__guide-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-blog__article-image,
.page-blog__guide-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 3px solid var(--secondary-color, #1E90FF);
}

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

.page-blog__article-title,
.page-blog__guide-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--primary-color, #FFD700);
  min-height: 3em; /* Ensure consistent title height */
}

.page-blog__article-title a,
.page-blog__guide-title a {
  color: var(--primary-color, #FFD700);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover,
.page-blog__guide-title a:hover {
  color: var(--secondary-color, #1E90FF);
}

.page-blog__article-excerpt,
.page-blog__guide-description {
  color: #cccccc;
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-button,
.page-blog__learn-more-button {
  display: inline-block;
  background-color: var(--secondary-color, #1E90FF);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
  margin-top: auto; /* Push button to bottom */
}

.page-blog__read-more-button:hover,
.page-blog__learn-more-button:hover {
  background-color: #007bff;
}

.page-blog__cta-section {
  background: linear-gradient(45deg, var(--action-color, #DC143C), #ff4a6e);
  padding: 80px 20px;
  text-align: center;
  border-top: 2px solid var(--primary-color, #FFD700);
}

.page-blog__cta-content {
  max-width: 800px;
}

.page-blog__cta-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.page-blog__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-button--primary {
  background-color: var(--primary-color, #FFD700);
  color: #0A0A0A;
}

.page-blog__cta-button--primary:hover {
  background-color: #ffe033;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-button--secondary {
  background-color: #0A0A0A;
  color: var(--primary-color, #FFD700);
  border: 2px solid var(--primary-color, #FFD700);
}

.page-blog__cta-button--secondary:hover {
  background-color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@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 {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }

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

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

  .page-blog__hero-section {
    padding: 60px 0;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }

  .page-blog__articles-grid,
  .page-blog__game-guides-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-blog__article-image,
  .page-blog__guide-image {
    height: 200px;
  }

  /* IMPORTANT: Mobile content images must not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }

  .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-button {
    width: 100%;
    max-width: 300px;
  }
}

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

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

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

  .page-blog__article-title,
  .page-blog__guide-title {
    font-size: 1.3em;
  }

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