/* style/jackpot-games.css */

:root {
  --page-jackpot-games-primary-color: #26A9E0;
  --page-jackpot-games-secondary-color: #FFFFFF;
  --page-jackpot-games-dark-text: #333333;
  --page-jackpot-games-light-text: #FFFFFF;
  --page-jackpot-games-accent-color: #EA7C07; /* For login/promotional elements */
  --page-jackpot-games-border-color: #e0e0e0;
}

.page-jackpot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-jackpot-games-dark-text); /* Default text color for light backgrounds */
  background-color: var(--page-jackpot-games-secondary-color); /* Matches body background if light */
}

/* Ensure proper spacing from fixed header if body padding is not set by shared.css */
/* If shared.css already sets body padding-top, this should be 0 or a smaller value for design */
.page-jackpot-games__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* General Section Styling */
.page-jackpot-games__section-title {
  font-size: 2.8em;
  color: var(--page-jackpot-games-dark-text);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-jackpot-games__section-description {
  font-size: 1.1em;
  color: var(--page-jackpot-games-dark-text);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

/* Color Contrast Handling */
.page-jackpot-games__dark-bg {
  background-color: var(--page-jackpot-games-primary-color);
  color: var(--page-jackpot-games-light-text);
}

.page-jackpot-games__dark-bg .page-jackpot-games__section-title,
.page-jackpot-games__dark-bg .page-jackpot-games__section-description,
.page-jackpot-games__dark-bg h2, .page-jackpot-games__dark-bg h3,
.page-jackpot-games__dark-bg p, .page-jackpot-games__dark-bg li {
  color: var(--page-jackpot-games-light-text);
}

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

.page-jackpot-games__light-bg .page-jackpot-games__section-title,
.page-jackpot-games__light-bg .page-jackpot-games__section-description,
.page-jackpot-games__light-bg h2, .page-jackpot-games__light-bg h3,
.page-jackpot-games__light-bg p, .page-jackpot-games__light-bg li {
  color: var(--page-jackpot-games-dark-text);
}

/* Hero Section */
.page-jackpot-games__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20px;
  min-height: 600px;
  gap: 40px;
}

.page-jackpot-games__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.page-jackpot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-jackpot-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

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

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

.page-jackpot-games__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 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;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-jackpot-games__btn-primary {
  background-color: var(--page-jackpot-games-accent-color); /* Login color */
  color: var(--page-jackpot-games-light-text);
  border: 2px solid var(--page-jackpot-games-accent-color);
}

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

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

.page-jackpot-games__dark-bg .page-jackpot-games__btn-secondary {
  border-color: var(--page-jackpot-games-light-text);
  color: var(--page-jackpot-games-light-text);
}

.page-jackpot-games__light-bg .page-jackpot-games__btn-secondary {
  border-color: var(--page-jackpot-games-primary-color);
  color: var(--page-jackpot-games-primary-color);
}

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

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

/* Introduction Section */
.page-jackpot-games__introduction-section .page-jackpot-games__section-title {
  color: var(--page-jackpot-games-primary-color);
}

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

.page-jackpot-games__text-block {
  flex: 1;
}

.page-jackpot-games__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-jackpot-games__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.page-jackpot-games__read-more-link {
  color: var(--page-jackpot-games-primary-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  display: inline-block;
}

.page-jackpot-games__read-more-link:hover {
  text-decoration: underline;
}

/* Game Types Section */
.page-jackpot-games__game-types-section .page-jackpot-games__section-title {
  color: var(--page-jackpot-games-light-text);
}

.page-jackpot-games__game-types-section .page-jackpot-games__section-description {
  color: var(--page-jackpot-games-light-text);
}

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

.page-jackpot-games__card {
  background-color: var(--page-jackpot-games-secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--page-jackpot-games-dark-text);
}

.page-jackpot-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-jackpot-games__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-jackpot-games__card-title {
  font-size: 1.5em;
  padding: 15px 20px 5px;
}

.page-jackpot-games__card-title a {
  color: var(--page-jackpot-games-primary-color);
  text-decoration: none;
}

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

.page-jackpot-games__card-text {
  padding: 0 20px 20px;
  font-size: 0.95em;
  flex-grow: 1;
}

/* How-To-Play Section */
.page-jackpot-games__how-to-play-section .page-jackpot-games__section-title {
  color: var(--page-jackpot-games-primary-color);
}

.page-jackpot-games__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-jackpot-games__steps-list li {
  counter-increment: step-counter;
  background-color: var(--page-jackpot-games-secondary-color);
  margin-bottom: 20px;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-left: 80px;
}

.page-jackpot-games__steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--page-jackpot-games-primary-color);
  color: var(--page-jackpot-games-light-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

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

.page-jackpot-games__steps-list li p {
  margin-bottom: 0;
}

.page-jackpot-games__steps-list li a {
  color: var(--page-jackpot-games-accent-color);
  text-decoration: none;
  font-weight: bold;
}

.page-jackpot-games__steps-list li a:hover {
  text-decoration: underline;
}

/* Strategies Section */
.page-jackpot-games__strategies-section .page-jackpot-games__section-title,
.page-jackpot-games__strategies-section .page-jackpot-games__section-description {
  color: var(--page-jackpot-games-light-text);
}

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

.page-jackpot-games__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-jackpot-games__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  /* Ensure image colors are not altered by CSS filters */
  filter: none;
}

.page-jackpot-games__feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--page-jackpot-games-light-text);
}

.page-jackpot-games__feature-item p {
  color: var(--page-jackpot-games-light-text);
  font-size: 0.95em;
}

/* Promotions Section */
.page-jackpot-games__promotions-section .page-jackpot-games__section-title {
  color: var(--page-jackpot-games-primary-color);
}

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

.page-jackpot-games__promo-card {
  background-color: var(--page-jackpot-games-secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-jackpot-games__promo-image {
  width: 100%;
  height: 220px; /* Consistent height for promo images */
  object-fit: cover;
  filter: none;
}

.page-jackpot-games__promo-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-jackpot-games__promo-title {
  font-size: 1.6em;
  margin-bottom: 10px;
}

.page-jackpot-games__promo-title a {
  color: var(--page-jackpot-games-primary-color);
  text-decoration: none;
}

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

.page-jackpot-games__promo-text {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Features Section (Why Choose Us) */
.page-jackpot-games__features-section .page-jackpot-games__section-title,
.page-jackpot-games__features-section .page-jackpot-games__section-description {
  color: var(--page-jackpot-games-light-text);
}

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

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

.page-jackpot-games__feature-item-large .page-jackpot-games__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 25px;
}

.page-jackpot-games__feature-item-large .page-jackpot-games__feature-title {
  font-size: 1.6em;
  color: var(--page-jackpot-games-light-text);
  margin-bottom: 15px;
}

.page-jackpot-games__feature-item-large p {
  color: var(--page-jackpot-games-light-text);
  font-size: 1em;
}

/* FAQ Section */
.page-jackpot-games__faq-section .page-jackpot-games__section-title {
  color: var(--page-jackpot-games-primary-color);
}

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

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

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--page-jackpot-games-dark-text);
  transition: background-color 0.3s ease;
}

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

.page-jackpot-games__faq-question h3 {
  margin: 0;
  flex-grow: 1;
}

.page-jackpot-games__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--page-jackpot-games-primary-color);
}

.page-jackpot-games__faq-item.active .page-jackpot-games__faq-toggle {
  transform: rotate(45deg); /* Or change content to '−' */
}

.page-jackpot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--page-jackpot-games-dark-text);
  font-size: 1em;
}

.page-jackpot-games__faq-item.active .page-jackpot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px 25px;
}

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

/* CTA Section */
.page-jackpot-games__cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-jackpot-games__cta-content {
  max-width: 900px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-jackpot-games__hero-title {
    font-size: 3em;
  }
  .page-jackpot-games__section-title {
    font-size: 2.2em;
  }
  .page-jackpot-games__hero-section {
    flex-direction: column-reverse;
    text-align: center;
  }
  .page-jackpot-games__hero-content {
    max-width: 100%;
    text-align: center;
  }
  .page-jackpot-games__hero-cta-buttons {
    justify-content: center;
  }
  .page-jackpot-games__content-grid {
    flex-direction: column;
  }
  .page-jackpot-games__card-image {
    height: 200px;
  }
  .page-jackpot-games__promo-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-jackpot-games__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header spacing */
  }
  .page-jackpot-games__hero-title {
    font-size: 2.5em;
  }
  .page-jackpot-games__hero-description {
    font-size: 1em;
  }
  .page-jackpot-games__section-title {
    font-size: 1.8em;
  }
  .page-jackpot-games__section-description {
    font-size: 0.95em;
  }
  .page-jackpot-games__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-jackpot-games__hero-cta-buttons,
  .page-jackpot-games__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-jackpot-games__content-image,
  .page-jackpot-games__card-image,
  .page-jackpot-games__promo-image,
  .page-jackpot-games__feature-icon,
  .page-jackpot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: none !important; /* Ensure no filters */
  }
  .page-jackpot-games__steps-list li {
    padding: 15px 15px 15px 65px;
  }
  .page-jackpot-games__steps-list li::before {
    left: 15px;
    width: 35px;
    height: 35px;
    font-size: 1.2em;
  }
  .page-jackpot-games__step-title {
    font-size: 1.2em;
  }
  .page-jackpot-games__feature-grid,
  .page-jackpot-games__promo-grid,
  .page-jackpot-games__feature-list {
    grid-template-columns: 1fr;
  }
  .page-jackpot-games__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-jackpot-games__faq-answer {
    padding: 0 20px;
  }
  .page-jackpot-games__faq-item.active .page-jackpot-games__faq-answer {
    padding: 10px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-jackpot-games__hero-title {
    font-size: 2em;
  }
  .page-jackpot-games__section-title {
    font-size: 1.6em;
  }
  .page-jackpot-games__card-title {
    font-size: 1.3em;
  }
  .page-jackpot-games__promo-title {
    font-size: 1.4em;
  }
}