/* Base styles for the news-industry page */
.page-news-industry {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-text-main, #F2FFF6); /* Default text color for the page, derived from custom colors */
  background-color: var(--page-bg, #08160F); /* Default background color for the page */
}

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

.page-news-industry__section-title {
  font-size: 2.2em;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-news-industry__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background-color: var(--page-bg, #08160F);
  position: relative;
  overflow: hidden;
}

.page-news-industry__hero-content {
  max-width: 900px;
  margin: 0 auto 30px;
  padding: 0 15px;
  z-index: 2;
}

.page-news-industry__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Using clamp for responsive H1 font size */
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.page-news-industry__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-news-industry__cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
}

.page-news-industry__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-news-industry__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-news-industry__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border-color, #2E7A4E);
  margin-left: 15px;
}

.page-news-industry__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* Deep Green with some transparency */
  transform: translateY(-2px);
}

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

.page-news-industry__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news-industry__overview p,
.page-news-industry__regulations p,
.page-news-industry__market-analysis p,
.page-news-industry__future-outlook p {
  font-size: 1.05em;
  margin-bottom: 1em;
  color: var(--text-secondary, #A7D9B8);
}

.page-news-industry__overview strong,
.page-news-industry__regulations strong,
.page-news-industry__market-analysis strong,
.page-news-industry__future-outlook strong {
  color: var(--text-main, #F2FFF6);
}

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

.page-news-industry__card {
  background: var(--card-bg, #11271B); /* Card BG */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border-color, #2E7A4E);
  color: var(--text-secondary, #A7D9B8);
  height: 100%;
  box-sizing: border-box;
}

.page-news-industry__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency in cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

.page-news-industry__card-title {
  font-size: 1.4em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.page-news-industry__card p {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
  flex-grow: 1; /* Allow paragraph to take available space */
}

.page-news-industry__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 1em;
  color: var(--text-secondary, #A7D9B8);
}

.page-news-industry__list li {
  margin-bottom: 0.5em;
  font-size: 1.05em;
}

.page-news-industry__list strong {
  color: var(--text-main, #F2FFF6);
}

.page-news-industry__cta-bottom {
  padding: 60px 0;
  background-color: var(--deep-green, #0A4B2C); /* Deep Green */
}

.page-news-industry__dark-section {
  background: var(--deep-green, #0A4B2C); /* Deep Green */
  color: var(--text-main, #F2FFF6); /* Text Main */
  border-radius: 15px;
  padding: 40px;
  text-align: center;
}

.page-news-industry__dark-section .page-news-industry__section-title {
  color: var(--text-main, #F2FFF6);
}

.page-news-industry__dark-section .page-news-industry__text-secondary {
  color: var(--text-secondary, #A7D9B8);
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-news-industry__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* FAQ Section Styles */
details.page-news-industry__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #2E7A4E);
  overflow: hidden;
  background: var(--card-bg, #11271B); /* Card BG */
  color: var(--text-secondary, #A7D9B8);
}
details.page-news-industry__faq-item summary.page-news-industry__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main, #F2FFF6);
}
details.page-news-industry__faq-item summary.page-news-industry__faq-question::-webkit-details-marker {
  display: none;
}
details.page-news-industry__faq-item summary.page-news-industry__faq-question:hover {
  background: rgba(46, 122, 78, 0.3); /* Slightly lighter hover for deep green background */
}
.page-news-industry__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #F2FFF6);
}
.page-news-industry__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow, #57E38D); /* Glow color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news-industry__faq-item .page-news-industry__faq-answer {
  padding: 0 25px 25px;
  background: var(--deep-green, #0A4B2C); /* Deep Green for answer background */
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary, #A7D9B8);
}
.page-news-industry__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
  line-height: 1.6;
}

/* Mandatory Placeholder CSS for homepage game trial and other sections */
@media (max-width: 1023px) {
  .page-news-industry__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-industry__hero-brand,
  .page-news-industry__hero-jackpot {
    display: none !important;
  }
  .page-news-industry__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-industry__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-news-industry__game-trial-topbar,
  .page-news-industry__game-trial-bottombar {
    display: none !important;
  }
  .page-news-industry__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-industry__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-industry__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-news-industry__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

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

/* Mobile responsiveness for the current page and required placeholders */
@media (max-width: 768px) {
  .page-news-industry {
    font-size: 15px;
  }

  .page-news-industry__container {
    padding: 15px;
  }

  .page-news-industry__hero-section {
    padding-bottom: 30px;
  }

  .page-news-industry__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-news-industry__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-news-industry__cta-button {
    padding: 12px 20px;
    font-size: 1em;
    margin-left: 0 !important; /* Reset margin for single column */
    margin-bottom: 10px; /* Space between stacked buttons */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news-industry__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }

  .page-news-industry__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-news-industry__grid {
    grid-template-columns: 1fr; /* Single column layout for cards */
    gap: 20px;
  }

  .page-news-industry__card {
    padding: 20px;
  }

  .page-news-industry__card-title {
    font-size: 1.2em;
  }

  .page-news-industry__card-image {
    height: 180px;
  }

  .page-news-industry__overview p,
  .page-news-industry__regulations p,
  .page-news-industry__market-analysis p,
  .page-news-industry__future-outlook p,
  .page-news-industry__list li,
  .page-news-industry__dark-section .page-news-industry__text-secondary {
    font-size: 1em;
  }

  /* FAQ Mobile Styles */
  details.page-news-industry__faq-item summary.page-news-industry__faq-question {
    padding: 15px;
  }
  .page-news-industry__faq-qtext {
    font-size: 1em;
  }
  details.page-news-industry__faq-item .page-news-industry__faq-answer {
    padding: 0 15px 15px;
  }

  /* General image and container responsiveness */
  .page-news-industry img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-news-industry__section,
  .page-news-industry__card,
  .page-news-industry__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Placeholder for promo strip (优惠) */
  .page-news-industry__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile */
    gap: 15px;
    overflow-x: hidden !important;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-news-industry__promo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-news-industry__promo-card-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  .page-news-industry__promo-card-title {
    font-size: 1em;
    line-height: 1.3;
  }
  .page-news-industry__promo-card-button {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Placeholder for hot games (热门) */
  .page-news-industry__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile */
    gap: 15px;
    overflow-x: hidden !important;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-news-industry__hot-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-news-industry__hot-game-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  .page-news-industry__hot-games-name,
  .page-news-industry__hot-games-rtp,
  .page-news-industry__hot-games-desc {
    display: none !important; /* Hide name/rtp/desc as per prompt */
  }

  /* Placeholder for winner ticker (中奖条) */
  .page-news-industry__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 15px;
    color: #fff;
    font-size: 0.9em;
    overflow: hidden;
    white-space: nowrap;
  }
  body {
    padding-bottom: 40px; /* Adjust body padding for fixed ticker */
  }
}

/* Additional common styles for homepage placeholders, as required */
.page-news-industry__game-trial-overlay{z-index:5;pointer-events:auto;}
.page-news-industry__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}
.page-news-industry__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}
.page-news-industry__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}
.page-news-industry__reward-modal{position:fixed;inset:0;z-index:10000;}
.page-news-industry__reward-modal.is-hidden{display:none!important;pointer-events:none!important;}
.page-news-industry__reward-modal-close{position:absolute;top:15px;right:15px;font-size:2em;color:#fff;cursor:pointer;}