/* Required homepage-specific CSS blocks (even if this is a blog page), ensure BEM prefix */
/* A. @media (max-width: 1023px) must be output as is */
@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;
  }
}

/* B. @media (min-width: 1024px) must be output as is */
@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;
  }
}

/* @media (max-width: 768px) must-write checklist (for homepage modules, even if not present on this page) */
@media (max-width: 768px) {
  /* 2. 优惠 __promo-strip: Placeholder for required output */
  .page-blog__promo-strip {
    display: block; 
    padding: 15px;
  }
  .page-blog__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important;
    overflow-x: hidden !important;
    gap: 10px;
  }
  .page-blog__promo-card {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .page-blog__promo-card img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__promo-card-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 3. 热门 __hot-games: Placeholder for required output */
  .page-blog__hot-games {
    padding: 15px;
  }
  .page-blog__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
  }
  .page-blog__hot-games-item {
    text-align: center;
  }
  .page-blog__hot-games-item img {
    width: 100%;
    height: auto;
  }
  .page-blog__hot-games-name,
  .page-blog__hot-games-rtp,
  .page-blog__hot-games-desc {
    display: none !important;
  }

  /* 4. 品牌 __brand-intro (<=768px display): Placeholder for required output */
  .page-blog__brand-intro {
    display: block !important;
    padding: 15px;
    text-align: center;
  }
  .page-blog__brand-intro h2 {
    font-size: 22px;
  }
  .page-blog__brand-intro-features {
    flex-direction: column;
    gap: 10px;
  }

  /* 5. 中奖条 __winner-ticker: Placeholder for required output */
  .page-blog__winner-ticker {
    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111111; 
    color: #FFD36B; 
    padding: 10px 15px;
    z-index: 999;
    box-sizing: border-box;
  }
  body {
    padding-bottom: 40px; 
  }
  .page-blog {
    margin-bottom: 40px;
  }
}

/* General styles for blog page content */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark body background */
  background: #0A0A0A; /* Body background */
  padding-bottom: 50px; /* Add some padding at the bottom */
}

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

.page-blog__section-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: #F2C14E; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-blog__paragraph {
  font-size: 16px;
  margin-bottom: 20px;
  color: #FFF6D6;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles main offset */
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
}

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

.page-blog__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3rem); /* Adjusted H1 font size */
  font-weight: 800;
  color: #F2C14E;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__subtitle {
  font-size: 20px;
  color: #FFD36B;
  margin-bottom: 30px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A; /* Dark text on light button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.3);
}

.page-blog__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.5);
}

.page-blog__cta-button--secondary {
  background: #111111;
  color: #F2C14E;
  border: 2px solid #F2C14E;
  box-shadow: none;
}

.page-blog__cta-button--secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.5);
}

/* Introduction Section */
.page-blog__introduction-section {
  margin-bottom: 50px;
}

/* Categories Section */
.page-blog__categories-section {
  margin-bottom: 50px;
}

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

.page-blog__category-card {
  background: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-blog__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-blog__card-title {
  font-size: 22px;
  color: #F2C14E;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-blog__card-description {
  font-size: 15px;
  color: #FFF6D6;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}