/* style/jackpot-games.css */
.page-jackpot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #050505; /* Inherited from shared.css, ensuring contrast */
}

.page-jackpot-games__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-jackpot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-jackpot-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  z-index: 2;
}

.page-jackpot-games__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-jackpot-games__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold brand color */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-jackpot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-jackpot-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-jackpot-games__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold brand color */
  text-align: center;
  margin-bottom: 40px;
  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-color: #8B0000; /* Dark red brand color */
  border-radius: 2px;
}

.page-jackpot-games__section-title--light {
  color: #ffffff;
}

.page-jackpot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #f0f0f0;
}

.page-jackpot-games__text-block--light {
  color: #ffffff;
}

.page-jackpot-games__dark-section {
  background-color: #1a1a1a; /* Darker background for contrast */
  padding: 60px 20px;
  color: #ffffff;
}

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

.page-jackpot-games__feature-card,
.page-jackpot-games__game-card {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-jackpot-games__feature-card:hover,
.page-jackpot-games__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-jackpot-games__feature-icon,
.page-jackpot-games__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 2px solid #FFD700;
}

.page-jackpot-games__feature-title,
.page-jackpot-games__game-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-jackpot-games__feature-description,
.page-jackpot-games__game-description {
  font-size: 1em;
  color: #e0e0e0;
}

.page-jackpot-games__steps-list,
.page-jackpot-games__tips-list,
.page-jackpot-games__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-jackpot-games__step-item,
.page-jackpot-games__tip-item,
.page-jackpot-games__promo-item {
  background-color: #2a2a2a;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-jackpot-games__step-title,
.page-jackpot-games__tip-title,
.page-jackpot-games__promo-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-jackpot-games__step-description,
.page-jackpot-games__tip-description,
.page-jackpot-games__promo-description {
  font-size: 1em;
  color: #e0e0e0;
}

.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary,
.page-jackpot-games__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.page-jackpot-games__btn-primary {
  background-color: #FFD700; /* Gold brand color */
  color: #000000; /* Black text for contrast */
  border: 2px solid #FFD700;
}

.page-jackpot-games__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-jackpot-games__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold brand color */
  border: 2px solid #FFD700;
}

.page-jackpot-games__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000;
}

.page-jackpot-games__btn-tertiary {
  background-color: #8B0000; /* Dark red brand color */
  color: #ffffff;
  border: 2px solid #8B0000;
  margin-top: 15px;
}

.page-jackpot-games__btn-tertiary:hover {
  background-color: #a00000;
  border-color: #a00000;
}

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

.page-jackpot-games__btn-primary--large,
.page-jackpot-games__btn-secondary--large {
  padding: 15px 35px;
  font-size: 1.1em;
}

.page-jackpot-games__faq-container {
  margin-top: 30px;
}

.page-jackpot-games__faq-item {
  background-color: #2a2a2a;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #3a3a3a;
  cursor: pointer;
  font-size: 1.2em;
  color: #FFD700;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-jackpot-games__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-jackpot-games__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-jackpot-games__faq-item.active .page-jackpot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-jackpot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

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

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

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-jackpot-games__hero-title {
    font-size: 3em;
  }

  .page-jackpot-games__hero-description {
    font-size: 1.1em;
  }

  .page-jackpot-games__section-title {
    font-size: 2em;
  }

  .page-jackpot-games__feature-title,
  .page-jackpot-games__game-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-jackpot-games__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile spacing */
  }

  .page-jackpot-games__hero-title {
    font-size: 2.2em;
  }

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

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

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

  .page-jackpot-games__content-area,
  .page-jackpot-games__dark-section {
    padding: 40px 15px;
  }

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

  .page-jackpot-games__text-block {
    font-size: 0.95em;
  }

  .page-jackpot-games__features-grid,
  .page-jackpot-games__game-cards-grid {
    grid-template-columns: 1fr;
  }

  .page-jackpot-games__feature-icon,
  .page-jackpot-games__game-image {
    height: 200px;
  }

  .page-jackpot-games__feature-card,
  .page-jackpot-games__game-card,
  .page-jackpot-games__step-item,
  .page-jackpot-games__tip-item,
  .page-jackpot-games__promo-item,
  .page-jackpot-games__faq-item {
    padding: 20px;
  }

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

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

  /* Mobile container responsiveness */
  .page-jackpot-games__section,
  .page-jackpot-games__card,
  .page-jackpot-games__container,
  .page-jackpot-games__features-grid,
  .page-jackpot-games__game-cards-grid,
  .page-jackpot-games__faq-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-jackpot-games__hero-section .page-jackpot-games__hero-content {
    padding: 15px;
  }
  
  .page-jackpot-games__video-section {
    padding-top: var(--header-offset, 120px) !important; 
  }

  /* Ensure FAQ answer padding is correct */
  .page-jackpot-games__faq-answer {
    padding: 0 15px;
  }
  .page-jackpot-games__faq-item.active .page-jackpot-games__faq-answer {
    padding: 15px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-jackpot-games__hero-title {
    font-size: 1.8em;
  }

  .page-jackpot-games__section-title {
    font-size: 1.5em;
  }

  .page-jackpot-games__hero-section {
    height: 400px;
  }
}