/* style/jackpot-games.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark-bg: #FFFFFF;
  --text-color-light-bg: #333333;
  --background-dark: #0a0a0a; /* Body background */
  --background-light: #f8f8f8;
  --button-login-color: #EA7C07;
}

.page-jackpot-games {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark-bg); /* Default text color for the page, assuming dark body bg */
  background-color: var(--background-dark);
}

.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(2em, 4vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
  color: var(--primary-color);
}

.page-jackpot-games__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  color: var(--text-color-dark-bg);
}

.page-jackpot-games__section-text {
  font-size: 1em;
  line-height: 1.6;
  margin-top: 30px;
  text-align: justify;
  color: var(--text-color-dark-bg);
}

.page-jackpot-games__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

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

/* Buttons */
.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-jackpot-games__btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
}

/* Sections */
.page-jackpot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  min-height: 600px;
  overflow: hidden;
}

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

.page-jackpot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

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

.page-jackpot-games__hero-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-jackpot-games__hero-description {
  font-size: clamp(1.1em, 2vw, 1.4em);
  color: var(--secondary-color);
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-jackpot-games__about-section,
.page-jackpot-games__guide-section,
.page-jackpot-games__promotions-section,
.page-jackpot-games__faq-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-color-light-bg);
}

.page-jackpot-games__about-content p,
.page-jackpot-games__about-content .page-jackpot-games__link {
  color: var(--text-color-light-bg);
}

.page-jackpot-games__about-content .page-jackpot-games__link {
  color: var(--primary-color);
}

.page-jackpot-games__about-content {
  text-align: justify;
}

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

.page-jackpot-games__types-section,
.page-jackpot-games__features-section,
.page-jackpot-games__security-section,
.page-jackpot-games__cta-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-color-dark-bg);
}

.page-jackpot-games__types-section .page-jackpot-games__section-title,
.page-jackpot-games__features-section .page-jackpot-games__section-title,
.page-jackpot-games__security-section .page-jackpot-games__section-title,
.page-jackpot-games__cta-section .page-jackpot-games__section-title {
  color: var(--secondary-color);
}

.page-jackpot-games__types-section .page-jackpot-games__section-description,
.page-jackpot-games__features-section .page-jackpot-games__section-description,
.page-jackpot-games__security-section .page-jackpot-games__section-description,
.page-jackpot-games__cta-section .page-jackpot-games__section-description {
  color: var(--text-color-dark-bg);
}

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

.page-jackpot-games__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-color-dark-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-jackpot-games__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-jackpot-games__card-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-jackpot-games__step-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-color-light-bg);
  display: flex;
  flex-direction: column;
}

.page-jackpot-games__step-number {
  font-size: 2.5em;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-jackpot-games__step-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-color-light-bg);
}

.page-jackpot-games__step-description {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-jackpot-games__step-card .page-jackpot-games__link {
  color: var(--text-color-light-bg);
}

.page-jackpot-games__step-card .page-jackpot-games__link:hover {
  color: var(--primary-color);
}

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

.page-jackpot-games__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: var(--text-color-dark-bg);
}

.page-jackpot-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-jackpot-games__feature-description {
  font-size: 0.95em;
  line-height: 1.6;
}

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

.page-jackpot-games__promo-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-color-light-bg);
  display: flex;
  flex-direction: column;
}

.page-jackpot-games__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-jackpot-games__promo-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-color-light-bg);
}

.page-jackpot-games__promo-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-jackpot-games__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  color: var(--text-color-dark-bg);
}

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

.page-jackpot-games__security-text {
  font-size: 0.95em;
  line-height: 1.6;
}

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

.page-jackpot-games__faq-item {
  background-color: var(--secondary-color);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-color-light-bg);
}

.page-jackpot-games__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-color-light-bg);
}

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

.page-jackpot-games__faq-question {
  color: var(--text-color-light-bg);
}

.page-jackpot-games__faq-toggle {
  font-size: 1.5em;
  font-weight: 800;
  color: var(--primary-color);
}

.page-jackpot-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-color-light-bg);
}

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

.page-jackpot-games__faq-answer .page-jackpot-games__link {
  color: var(--primary-color);
}

.page-jackpot-games__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--primary-color);
}

.page-jackpot-games__cta-section .page-jackpot-games__section-title {
  color: var(--secondary-color);
}

.page-jackpot-games__cta-section .page-jackpot-games__section-description {
  color: var(--secondary-color);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-jackpot-games__hero-content {
    padding: 15px;
  }
  .page-jackpot-games__hero-title {
    font-size: clamp(2em, 4.5vw, 3.5em);
  }
  .page-jackpot-games__hero-description {
    font-size: clamp(1em, 1.8vw, 1.2em);
  }
  .page-jackpot-games__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-jackpot-games__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
    min-height: 450px;
  }
  .page-jackpot-games__hero-title {
    font-size: clamp(2em, 6vw, 2.8em);
  }
  .page-jackpot-games__hero-description {
    font-size: clamp(0.9em, 2.5vw, 1.1em);
  }
  .page-jackpot-games__hero-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__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__about-section,
  .page-jackpot-games__guide-section,
  .page-jackpot-games__promotions-section,
  .page-jackpot-games__features-section,
  .page-jackpot-games__security-section,
  .page-jackpot-games__faq-section,
  .page-jackpot-games__cta-section,
  .page-jackpot-games__types-section {
    padding: 50px 0;
  }

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

  .page-jackpot-games__section-title {
    font-size: clamp(1.5em, 5vw, 2.2em);
    margin-bottom: 20px;
  }

  .page-jackpot-games__section-description,
  .page-jackpot-games__section-text {
    font-size: 0.95em;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-jackpot-games__video-section {
    padding-top: 10px !important;
  }

  .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;
  }
  .page-jackpot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Color contrast specific styles */
.page-jackpot-games__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-color-dark-bg);
}

.page-jackpot-games__light-bg {
  background-color: var(--background-light);
  color: var(--text-color-light-bg);
}

.page-jackpot-games__card .page-jackpot-games__link {
  color: var(--primary-color);
}

.page-jackpot-games__card .page-jackpot-games__link:hover {
  text-decoration: underline;
}

/* Ensure text on light background is dark */
.page-jackpot-games__about-section p,
.page-jackpot-games__guide-section p,
.page-jackpot-games__promotions-section p,
.page-jackpot-games__faq-section p,
.page-jackpot-games__about-section .page-jackpot-games__section-description,
.page-jackpot-games__guide-section .page-jackpot-games__section-description,
.page-jackpot-games__promotions-section .page-jackpot-games__section-description {
  color: var(--text-color-light-bg);
}

.page-jackpot-games__promo-card .page-jackpot-games__link {
  color: var(--primary-color);
}

.page-jackpot-games__promo-card .page-jackpot-games__link:hover {
  text-decoration: underline;
}

.page-jackpot-games__security-section .page-jackpot-games__link {
  color: var(--primary-color);
}

.page-jackpot-games__security-section .page-jackpot-games__link:hover {
  text-decoration: underline;
}

.page-jackpot-games__cta-section .page-jackpot-games__link {
  color: var(--secondary-color);
}

.page-jackpot-games__cta-section .page-jackpot-games__link:hover {
  text-decoration: underline;
}

/* Fix for filter on images */
.page-jackpot-games__card-image, .page-jackpot-games__content-image, .page-jackpot-games__feature-icon, .page-jackpot-games__promo-image {
  filter: none; /* Ensure no filter changes original image color */
}

/* Ensure content images are at least 200px */
.page-jackpot-games__content-area img, .page-jackpot-games__card-image, .page-jackpot-games__feature-icon, .page-jackpot-games__promo-image {
  min-width: 200px;
  min-height: 200px;
}

/* CSS for FAQ toggle icon in details tag */
.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-jackpot-games__faq-item:not([open]) .page-jackpot-games__faq-toggle {
    content: '+'; /* Change to plus when closed */
}