/* Mandatory homepage CSS snippets (as per prompt instructions, despite this being a blog page) */
@media (max-width: 1023px) {
  .page-blog__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-blog__hero-brand,
  .page-blog__hero-jackpot {
    display: none !important;
  }
  .page-blog__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-blog__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog__game-trial-topbar,
  .page-blog__game-trial-bottombar {
    display: none !important;
  }
  .page-blog__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-blog__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-blog__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-blog__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-blog__hero-brand,
  .page-blog__hero-jackpot,
  .page-blog__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-blog__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-blog__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-blog__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-blog__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* General styles for game trial overlay and modal (as per prompt) */
.page-blog__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-blog__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-blog__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-blog__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
}
.page-blog__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s ease;
}
.page-blog__reward-modal.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.page-blog__reward-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}
.page-blog__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
/* End of mandatory homepage snippets */


/* Blog page specific styles */
:root {
  --page-blog-primary-color: #E53935;
  --page-blog-secondary-color: #FF5A4F;
  --page-blog-text-main: #333333;
  --page-blog-card-bg: #FFFFFF;
  --page-blog-bg-color: #F5F7FA;
  --page-blog-border-color: #E0E0E0;
  --header-offset: 122px; /* Default value, will be overridden by shared.css */
}

.page-blog {
  font-family: 'Arial', sans-serif;
  color: var(--page-blog-text-main);
  background-color: var(--page-blog-bg-color);
  line-height: 1.6;
}

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

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: var(--page-blog-bg-color);
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__main-title {
  font-size: clamp(28px, 3.5vw, 48px); /* H1 font size with clamp */
  font-weight: 700;
  line-height: 1.2;
  color: var(--page-blog-primary-color);
  margin-bottom: 20px;
}

.page-blog__intro-text {
  font-size: 18px;
  color: var(--page-blog-text-main);
  margin-bottom: 30px;
}

.page-blog__section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--page-blog-primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__latest-posts-section {
  padding: 60px 0;
  background-color: var(--page-blog-card-bg); /* Light background for blog posts */
}

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

.page-blog__post-card {
  background: var(--page-blog-card-bg);
  border: 1px solid var(--page-blog-border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-blog__post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-blog__post-thumbnail {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__post-content {
  padding: 20px;
}

.page-blog__post-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--page-blog-text-main);
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__post-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.page-blog__read-more-btn {
  display: inline-block;
  color: var(--page-blog-primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__read-more-btn:hover {
  color: var(--page-blog-secondary-color);
}

.page-blog__view-all-button-container {
  text-align: center;
}

.page-blog__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, var(--page-blog-secondary-color) 0%, var(--page-blog-primary-color) 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: opacity 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
}

.page-blog__btn-secondary {
  display: inline-block;
  background: var(--page-blog-card-bg);
  color: var(--page-blog-primary-color);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid var(--page-blog-primary-color);
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-secondary:hover {
  background-color: var(--page-blog-primary-color);
  color: #ffffff;
}

.page-blog__categories-section {
  padding: 60px 0;
  background-color: var(--page-blog-primary-color); /* Dark section for categories */
  color: #ffffff;
}

.page-blog__categories-section .page-blog__section-title {
  color: #ffffff;
}

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

.page-blog__category-item {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.page-blog__category-item:hover {
  background: rgba(255, 255, 255, 0.3);
}

.page-blog__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--page-blog-bg-color);
}

.page-blog__cta-description {
  font-size: 18px;
  color: var(--page-blog-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.page-blog__faq-section {
  padding: 60px 0;
  background-color: var(--page-blog-bg-color);
}

/* FAQ styles */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--page-blog-border-color);
  overflow: hidden;
  background: var(--page-blog-card-bg);
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
  display: none;
}
details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: #f5f5f5;
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-blog-text-main);
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--page-blog-text-main);
}
.page-blog__faq-answer p {
  margin: 0;
}

/* Responsive styles */
@media (max-width: 1023px) {
  .page-blog__main-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  /* Mandatory mobile adaptation for images and containers */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__latest-posts-section,
  .page-blog__categories-section,
  .page-blog__cta-section,
  .page-blog__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__hero-section {
    padding-bottom: 30px;
  }

  .page-blog__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-blog__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-blog__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__post-thumbnail {
    height: 180px;
  }

  .page-blog__post-title {
    font-size: 18px;
  }

  .page-blog__post-excerpt {
    font-size: 15px;
  }

  .page-blog__category-list {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__category-item {
    width: 100%;
    text-align: center;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__cta-button {
    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;
  }

  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 15px; }
  details.page-blog__faq-item .page-blog__faq-answer { padding: 0 15px 15px; }

  /* Placeholder for other mandatory 768px blocks (as per prompt, even if not directly used by blog HTML) */
  /* 1. 首屏试玩: Covered by 1023px, no explicit 768px needed if 1023px handles it. */
  /* 2. 优惠 `__promo-strip` */
  .page-blog__promo-strip { /* Example for an unused module */
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }
  .page-blog__promo-strip-track { /* Example for an unused module */
    grid-template-columns: repeat(2, 1fr); /* Assuming a 2-column layout for mobile */
    gap: 15px;
    overflow-x: hidden;
  }
  /* 3. 热门 `__hot-games` */
  .page-blog__hot-games { /* Example for an unused module */
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }
  .page-blog__hot-games-grid { /* Example for an unused module */
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    overflow-x: hidden;
  }
  /* 4. 品牌 `__brand-intro` */
  .page-blog__brand-intro { /* Example for an unused module */
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }
  /* 5. 中奖条 `__winner-ticker` */
  .page-blog__winner-ticker { /* Example for an unused module */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 10px 15px;
    box-sizing: border-box;
    background-color: rgba(0,0,0,0.8);
    color: #fff;
  }
  /* 6. 通用图片与容器: Already covered at the beginning of 768px block */
  /* 7. 按钮与按钮容器: Already covered for page-blog__cta-button */
}