/* style/blog.css */
/* body background is #121212 (dark), so text should be light */
.page-blog {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  background: linear-gradient(135deg, #017439, #005f2e); /* Brand color gradient */
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-blog__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  color: #ffffff;
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-blog__section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for sections */
  color: #ffffff;
}

.page-blog__light-bg {
  background-color: #2a2a2a; /* Slightly lighter dark background */
  color: #ffffff;
}

.page-blog__dark-bg {
  background-color: #017439; /* Brand color background */
  color: #ffffff;
}

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

.page-blog__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-blog__section-intro {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #e0e0e0;
}

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

.page-blog__post-card,
.page-blog__step-card,
.page-blog__game-promo-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__post-card:hover,
.page-blog__step-card:hover,
.page-blog__game-promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.page-blog__post-image,
.page-blog__game-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

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

.page-blog__post-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-blog__post-date {
  font-size: 0.9rem;
  color: #b0b0b0;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #ffcc00; /* Highlight color for links */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog a[class*="button"],
.page-blog a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

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

.page-blog__btn-primary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

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

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

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-blog__guide-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__guide-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffcc00;
}

.page-blog__guide-item p {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 10px;
}

.page-blog__step-card {
  padding: 30px;
}

.page-blog__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffcc00;
}

.page-blog__step-card p {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 10px;
}

.page-blog__game-promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
}

.page-blog__game-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 0 20px;
  color: #ffffff;
}

.page-blog__game-promo-card p {
  font-size: 1rem;
  color: #e0e0e0;
  padding: 0 20px;
}

.page-blog__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease;
  list-style: none; /* For details/summary */
}

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

.page-blog__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #ffcc00;
}

.page-blog__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #e0e0e0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-blog__faq-item[open] .page-blog__faq-question .page-blog__faq-toggle {
  content: '−';
}

.page-blog__cta-final {
  background: linear-gradient(90deg, #017439, #005f2e); /* Brand color gradient */
  text-align: center;
  padding: 80px 20px;
}

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

.page-blog__cta-final .page-blog__description {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-blog__cta-final .page-blog__cta-buttons {
  margin-top: 0;
}

.text-highlight {
  color: #ffcc00;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-section {
    padding: 40px 20px;
  }
  .page-blog__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-blog__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__hero-section {
    padding: 30px 15px;
  }
  .page-blog__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-blog__description {
    font-size: 1rem;
  }
  .page-blog__section {
    padding: 60px 0;
  }
  .page-blog__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }
  .page-blog__section-intro {
    font-size: 1rem;
    margin-bottom: 40px;
  }

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

  /* Containers responsive */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-image-wrapper,
  .page-blog__post-card,
  .page-blog__step-card,
  .page-blog__game-promo-card,
  .page-blog__guide-item,
  .page-blog__faq-item,
  .page-blog__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-blog__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Buttons responsive */
  .page-blog__cta-button,
  .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;
    padding-right: 15px;
  }

  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    overflow: hidden !important;
  }

  .page-blog__post-grid,
  .page-blog__steps-grid,
  .page-blog__game-promo-grid,
  .page-blog__guide-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__post-image,
  .page-blog__game-image {
    height: 180px;
  }

  .page-blog__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-blog__faq-answer {
    padding: 15px 20px;
  }
}