/* style/jackpot-games.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-jackpot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Ensure consistency with shared body bg */
}

/* Hero Section */
.page-jackpot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 40px;
  overflow: hidden; /* Ensure no image overflow */
  background-color: var(--background-color, #FFFFFF); /* Match body background */
}

.page-jackpot-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-jackpot-games__hero-content {
  width: 100%;
  max-width: 800px;
  padding: 30px 20px;
  margin-top: 20px;
  background-color: #FFFFFF; /* Ensure good contrast */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333; /* Dark text for light background */
}

.page-jackpot-games__main-title {
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1.2;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 15px;
  max-width: 100%; /* Ensure H1 doesn't overflow */
  box-sizing: border-box;
}

.page-jackpot-games__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

.page-jackpot-games__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 15px;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-jackpot-games__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-jackpot-games__btn-primary:hover {
  background-color: #1a8cc7;
  border-color: #1a8cc7;
}

.page-jackpot-games__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-jackpot-games__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a8cc7;
  border-color: #1a8cc7;
}

/* Content Area */
.page-jackpot-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  color: #333333; /* Default for light backgrounds */
  background-color: #FFFFFF; /* Default for light backgrounds */
}

.page-jackpot-games__dark-section {
  background-color: #26A9E0; /* Brand color for dark sections */
  color: #FFFFFF; /* White text for dark background */
}

.page-jackpot-games__section-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.page-jackpot-games__section-title {
  font-size: 2em;
  font-weight: 700;
  color: inherit; /* Inherit color from parent section */
  margin-bottom: 25px;
  text-align: center;
}

.page-jackpot-games__sub-title {
  font-size: 1.5em;
  font-weight: 600;
  color: inherit; /* Inherit color from parent section */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-jackpot-games p {
  margin-bottom: 15px;
  color: inherit;
}

.page-jackpot-games__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* FAQ Section */
.page-jackpot-games__faq-list {
  margin-top: 30px;
}

.page-jackpot-games__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-jackpot-games__faq-item[open] {
  background-color: #eaf7fc; /* Lighter background when open */
}

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: 600;
  font-size: 1.1em;
  color: #26A9E0; /* Brand color for questions */
  cursor: pointer;
  list-style: none; /* Remove default summary marker */
}

.page-jackpot-games__faq-question::-webkit-details-marker {
  display: none; /* Remove default summary marker for webkit browsers */
}

.page-jackpot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-jackpot-games__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1em;
  color: #555555;
}

.page-jackpot-games__faq-answer p {
  margin-bottom: 10px;
}

.page-jackpot-games__faq-answer .page-jackpot-games__cta-buttons {
    margin-top: 15px;
    justify-content: flex-start; /* Align buttons to start in FAQ */
}
.page-jackpot-games__faq-answer .page-jackpot-games__btn-primary,
.page-jackpot-games__faq-answer .page-jackpot-games__btn-secondary {
    max-width: 250px; /* Limit width in FAQ answer */
}


/* Conclusion Section */
.page-jackpot-games__conclusion-section {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}

.page-jackpot-games__conclusion-section .page-jackpot-games__section-title {
    color: #FFFFFF;
}

.page-jackpot-games__conclusion-section p {
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .page-jackpot-games__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-jackpot-games__hero-content {
    padding: 20px 15px;
    margin-top: 15px;
  }

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

  .page-jackpot-games__description {
    font-size: 1em;
  }

  .page-jackpot-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
    padding-right: 15px;
  }

  .page-jackpot-games__content-area,
  .page-jackpot-games__section-wrapper {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-jackpot-games__sub-title {
    font-size: 1.3em;
  }

  .page-jackpot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-jackpot-games__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

  .page-jackpot-games__faq-answer .page-jackpot-games__cta-buttons {
      flex-direction: column;
      align-items: flex-start;
  }
  .page-jackpot-games__faq-answer .page-jackpot-games__btn-primary,
  .page-jackpot-games__faq-answer .page-jackpot-games__btn-secondary {
      max-width: 100% !important;
      width: 100% !important;
  }
}

/* Ensure images maintain aspect ratio and don't overflow */
.page-jackpot-games img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

/* Ensure containers that hold images/buttons/videos are responsive */
.page-jackpot-games__section,
.page-jackpot-games__card,
.page-jackpot-games__container,
.page-jackpot-games__video-container,
.page-jackpot-games__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent content overflow */
}