/* style/jackpot-games.css */

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

/* Base styles for page-jackpot-games */
.page-jackpot-games {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll on desktop too */
}

.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(28px, 4vw, 48px);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-jackpot-games__text-block {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-jackpot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
}

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

.page-jackpot-games__hero-content {
  position: relative; /* Ensure content is below image in normal flow */
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly to overlap image bottom */
  background: linear-gradient(to top, var(--bg-color) 0%, rgba(8, 22, 15, 0.8) 70%, transparent 100%);
  border-radius: 15px;
  z-index: 1; /* Ensure content is above image */
}

.page-jackpot-games__main-title {
  font-size: clamp(32px, 5vw, 60px); /* Responsive font size */
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 0 15px var(--glow-color);
}

.page-jackpot-games__hero-description {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 40px;
  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 {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-jackpot-games__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-jackpot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(87, 227, 141, 0.5);
}

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

.page-jackpot-games__btn-secondary:hover {
  background-color: var(--glow-color);
  color: var(--bg-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(87, 227, 141, 0.5);
}

/* General Section Styling */
.page-jackpot-games__introduction-section,
.page-jackpot-games__popular-games-section,
.page-jackpot-games__promotions-section,
.page-jackpot-games__final-cta-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.page-jackpot-games__why-choose-section,
.page-jackpot-games__how-to-play-section,
.page-jackpot-games__tips-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

/* Feature Grid */
.page-jackpot-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-jackpot-games__feature-card {
  background-color: var(--deep-green-color);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-jackpot-games__feature-icon {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 2px solid var(--glow-color);
}

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

.page-jackpot-games__card-description {
  font-size: 16px;
  color: var(--text-secondary);
}

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

.page-jackpot-games__game-card,
.page-jackpot-games__promo-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-jackpot-games__game-card:hover,
.page-jackpot-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(87, 227, 141, 0.3);
}

.page-jackpot-games__game-thumbnail,
.page-jackpot-games__promo-thumbnail {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

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

.page-jackpot-games__game-description {
  font-size: 15px;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-jackpot-games__btn-play,
.page-jackpot-games__btn-link {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  transition: all 0.3s ease;
  margin-top: auto; /* Push button to bottom */
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-jackpot-games__btn-play:hover,
.page-jackpot-games__btn-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

.page-jackpot-games__more-games-cta,
.page-jackpot-games__all-promos-cta,
.page-jackpot-games__how-to-cta,
.page-jackpot-games__faq-cta {
  text-align: center;
  margin-top: 50px;
}

/* How To Play Steps */
.page-jackpot-games__steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-jackpot-games__step-item {
  background-color: var(--deep-green-color);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-top: 60px;
}

.page-jackpot-games__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--glow-color);
  color: var(--bg-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  border: 3px solid var(--gold-color);
}

.page-jackpot-games__step-title {
  font-size: 22px;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-jackpot-games__step-description {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Tips Section */
.page-jackpot-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-jackpot-games__tips-list li {
  background-color: var(--deep-green-color);
  margin-bottom: 20px;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--glow-color);
  font-size: 17px;
  color: var(--text-main);
}

.page-jackpot-games__tips-list li p {
    margin: 0;
    color: var(--text-main);
}

.page-jackpot-games__tips-list li strong {
    color: var(--gold-color);
}

/* FAQ Section */
.page-jackpot-games__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--border-color);
  list-style: none; /* For details/summary native styling */
}

.page-jackpot-games__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

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

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

.page-jackpot-games__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-toggle {
  color: #ffffff;
}

.page-jackpot-games__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 16px;
  color: var(--text-secondary);
  text-align: left;
}

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

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

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

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

  .page-jackpot-games__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

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

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

  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary,
  .page-jackpot-games__btn-play,
  .page-jackpot-games__btn-link {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-jackpot-games__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-jackpot-games__text-block {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-jackpot-games__introduction-section,
  .page-jackpot-games__why-choose-section,
  .page-jackpot-games__popular-games-section,
  .page-jackpot-games__how-to-play-section,
  .page-jackpot-games__promotions-section,
  .page-jackpot-games__tips-section,
  .page-jackpot-games__faq-section,
  .page-jackpot-games__final-cta-section {
    padding: 50px 0;
  }

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

  .page-jackpot-games__feature-icon,
  .page-jackpot-games__game-thumbnail,
  .page-jackpot-games__promo-thumbnail {
    height: 180px; /* Adjust height for mobile */
  }

  .page-jackpot-games__card-title,
  .page-jackpot-games__game-title,
  .page-jackpot-games__step-title {
    font-size: 20px;
  }

  .page-jackpot-games__card-description,
  .page-jackpot-games__game-description,
  .page-jackpot-games__step-description {
    font-size: 14px;
  }

  .page-jackpot-games__tips-list li {
    font-size: 15px;
    padding: 15px 20px;
  }

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

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

  /* Responsive image and video rules */
  .page-jackpot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-jackpot-games__hero-image {
    max-height: 400px; /* Adjust hero image height for mobile */
  }

  .page-jackpot-games__section,
  .page-jackpot-games__card,
  .page-jackpot-games__container,
  .page-jackpot-games__feature-card,
  .page-jackpot-games__game-card,
  .page-jackpot-games__promo-card,
  .page-jackpot-games__step-item,
  .page-jackpot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow for cards/sections */
  }

  .page-jackpot-games__hero-section {
      padding-top: 10px !important;
  }
}

/* Contrast Fixes (if needed) */
.page-jackpot-games__dark-section {
  color: var(--text-main); /* Ensure light text on dark background */
}

.page-jackpot-games__card {
  color: var(--text-main); /* Ensure light text on card background */
}