/* Homepage trial layout CSS - MANDATORY to include in output, even for non-homepage */
@media (max-width: 1023px) {
  .page-news__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-news__hero-brand,
  .page-news__hero-jackpot {
    display: none !important;
  }
  .page-news__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-news__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-news__game-trial-topbar,
  .page-news__game-trial-bottombar {
    display: none !important;
  }
  .page-news__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-news__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-news__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-news__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-news__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-news__hero-brand,
  .page-news__hero-jackpot,
  .page-news__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-news__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-news__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-news__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-news__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-news__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}
/* End of Homepage trial layout CSS */


/* General styles for News page */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background: #F4F7FB; /* Background */
  line-height: 1.6;
}

/* Fixed header spacing - relying on shared.css body padding */
.page-news__hero-section {
  padding-top: 10px; /* Small top padding, not --header-offset */
}

.page-news__section-padding {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-news__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 400px;
  background-color: #2F6BFF; /* fallback */
  padding-bottom: 40px;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Subtle overlay */
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
}

.page-news__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Use clamp for H1 */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-news__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-news__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  border: none;
}

.page-news__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-news__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
}

.page-news__section-title--white {
  color: #ffffff;
}

.page-news__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  color: #1F2D3D; /* Text Main */
  text-align: justify;
}

.page-news__paragraph--white {
  color: #f0f0f0;
}

/* Features Section */
.page-news__features-section {
  background: #2F6BFF; /* Main Color */
}

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

.page-news__feature-card {
  background: #ffffff; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.page-news__feature-icon {
  width: 100%;
  height: auto;
  max-height: 200px; /* Ensure images are not too tall */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-news__feature-title {
  font-size: 20px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 10px;
}

.page-news__feature-description {
  font-size: 16px;
  color: #333333;
}

/* Categories Section */
.page-news__categories-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-news__category-item {
  background: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-news__category-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-news__category-title {
  font-size: 22px;
  font-weight: 700;
  color: #2F6BFF; /* Main Color */
  margin-bottom: 10px;
}

.page-news__category-description {
  font-size: 16px;
  color: #333333;
  margin-bottom: 15px;
}

.page-news__category-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #2F6BFF; /* Main Color */
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
}

.page-news__category-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #2F6BFF;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.page-news__category-link:hover::after {
  transform: scaleX(1);
}

/* Why Choose Section */
.page-news__why-choose-section {
  background: #F4F7FB; /* Background */
  text-align: center;
}

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

.page-news__why-choose-item {
  background: #ffffff; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-news__why-choose-icon {
  width: 100%;
  height: auto;
  max-height: 180px; /* Adjusted for this section */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-news__why-choose-title {
  font-size: 20px;
  font-weight: 700;
  color: #2F6BFF; /* Main Color */
  margin-bottom: 10px;
}

.page-news__why-choose-description {
  font-size: 16px;
  color: #333333;
}

.page-news__cta-bottom {
  text-align: center;
  margin-top: 30px;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  border: none;
}

.page-news__btn-secondary {
  background: #ffffff;
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF; /* Main Color */
}

.page-news__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
}

/* Access Guide Section */
.page-news__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-news__guide-step {
  background: #ffffff; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-top: 60px;
}

.page-news__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #2F6BFF; /* Main Color */
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-news__step-title {
  font-size: 20px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 10px;
}

.page-news__step-description {
  font-size: 16px;
  color: #333333;
}

/* FAQ Section */
.page-news__faq-section {
  background: #F4F7FB; /* Background */
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #ffffff; /* Card BG */
}
details.page-news__faq-item summary.page-news__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-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
  display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
  background: #f5f5f5;
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main Color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}
.page-news__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
}

/* Conclusion Section */
.page-news__conclusion-section {
  background: #2F6BFF; /* Main Color */
}


/* Responsive Design */
/* Mobile Landscape and Tablet Portrait (up to 1023px, though homepage rules apply to this range) */
@media (max-width: 1023px) {
  .page-news__hero-content {
    padding: 15px;
  }
  .page-news__main-title {
    font-size: clamp(24px, 6vw, 40px);
  }
  .page-news__description {
    font-size: 16px;
  }
  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }
  .page-news__paragraph {
    font-size: 16px;
  }
  .page-news__features-grid,
  .page-news__categories-list,
  .page-news__why-choose-content,
  .page-news__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__feature-icon,
  .page-news__why-choose-icon {
    max-height: 150px;
  }
}

/* Mobile Portrait (max-width: 768px) - MANDATORY to include all listed blocks */
@media (max-width: 768px) {
  /* General image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* All content containers */
  .page-news__section-padding,
  .page-news__hero-section,
  .page-news__features-section,
  .page-news__categories-section,
  .page-news__why-choose-section,
  .page-news__access-guide-section,
  .page-news__faq-section,
  .page-news__conclusion-section,
  .page-news__feature-card,
  .page-news__category-item,
  .page-news__why-choose-item,
  .page-news__guide-step {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__section-padding {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  /* Buttons and button containers */
  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news 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-news__cta-bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* FAQ specific mobile styles */
  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px;
  }
  .page-news__faq-qtext {
    font-size: 15px;
  }
  .page-news__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 15px 15px;
  }

  /* The following blocks are explicitly for homepage, but requested to be included in CSS output if present in the prompt. */
  /* This News page does not have these classes in HTML, so they are effectively inert. */
  /* 1. 首屏试玩 (already covered by 1023px block above, no need to duplicate here for 768px) */
  
  /* 2. 优惠 __promo-strip (placeholder, not used in this News page HTML) */
  /* 3. 热门 __hot-games (placeholder, not used in this News page HTML) */
  /* 4. 品牌 __brand-intro (placeholder, not used in this News page HTML) */
  /* 5. 中奖条 __winner-ticker (placeholder, not used in this News page HTML) */
}

/* Smart color contrast safety */
/* Body background is #F4F7FB (light), so text should be dark. */
.page-news {
  color: #1F2D3D; /* Text Main */
}

.page-news__dark-section {
  background: #2F6BFF;
  color: #ffffff;
}

.page-news__light-bg {
  background: #F4F7FB;
  color: #1F2D3D;
}

.page-news__card,
.page-news__feature-card,
.page-news__category-item,
.page-news__why-choose-item,
.page-news__guide-step {
  background: #ffffff;
  color: #1F2D3D;
  border: 1px solid #D6E2FF;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
}

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

/* Homepage trial specific elements that need z-index and display:none for overlay */
.page-news__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-news__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-news__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-news__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45); /* Example from prompt */
  border-radius: 10px;
  overflow: hidden;
}
.page-news__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}
.page-news__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}