/* style/jackpot-games.css */
.page-jackpot-games {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-jackpot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  overflow: hidden;
  background-color: #0A4B2C; /* Deep Green for hero background */
}

.page-jackpot-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-jackpot-games__hero-content {
  text-align: center;
  padding: 30px 20px;
  max-width: 900px;
  margin-top: -80px; /* Overlap image slightly for design */
  background: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  z-index: 10;
  position: relative;
  border: 1px solid #2E7A4E; /* Border */
}

.page-jackpot-games__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.page-jackpot-games__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-jackpot-games__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-jackpot-games__btn-secondary {
  display: inline-block;
  background: #11271B; /* Card BG */
  color: #2AD16F; /* From Button gradient */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  border: 2px solid #2AD16F; /* From Button gradient */
  cursor: pointer;
  margin-left: 15px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-jackpot-games__btn-secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.3;
  position: relative;
  padding-bottom: 15px;
}

.page-jackpot-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #13994A 0%, #2AD16F 100%);
  border-radius: 2px;
}

.page-jackpot-games__text-block {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-jackpot-games__intro-section,
.page-jackpot-games__popular-games-section,
.page-jackpot-games__tips-section,
.page-jackpot-games__faq-section {
  padding: 60px 0;
}

.page-jackpot-games__dark-bg {
  background-color: #0A4B2C; /* Deep Green */
  padding: 60px 0;
}

.page-jackpot-games__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

.page-jackpot-games__feature-card,
.page-jackpot-games__game-card,
.page-jackpot-games__promo-card,
.page-jackpot-games__step-card,
.page-jackpot-games__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

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

.page-jackpot-games__feature-title,
.page-jackpot-games__game-title,
.page-jackpot-games__promo-title,
.page-jackpot-games__step-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-jackpot-games__feature-card p,
.page-jackpot-games__game-description,
.page-jackpot-games__promo-card p,
.page-jackpot-games__step-card p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

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

.page-jackpot-games__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

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

.page-jackpot-games__step-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-jackpot-games__step-card .page-jackpot-games__step-title {
  font-size: 1.3em;
  margin-top: 10px;
  margin-bottom: 10px;
}

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

.page-jackpot-games__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 900px;
}

.page-jackpot-games__tips-list li {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

.page-jackpot-games__list-icon {
  font-size: 1.2em;
  color: #57E38D; /* Glow */
  margin-right: 15px;
  line-height: 1;
}

.page-jackpot-games__list-title {
  color: #F2FFF6; /* Text Main */
  font-size: 1.1em;
}

.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: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  font-weight: 600;
  font-size: 1.1em;
  cursor: pointer;
  outline: none;
  user-select: none;
  list-style: none; /* Remove default marker */
  border-bottom: 1px solid #2E7A4E; /* Border */
}

.page-jackpot-games__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit */
}

.page-jackpot-games__faq-item summary:hover {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-jackpot-games__faq-toggle {
  font-size: 1.5em;
  margin-left: 20px;
  color: #57E38D; /* Glow */
  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: 20px 25px;
  background-color: #08160F; /* Background */
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
  line-height: 1.7;
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-jackpot-games__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

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

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

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

  .page-jackpot-games__hero-content {
    margin-top: -30px;
    padding: 20px;
    border-radius: 10px;
  }

  .page-jackpot-games__main-title {
    font-size: 2em; /* Clamp ensures it doesn't get too small */
  }

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

  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary {
    width: 100% !important;
    margin-left: 0;
    margin-bottom: 15px;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-jackpot-games__btn-secondary {
    margin-top: 10px;
  }

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

  .page-jackpot-games__section-title {
    font-size: 1.8em; /* Clamp ensures it doesn't get too small */
    margin-bottom: 20px;
  }

  .page-jackpot-games__text-block {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-jackpot-games__intro-section,
  .page-jackpot-games__why-choose-section,
  .page-jackpot-games__popular-games-section,
  .page-jackpot-games__guide-section,
  .page-jackpot-games__tips-section,
  .page-jackpot-games__promotions-section,
  .page-jackpot-games__faq-section,
  .page-jackpot-games__cta-section {
    padding: 40px 0;
  }

  /* Mobile image responsiveness */
  .page-jackpot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-jackpot-games__hero-image-wrapper,
  .page-jackpot-games__container,
  .page-jackpot-games__feature-card,
  .page-jackpot-games__game-card,
  .page-jackpot-games__promo-card,
  .page-jackpot-games__step-card,
  .page-jackpot-games__card,
  .page-jackpot-games__cta-buttons {
    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-top: 10px !important;
  }

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

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

@media (max-width: 480px) {
  .page-jackpot-games__features-grid,
  .page-jackpot-games__games-grid,
  .page-jackpot-games__promo-grid,
  .page-jackpot-games__guide-steps {
    grid-template-columns: 1fr;
  }

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

  .page-jackpot-games__main-title {
    font-size: 1.8em;
  }
}

/* Ensure color contrast for all text elements */
.page-jackpot-games h1, .page-jackpot-games h2, .page-jackpot-games h3, .page-jackpot-games h4, .page-jackpot-games h5, .page-jackpot-games h6 {
  color: #F2FFF6;
}

.page-jackpot-games p, .page-jackpot-games li {
  color: #A7D9B8;
}

.page-jackpot-games a {
  color: #2AD16F; /* Link color */
}

.page-jackpot-games a:hover {
  color: #57E38D; /* Link hover color */
}

.page-jackpot-games__btn-primary {
  color: #F2FFF6; /* Button text color */
}

.page-jackpot-games__btn-secondary {
  color: #2AD16F; /* Secondary button text color */
}

.page-jackpot-games__btn-secondary:hover {
  color: #F2FFF6; /* Secondary button text hover color */
}