/* style/blog.css */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #FFFFFF; /* Explicitly set for consistency */
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
}

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

.page-blog__hero-section {
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF; /* White text for dark background */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45; /* Login button color for emphasis */
}

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

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

.page-blog__hero-button {
  display: inline-block;
  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-button--register {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Main color for text */
  border: 2px solid #FCBC45;
}

.page-blog__hero-button--register:hover {
  background-color: #e0a53a;
  border-color: #e0a53a;
}

.page-blog__hero-button--games {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Accent color */
  border: 2px solid #FFFFFF;
}

.page-blog__hero-button--games:hover {
  background-color: #FFFFFF;
  color: #000000;
}

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

.page-blog__intro-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-blog__intro-heading {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-blog__intro-text {
  font-size: 1.1em;
  margin-bottom: 25px;
  text-align: justify;
}

.page-blog__intro-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__featured-articles {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-blog__featured-heading {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-blog__article-card {
  background-color: #000000; /* Main color for card background */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFFFFF; /* White text for dark card background */
}

.page-blog__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-blog__article-content {
  padding: 25px;
}

.page-blog__article-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__article-title a {
  color: #FCBC45; /* Login button color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-blog__article-description {
  font-size: 1em;
  margin-bottom: 20px;
  line-height: 1.5;
}

.page-blog__article-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Main color */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__article-button:hover {
  background-color: #e0a53a;
}

.page-blog__latest-posts {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.page-blog__latest-heading {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-blog__post-item {
  display: flex;
  background-color: #FFFFFF;
  border-radius: 8px;
  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__post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

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

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

.page-blog__post-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
}

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

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

.page-blog__post-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
  line-height: 1.5;
}

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

.page-blog__post-link:hover {
  color: #e0a53a;
}

.page-blog__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #000000;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__view-all-button:hover {
  background-color: #333333;
}

.page-blog__categories-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-blog__categories-heading {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

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

.page-blog__category-item a:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__cta-section {
  background-color: #000000; /* Main color for dark background */
  color: #FFFFFF; /* White text for dark background */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-blog__cta-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__cta-heading {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45; /* Login button color for emphasis */
}

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

.page-blog__cta-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  opacity: 0.2; /* Subtle background */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-blog__cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1.1em;
}

.page-blog__cta-button--register {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Main color */
  border: 2px solid #FCBC45;
}

.page-blog__cta-button--register:hover {
  background-color: #e0a53a;
  border-color: #e0a53a;
}

.page-blog__cta-button--download {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Accent color */
  border: 2px solid #FFFFFF;
}

.page-blog__cta-button--download:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-blog__faq-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-blog__faq-heading {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-blog__faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  padding: 25px;
}

.page-blog__faq-question {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__faq-answer {
  font-size: 1em;
  color: #555555;
  line-height: 1.5;
}

.page-blog__view-all-faq-container {
  text-align: center;
  margin-top: 40px;
}

.page-blog__view-all-faq-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #000000;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__view-all-faq-button:hover {
  background-color: #333333;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .page-blog__post-thumbnail {
    width: 250px;
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 15px;
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__intro-heading,
  .page-blog__featured-heading,
  .page-blog__latest-heading,
  .page-blog__categories-heading,
  .page-blog__cta-heading,
  .page-blog__faq-heading {
    font-size: 2em;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__post-item {
    flex-direction: column;
  }
  .page-blog__post-thumbnail {
    width: 100%;
    height: 200px;
  }
  .page-blog__cta-heading {
    font-size: 2.2em;
  }
  .page-blog__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  /* Ensure content images do not overflow on mobile */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__intro-image,
  .page-blog__article-image,
  .page-blog__post-thumbnail,
  .page-blog__cta-image {
    max-width: 100%;
    height: auto;
  }
  /* Specific override for hero image if needed, but hero image is already full width */
  .page-blog__hero-image {
    max-width: 100%;
    height: auto; /* Allow height to adjust proportionally */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__intro-heading,
  .page-blog__featured-heading,
  .page-blog__latest-heading,
  .page-blog__categories-heading,
  .page-blog__cta-heading,
  .page-blog__faq-heading {
    font-size: 1.8em;
  }
  .page-blog__article-title {
    font-size: 1.4em;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__cta-heading {
    font-size: 1.8em;
  }
}