.page-jackpot-games {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F3F8FF); /* Default light text for dark body background */
  background-color: var(--deep-navy, #08162B);
}

.page-jackpot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 40px;
  overflow: hidden;
  color: var(--text-main, #F3F8FF);
}

.page-jackpot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

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

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

.page-jackpot-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--text-main, #F3F8FF);
}

.page-jackpot-games__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-secondary, #AFC4E8);
}

.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,
.page-jackpot-games__btn-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-jackpot-games__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-jackpot-games__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__btn-secondary {
  background-color: transparent;
  color: var(--text-main, #F3F8FF);
  border: 2px solid var(--border-color, #244D84);
}

.page-jackpot-games__btn-secondary:hover {
  background-color: var(--border-color, #244D84);
  color: #ffffff;
}

.page-jackpot-games__btn-link {
  background-color: transparent;
  color: var(--glow, #4FA8FF);
  border: none;
  padding: 8px 0;
  font-size: 0.95rem;
  text-align: center;
}

.page-jackpot-games__btn-link:hover {
  text-decoration: underline;
}

.page-jackpot-games__section {
  padding: 60px 0;
  background-color: var(--deep-navy, #08162B);
}

.page-jackpot-games__introduction-section,
.page-jackpot-games__benefits-section,
.page-jackpot-games__strategy-section,
.page-jackpot-games__conclusion-section {
  background-color: var(--deep-navy, #08162B);
  color: var(--text-main, #F3F8FF);
}

.page-jackpot-games__game-types-section,
.page-jackpot-games__how-to-play-section,
.page-jackpot-games__faq-section {
  background-color: var(--card-bg, #10233F);
  color: var(--text-main, #F3F8FF);
}

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

.page-jackpot-games__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main, #F3F8FF);
}

.page-jackpot-games__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-secondary, #AFC4E8);
}

.page-jackpot-games__highlight {
  color: var(--text-main, #F3F8FF);
  font-weight: 600;
}

.page-jackpot-games__text-secondary {
  color: var(--text-secondary, #AFC4E8);
}

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

.page-jackpot-games__card {
  background-color: var(--deep-navy, #08162B);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color, #244D84);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main, #F3F8FF);
}

.page-jackpot-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-jackpot-games__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main, #F3F8FF);
}

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

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

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

.page-jackpot-games__feature-item {
  background-color: var(--card-bg, #10233F);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-color, #244D84);
  color: var(--text-main, #F3F8FF);
}

.page-jackpot-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-jackpot-games__feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main, #F3F8FF);
}

.page-jackpot-games__feature-description {
  font-size: 0.95rem;
  color: var(--text-secondary, #AFC4E8);
}

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

.page-jackpot-games__step-card {
  background-color: var(--deep-navy, #08162B);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-color, #244D84);
  color: var(--text-main, #F3F8FF);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-jackpot-games__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
  line-height: 1;
}

.page-jackpot-games__step-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main, #F3F8FF);
}

.page-jackpot-games__step-description {
  font-size: 0.95rem;
  color: var(--text-secondary, #AFC4E8);
  flex-grow: 1;
}

.page-jackpot-games__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 12px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-jackpot-games__image-center {
  display: block;
  margin: 40px auto 0;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-jackpot-games__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-jackpot-games__list-item {
  background-color: var(--card-bg, #10233F);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: var(--text-secondary, #AFC4E8);
  border-left: 5px solid var(--glow, #4FA8FF);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-jackpot-games__list-item strong {
  color: var(--text-main, #F3F8FF);
}

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

.page-jackpot-games__faq-item {
  background-color: var(--deep-navy, #08162B);
  border: 1px solid var(--border-color, #244D84);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F3F8FF);
}

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--card-bg, #10233F);
  color: var(--text-main, #F3F8FF);
  list-style: none;
}

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

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

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

.page-jackpot-games__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary, #AFC4E8);
  border-top: 1px solid var(--divider, #1B3357);
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-jackpot-games__hero-section {
    padding-top: 10px !important; /* body already handled --header-offset */
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-jackpot-games__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .page-jackpot-games__hero-description {
    font-size: 1rem;
  }

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

  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary,
  .page-jackpot-games__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-jackpot-games__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }

  .page-jackpot-games__text-block,
  .page-jackpot-games__card-description,
  .page-jackpot-games__feature-description,
  .page-jackpot-games__step-description,
  .page-jackpot-games__list-item,
  .page-jackpot-games__faq-answer {
    font-size: 0.9rem;
  }

  .page-jackpot-games__grid,
  .page-jackpot-games__features-grid,
  .page-jackpot-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-jackpot-games__card,
  .page-jackpot-games__feature-item,
  .page-jackpot-games__step-card {
    padding: 20px;
  }

  .page-jackpot-games__card-image,
  .page-jackpot-games__feature-icon,
  .page-jackpot-games__image-full-width,
  .page-jackpot-games__image-center {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

  .page-jackpot-games__faq-toggle {
    font-size: 1.2rem;
  }

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

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

  .page-jackpot-games__list-item {
    padding: 15px;
    font-size: 0.95rem;
  }
}