/* style/jackpot-games.css */

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

.page-jackpot-games {
  background-color: var(--f79-background);
  color: var(--f79-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-jackpot-games__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--f79-gold-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-jackpot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body already handles header offset, small top padding for aesthetics */
  background: var(--f79-deep-green);
  overflow: hidden;
}

.page-jackpot-games__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  position: relative;
  z-index: 1;
}

.page-jackpot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-jackpot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin-top: -100px; /* Overlap slightly for visual flow */
  padding: 0 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text readability */
  padding-top: 20px;
  border-radius: 8px;
}

.page-jackpot-games__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--f79-gold-color);
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-jackpot-games__hero-description {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--f79-text-main);
  margin-bottom: 30px;
}

.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-jackpot-games__btn-primary {
  background: var(--f79-button-gradient);
  color: var(--f79-text-main);
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-jackpot-games__btn-secondary {
  background: var(--f79-card-bg);
  color: var(--f79-primary-color);
  border: 2px solid var(--f79-primary-color);
  margin-left: 15px;
}

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

.page-jackpot-games__intro-section p,
.page-jackpot-games__how-to-play-section p,
.page-jackpot-games__promotions-section p,
.page-jackpot-games__why-choose-section p,
.page-jackpot-games__faq-section p {
  color: var(--f79-text-secondary);
  margin-bottom: 20px;
  font-size: 16px;
  text-align: justify;
}

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

.page-jackpot-games__game-card,
.page-jackpot-games__promo-card {
  background-color: var(--f79-card-bg);
  border: 1px solid var(--f79-border-color);
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-jackpot-games__card-title {
  font-size: 22px;
  color: var(--f79-gold-color);
  margin: 0 15px 10px 15px;
  font-weight: bold;
}

.page-jackpot-games__card-text {
  font-size: 15px;
  color: var(--f79-text-secondary);
  margin: 0 15px 20px 15px;
  flex-grow: 1;
}

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

.page-jackpot-games__step-item {
  background-color: var(--f79-card-bg);
  border: 1px solid var(--f79-border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-jackpot-games__step-title {
  font-size: 20px;
  color: var(--f79-primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-jackpot-games__cta-block {
  display: flex;
  align-items: center;
  background-color: var(--f79-card-bg);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 60px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--f79-border-color);
}

.page-jackpot-games__cta-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-jackpot-games__cta-content {
  width: 50%;
  padding: 30px;
  text-align: left;
}

.page-jackpot-games__cta-title {
  font-size: 28px;
  color: var(--f79-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-jackpot-games__cta-text {
  font-size: 17px;
  color: var(--f79-text-secondary);
  margin-bottom: 25px;
}

.page-jackpot-games__promo-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 15px;
  color: var(--f79-text-secondary);
}

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

.page-jackpot-games__link:hover {
  text-decoration: underline;
  color: var(--f79-gold-color);
}

.page-jackpot-games__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-jackpot-games__feature-item {
  background-color: var(--f79-card-bg);
  border: 1px solid var(--f79-border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.page-jackpot-games__feature-item p {
  color: var(--f79-text-secondary);
  font-size: 15px;
  margin-bottom: 0;
}

.page-jackpot-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-jackpot-games__faq-item {
  background-color: var(--f79-card-bg);
  border: 1px solid var(--f79-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  color: var(--f79-text-main);
  cursor: pointer;
  background-color: var(--f79-deep-green);
  border-bottom: 1px solid var(--f79-divider-color);
}

.page-jackpot-games__faq-item[open] > .page-jackpot-games__faq-question {
  border-bottom: 1px solid var(--f79-divider-color);
}

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

.page-jackpot-games__faq-question::marker {
  display: none;
}

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

.page-jackpot-games__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--f79-gold-color);
  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: 15px 25px;
  font-size: 16px;
  color: var(--f79-text-secondary);
  background-color: var(--f79-card-bg);
}

.page-jackpot-games__final-cta-section {
  text-align: center;
  padding-bottom: 60px;
}

.page-jackpot-games__final-cta-text {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--f79-text-secondary);
}

.page-jackpot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-jackpot-games__hero-content {
    margin-top: -80px;
  }
}

@media (max-width: 768px) {
  .page-jackpot-games__content-area {
    padding: 20px 15px;
  }

  .page-jackpot-games__section-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

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

  .page-jackpot-games__hero-content {
    margin-top: -60px;
    padding: 15px;
  }

  .page-jackpot-games__main-title {
    font-size: 36px;
  }

  .page-jackpot-games__hero-description {
    font-size: 16px;
  }

  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 0 10px 0 !important; /* Stack buttons vertically */
  }

  .page-jackpot-games__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-jackpot-games__game-grid,
  .page-jackpot-games__promo-grid,
  .page-jackpot-games__steps-grid,
  .page-jackpot-games__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-jackpot-games__card-image {
    height: 180px;
  }

  .page-jackpot-games__cta-block {
    flex-direction: column;
  }

  .page-jackpot-games__cta-image {
    width: 100%;
    height: auto;
  }

  .page-jackpot-games__cta-content {
    width: 100%;
    padding: 20px;
    text-align: center;
  }

  .page-jackpot-games__cta-title {
    font-size: 24px;
  }

  .page-jackpot-games__cta-text {
    font-size: 15px;
  }

  .page-jackpot-games__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-jackpot-games__faq-answer {
    padding: 10px 20px;
    font-size: 15px;
  }

  .page-jackpot-games__final-cta-text {
    font-size: 16px;
  }

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

  /* Ensure all image containers are responsive */
  .page-jackpot-games__section,
  .page-jackpot-games__card,
  .page-jackpot-games__container,
  .page-jackpot-games__hero-section,
  .page-jackpot-games__hero-image-wrapper,
  .page-jackpot-games__cta-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

@media (max-width: 480px) {
  .page-jackpot-games__main-title {
    font-size: 28px;
  }
  .page-jackpot-games__section-title {
    font-size: 28px;
  }
  .page-jackpot-games__hero-content {
    margin-top: -40px;
  }
  .page-jackpot-games__cta-title {
    font-size: 20px;
  }
  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary {
    font-size: 15px;
    padding: 10px 15px;
  }
}

/* Color contrast safety classes */
.page-jackpot-games__dark-bg {
  background-color: var(--f79-background);
  color: var(--f79-text-main);
}

.page-jackpot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-jackpot-games__card {
  background-color: var(--f79-card-bg);
  color: var(--f79-text-main);
}

.page-jackpot-games p,
.page-jackpot-games li {
  color: var(--f79-text-secondary);
}

.page-jackpot-games__btn-primary {
  color: var(--f79-text-main);
}

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