/* style/jackpot-games.css */

/* Base Styles for the Jackpot Games Page */
.page-jackpot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* body background is #0a0a0a from shared.css */
}

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

.page-jackpot-games__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-jackpot-games__section-subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
}

/* Hero Section */
.page-jackpot-games__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-jackpot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-jackpot-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: -1;
}

.page-jackpot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.page-jackpot-games__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-jackpot-games__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

/* 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;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.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: #a30606;
  border-color: #a30606;
}

.page-jackpot-games__btn-secondary {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-jackpot-games__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-jackpot-games__btn-large {
  font-size: 1.2em;
  padding: 18px 35px;
}

/* Dark Background Section (for contrast with body background) */
.page-jackpot-games__dark-bg {
  background-color: #017439; /* Primary brand color as background */
  padding: 60px 0;
  color: #ffffff;
}

.page-jackpot-games__dark-bg .page-jackpot-games__section-title,
.page-jackpot-games__dark-bg .page-jackpot-games__section-subtitle {
  color: #ffffff;
}

/* Intro Section */
.page-jackpot-games__intro-section {
  padding: 60px 0;
}

.page-jackpot-games__intro-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-jackpot-games__intro-text {
  flex: 1;
}

.page-jackpot-games__intro-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-jackpot-games__intro-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-jackpot-games__intro-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* How-to-Play Section */
.page-jackpot-games__how-to-play-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

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

.page-jackpot-games__step-card {
  background-color: rgba(255, 255, 255, 0.08); /* Light transparent background for cards */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 350px; /* Ensure cards have some height */
}

.page-jackpot-games__step-title {
  font-size: 1.5em;
  color: #FFFF00; /* Yellow for titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-jackpot-games__step-card p {
  font-size: 1.05em;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-jackpot-games__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

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

/* Game Types Section */
.page-jackpot-games__game-types-section {
  padding: 80px 0;
}

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

.page-jackpot-games__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 380px; /* Ensure cards have some height */
}

.page-jackpot-games__game-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-jackpot-games__game-card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-jackpot-games__game-card-title a {
  color: #FFFF00; /* Yellow for linked titles */
  text-decoration: none;
}

.page-jackpot-games__game-card-title a:hover {
  text-decoration: underline;
}

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

/* Advantages Section */
.page-jackpot-games__advantages-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-jackpot-games__advantage-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-jackpot-games__advantage-icon {
  width: 200px; /* Enforce minimum display size based on requirements */
  height: 200px; /* Enforce minimum display size based on requirements */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-jackpot-games__advantage-title {
  font-size: 1.4em;
  color: #FFFF00;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-jackpot-games__advantage-item p {
  font-size: 1em;
  color: #e0e0e0;
}

/* Tips Section */
.page-jackpot-games__tips-section {
  padding: 80px 0;
}

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

.page-jackpot-games__tip-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__tip-title {
  font-size: 1.5em;
  color: #FFFF00;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-jackpot-games__tip-card p {
  font-size: 1.05em;
  color: #e0e0e0;
}

/* CTA Section */
.page-jackpot-games__cta-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.page-jackpot-games__cta-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-jackpot-games__cta-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-jackpot-games__cta-image {
  max-width: 70%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-top: 30px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* FAQ Section */
.page-jackpot-games__faq-section {
  padding: 80px 0;
}

.page-jackpot-games__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

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

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

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

.page-jackpot-games__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em; /* Adjust to fit parent font size */
}

.page-jackpot-games__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #FFFF00; /* Yellow for toggle icon */
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-jackpot-games__hero-title {
    font-size: 3em;
  }
  .page-jackpot-games__hero-description {
    font-size: 1.1em;
  }
  .page-jackpot-games__section-title {
    font-size: 2em;
  }
  .page-jackpot-games__intro-grid {
    flex-direction: column;
  }
  .page-jackpot-games__game-cards-grid,
  .page-jackpot-games__advantages-grid,
  .page-jackpot-games__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

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

  .page-jackpot-games__hero-title {
    font-size: 2.2em;
  }
  .page-jackpot-games__hero-description {
    font-size: 1em;
  }
  .page-jackpot-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-jackpot-games__intro-grid {
    gap: 30px;
  }

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

  /* Videos responsive (if any) */
  .page-jackpot-games video,
  .page-jackpot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-jackpot-games__video-section,
  .page-jackpot-games__video-container,
  .page-jackpot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .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__cta-buttons {
    flex-direction: column;
  }

  /* Container padding for mobile */
  .page-jackpot-games__container {
    padding: 0 15px;
  }

  .page-jackpot-games__intro-text p,
  .page-jackpot-games__step-card p,
  .page-jackpot-games__game-card-description,
  .page-jackpot-games__advantage-item p,
  .page-jackpot-games__tip-card p,
  .page-jackpot-games__cta-description,
  .page-jackpot-games__faq-answer p {
    font-size: 0.95em;
  }

  /* Ensure content images are >= 200px if possible, but scale down if needed */
  .page-jackpot-games__step-image,
  .page-jackpot-games__game-card-image,
  .page-jackpot-games__advantage-icon,
  .page-jackpot-games__cta-image,
  .page-jackpot-games__intro-image {
    min-width: unset !important; /* Allow smaller than 200px on mobile if max-width: 100% makes it smaller */
    min-height: unset !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* FAQ specific mobile adjustments */
  .page-jackpot-games__faq-question,
  .page-jackpot-games__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}