/* style/jackpot-games.css */
:root {
  --page-jackpot-games-bg-color: #08160F;
  --page-jackpot-games-card-bg: #11271B;
  --page-jackpot-games-text-main: #F2FFF6;
  --page-jackpot-games-text-secondary: #A7D9B8;
  --page-jackpot-games-border-color: #2E7A4E;
  --page-jackpot-games-glow-color: #57E38D;
  --page-jackpot-games-gold-color: #F2C14E;
  --page-jackpot-games-divider-color: #1E3A2A;
  --page-jackpot-games-deep-green: #0A4B2C;
  --page-jackpot-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-jackpot-games {
  background-color: var(--page-jackpot-games-bg-color);
  color: var(--page-jackpot-games-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-jackpot-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Rely on body padding-top from shared.css */
  padding-bottom: 60px;
}

.page-jackpot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

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

.page-jackpot-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay for text readability */
  border-radius: 10px;
  margin-top: 100px; /* Push content down to be below the image in normal flow */
}

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

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

.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 {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
}

.page-jackpot-games__btn-primary {
  background: var(--page-jackpot-games-button-gradient);
  color: var(--page-jackpot-games-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-jackpot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-jackpot-games__btn-secondary:hover {
  background: var(--page-jackpot-games-glow-color);
  color: var(--page-jackpot-games-bg-color);
  transform: translateY(-3px);
}

.page-jackpot-games__btn-small {
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-jackpot-games__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--page-jackpot-games-divider-color);
}

.page-jackpot-games__section:last-of-type {
  border-bottom: none;
}

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

.page-jackpot-games__heading {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--page-jackpot-games-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-jackpot-games__text-block {
  font-size: 1.05em;
  color: var(--page-jackpot-games-text-secondary);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.7;
}

.page-jackpot-games__list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px auto;
  max-width: 800px;
}

.page-jackpot-games__list-item {
  background: var(--page-jackpot-games-card-bg);
  border: 1px solid var(--page-jackpot-games-border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  color: var(--page-jackpot-games-text-main);
  font-size: 1.05em;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-jackpot-games__list-item::before {
  content: '✓';
  color: var(--page-jackpot-games-glow-color);
  font-weight: bold;
  font-size: 1.2em;
  flex-shrink: 0;
}

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

.page-jackpot-games__game-card,
.page-jackpot-games__promotion-card {
  background: var(--page-jackpot-games-card-bg);
  border: 1px solid var(--page-jackpot-games-border-color);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-jackpot-games__game-image,
.page-jackpot-games__promotion-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-jackpot-games__game-title,
.page-jackpot-games__promotion-title {
  font-size: 1.5em;
  color: var(--page-jackpot-games-gold-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-jackpot-games__game-desc,
.page-jackpot-games__promotion-desc {
  font-size: 1em;
  color: var(--page-jackpot-games-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-jackpot-games__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-jackpot-games__step-item {
  background: var(--page-jackpot-games-card-bg);
  border: 1px solid var(--page-jackpot-games-border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.3);
}

.page-jackpot-games__step-title {
  font-size: 1.4em;
  color: var(--page-jackpot-games-glow-color);
  margin-bottom: 15px;
  position: relative;
  padding-left: 40px;
}

.page-jackpot-games__step-title::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background: var(--page-jackpot-games-deep-green);
  color: var(--page-jackpot-games-text-main);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  font-weight: bold;
  border: 2px solid var(--page-jackpot-games-glow-color);
}

.page-jackpot-games__step-item:first-of-type {
  counter-reset: step-counter;
}

.page-jackpot-games__step-desc {
  font-size: 1em;
  color: var(--page-jackpot-games-text-secondary);
  line-height: 1.7;
}

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

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

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--page-jackpot-games-text-main);
  cursor: pointer;
  background: var(--page-jackpot-games-deep-green);
  border-bottom: 1px solid var(--page-jackpot-games-border-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> tag */
}

.page-jackpot-games__faq-question::-webkit-details-marker {
  display: none; /* For <summary> tag */
}

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

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

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

.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-toggle {
  content: '−';
}

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

.page-jackpot-games__call-to-action {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

@media (max-width: 768px) {
  .page-jackpot-games__hero-section {
    padding-bottom: 40px;
  }

  .page-jackpot-games__hero-content {
    padding: 30px 15px;
    margin-top: 80px; /* Adjust for smaller screens */
  }

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

  .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 {
    width: 100% !important;
    max-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__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-jackpot-games__heading {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-jackpot-games__text-block {
    font-size: 0.95em;
  }

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

  .page-jackpot-games__list-item::before {
    font-size: 1.1em;
  }

  .page-jackpot-games__game-grid,
  .page-jackpot-games__promotion-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-jackpot-games__game-image,
  .page-jackpot-games__promotion-image {
    height: 180px;
  }

  .page-jackpot-games__game-title,
  .page-jackpot-games__promotion-title {
    font-size: 1.3em;
  }

  .page-jackpot-games__step-item {
    padding: 20px;
  }

  .page-jackpot-games__step-title {
    font-size: 1.2em;
    padding-left: 35px;
  }

  .page-jackpot-games__step-title::before {
    width: 28px;
    height: 28px;
    font-size: 0.9em;
  }

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

  .page-jackpot-games__faq-toggle {
    font-size: 1.3em;
  }

  .page-jackpot-games__faq-answer {
    padding: 15px;
    font-size: 0.95em;
  }

  /* Ensure all images are responsive */
  .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__game-card,
  .page-jackpot-games__promotion-card,
  .page-jackpot-games__step-item,
  .page-jackpot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-jackpot-games__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

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

  .page-jackpot-games__heading {
    font-size: 1.6em;
  }

  .page-jackpot-games__hero-content {
    margin-top: 60px;
  }

  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }

  .page-jackpot-games__game-title,
  .page-jackpot-games__promotion-title {
    font-size: 1.2em;
  }
}