/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #f8f8f8;
}

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

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

.page-blog__section-title {
  font-size: 32px;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

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

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding to avoid double header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
  filter: brightness(0.7);
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 800px;
  width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.page-blog__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 15px;
  max-width: 100%;
  font-size: clamp(24px, 4vw, 48px); /* Responsive H1 font size */
}

.page-blog__hero-description {
  font-size: 18px;
  margin-bottom: 25px;
  color: #f0f0f0;
}

/* CTA Button */
.page-blog__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-blog__btn-primary:hover {
  background-color: #1a7bb5;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin-left: 15px; /* Adjust for spacing in CTA section */
}

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Latest Posts Grid */
.page-blog__latest-posts {
  background-color: #ffffff;
}

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

.page-blog__post-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
}

.page-blog__post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-blog__post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
  padding: 15px 20px 10px;
}

.page-blog__post-category {
  font-weight: 600;
  color: #26A9E0;
}

.page-blog__post-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  padding: 0 20px;
  margin-bottom: 10px;
}

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

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

.page-blog__post-excerpt {
  font-size: 15px;
  color: #555;
  padding: 0 20px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background-color: #f0f0f0;
  color: #26A9E0;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

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

/* CTA Section (bottom) */
.page-blog__cta-section {
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

.page-blog__cta-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

/* FAQ Section */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #333333;
}
.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: #555;
}

/* Copyright */
.page-blog__copyright {
  background-color: #333333;
  color: #f0f0f0;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}

/* --- Homepage-specific CSS (verbatim inclusion as per instructions, even for blog page) --- */
/* A. @media (max-width: 1023px) must be output verbatim */
@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 verbatim */
@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;
  }
}

/* --- Mobile @media (max-width: 768px)必写清单 (verbatim inclusion for specific blocks) --- */
@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-blog__section {
    padding: 30px 0;
  }

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

  .page-blog__hero-content {
    padding: 15px;
    width: 95%;
  }

  .page-blog__main-title {
    font-size: clamp(20px, 6vw, 36px);
    margin-bottom: 10px;
  }

  .page-blog__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* 1. 首屏试玩: Already covered by 1023px block, but ensuring general elements are responsive. */
  .page-blog__hero-image {
    max-height: 300px;
  }

  /* 2. 优惠 `__promo-strip`: Placeholder for required block */
  .page-blog__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Still 4 columns, but content needs to adapt */
    overflow-x: hidden; /* Prevent horizontal scroll */
    gap: 15px;
    padding: 0 15px;
  }
  .page-blog__promo-card {
    display: flex;
    flex-direction: column; /* Stack image and text */
    text-align: center;
    padding: 10px;
  }
  .page-blog__promo-card-image {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  .page-blog__promo-card-title {
    font-size: 15px;
  }
  .page-blog__promo-card-button {
    width: 100% !important;
    padding: 8px 10px;
    font-size: 14px;
  }

  /* 3. 热门 `__hot-games`: Placeholder for required block */
  .page-blog__hot-games-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 15px;
    padding: 0 15px;
  }
  .page-blog__hot-games-card {
    text-align: center;
  }
  .page-blog__hot-games-image {
    width: 100%;
    height: auto;
  }
  .page-blog__hot-games-name,
  .page-blog__hot-games-rtp,
  .page-blog__hot-games-desc {
    display: none; /* Hide for mobile */
  }

  /* 4. 品牌 `__brand-intro` (if present): Placeholder for required block */
  .page-blog__brand-intro {
    padding: 30px 15px;
    text-align: center;
  }
  .page-blog__brand-intro-content {
    font-size: 15px;
  }
  .page-blog__brand-intro-image {
    width: 100%;
    height: auto;
  }

  /* 5. 中奖条 `__winner-ticker`: Placeholder for required block */
  .page-blog__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 15px;
    font-size: 14px;
    color: #fff;
  }
  body {
    padding-bottom: 50px; /* Adjust body padding for fixed ticker */
  }
  .page-blog {
    padding-bottom: 50px; /* Adjust main content padding for fixed ticker */
  }

  /* 6. 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__latest-posts,
  .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__post-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .page-blog__post-card {
    margin-bottom: 20px;
  }
  .page-blog__post-meta,
  .page-blog__post-title,
  .page-blog__post-excerpt,
  .page-blog__read-more {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__read-more {
    margin-left: 15px;
    margin-right: 15px;
  }

  /* 7. 按钮与按钮容器 */
  .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-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically */
  }
  .page-blog__btn-secondary {
    margin-left: 0; /* Remove left margin for stacked buttons */
  }

  /* 8. Other modules (FAQ) */
  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; }
}

/* General image and button styles to prevent filter */
.page-blog img {
  filter: none; /* Ensure no CSS filters are applied */
}

/* For the homepage-specific game trial overlay/start buttons */
.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;}