/* style/jackpot-games.css */

/* Variables */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-button-color: #EA7C07;
  --background-color-dark: #1a1a2e; /* From body background */
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
}

/* Base styles for the page content, ensuring contrast with dark body background */
.page-jackpot-games {
  color: var(--text-color-light); /* Light text on dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body handles the main background */
}

.page-jackpot-games__section {
  padding: 60px 20px;
  text-align: center;
}

.page-jackpot-games__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1, other titles use relative sizing */
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

.page-jackpot-games__text-block {
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  color: var(--text-color-light);
}

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

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

.page-jackpot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

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

.page-jackpot-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Use clamp for H1 */
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-jackpot-games__intro-text {
  font-size: 1.2em;
  color: var(--secondary-color);
  margin-bottom: 40px;
}

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

.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

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

.page-jackpot-games__btn-primary:hover {
  background: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

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

.page-jackpot-games__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Overview and general sections */
.page-jackpot-games__overview, .page-jackpot-games__how-to-play, .page-jackpot-games__tips, .page-jackpot-games__conclusion {
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
}

.page-jackpot-games__overview .page-jackpot-games__section-title,
.page-jackpot-games__how-to-play .page-jackpot-games__section-title,
.page-jackpot-games__tips .page-jackpot-games__section-title,
.page-jackpot-games__conclusion .page-jackpot-games__section-title {
  color: var(--text-color-dark);
}

.page-jackpot-games__overview .page-jackpot-games__text-block,
.page-jackpot-games__how-to-play .page-jackpot-games__text-block,
.page-jackpot-games__tips .page-jackpot-games__text-block,
.page-jackpot-games__conclusion .page-jackpot-games__text-block {
  color: var(--text-color-dark);
}

.page-jackpot-games__overview a,
.page-jackpot-games__how-to-play a,
.page-jackpot-games__tips a,
.page-jackpot-games__conclusion a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-jackpot-games__overview a:hover,
.page-jackpot-games__how-to-play a:hover,
.page-jackpot-games__tips a:hover,
.page-jackpot-games__conclusion a:hover {
  color: darken(var(--primary-color), 10%);
}

/* Game Types Grid */
.page-jackpot-games__game-types {
  background-color: var(--background-color-dark);
}

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

.page-jackpot-games__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  color: var(--text-color-light);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-jackpot-games__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-jackpot-games__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-jackpot-games__card-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* How-to-Play Steps */
.page-jackpot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-jackpot-games__step-item {
  background: var(--secondary-color);
  color: var(--text-color-dark);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-jackpot-games__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-jackpot-games__step-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-jackpot-games__step-text {
  font-size: 1em;
  color: var(--text-color-dark);
}

.page-jackpot-games__step-text a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-jackpot-games__step-text a:hover {
  color: darken(var(--primary-color), 10%);
}

/* Benefits Section */
.page-jackpot-games__benefits {
  background-color: var(--background-color-dark);
}

.page-jackpot-games__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-jackpot-games__benefit-card {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color-light);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-jackpot-games__benefit-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-jackpot-games__benefit-text {
  font-size: 1em;
  color: #e0e0e0;
}

.page-jackpot-games__benefit-text a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-jackpot-games__benefit-text a:hover {
  color: lighten(var(--primary-color), 10%);
}

/* Tips Section */
.page-jackpot-games__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-jackpot-games__tip-item {
  background: var(--secondary-color);
  color: var(--text-color-dark);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-jackpot-games__tip-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-jackpot-games__tip-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-jackpot-games__tip-text {
  font-size: 1em;
  color: var(--text-color-dark);
}

.page-jackpot-games__tip-text a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-jackpot-games__tip-text a:hover {
  color: darken(var(--primary-color), 10%);
}

/* FAQ Section */
.page-jackpot-games__faq-section {
  background-color: var(--background-color-dark);
}

.page-jackpot-games__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-jackpot-games__faq-item {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color-light);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-jackpot-games__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.05);
}

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

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-jackpot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-jackpot-games__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.8;
}

/* Conclusion Section */
.page-jackpot-games__conclusion .page-jackpot-games__cta-center {
  margin-top: 30px;
}

.page-jackpot-games__cta-center .page-jackpot-games__btn-primary {
  background: var(--login-button-color); /* Using specific login color */
  border-color: var(--login-button-color);
}

.page-jackpot-games__cta-center .page-jackpot-games__btn-primary:hover {
  background: darken(var(--login-button-color), 10%);
  border-color: darken(var(--login-button-color), 10%);
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-jackpot-games__section {
    padding: 40px 15px;
  }

  .page-jackpot-games__hero-section {
    padding: 10px 15px 40px;
  }

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

  .page-jackpot-games__intro-text {
    font-size: 1.1em;
  }
}

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

  .page-jackpot-games__hero-section {
    padding: 10px 15px 30px;
  }

  .page-jackpot-games__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

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

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

  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary {
    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__card,
  .page-jackpot-games__step-item,
  .page-jackpot-games__benefit-card,
  .page-jackpot-games__tip-item {
    padding: 20px;
  }

  .page-jackpot-games__section,
  .page-jackpot-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-jackpot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

@media (max-width: 480px) {
  .page-jackpot-games__section-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }

  .page-jackpot-games__card-title,
  .page-jackpot-games__step-title,
  .page-jackpot-games__benefit-title,
  .page-jackpot-games__tip-title {
    font-size: 1.2em;
  }
}