/* style/blog.css */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css #0a0a0a */
}

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

.page-blog__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-blog__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  min-height: 500px;
  overflow: hidden;
  background-color: #0a0a0a; /* Ensure hero section has a background */
}

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

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.3; /* Slightly dim the image for text readability */
}

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

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-blog__section {
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from section background */
}

.page-blog__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-blog__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-blog__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-blog__content-grid--reverse {
  grid-template-areas: "image text";
}

.page-blog__content-grid--reverse .page-blog__text-block {
  grid-area: text;
}

.page-blog__content-grid--reverse .page-blog__image-block {
  grid-area: image;
}

.page-blog__text-block p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: inherit;
}

.page-blog__image-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin-top: 20px;
}

.page-blog__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin-top: 20px;
}

.page-blog__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

.page-blog__game-card,
.page-blog__article-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  max-width: 100%;
  box-sizing: border-box;
}

.page-blog__game-card-image,
.page-blog__article-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-blog__game-card-title,
.page-blog__article-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 15px 10px 10px;
  line-height: 1.3;
}

.page-blog__game-card-title a,
.page-blog__article-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__game-card-title a:hover,
.page-blog__article-card-title a:hover {
  color: #26A9E0;
}

.page-blog__game-card p {
  font-size: 0.95rem;
  margin: 0 15px 15px;
  flex-grow: 1;
}

.page-blog__article-card-content {
  padding: 15px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card-meta {
  font-size: 0.85rem;
  color: #cccccc;
  margin-bottom: 10px;
}

.page-blog__article-card-excerpt {
  font-size: 0.95rem;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__game-card .page-blog__btn-secondary,
.page-blog__article-card .page-blog__btn-secondary {
  margin-top: auto;
  margin-bottom: 15px;
  align-self: center;
  width: calc(100% - 30px);
}

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

/* FAQ Section (if applicable, though not in this specific outline, keeping for reference if added) */
.page-blog__faq-section {
  padding: 60px 0;
}

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  color: #ffffff;
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog__faq-question {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-blog__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog__content-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__content-grid--reverse {
    grid-template-areas: unset;
  }
}

@media (max-width: 768px) {
  .page-blog__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-blog__description {
    font-size: 1rem;
  }

  .page-blog__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-blog__sub-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  /* Mobile image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__cta-buttons,
  .page-blog__game-card,
  .page-blog__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-blog__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Mobile button responsiveness */
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important; /* Ensure padding inside button */
    padding-right: 15px !important;
  }

  .page-blog__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
  }

  .page-blog__game-card .page-blog__btn-secondary,
  .page-blog__article-card .page-blog__btn-secondary {
    width: calc(100% - 30px) !important;
  }

  .page-blog__game-card-image,
  .page-blog__article-card-image {
    height: 180px; /* Adjust height for mobile if needed */
  }

  .page-blog__game-card,
  .page-blog__article-card {
    text-align: left;
  }
}