.page-jackpot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text should be light */
  background-color: #1a1a1a; /* Inherited from body via shared.css */
}

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

/* Hero Section */
.page-jackpot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: #017439; /* Primary brand color for hero */
  color: #ffffff;
  overflow: hidden;
}

.page-jackpot-games__hero-content {
  z-index: 1;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-jackpot-games__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: #FFFF00;
}

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

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

.page-jackpot-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.2;
}

.page-jackpot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

/* General Section Styles */
.page-jackpot-games__section {
  padding: 80px 0;
}

.page-jackpot-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for titles on dark background */
}

.page-jackpot-games__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-jackpot-games__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-jackpot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-jackpot-games__light-bg .page-jackpot-games__section-title,
.page-jackpot-games__light-bg .page-jackpot-games__section-intro,
.page-jackpot-games__light-bg .page-jackpot-games__feature-title,
.page-jackpot-games__light-bg .page-jackpot-games__feature-description,
.page-jackpot-games__light-bg .page-jackpot-games__step-title,
.page-jackpot-games__light-bg .page-jackpot-games__step-description,
.page-jackpot-games__light-bg .page-jackpot-games__strategy-title,
.page-jackpot-games__light-bg .page-jackpot-games__safety-title,
.page-jackpot-games__light-bg .page-jackpot-games__safety-description,
.page-jackpot-games__light-bg p,
.page-jackpot-games__light-bg li,
.page-jackpot-games__light-bg a {
  color: #333333;
}

.page-jackpot-games__light-bg .page-jackpot-games__section-title {
  color: #017439;
}

/* Buttons */
.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;
  text-align: center;
  box-sizing: border-box;
}

.page-jackpot-games__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-jackpot-games__btn-primary:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
  color: #ffffff;
}

.page-jackpot-games__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Yellow for secondary on dark background */
  border: 2px solid #FFFF00;
}

.page-jackpot-games__secondary-light {
  color: #017439;
  border: 2px solid #017439;
}

.page-jackpot-games__btn-secondary:hover {
  background-color: #FFFF00;
  color: #017439;
}

/* Features Grid */
.page-jackpot-games__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-jackpot-games__feature-card {
  background-color: #f5f5f5;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-jackpot-games__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-jackpot-games__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

.page-jackpot-games__feature-description {
  font-size: 1em;
  color: #555555;
}

/* Game Types Grid */
.page-jackpot-games__game-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-jackpot-games__game-type-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-jackpot-games__game-type-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-jackpot-games__game-type-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-jackpot-games__game-type-description {
  font-size: 1em;
  color: #e0e0e0;
}

/* How To Play Steps */
.page-jackpot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-jackpot-games__step-card {
  background-color: #f5f5f5;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-jackpot-games__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-jackpot-games__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439;
}

.page-jackpot-games__step-description {
  font-size: 1em;
  color: #555555;
}

.page-jackpot-games__step-description a {
  color: #C30808;
  text-decoration: underline;
}

.page-jackpot-games__step-description a:hover {
  color: #e02a2a;
}

.page-jackpot-games__strategy-tips {
  background-color: #e8f5e9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-jackpot-games__strategy-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 20px;
  text-align: center;
}

.page-jackpot-games__strategy-tips ul {
  list-style: disc;
  padding-left: 25px;
  color: #333333;
}

.page-jackpot-games__strategy-tips li {
  margin-bottom: 10px;
  color: #333333;
}

.page-jackpot-games__strategy-tips strong {
  color: #017439;
}

/* Promotions Section */
.page-jackpot-games__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-jackpot-games__promotion-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-jackpot-games__promotion-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-jackpot-games__promotion-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-jackpot-games__promotion-description {
  font-size: 1em;
  color: #e0e0e0;
}

.page-jackpot-games__cta-promotions {
  text-align: center;
}

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

.page-jackpot-games__safety-item {
  background-color: #f5f5f5;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-jackpot-games__safety-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

.page-jackpot-games__safety-description {
  font-size: 1em;
  color: #555555;
}

.page-jackpot-games__cta-safety {
  text-align: center;
}

/* FAQ Section */
.page-jackpot-games__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-jackpot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: #017439; /* Primary brand color for question header */
  transition: background-color 0.3s ease;
}

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

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

.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;
  color: #e0e0e0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-jackpot-games__faq-answer p {
  margin: 0;
  color: #e0e0e0;
}

/* Final CTA Section */
.page-jackpot-games__cta-final {
  text-align: center;
  padding: 80px 20px;
}

.page-jackpot-games__cta-final .page-jackpot-games__section-title {
  color: #FFFF00;
}

.page-jackpot-games__cta-final .page-jackpot-games__section-intro {
  color: #f0f0f0;
  margin-bottom: 50px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-jackpot-games__main-title {
    font-size: 2.8em;
  }
  .page-jackpot-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-jackpot-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-jackpot-games__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-jackpot-games__hero-buttons,
  .page-jackpot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 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__section {
    padding: 40px 0;
  }

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

  .page-jackpot-games__section-intro {
    font-size: 0.95em;
  }

  .page-jackpot-games__feature-grid,
  .page-jackpot-games__game-type-grid,
  .page-jackpot-games__steps-grid,
  .page-jackpot-games__promotion-grid,
  .page-jackpot-games__safety-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-jackpot-games__container {
    padding: 0 15px;
  }

  /* Image responsiveness */
  .page-jackpot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-jackpot-games__section,
  .page-jackpot-games__card,
  .page-jackpot-games__container,
  .page-jackpot-games__hero-image-wrapper,
  .page-jackpot-games__feature-card,
  .page-jackpot-games__game-type-card,
  .page-jackpot-games__step-card,
  .page-jackpot-games__promotion-card,
  .page-jackpot-games__safety-item,
  .page-jackpot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }

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

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

@media (max-width: 480px) {
  .page-jackpot-games__main-title {
    font-size: 1.8em;
  }
  .page-jackpot-games__section-title {
    font-size: 1.6em;
  }
}