/* General styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* Custom background color */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  background-color: #E53935; /* Brand color for hero background */
  padding-top: 10px; /* Small top padding as per rules */
}

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

.page-blog__hero-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px; /* Minimum size */
  object-fit: cover;
}

.page-blog__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
  color: #ffffff; /* White text on brand color background */
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 2.5em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

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

.page-blog__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Custom button gradient */
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box; /* Button responsive */
  white-space: normal; /* Button responsive */
  word-wrap: break-word; /* Button responsive */
}

.page-blog__cta-button:hover {
  opacity: 0.9;
}

.page-blog__cta-button--bottom {
  margin-top: 30px;
}

/* Content Wrapper */
.page-blog__content-wrapper {
  padding: 20px 0 50px;
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
}

/* Table of Contents */
.page-blog__table-of-contents {
  flex: 0 0 250px;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  height: fit-content;
  position: sticky;
  top: 20px; /* Adjust as needed for sticky positioning */
  border: 1px solid #E0E0E0; /* Border color */
}

.page-blog__toc-title {
  font-size: 1.4em;
  color: #E53935; /* Brand color for title */
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.page-blog__toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-blog__toc-list li {
  margin-bottom: 10px;
}

.page-blog__toc-list a {
  text-decoration: none;
  color: #333333;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.page-blog__toc-list a:hover {
  color: #E53935; /* Brand color on hover */
}

/* Article Content */
.page-blog__article {
  flex: 1;
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid #E0E0E0; /* Border color */
}

.page-blog__section {
  margin-bottom: 40px;
}

.page-blog__section-title {
  font-size: 2em;
  color: #E53935; /* Brand color for section title */
  margin-bottom: 20px;
  border-bottom: 2px solid #FF5A4F; /* Auxiliary color for underline */
  padding-bottom: 10px;
}

.page-blog__subsection-title {
  font-size: 1.5em;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog__article-text-block p {
  margin-bottom: 15px;
  color: #333333;
}

.page-blog__article-image-block {
  margin: 20px 0;
  text-align: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-blog__article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  min-height: 200px; /* Minimum size */
}

.page-blog__link {
  color: #E53935;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-blog__link:hover {
  color: #FF5A4F;
}

/* FAQ Section */
.page-blog__faq-section {
  margin-top: 40px;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0; /* Border color */
  overflow: hidden;
  background: #ffffff; /* Card background color */
}
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; /* Main text color */
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #E53935; /* Brand color for toggle icon */
  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: #333333;
}
.page-blog__faq-answer p {
  margin-bottom: 10px;
}
.page-blog__faq-button {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
  margin-top: 10px;
  font-size: 0.9em;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box; /* Button responsive */
  white-space: normal; /* Button responsive */
  word-wrap: break-word; /* Button responsive */
}
.page-blog__faq-button:hover {
  opacity: 0.9;
}


/* Responsive Design - Tablet & Mobile */
@media (max-width: 1023px) {
  /* Homepage Game Trial CSS - REQUIRED in output, even if not directly used by this page's content */
  .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;
  }

  /* Blog specific adjustments for tablet */
  .page-blog__container {
    flex-direction: column;
    gap: 20px;
  }

  .page-blog__table-of-contents {
    flex: none;
    width: 100%;
    position: static;
    top: auto;
    box-shadow: none; /* Remove shadow for smaller screens */
    border: none; /* Remove border */
    background: transparent; /* Transparent background */
    padding: 0;
  }

  .page-blog__toc-title {
    font-size: 1.2em;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 10px;
  }

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

  .page-blog__toc-list li {
    margin-bottom: 0;
  }

  .page-blog__toc-list a {
    padding: 8px 15px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 0.9em;
  }

  .page-blog__article {
    padding: 20px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
  }
}

@media (min-width: 1024px) {
  /* Homepage Game Trial CSS - REQUIRED in output, even if not directly used by this page's content */
  .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;
  }
}


/* Responsive Design - Mobile */
@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__hero-content {
    padding: 20px 15px;
  }

  .page-blog__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }

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

  .page-blog__cta-button {
    width: 100% !important;
    padding: 12px 15px;
  }

  .page-blog__content-wrapper {
    padding: 15px 0 30px;
  }

  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__table-of-contents {
    display: none; /* Hide TOC on very small screens for better content flow */
  }

  .page-blog__article {
    padding: 15px;
    box-shadow: none;
    border: none;
  }

  .page-blog__section-title {
    font-size: 1.6em;
    margin-bottom: 15px;
  }

  .page-blog__subsection-title {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  /* Images and containers */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min- /* Adjust min-height for mobile if needed */
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__article-image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons and button containers */
  .page-blog__cta-button,
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"],
  .page-blog__faq-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;
  }
  
  .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;
    display: flex;
    flex-direction: column;
  }

  /* FAQ specific for mobile */
  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; }

  /* Mandatory placeholders for homepage modules, even if not directly used */
  /* This is to satisfy the "必写清单" for the CSS output */
  /* __promo-strip (assuming a 4-column grid for PC, needs adjustment for mobile) */
  .page-blog__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for mobile */
    gap: 15px !important;
    overflow-x: hidden;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-blog__promo-card {
    display: flex;
    flex-direction: column; /* Stack image and text */
    text-align: center;
  }
  .page-blog__promo-card-image {
    width: 100% !important;
    height: auto !important;
    min-height: 120px;
    object-fit: cover;
  }
  .page-blog__promo-card-content {
    padding: 10px;
  }
  .page-blog__promo-card-title {
    font-size: 1.1em;
  }
  .page-blog__promo-card-button {
    width: 100% !important;
    padding: 8px 10px;
  }

  /* __hot-games (assuming a 6-column grid for PC, needs adjustment for mobile) */
  .page-blog__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for mobile */
    gap: 15px !important;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-blog__hot-games-card-name,
  .page-blog__hot-games-card-rtp,
  .page-blog__hot-games-card-desc {
    display: none !important; /* Hide details on mobile */
  }
  .page-blog__hot-games-card-image {
    width: 100% !important;
    height: auto !important;
    min-height: 150px;
    object-fit: cover;
  }
  .page-blog__hot-games-card-title {
    font-size: 1em;
    text-align: center;
  }

  /* __brand-intro (assuming it's a block for mobile) */
  .page-blog__brand-intro {
    padding: 20px 15px !important;
    text-align: center;
  }
  .page-blog__brand-intro-text {
    font-size: 0.95em;
  }
  .page-blog__brand-intro-logo {
    max-width: 150px !important;
    height: auto !important;
  }

  /* __winner-ticker (fixed bottom bar) */
  .page-blog__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 15px;
    font-size: 0.9em;
    z-index: 999;
    box-sizing: border-box;
  }
  body {
    padding-bottom: 50px; /* Adjust body padding for fixed ticker */
  }
  .page-blog__winner-ticker-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Fixed Header and Body Padding - as per common rules */
.page-blog__hero-section {
  /* Assumed body padding-top from shared.css */
  /* This section only needs a small padding-top */
  padding-top: 10px; 
}

/* Image color filter restriction */
.page-blog img {
  filter: none; /* Ensure no filter is applied */
}

/* Color Contrast Fixes (as per smart contrast system) */
/* These are general guidelines, specific elements might need explicit colors */
.page-blog {
  color: #333333; /* Default text color for light backgrounds like #F5F7FA */
}

.page-blog__dark-section {
  background: #E53935; /* Brand color as dark background */
  color: #ffffff; /* White text on dark brand background */
}

.page-blog__btn-primary,
.page-blog__cta-button,
.page-blog__faq-button {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff; /* White text on gradient button */
}

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

.page-blog__faq-toggle {
  color: #E53935; /* Brand color for FAQ toggle */
}

.page-blog__toc-title,
.page-blog__section-title,
.page-blog__link {
  color: #E53935; /* Brand color for titles and links */
}

/* Game Trial Overlay Z-index - REQUIRED in output */
.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;
}
.page-blog__reward-modal-close {
  /* Style for reward modal close button */
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}