.page-jackpot-games {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;

  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--background-color); /* Body background from shared.css */
}

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

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

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

.page-jackpot-games__light-bg {
  background-color: var(--card-bg);
  color: var(--text-main); /* Still using light text for card-bg as it's also dark */
}

.page-jackpot-games__section-title {
  font-size: 2.8em;
  margin-bottom: 30px;
  color: var(--gold-color);
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1.2;
}

.page-jackpot-games__section-title--dark {
  color: var(--gold-color);
}

.page-jackpot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-jackpot-games__text-block--dark {
  color: var(--text-main);
}

/* Hero Section */
.page-jackpot-games__hero-section {
  position: relative;
  padding: 0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-jackpot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for large screens */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-jackpot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast, not color change */
}

.page-jackpot-games__hero-content {
  position: relative; /* Ensure content is above image but not overlapping */
  z-index: 10;
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
  margin-top: -100px; /* Pull up slightly, but not over image */
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text block */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(var(--glow-color), 0.5);
}

.page-jackpot-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size */
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-shadow: 0 0 10px rgba(var(--glow-color), 0.7);
}

.page-jackpot-games__description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-jackpot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 100%;
}

.page-jackpot-games__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-jackpot-games__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--glow-color);
}

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

.page-jackpot-games__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--background-color);
  box-shadow: 0 0 15px var(--gold-color);
}

/* Intro Section */
.page-jackpot-games__intro .page-jackpot-games__image-content {
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(var(--glow-color), 0.3);
  width: 100%;
  max-width: 800px;
  height: auto;
}

/* How to Play Section */
.page-jackpot-games__how-to-play {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-jackpot-games__steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-jackpot-games__step-item {
  background-color: var(--deep-green);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-jackpot-games__step-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-jackpot-games__step-title--dark {
  color: var(--gold-color);
}

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

/* Popular Games Section */
.page-jackpot-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-jackpot-games__game-card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-jackpot-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-jackpot-games__game-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-jackpot-games__game-link {
  color: var(--gold-color);
  text-decoration: none;
}

.page-jackpot-games__game-link:hover {
  text-decoration: underline;
  color: var(--glow-color);
}

.page-jackpot-games__game-description {
  color: var(--text-secondary);
  font-size: 0.95em;
}

/* Advantages Section */
.page-jackpot-games__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  text-align: left;
}

.page-jackpot-games__advantage-item {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-jackpot-games__advantage-title {
  font-size: 1.6em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

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

/* Login Guide Section */
.page-jackpot-games__login-guide {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-jackpot-games__guide-block {
  margin-top: 30px;
  text-align: left;
  padding: 20px;
  background-color: var(--deep-green);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.page-jackpot-games__guide-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-jackpot-games__guide-title--dark {
  color: var(--gold-color);
}

.page-jackpot-games__guide-list {
  list-style: decimal;
  padding-left: 25px;
  color: var(--text-secondary);
  font-size: 1.1em;
}

.page-jackpot-games__guide-list li {
  margin-bottom: 10px;
}

.page-jackpot-games__login-guide .page-jackpot-games__image-content {
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(var(--glow-color), 0.3);
  width: 100%;
  max-width: 800px;
  height: auto;
}

/* Strategies Section */
.page-jackpot-games__strategies {
  background-color: var(--background-color);
  color: var(--text-main);
}

.page-jackpot-games__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  text-align: left;
}

.page-jackpot-games__strategy-item {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-jackpot-games__strategy-title {
  font-size: 1.6em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

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

/* Promotions Section */
.page-jackpot-games__promotions {
  background-color: var(--background-color);
  color: var(--text-main);
}

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

.page-jackpot-games__promotion-card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-jackpot-games__promotion-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-jackpot-games__promotion-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-jackpot-games__promotion-description {
  color: var(--text-secondary);
  font-size: 0.95em;
}

/* FAQ Section */
.page-jackpot-games__faq {
  background-color: var(--card-bg);
  color: var(--text-main);
}

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

.page-jackpot-games__faq-item {
  background-color: var(--deep-green);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.page-jackpot-games__faq-item summary {
  list-style: none;
}

.page-jackpot-games__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  color: var(--gold-color);
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--border-color);
}

.page-jackpot-games__faq-question--dark {
  color: var(--gold-color);
}

.page-jackpot-games__faq-qtext {
  flex-grow: 1;
  color: var(--gold-color);
}

.page-jackpot-games__faq-qtext--dark {
  color: var(--gold-color);
}

.page-jackpot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color);
}

.page-jackpot-games__faq-toggle--dark {
  color: var(--glow-color);
}

.page-jackpot-games__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
  background-color: var(--card-bg);
}

.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-question {
  border-bottom: 1px solid var(--border-color);
}

/* Conclusion Section */
.page-jackpot-games__conclusion {
  padding-bottom: 80px;
}

/* Links */
.page-jackpot-games a {
  color: var(--glow-color);
  text-decoration: none;
}

.page-jackpot-games a:hover {
  text-decoration: underline;
  color: var(--gold-color);
}

/* Image specific styles to meet min size */
.page-jackpot-games img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-jackpot-games__hero-content {
    margin-top: -50px;
  }
}

@media (max-width: 768px) {
  .page-jackpot-games__container {
    padding: 0 15px;
  }

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

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

  .page-jackpot-games__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
    line-height: 1.3;
  }

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

  .page-jackpot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary {
    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;
  }

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

  /* All content containers for mobile */
  .page-jackpot-games__section,
  .page-jackpot-games__card,
  .page-jackpot-games__container,
  .page-jackpot-games__hero-section,
  .page-jackpot-games__hero-image-wrapper,
  .page-jackpot-games__hero-content,
  .page-jackpot-games__steps-list,
  .page-jackpot-games__step-item,
  .page-jackpot-games__game-grid,
  .page-jackpot-games__game-card,
  .page-jackpot-games__advantage-list,
  .page-jackpot-games__advantage-item,
  .page-jackpot-games__guide-block,
  .page-jackpot-games__strategy-list,
  .page-jackpot-games__strategy-item,
  .page-jackpot-games__promotion-grid,
  .page-jackpot-games__promotion-card,
  .page-jackpot-games__faq-list,
  .page-jackpot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-jackpot-games__hero-section {
    padding-top: 10px !important;
  }

  .page-jackpot-games__hero-content {
    margin-top: -30px; /* Adjust margin for mobile */
    padding: 20px;
  }

  .page-jackpot-games__game-image,
  .page-jackpot-games__promotion-image {
    height: auto; /* Allow height to adjust */
    max-height: 300px; /* Cap max height */
  }
}