.page-jackpot-games-popular-slots {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
}

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

.page-jackpot-games-popular-slots__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); /* Ensure content is below fixed header */
  box-sizing: border-box;
}

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

.page-jackpot-games-popular-slots__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-jackpot-games-popular-slots__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  color: #ffffff;
}

.page-jackpot-games-popular-slots__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-jackpot-games-popular-slots__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-jackpot-games-popular-slots__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-jackpot-games-popular-slots__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games-popular-slots__introduction-section,
.page-jackpot-games-popular-slots__how-to-play-section,
.page-jackpot-games-popular-slots__featured-games-section,
.page-jackpot-games-popular-slots__faq-section {
  padding: 80px 0;
}

.page-jackpot-games-popular-slots__game-types-section,
.page-jackpot-games-popular-slots__benefits-section,
.page-jackpot-games-popular-slots__promotions-section,
.page-jackpot-games-popular-slots__cta-section {
  padding: 80px 0;
  background: #000080; /* Auxiliary color for dark sections */
  color: #ffffff;
}

.page-jackpot-games-popular-slots__light-bg {
  background-color: #f0f0f0;
  color: #333333;
}

.page-jackpot-games-popular-slots__dark-bg {
  background-color: #000080;
  color: #ffffff;
}

.page-jackpot-games-popular-slots__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-jackpot-games-popular-slots__keyword {
  color: #FFD700;
  font-weight: bold;
}

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

.page-jackpot-games-popular-slots__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-jackpot-games-popular-slots__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-jackpot-games-popular-slots__card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-jackpot-games-popular-slots__card-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-jackpot-games-popular-slots__step-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-jackpot-games-popular-slots__step-icon {
  font-size: 2em;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
  background: #000080;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
}

.page-jackpot-games-popular-slots__step-title {
  font-size: 1.3em;
  color: #000080;
  margin-bottom: 10px;
}

.page-jackpot-games-popular-slots__step-description {
  font-size: 0.95em;
}

.page-jackpot-games-popular-slots__step-description a {
  color: #000080;
  text-decoration: underline;
}

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

.page-jackpot-games-popular-slots__benefit-item {
  text-align: center;
  color: #ffffff;
}

.page-jackpot-games-popular-slots__benefit-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

.page-jackpot-games-popular-slots__benefit-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-jackpot-games-popular-slots__benefit-description {
  font-size: 1em;
}

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

.page-jackpot-games-popular-slots__game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #333333;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-jackpot-games-popular-slots__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-jackpot-games-popular-slots__game-title {
  font-size: 1.5em;
  color: #000080;
  margin: 15px 0 10px;
}

.page-jackpot-games-popular-slots__game-description {
  padding: 0 20px 20px;
  font-size: 0.95em;
  flex-grow: 1;
}

.page-jackpot-games-popular-slots__game-card .page-jackpot-games-popular-slots__btn-secondary {
  margin: 0 20px 20px;
  width: auto;
}

.page-jackpot-games-popular-slots__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-jackpot-games-popular-slots__promo-item {
  background: rgba(255, 255, 255, 0.15);
  border-left: 5px solid #FFD700;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-jackpot-games-popular-slots__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-jackpot-games-popular-slots__faq-item {
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-jackpot-games-popular-slots__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background: #000080; /* Dark blue background for questions */
  color: #ffffff; /* White text for questions */
  font-size: 1.15em;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.page-jackpot-games-popular-slots__faq-question h3 {
  margin: 0;
  color: #FFD700; /* Gold text for question titles */
  font-size: 1em; /* Adjust to fit parent font size */
}

.page-jackpot-games-popular-slots__faq-question:hover {
  background: #000060; /* Slightly darker blue on hover */
}

.page-jackpot-games-popular-slots__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

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

.page-jackpot-games-popular-slots__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #ffffff;
  color: #333333;
}

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

.page-jackpot-games-popular-slots__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-jackpot-games-popular-slots__faq-answer a {
  color: #000080;
  text-decoration: underline;
}

.page-jackpot-games-popular-slots__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-jackpot-games-popular-slots__btn-primary,
.page-jackpot-games-popular-slots__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-jackpot-games-popular-slots__btn-primary {
  background: #FFD700;
  color: #000080; /* Dark blue text on gold button for contrast */
  border: 2px solid #FFD700;
}

.page-jackpot-games-popular-slots__btn-primary:hover {
  background: #e6c200;
  color: #000060;
  border-color: #e6c200;
}

.page-jackpot-games-popular-slots__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-jackpot-games-popular-slots__btn-secondary:hover {
  background: #FFD700;
  color: #000080;
}

.page-jackpot-games-popular-slots__cta-buttons--footer {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-jackpot-games-popular-slots__hero-title {
    font-size: 3em;
  }
  .page-jackpot-games-popular-slots__section-title {
    font-size: 2em;
  }
  .page-jackpot-games-popular-slots__grid,
  .page-jackpot-games-popular-slots__steps-grid,
  .page-jackpot-games-popular-slots__benefits-grid,
  .page-jackpot-games-popular-slots__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-jackpot-games-popular-slots {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-jackpot-games-popular-slots__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
  }
  .page-jackpot-games-popular-slots__hero-title {
    font-size: 2.2em;
  }
  .page-jackpot-games-popular-slots__hero-description {
    font-size: 1em;
  }
  .page-jackpot-games-popular-slots__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-jackpot-games-popular-slots__btn-primary,
  .page-jackpot-games-popular-slots__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-jackpot-games-popular-slots__cta-buttons--footer {
    flex-direction: column;
    gap: 15px;
  }
  .page-jackpot-games-popular-slots__introduction-section,
  .page-jackpot-games-popular-slots__how-to-play-section,
  .page-jackpot-games-popular-slots__featured-games-section,
  .page-jackpot-games-popular-slots__faq-section,
  .page-jackpot-games-popular-slots__game-types-section,
  .page-jackpot-games-popular-slots__benefits-section,
  .page-jackpot-games-popular-slots__promotions-section,
  .page-jackpot-games-popular-slots__cta-section {
    padding: 40px 0;
  }
  .page-jackpot-games-popular-slots__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-jackpot-games-popular-slots__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-jackpot-games-popular-slots__text-block {
    font-size: 1em;
    text-align: left;
  }
  .page-jackpot-games-popular-slots img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-jackpot-games-popular-slots__card-image {
    height: 180px;
  }
  .page-jackpot-games-popular-slots__game-image {
    height: 200px;
  }
  .page-jackpot-games-popular-slots__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-jackpot-games-popular-slots__faq-answer {
    padding: 0 20px;
  }
  .page-jackpot-games-popular-slots__faq-item.active .page-jackpot-games-popular-slots__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-jackpot-games-popular-slots__hero-title {
    font-size: 1.8em;
  }
  .page-jackpot-games-popular-slots__hero-section {
    height: 400px;
  }
  .page-jackpot-games-popular-slots__section-title {
    font-size: 1.5em;
  }
  .page-jackpot-games-popular-slots__grid,
  .page-jackpot-games-popular-slots__steps-grid,
  .page-jackpot-games-popular-slots__benefits-grid,
  .page-jackpot-games-popular-slots__games-grid {
    grid-template-columns: 1fr;
  }
  .page-jackpot-games-popular-slots__card,
  .page-jackpot-games-popular-slots__step-item,
  .page-jackpot-games-popular-slots__game-card {
    margin-left: 10px;
    margin-right: 10px;
  }
}