/* General Styles for News Page */
.page-news {
  background: #0D0E12;
  color: #FFF3E6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-news__section-spacing {
  padding: 40px 0;
}

.page-news__section-title {
  font-size: 36px;
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding-top: 10px; /* Rely on body padding for header offset */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for desktop hero */
  overflow: hidden;
}

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

.page-news__hero-content-wrapper {
  padding: 40px 0;
  text-align: center;
}

.page-news__main-title {
  font-weight: bold;
  color: #FF8C1A;
  margin-bottom: 20px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
}

.page-news__lead-text {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF3E6;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

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

.page-news__article-card {
  background: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #FFF3E6;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__article-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.page-news__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__article-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: #FFB04D; /* Glow */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #FFA53A;
}

.page-news__article-meta {
  font-size: 14px;
  color: rgba(255, 243, 230, 0.7);
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #FFF3E6;
}

.page-news__read-more {
  display: inline-block;
  color: #FFA53A;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #FF8C1A;
}

.page-news__view-all-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-news__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    background: #FF8C1A;
    color: #FFF3E6;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-news__view-all-button:hover {
    background: #FFA53A;
}

/* FAQ Section */
details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  color: #FFF3E6;
}
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: rgba(255, 140, 26, 0.1); /* Slight hover effect with brand color */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FF8C1A;
  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: #0D0E12; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
}

/* Bottom CTA Section */
.page-news__cta-bottom-section {
  background: #FF8C1A; /* Main color */
  text-align: center;
  padding: 60px 0;
  color: #FFF3E6;
}

.page-news__cta-content {
  max-width: 800px;
}

.page-news__cta-title {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-news__cta-description {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #FFF3E6;
}

.page-news__cta-button--large {
  padding: 18px 35px;
  font-size: 20px;
}

/* Responsive Styles */
@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;
  }

  .page-news__hero-image-wrapper {
    height: 400px;
  }

  .page-news__main-title {
    font-size: clamp(28px, 5vw, 40px);
  }

  .page-news__lead-text {
    font-size: 16px;
  }

  .page-news__section-title {
    font-size: 30px;
  }

  .page-news__cta-title {
    font-size: 32px;
  }
}

@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;
  }

  /* News page specific desktop layout adjustments */
  .page-news__hero-image-wrapper {
    height: 600px;
  }
  .page-news__hero-content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    padding: 0;
  }
  .page-news__hero-section {
    margin-bottom: 60px;
  }
  .page-news__articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-news__cta-bottom-section {
    padding: 80px 0;
  }
  .page-news__cta-title {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  /* Mobile specific styles for general elements */
  .page-news__section-spacing {
    padding: 30px 0;
  }
  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-news__hero-image-wrapper {
    height: 250px;
  }
  .page-news__hero-content-wrapper {
    padding: 20px 0;
    position: static;
    transform: none;
  }
  .page-news__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-news__lead-text {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* Articles Section */
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-image-wrapper {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__article-excerpt {
    font-size: 15px;
  }

  /* FAQ Section */
  details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
  .page-news__faq-qtext { font-size: 15px; }
  details.page-news__faq-item .page-news__faq-answer { padding: 0 15px 15px; }

  /* Bottom CTA Section */
  .page-news__cta-bottom-section {
    padding: 40px 0;
  }
  .page-news__cta-title {
    font-size: 28px;
  }
  .page-news__cta-description {
    font-size: 16px;
  }
  .page-news__cta-button--large {
    padding: 15px 25px;
    font-size: 18px;
  }

  /* Image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__hero-image,
  .page-news__article-image {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Button responsiveness */
  .page-news__cta-button,
  .page-news__view-all-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-news__view-all-button-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* --- START: Homepage specific required CSS blocks for mobile 768px --- */
  /* 1. 首屏试玩 (already covered by 1023px, but ensuring general image/container rules apply) */
  .page-news__game-trial-shell, .page-news__game-trial-viewport {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* 2. 优惠 __promo-strip (placeholder, not actually on news page HTML) */
  .page-news__promo-strip-track {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted for smaller cards */
    overflow-x: hidden;
    padding: 0 15px;
  }
  .page-news__promo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-news__promo-card-image {
    max-width: 100% !important;
    height: auto !important;
    width: 100px;
    height: 100px;
    object-fit: contain;
  }
  .page-news__promo-card-title {
    font-size: 16px;
    margin-top: 10px;
  }
  .page-news__promo-card-button {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 14px;
    padding: 8px 10px;
  }
  /* 3. 热门 __hot-games (placeholder, not actually on news page HTML) */
  .page-news__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }
  .page-news__hot-game-card {
    text-align: center;
    padding: 10px;
  }
  .page-news__hot-game-image {
    max-width: 100% !important;
    height: auto !important;
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
  }
  .page-news__hot-game-name,
  .page-news__hot-game-rtp,
  .page-news__hot-game-desc {
    display: none;
  }
  /* 4. 品牌 __brand-intro (placeholder, not actually on news page HTML) */
  .page-news__brand-intro {
    padding: 20px 15px;
  }
  .page-news__brand-intro-title {
    font-size: 24px;
  }
  .page-news__brand-intro-text {
    font-size: 15px;
  }
  /* 5. 中奖条 __winner-ticker (placeholder, not actually on news page HTML) */
  .page-news__winner-ticker {
    font-size: 14px;
    padding: 8px 15px;
    height: 40px;
  }
  /* 6. 通用图片与容器 */
  .page-news__section, .page-news__card, .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* 7. 按钮与按钮容器 */
  .page-news__cta-buttons, .page-news__button-group, .page-news__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;
  }
  .page-news__cta-buttons {
    flex-direction: column;
  }
  /* --- END: Homepage specific required CSS blocks for mobile 768px --- */
}

/* Homepage specific overlay/start button for game trial */
.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 #A84F0C;
  border-radius:10px;
  overflow:hidden;
}
.page-news__reward-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-news__reward-modal-content {
  background: #17191F;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  position: relative;
  color: #FFF3E6;
}
.page-news__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #FF8C1A;
  cursor: pointer;
}
.page-news__reward-modal-title {
  font-size: 28px;
  color: #FF8C1A;
  margin-bottom: 15px;
}
.page-news__reward-modal-description {
  font-size: 16px;
  margin-bottom: 25px;
}
.page-news__reward-modal-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
}