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

/* --- Base Styles --- */
.page-jackpot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background); /* Default background for the page */
}

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

.page-jackpot-games__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-jackpot-games__sub-section-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-jackpot-games__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

/* --- Hero Section --- */
.page-jackpot-games__hero-section {
  display: flex;
  flex-direction: column; /* Stacks image and content vertically */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px; /* Small top padding, larger bottom */
  background-color: var(--deep-green);
}

.page-jackpot-games__hero-section .page-jackpot-games__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px; /* Constrain content width */
  width: 100%;
}

.page-jackpot-games__hero-image {
  width: 100%; /* Image takes full container width */
  height: auto;
  max-height: 675px; /* Max height for hero image (16:9 of 1200) */
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 30px; /* Space between image and content */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-jackpot-games__main-title {
  font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size */
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-jackpot-games__hero-description {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* --- Video Section --- */
.page-jackpot-games__video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  background-color: var(--card-bg);
}

.page-jackpot-games__video-section .page-jackpot-games__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.page-jackpot-games__video-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-jackpot-games__video-description {
  max-width: 900px;
  margin-top: 0;
  margin-bottom: 30px;
}

/* --- Buttons --- */
.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary,
.page-jackpot-games__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.page-jackpot-games__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-jackpot-games__btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 2px solid var(--main-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-jackpot-games__btn-secondary:hover {
  background-color: var(--main-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__btn-tertiary {
  background-color: var(--deep-green);
  color: var(--text-main);
  border: 1px solid var(--divider);
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 10px;
  margin-top: 15px;
}

.page-jackpot-games__btn-tertiary:hover {
  background-color: var(--main-color);
  color: #ffffff;
}

/* --- Intro Section --- */
.page-jackpot-games__intro-section {
  padding: 60px 0;
  background-color: var(--background);
}

/* --- Advantages Section --- */
.page-jackpot-games__advantages-section {
  padding: 80px 0;
  background-color: var(--card-bg); /* Darker background */
  color: var(--text-main); /* Light text on dark background */
}

.page-jackpot-games__advantages-section .page-jackpot-games__section-title {
  color: var(--text-main);
}

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

.page-jackpot-games__advantage-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
}

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

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

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

.page-jackpot-games__card-text {
  font-size: 1rem;
  color: var(--text-secondary);
  flex-grow: 1; /* Ensures cards with less text maintain height */
}

/* --- How-To-Play Section --- */
.page-jackpot-games__how-to-play-section {
  padding: 80px 0;
  background-color: var(--background);
}

.page-jackpot-games__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-jackpot-games__step-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.page-jackpot-games__step-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 15px;
}

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

.page-jackpot-games__info-block {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-jackpot-games__info-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 20px;
}

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

.page-jackpot-games__info-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 10px;
}

/* --- Strategy Section --- */
.page-jackpot-games__strategy-section {
  padding: 80px 0;
  background-color: var(--card-bg); /* Darker background */
  color: var(--text-main);
}

.page-jackpot-games__strategy-section .page-jackpot-games__section-title {
  color: var(--text-main);
}

.page-jackpot-games__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-jackpot-games__strategy-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-jackpot-games__strategy-card .page-jackpot-games__card-title {
  color: var(--gold);
}

.page-jackpot-games__strategy-card .page-jackpot-games__card-text {
  color: var(--text-secondary);
}

.page-jackpot-games__strategy-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Popular Games Section --- */
.page-jackpot-games__popular-games-section {
  padding: 80px 0;
  background-color: var(--background);
}

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

.page-jackpot-games__game-type-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-jackpot-games__game-type-card .page-jackpot-games__card-title {
  color: var(--gold);
}

.page-jackpot-games__game-type-card .page-jackpot-games__card-text {
  color: var(--text-secondary);
}

.page-jackpot-games__featured-games {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.page-jackpot-games__game-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.page-jackpot-games__game-item {
  font-size: 1.1rem;
  color: var(--text-main);
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
}

.page-jackpot-games__game-item:last-child {
  border-bottom: none;
}

.page-jackpot-games__game-item a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-jackpot-games__game-item a:hover {
  color: var(--main-color);
  text-decoration: underline;
}

/* --- Security Section --- */
.page-jackpot-games__security-section {
  padding: 80px 0;
  background-color: var(--card-bg); /* Darker background */
  color: var(--text-main);
}

.page-jackpot-games__security-section .page-jackpot-games__section-title {
  color: var(--text-main);
}

.page-jackpot-games__security-section .page-jackpot-games__text-block {
  color: var(--text-main);
}

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

.page-jackpot-games__feature-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-jackpot-games__feature-card .page-jackpot-games__card-title {
  color: var(--gold);
}

.page-jackpot-games__feature-card .page-jackpot-games__card-text {
  color: var(--text-secondary);
}

.page-jackpot-games__security-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- FAQ Section --- */
.page-jackpot-games__faq-section {
  padding: 80px 0;
  background-color: var(--background);
}

.page-jackpot-games__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--gold);
  cursor: pointer;
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--divider);
  transition: background-color 0.3s ease;
}

.page-jackpot-games__faq-question:hover {
  background-color: var(--main-color);
}

.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-question {
  border-bottom: 1px solid var(--divider);
}

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

.page-jackpot-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 20px;
  color: var(--text-main);
}

.page-jackpot-games__faq-answer {
  padding: 20px 25px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  background-color: var(--card-bg);
  border-top: 1px solid var(--divider);
}

.page-jackpot-games__faq-item:not([open]) .page-jackpot-games__faq-answer {
  display: none; /* Hide answer when not open for non-JS fallback */
}

/* For details tag, hide default marker */
.page-jackpot-games__faq-item summary {
  list-style: none;
}

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

/* --- Conclusion Section --- */
.page-jackpot-games__conclusion-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--card-bg); /* Darker background */
  color: var(--text-main);
}

.page-jackpot-games__conclusion-section .page-jackpot-games__section-title {
  color: var(--text-main);
}

.page-jackpot-games__conclusion-section .page-jackpot-games__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  color: var(--text-main);
}

.page-jackpot-games__cta-final {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Color Contrast & Accessibility --- */
.page-jackpot-games__dark-bg {
  background-color: var(--card-bg); /* Use a darker background color */
  color: var(--text-main); /* Light text on dark background */
}

.page-jackpot-games__light-bg {
  background-color: var(--background); /* Use a lighter background color */
  color: var(--text-secondary); /* Dark text on light background, or main text */
}

.page-jackpot-games__text-main {
  color: var(--text-main); /* #F2FFF6 */
}

.page-jackpot-games__text-secondary {
  color: var(--text-secondary); /* #A7D9B8 */
}

/* Ensure all images maintain original color, no filters */
.page-jackpot-games img {
  filter: none !important;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-jackpot-games__section-title {
    font-size: 2rem;
  }
  .page-jackpot-games__main-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
  }
  .page-jackpot-games__hero-description {
    font-size: 1.1rem;
  }
  .page-jackpot-games__hero-content {
    padding: 0 20px;
  }
  .page-jackpot-games__video-wrapper {
    max-width: 900px;
  }
}

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

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

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

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

  .page-jackpot-games__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

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

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

  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary,
  .page-jackpot-games__btn-tertiary {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-jackpot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-jackpot-games__video-section .page-jackpot-games__btn-primary {
    margin-top: 20px;
  }

  .page-jackpot-games__intro-section,
  .page-jackpot-games__advantages-section,
  .page-jackpot-games__how-to-play-section,
  .page-jackpot-games__strategy-section,
  .page-jackpot-games__popular-games-section,
  .page-jackpot-games__security-section,
  .page-jackpot-games__faq-section,
  .page-jackpot-games__conclusion-section {
    padding: 40px 0;
  }

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

  .page-jackpot-games__sub-section-title {
    font-size: 1.5rem;
  }

  .page-jackpot-games__text-block,
  .page-jackpot-games__card-text,
  .page-jackpot-games__step-text,
  .page-jackpot-games__info-text,
  .page-jackpot-games__game-item,
  .page-jackpot-games__faq-answer p {
    font-size: 0.95rem;
  }

  .page-jackpot-games__grid-advantages,
  .page-jackpot-games__step-by-step,
  .page-jackpot-games__strategy-grid,
  .page-jackpot-games__game-types-grid,
  .page-jackpot-games__security-features {
    grid-template-columns: 1fr;
  }

  .page-jackpot-games__game-list {
    grid-template-columns: 1fr;
  }

  .page-jackpot-games__card-image,
  .page-jackpot-games__info-image,
  .page-jackpot-games__strategy-image,
  .page-jackpot-games__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* All containing elements for images/videos */
  .page-jackpot-games__advantage-card,
  .page-jackpot-games__step-card,
  .page-jackpot-games__info-block,
  .page-jackpot-games__strategy-card,
  .page-jackpot-games__game-type-card,
  .page-jackpot-games__feature-card,
  .page-jackpot-games__featured-games,
  .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__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-jackpot-games__faq-answer {
    padding: 15px 20px;
  }

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