/* style/jackpot-games.css */

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

.page-jackpot-games {
  background-color: var(--page-bg-color);
  color: var(--text-main-color);
  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;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-jackpot-games__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 700px; /* Limit height for hero image */
}

.page-jackpot-games__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  margin-top: 40px; /* Place content below the image */
  padding: 0 20px;
}

.page-jackpot-games__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

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

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

.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary,
.page-jackpot-games__btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-jackpot-games__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff; /* Explicitly white for contrast */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-jackpot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-jackpot-games__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
}

.page-jackpot-games__btn-small {
  padding: 10px 20px;
  font-size: 0.95rem;
  background: var(--btn-gradient);
  color: #ffffff;
  border: none;
  border-radius: 6px;
}

.page-jackpot-games__btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 10px rgba(42, 209, 111, 0.3);
}

.page-jackpot-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--page-bg-color);
}

.page-jackpot-games__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

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

.page-jackpot-games__keyword-highlight {
  color: var(--gold-color);
  font-weight: bold;
}

/* Intro Section */
.page-jackpot-games__intro-section {
  border-bottom: 1px solid var(--divider-color);
}

.page-jackpot-games__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-jackpot-games__benefits-item {
  background-color: var(--card-bg-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color);
  font-size: 1rem;
  border: 1px solid var(--border-color);
}

.page-jackpot-games__benefits-item strong {
  color: var(--gold-color);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 10px;
}

/* Games Section */
.page-jackpot-games__games-section {
  padding-top: 60px;
  border-bottom: 1px solid var(--divider-color);
}

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

.page-jackpot-games__game-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-jackpot-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-jackpot-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-jackpot-games__game-title {
  font-size: 1.4rem;
  color: var(--gold-color);
  margin: 20px 20px 10px;
}

.page-jackpot-games__game-description {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  padding: 0 20px;
  flex-grow: 1;
}

.page-jackpot-games__game-card .page-jackpot-games__btn-small {
  margin: 20px;
  align-self: flex-start;
}

/* Benefits Section */
.page-jackpot-games__benefits-section {
  padding-top: 60px;
  border-bottom: 1px solid var(--divider-color);
}

.page-jackpot-games__benefits-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-jackpot-games__benefits-text {
  flex: 1;
  min-width: 300px;
}

.page-jackpot-games__benefits-image {
  flex: 1;
  min-width: 400px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-jackpot-games__detailed-benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-jackpot-games__detailed-benefits-item {
  font-size: 1.05rem;
  color: var(--text-main-color);
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
}

.page-jackpot-games__detailed-benefits-item::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: var(--gold-color);
}

/* Guide Section */
.page-jackpot-games__guide-section {
  padding-top: 60px;
  border-bottom: 1px solid var(--divider-color);
}

.page-jackpot-games__guide-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap-reverse; /* Image above text on mobile */
}

.page-jackpot-games__guide-steps {
  flex: 1;
  min-width: 300px;
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-jackpot-games__guide-step {
  background-color: var(--card-bg-color);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  position: relative;
  padding-left: 70px; /* Space for step number */
}

.page-jackpot-games__guide-step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 35px;
  height: 35px;
  background: var(--gold-color);
  color: var(--page-bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.page-jackpot-games__step-title {
  font-size: 1.3rem;
  color: var(--gold-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-jackpot-games__guide-step p {
  color: var(--text-main-color);
  font-size: 1rem;
}

.page-jackpot-games__guide-image {
  flex: 1;
  min-width: 400px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

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

/* Strategy Section */
.page-jackpot-games__strategy-section {
  padding-top: 60px;
  border-bottom: 1px solid var(--divider-color);
}

.page-jackpot-games__strategy-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.page-jackpot-games__strategy-list {
  flex: 1;
  min-width: 300px;
  list-style: none;
  padding: 0;
}

.page-jackpot-games__strategy-item {
  background-color: var(--card-bg-color);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.page-jackpot-games__strategy-heading {
  font-size: 1.3rem;
  color: var(--gold-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-jackpot-games__strategy-item p {
  color: var(--text-main-color);
  font-size: 1rem;
}

.page-jackpot-games__strategy-image {
  flex: 1;
  min-width: 400px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

/* Video Section */
.page-jackpot-games__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--page-bg-color);
  border-bottom: 1px solid var(--divider-color);
}

.page-jackpot-games__video-container {
  width: 100%; /* Important for desktop as well */
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}

.page-jackpot-games__video-link {
  display: block; /* Ensure the link covers the entire video area */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5; /* Ensure link is clickable */
  cursor: pointer;
}

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

/* Promotions Section */
.page-jackpot-games__promotions-section {
  padding-top: 60px;
  border-bottom: 1px solid var(--divider-color);
}

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

.page-jackpot-games__promotion-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-jackpot-games__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-jackpot-games__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-jackpot-games__promotion-title {
  font-size: 1.4rem;
  color: var(--gold-color);
  margin: 20px 20px 10px;
}

.page-jackpot-games__promotion-description {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  padding: 0 20px;
  flex-grow: 1;
}

.page-jackpot-games__promotions-cta {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-jackpot-games__faq-section {
  padding-top: 60px;
  border-bottom: 1px solid var(--divider-color);
}

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

.page-jackpot-games__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-jackpot-games__faq-item[open] {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-color);
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

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

.page-jackpot-games__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-jackpot-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary-color);
  line-height: 1.7;
}

/* CTA Section */
.page-jackpot-games__cta-section {
  padding-top: 60px;
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-jackpot-games__hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
  }

  .page-jackpot-games__section-title {
    font-size: 2.2rem;
  }

  .page-jackpot-games__benefits-wrapper,
  .page-jackpot-games__guide-wrapper,
  .page-jackpot-games__strategy-wrapper {
    flex-direction: column;
  }

  .page-jackpot-games__benefits-image,
  .page-jackpot-games__guide-image,
  .page-jackpot-games__strategy-image {
    min-width: unset;
    width: 100%;
  }

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

@media (max-width: 768px) {
  .page-jackpot-games__hero-section {
    padding-bottom: 40px;
  }

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

  .page-jackpot-games__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

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

  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary,
  .page-jackpot-games a[class*="button"],
  .page-jackpot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-jackpot-games__hero-buttons,
  .page-jackpot-games__guide-cta-buttons,
  .page-jackpot-games__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

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

  .page-jackpot-games__section,
  .page-jackpot-games__card,
  .page-jackpot-games__container,
  .page-jackpot-games__game-card,
  .page-jackpot-games__promotion-card,
  .page-jackpot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Video responsiveness */
  .page-jackpot-games video,
  .page-jackpot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-jackpot-games__video-section {
    padding-top: 10px !important;
  }

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

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

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

  .page-jackpot-games__guide-step {
    padding-left: 60px;
  }

  .page-jackpot-games__guide-step::before {
    left: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }

  .page-jackpot-games__game-image,
  .page-jackpot-games__promotion-image {
    height: 180px;
  }

  .page-jackpot-games__game-title,
  .page-jackpot-games__promotion-title {
    font-size: 1.2rem;
  }
}