.page-jackpot-games {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;

  color: var(--color-text-main); /* Assuming dark body background from shared */
  background-color: var(--color-background);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-jackpot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-jackpot-games__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
}

.page-jackpot-games__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.page-jackpot-games__main-title {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-gold);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

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

.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;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-jackpot-games__btn-primary {
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: #ffffff;
  border: 2px solid var(--color-button-gradient-start);
}

.page-jackpot-games__btn-primary:hover {
  background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-jackpot-games__btn-secondary:hover {
  background-color: var(--color-button-gradient-start);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-jackpot-games__section-title {
  font-size: 2.5em;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-jackpot-games__text-block {
  font-size: 1.05em;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-jackpot-games__text-block a {
  color: var(--color-gold);
  text-decoration: none;
  font-weight: bold;
}

.page-jackpot-games__text-block a:hover {
  text-decoration: underline;
}

.page-jackpot-games__introduction-section,
.page-jackpot-games__how-to-play-section,
.page-jackpot-games__faq-section {
  padding: 60px 0;
  background-color: var(--color-card-bg);
}

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

.page-jackpot-games__features-section {
  padding: 60px 0;
  background-color: var(--color-background);
}

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

.page-jackpot-games__feature-card,
.page-jackpot-games__step-card {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-jackpot-games__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--color-divider);
}

.page-jackpot-games__card-title {
  font-size: 1.5em;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.page-jackpot-games__card-description {
  color: var(--color-text-secondary);
  font-size: 0.95em;
  flex-grow: 1;
}

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

.page-jackpot-games__step-card .page-jackpot-games__step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 0 15px var(--color-glow);
}

.page-jackpot-games__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-jackpot-games__mobile-section {
  padding: 60px 0;
  background-color: var(--color-background);
}

.page-jackpot-games__mobile-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-jackpot-games__mobile-content {
  flex: 1;
}

.page-jackpot-games__mobile-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-jackpot-games__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--color-border);
}

.page-jackpot-games__faq-list {
  margin-top: 40px;
}

.page-jackpot-games__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--color-gold);
  cursor: pointer;
  background-color: var(--color-deep-green);
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-jackpot-games__faq-question:hover {
  background-color: var(--color-primary);
}

.page-jackpot-games__faq-qtext {
  flex-grow: 1;
}

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

.page-jackpot-games__faq-answer {
  padding: 20px 25px;
  background-color: var(--color-card-bg);
  color: var(--color-text-secondary);
  font-size: 1em;
  border-top: 1px solid var(--color-divider);
}

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

.page-jackpot-games__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--color-card-bg) 0%, var(--color-background) 100%);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-jackpot-games__mobile-flex {
    flex-direction: column;
  }
  .page-jackpot-games__mobile-content,
  .page-jackpot-games__mobile-image-wrapper {
    flex: none;
    width: 100%;
  }
  .page-jackpot-games__mobile-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-jackpot-games__main-title {
    font-size: 2em;
  }
  .page-jackpot-games__section-title {
    font-size: 1.8em;
  }
  .page-jackpot-games__hero-description {
    font-size: 1em;
  }
  .page-jackpot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-jackpot-games__hero-section,
  .page-jackpot-games__introduction-section,
  .page-jackpot-games__features-section,
  .page-jackpot-games__how-to-play-section,
  .page-jackpot-games__mobile-section,
  .page-jackpot-games__faq-section,
  .page-jackpot-games__cta-final-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-jackpot-games__container {
    padding: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* All image containers */
  .page-jackpot-games__hero-section,
  .page-jackpot-games__features-grid,
  .page-jackpot-games__feature-card,
  .page-jackpot-games__steps-grid,
  .page-jackpot-games__step-card,
  .page-jackpot-games__mobile-section,
  .page-jackpot-games__mobile-flex,
  .page-jackpot-games__mobile-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

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

  .page-jackpot-games__mobile-image {
    max-width: 100%; /* Adjust for smaller screens if needed */
  }
}

@media (max-width: 480px) {
  .page-jackpot-games__main-title {
    font-size: 1.8em;
  }
  .page-jackpot-games__section-title {
    font-size: 1.5em;
  }
  .page-jackpot-games__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
}