:root {
  --color-primary: #017439;
  --color-secondary: #FFFFFF;
  --color-register: #C30808;
  --color-login: #C30808;
  --color-background-main: #FFFFFF; /* Not used for body, only for specific elements if needed */
  --color-register-login-font: #FFFF00;
  --color-text-light: #ffffff; /* For dark backgrounds */
  --color-text-dark: #333333; /* For light backgrounds */
}

/* Ensure main content text is light on dark body background */
.page-jackpot-games {
  color: var(--color-text-light); /* Body background is #0a0a0a (dark) from shared.css */
  background-color: transparent; /* Rely on body background from shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-jackpot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: var(--color-primary); /* Use primary color for hero background */
  color: var(--color-text-light);
}

.page-jackpot-games__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Match hero image width */
  margin-bottom: 30px; /* Space between image and text */
}

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

.page-jackpot-games__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-jackpot-games__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-secondary); /* White for contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__intro-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--color-text-light);
}

.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,
.page-jackpot-games__btn-play,
.page-jackpot-games__btn-view-details,
.page-jackpot-games__btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
  max-width: 100%;
}

.page-jackpot-games__btn-primary {
  background-color: var(--color-register);
  color: var(--color-register-login-font);
  border: 2px solid var(--color-register);
}

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

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

.page-jackpot-games__btn-secondary:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.page-jackpot-games__btn-play,
.page-jackpot-games__btn-view-details,
.page-jackpot-games__btn-contact {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  border: 2px solid var(--color-primary);
}

.page-jackpot-games__btn-play:hover,
.page-jackpot-games__btn-view-details:hover,
.page-jackpot-games__btn-contact:hover {
  background-color: #02944b;
  border-color: #02944b;
}

.page-jackpot-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: transparent; /* Rely on body background */
}

.page-jackpot-games__dark-bg {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.page-jackpot-games__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-secondary); /* Ensure visibility on primary background */
}

.page-jackpot-games__introduction-section .page-jackpot-games__section-title {
  color: var(--color-secondary);
}

.page-jackpot-games__text-block {
  margin-top: 20px;
  margin-bottom: 20px;
}

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

.page-jackpot-games__game-card,
.page-jackpot-games__promo-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--color-text-light);
}

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

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

.page-jackpot-games__game-title,
.page-jackpot-games__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-secondary);
}

.page-jackpot-games__game-description,
.page-jackpot-games__promo-description {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: var(--color-text-light);
}

.page-jackpot-games__ordered-list,
.page-jackpot-games__unordered-list {
  list-style-position: inside;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-jackpot-games__ordered-list li,
.page-jackpot-games__unordered-list li {
  margin-bottom: 10px;
}

.page-jackpot-games__security-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.page-jackpot-games__security-text {
  flex: 1;
  color: var(--color-text-light);
}

.page-jackpot-games__security-image-wrapper {
  flex: 1;
  max-width: 600px;
}

.page-jackpot-games__faq-list {
  margin-top: 40px;
}

.page-jackpot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--color-text-light);
}

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-secondary);
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-jackpot-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-secondary);
}

.page-jackpot-games__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.page-jackpot-games__conclusion-section {
  text-align: center;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-jackpot-games__security-content {
    flex-direction: row;
    text-align: left;
  }
  .page-jackpot-games__security-image-wrapper {
    order: 2; /* Image on right */
  }
  .page-jackpot-games__security-text {
    order: 1; /* Text on left */
  }
}

@media (max-width: 768px) {
  .page-jackpot-games {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

  .page-jackpot-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }

  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary,
  .page-jackpot-games__btn-play,
  .page-jackpot-games__btn-view-details,
  .page-jackpot-games__btn-contact {
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-jackpot-games__content-area,
  .page-jackpot-games__game-card,
  .page-jackpot-games__promo-card,
  .page-jackpot-games__security-text,
  .page-jackpot-games__security-image-wrapper,
  .page-jackpot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-jackpot-games__game-grid,
  .page-jackpot-games__promo-grid {
    gap: 20px;
  }

  .page-jackpot-games__security-content {
    flex-direction: column;
  }

  .page-jackpot-games__hero-section .page-jackpot-games__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-jackpot-games__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

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

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