/* style/jackpot-games.css */

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

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

.page-jackpot-games__dark-section {
  background-color: var(--background-color-page);
  color: var(--text-main-color);
}

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

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

.page-jackpot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body handles header offset, small top padding for aesthetic */
  overflow: hidden;
}

.page-jackpot-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

.page-jackpot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-jackpot-games__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 15px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up slightly over the image */
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text block */
  border-radius: 10px;
}

.page-jackpot-games__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-jackpot-games__hero-description {
  font-size: 1.15rem;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-jackpot-games__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.page-jackpot-games__intro-section {
  background-color: var(--background-color-page);
}

.page-jackpot-games__why-choose-section {
  background-color: var(--deep-green-color);
}

.page-jackpot-games__game-types-section {
  background-color: var(--background-color-page);
}

.page-jackpot-games__guide-section {
  background-color: var(--deep-green-color);
}

.page-jackpot-games__promotions-section {
  background-color: var(--background-color-page);
}

.page-jackpot-games__faq-section {
  background-color: var(--deep-green-color);
}

.page-jackpot-games__cta-final {
  background-color: var(--deep-green-color);
  padding-bottom: 80px;
}

.page-jackpot-games__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__paragraph {
  font-size: 1.05rem;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-jackpot-games__highlight {
  color: var(--gold-color);
  font-weight: 700;
}

.page-jackpot-games__text-link {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: 600;
}

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

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

.page-jackpot-games__card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.page-jackpot-games__card:hover {
  transform: translateY(-5px);
}

.page-jackpot-games__card-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-jackpot-games__card-text {
  font-size: 1rem;
  color: var(--text-secondary-color);
}

.page-jackpot-games__game-card {
  text-align: center;
  overflow: hidden;
}

.page-jackpot-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.page-jackpot-games__game-card:hover .page-jackpot-games__game-image {
  transform: scale(1.05);
}

.page-jackpot-games__game-title {
  font-size: 1.4rem;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-jackpot-games__game-description {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
}

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

.page-jackpot-games__step-item {
  text-align: left;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-jackpot-games__step-title {
  font-size: 1.6rem;
  color: var(--gold-color);
  margin-bottom: 15px;
}

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

.page-jackpot-games__tip-card {
  text-align: center;
  overflow: hidden;
}

.page-jackpot-games__tip-image {
  width: 100%;
  height: 250px; /* Fixed height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-jackpot-games__tip-title {
  font-size: 1.4rem;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-jackpot-games__tip-text {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
}

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

.page-jackpot-games__promo-card {
  text-align: left;
  overflow: hidden;
}

.page-jackpot-games__promo-image {
  width: 100%;
  height: 200px; /* Fixed height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-jackpot-games__promo-title {
  font-size: 1.4rem;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-jackpot-games__promo-text {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
}

.page-jackpot-games__view-all-promos {
  margin-top: 40px;
  text-align: center;
}

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

.page-jackpot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-jackpot-games__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main-color);
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
}

.page-jackpot-games__faq-item summary:hover {
  background-color: rgba(var(--card-bg), 0.8);
}

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

.page-jackpot-games__faq-qtext {
  color: var(--gold-color);
}

.page-jackpot-games__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 15px;
}

.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-toggle {
  color: var(--gold-color);
}

.page-jackpot-games__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary-color);
  line-height: 1.6;
  background-color: rgba(var(--card-bg), 0.7);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-jackpot-games__container,
  .page-jackpot-games__hero-content,
  .page-jackpot-games__cta-buttons,
  .page-jackpot-games__grid,
  .page-jackpot-games__game-list,
  .page-jackpot-games__steps,
  .page-jackpot-games__promo-grid,
  .page-jackpot-games__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-jackpot-games__hero-content {
    margin-top: -80px; /* Adjust for smaller screens */
    padding: 25px 15px;
  }

  .page-jackpot-games__main-title {
    font-size: 2rem;
  }

  .page-jackpot-games__hero-description {
    font-size: 1rem;
  }

  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

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

  .page-jackpot-games__section-title {
    font-size: 1.8rem;
  }

  .page-jackpot-games__paragraph,
  .page-jackpot-games__card-text,
  .page-jackpot-games__game-description,
  .page-jackpot-games__step-text,
  .page-jackpot-games__tip-text,
  .page-jackpot-games__promo-text,
  .page-jackpot-games__faq-answer {
    font-size: 0.95rem;
  }

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

  .page-jackpot-games__card,
  .page-jackpot-games__step-item,
  .page-jackpot-games__promo-card {
    padding: 20px;
  }

  .page-jackpot-games__game-image,
  .page-jackpot-games__tip-image,
  .page-jackpot-games__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-jackpot-games__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

/* Ensure images don't have filter properties */
.page-jackpot-games img {
  filter: none; /* Override any potential global filters */
}

.page-jackpot-games__hero-image {
  filter: brightness(0.6); /* This is an intentional darkening for text readability, not a color change filter */
}