/* style/jackpot-games.css */

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

.page-jackpot-games {
  background-color: var(--page-jackpot-games-background);
  color: var(--page-jackpot-games-text-main);
  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__section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--page-jackpot-games-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-jackpot-games__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--page-jackpot-games-text-main);
}

.page-jackpot-games__text-secondary {
  color: var(--page-jackpot-games-text-secondary);
}

.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-jackpot-games__btn-primary {
  background: var(--page-jackpot-games-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-jackpot-games__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-2px);
}

.page-jackpot-games__btn-small {
  padding: 8px 18px;
  font-size: 0.95rem;
  border-radius: 6px;
}

.page-jackpot-games__card {
  background-color: var(--page-jackpot-games-card-bg);
  border: 1px solid var(--page-jackpot-games-border);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: var(--page-jackpot-games-text-main);
}

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

.page-jackpot-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px;
}

.page-jackpot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-jackpot-games__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.page-jackpot-games__hero-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--page-jackpot-games-gold);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-jackpot-games__hero-description {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--page-jackpot-games-text-secondary);
  margin-bottom: 30px;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-jackpot-games__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Intro Section */
.page-jackpot-games__intro-section {
  padding: 80px 0;
  background-color: var(--page-jackpot-games-background);
  text-align: center;
}

/* Games Showcase Section */
.page-jackpot-games__games-showcase-section {
  padding: 80px 0;
  background-color: var(--page-jackpot-games-deep-green);
}

.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 {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

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

.page-jackpot-games__game-card-title {
  font-size: 1.5rem;
  color: var(--page-jackpot-games-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-jackpot-games__game-card-description {
  font-size: 1rem;
  color: var(--page-jackpot-games-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Why Choose vip52 Section */
.page-jackpot-games__why-choose-vip52-section {
  padding: 80px 0;
  background-color: var(--page-jackpot-games-deep-green);
  text-align: center;
  border-top: 1px solid var(--page-jackpot-games-divider);
}

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

.page-jackpot-games__feature-item {
  background-color: var(--page-jackpot-games-card-bg);
  border: 1px solid var(--page-jackpot-games-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-jackpot-games__feature-title {
  font-size: 1.6rem;
  color: var(--page-jackpot-games-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-jackpot-games__feature-description {
  font-size: 1rem;
  color: var(--page-jackpot-games-text-secondary);
}

/* How To Play Section */
.page-jackpot-games__how-to-play-section {
  padding: 80px 0;
  background-color: var(--page-jackpot-games-background);
  border-top: 1px solid var(--page-jackpot-games-divider);
}

.page-jackpot-games__how-to-play-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-jackpot-games__how-to-play-list li {
  background-color: var(--page-jackpot-games-card-bg);
  border: 1px solid var(--page-jackpot-games-border);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  position: relative;
  counter-increment: step-counter;
  padding-left: 70px; /* Space for step number */
}

.page-jackpot-games__how-to-play-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 25px;
  top: 25px;
  background: var(--page-jackpot-games-button-gradient);
  color: #ffffff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.page-jackpot-games__list-item-title {
  font-size: 1.4rem;
  color: var(--page-jackpot-games-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-jackpot-games__how-to-play-list p {
  color: var(--page-jackpot-games-text-secondary);
  font-size: 1rem;
}

.page-jackpot-games__how-to-play-list a {
  color: var(--page-jackpot-games-gold);
  text-decoration: underline;
}

.page-jackpot-games__how-to-play-list a:hover {
  color: var(--page-jackpot-games-glow);
}

/* Promotions Section */
.page-jackpot-games__promotions-section {
  padding: 80px 0;
  background-color: var(--page-jackpot-games-deep-green);
  border-top: 1px solid var(--page-jackpot-games-divider);
  text-align: center;
}

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

.page-jackpot-games__promo-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-jackpot-games__promo-card-title {
  font-size: 1.5rem;
  color: var(--page-jackpot-games-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-jackpot-games__promo-card-description {
  font-size: 1rem;
  color: var(--page-jackpot-games-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-jackpot-games__faq-section {
  padding: 80px 0;
  background-color: var(--page-jackpot-games-background);
  border-top: 1px solid var(--page-jackpot-games-divider);
}

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

.page-jackpot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--page-jackpot-games-border);
  background-color: var(--page-jackpot-games-card-bg);
}

.page-jackpot-games__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--page-jackpot-games-text-main);
  background-color: var(--page-jackpot-games-card-bg);
  transition: background-color 0.3s ease;
}

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

.page-jackpot-games__faq-item summary:hover {
  background-color: var(--page-jackpot-games-deep-green);
}

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

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

.page-jackpot-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--page-jackpot-games-text-secondary);
  line-height: 1.6;
}

.page-jackpot-games__faq-answer p {
  margin-top: 10px;
  color: var(--page-jackpot-games-text-secondary);
}

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

.page-jackpot-games__faq-answer a:hover {
  color: var(--page-jackpot-games-glow);
}

/* CTA Banner */
.page-jackpot-games__cta-banner {
  padding: 60px 0;
  background-color: var(--page-jackpot-games-deep-green);
  text-align: center;
  border-top: 1px solid var(--page-jackpot-games-divider);
}

.page-jackpot-games__cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--page-jackpot-games-gold);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-jackpot-games__cta-description {
  font-size: 1.2rem;
  color: var(--page-jackpot-games-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-jackpot-games__hero-section {
    padding: 40px 15px;
  }

  .page-jackpot-games__hero-title {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
  }

  .page-jackpot-games__hero-description {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
  }
}

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

  .page-jackpot-games__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

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

  .page-jackpot-games__hero-image-wrapper {
    margin-bottom: 30px;
  }

  .page-jackpot-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
  }

  .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__cta-buttons,
  .page-jackpot-games__button-group,
  .page-jackpot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-jackpot-games__intro-section,
  .page-jackpot-games__games-showcase-section,
  .page-jackpot-games__why-choose-vip52-section,
  .page-jackpot-games__how-to-play-section,
  .page-jackpot-games__promotions-section,
  .page-jackpot-games__faq-section,
  .page-jackpot-games__cta-banner {
    padding: 40px 0;
  }

  .page-jackpot-games__game-card-image,
  .page-jackpot-games__feature-icon,
  .page-jackpot-games__promo-card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-jackpot-games__how-to-play-list li {
    padding-left: 60px;
  }

  .page-jackpot-games__how-to-play-list li::before {
    left: 20px;
    top: 20px;
  }

  .page-jackpot-games__faq-item summary {
    font-size: 1.1rem;
    padding: 18px 20px;
  }

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

  .page-jackpot-games__cta-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .page-jackpot-games__cta-description {
    font-size: 1rem;
  }
  
  /* Ensure all image containers are responsive */
  .page-jackpot-games__hero-image-wrapper,
  .page-jackpot-games__game-card,
  .page-jackpot-games__feature-item,
  .page-jackpot-games__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-jackpot-games__hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

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

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

  .page-jackpot-games__game-card-title,
  .page-jackpot-games__feature-title,
  .page-jackpot-games__promo-card-title {
    font-size: 1.3rem;
  }

  .page-jackpot-games__faq-item summary {
    font-size: 1rem;
  }

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