/* style/jackpot-games.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-login-register-text: #FFFF00;
  --background-color: #FFFFFF;
  --border-light: #e0e0e0;
}

.page-jackpot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-color);
}

/* Ensure fixed header offset for desktop if shared.css does not provide body padding-top */
/* If shared.css already sets body { padding-top: var(--header-offset); }, then hero-section should have padding-top: 0 */
.page-jackpot-games__hero-section {
  position: relative;
  padding-top: 0; /* Assumes shared.css handles body padding-top */
  padding-bottom: 80px;
  color: var(--text-light);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 600px;
}

.page-jackpot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

.page-jackpot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-jackpot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-light);
}

.page-jackpot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.page-jackpot-games__section {
  padding: 60px 0;
}

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

.page-jackpot-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  color: var(--primary-color);
}

.page-jackpot-games__dark-bg .page-jackpot-games__section-title,
.page-jackpot-games__dark-bg .page-jackpot-games__section-description {
  color: var(--text-light);
}

.page-jackpot-games__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-jackpot-games__introduction-section .page-jackpot-games__section-description {
  text-align: left;
  margin-bottom: 20px;
}

.page-jackpot-games__introduction-section .page-jackpot-games__section-description:last-of-type {
  margin-bottom: 40px;
}

.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-jackpot-games__btn-primary {
  background-color: var(--button-register-bg);
  color: var(--button-login-register-text);
  border: 2px solid var(--button-register-bg);
}

.page-jackpot-games__btn-primary:hover {
  background-color: darken(var(--button-register-bg), 10%);
  border-color: darken(var(--button-register-bg), 10%);
}

.page-jackpot-games__btn-secondary {
  background-color: transparent;
  color: var(--button-login-register-text);
  border: 2px solid var(--button-login-register-text);
}

.page-jackpot-games__btn-secondary:hover {
  background-color: var(--button-login-register-text);
  color: var(--button-login-bg);
}

.page-jackpot-games__btn-center {
  display: block;
  margin: 0 auto;
  width: fit-content;
}

.page-jackpot-games__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-jackpot-games__light-bg {
  background-color: var(--background-color);
  color: var(--text-dark);
}

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

.page-jackpot-games__game-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

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

.page-jackpot-games__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-jackpot-games__game-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: var(--primary-color);
}

.page-jackpot-games__game-description {
  font-size: 0.95em;
  margin: 0 15px 20px;
  color: var(--text-dark);
}

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

.page-jackpot-games__benefit-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: var(--text-dark);
}

.page-jackpot-games__benefit-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-jackpot-games__benefit-description {
  font-size: 1em;
  color: var(--text-dark);
}

.page-jackpot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
  margin-bottom: 40px;
}

.page-jackpot-games__step-item {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-jackpot-games__step-number {
  width: 50px;
  height: 50px;
  background-color: var(--button-register-bg);
  color: var(--button-login-register-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-jackpot-games__step-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-jackpot-games__step-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-jackpot-games__process-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-jackpot-games__strategy-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.page-jackpot-games__strategy-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-jackpot-games__strategy-description {
  font-size: 1em;
  color: var(--text-dark);
}

.page-jackpot-games__strategy-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-jackpot-games__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-jackpot-games__faq-item {
  background-color: var(--secondary-color);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--secondary-color);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.3s ease;
}

.page-jackpot-games__faq-question:hover {
  background-color: #f9f9f9;
}

.page-jackpot-games__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
}

.page-jackpot-games__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-jackpot-games__faq-item.active .page-jackpot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-jackpot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-jackpot-games__faq-item.active .page-jackpot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-jackpot-games__faq-answer p {
  margin: 0;
  color: var(--text-dark);
}

.page-jackpot-games__cta-final-section .page-jackpot-games__section-title,
.page-jackpot-games__cta-final-section .page-jackpot-games__section-description {
  color: var(--text-light);
}

.page-jackpot-games__text-center {
  text-align: center;
}

/* Image and button responsive base styles */
.page-jackpot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-jackpot-games__section,
.page-jackpot-games__card,
.page-jackpot-games__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.page-jackpot-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for Responsive Design */

@media (max-width: 1024px) {
  .page-jackpot-games__hero-title {
    font-size: 3em;
  }

  .page-jackpot-games__hero-description {
    font-size: 1.1em;
  }

  .page-jackpot-games__section-title {
    font-size: 2em;
  }

  .page-jackpot-games__games-grid,
  .page-jackpot-games__benefits-grid,
  .page-jackpot-games__steps-grid,
  .page-jackpot-games__strategy-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-jackpot-games__hero-section {
    padding-top: 0; /* Assumes shared.css handles body padding-top */
    padding-bottom: 50px;
    min-height: 450px;
  }

  .page-jackpot-games__hero-title {
    font-size: 2.5em !important;
    margin-bottom: 15px;
  }

  .page-jackpot-games__hero-description {
    font-size: 1em !important;
    margin-bottom: 25px;
  }

  .page-jackpot-games__hero-cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px;
  }

  /* 其他内容模块 - 通用 padding */
  .page-jackpot-games__container {
    padding: 0 15px !important;
  }

  .page-jackpot-games__section {
    padding: 40px 0 !important;
  }

  .page-jackpot-games__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px !important;
  }

  .page-jackpot-games__section-description {
    font-size: 0.95em !important;
    margin-bottom: 20px !important;
  }

  /* 产品展示图区域 */
  .page-jackpot-games__games-grid {
    grid-template-columns: 1fr !important; /* Single column for mobile */
    gap: 20px !important;
  }

  /* 通用图片与容器 */
  .page-jackpot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-jackpot-games__section,
  .page-jackpot-games__card,
  .page-jackpot-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* 按钮与按钮容器 */
  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary,
  .page-jackpot-games a[class*="button"],
  .page-jackpot-games 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 !important;
    padding-right: 15px !important;
    text-align: center;
  }

  .page-jackpot-games__cta-buttons,
  .page-jackpot-games__button-group,
  .page-jackpot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    flex-direction: column !important; /* Ensure vertical stacking for multiple buttons */
  }

  /* Other content modules */
  .page-jackpot-games__introduction-section .page-jackpot-games__section-description {
    text-align: justify;
  }

  .page-jackpot-games__benefits-grid,
  .page-jackpot-games__steps-grid,
  .page-jackpot-games__strategy-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-jackpot-games__game-card,
  .page-jackpot-games__benefit-card,
  .page-jackpot-games__step-item,
  .page-jackpot-games__strategy-card {
    padding: 20px !important;
  }

  .page-jackpot-games__game-image {
    height: 200px !important;
  }

  .page-jackpot-games__faq-question {
    padding: 15px 20px !important;
  }

  .page-jackpot-games__faq-question h3 {
    font-size: 1.1em !important;
  }

  .page-jackpot-games__faq-answer {
    padding: 0 20px !important;
  }

  .page-jackpot-games__faq-item.active .page-jackpot-games__faq-answer {
    padding: 15px 20px !important;
  }

  .page-jackpot-games__process-image, .page-jackpot-games__strategy-image {
    margin-top: 20px !important;
  }
}