/* style/jackpot-games.css */

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

.page-jackpot-games {
  background-color: var(--page-jackpot-games-background);
  color: var(--page-jackpot-games-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-jackpot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body already handles padding-top from header */
  text-align: center;
  background-color: var(--page-jackpot-games-deep-green);
  overflow: hidden;
}

.page-jackpot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height to prevent overly tall hero on desktop */
  overflow: hidden;
  position: relative;
}

.page-jackpot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-jackpot-games__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  color: var(--page-jackpot-games-text-main);
}

.page-jackpot-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-jackpot-games-text-main);
  line-height: 1.2;
}

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

.page-jackpot-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-jackpot-games__btn-primary {
  background: var(--page-jackpot-games-button-gradient);
  color: #ffffff;
  border: 2px solid var(--page-jackpot-games-primary-color);
}

.page-jackpot-games__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--page-jackpot-games-glow);
}

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

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

.page-jackpot-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-jackpot-games-text-main);
  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: var(--page-jackpot-games-gold);
  border-radius: 2px;
}

.page-jackpot-games__introduction-section,
.page-jackpot-games__why-choose-section,
.page-jackpot-games__popular-games-section,
.page-jackpot-games__how-to-play-section,
.page-jackpot-games__promotions-section,
.page-jackpot-games__tips-section,
.page-jackpot-games__security-section,
.page-jackpot-games__faq-section,
.page-jackpot-games__conclusion-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--page-jackpot-games-divider);
}

.page-jackpot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--page-jackpot-games-text-secondary);
}

.page-jackpot-games__highlight-text {
  color: var(--page-jackpot-games-gold);
  font-weight: bold;
}

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

.page-jackpot-games__feature-card,
.page-jackpot-games__game-card,
.page-jackpot-games__promo-card {
  background-color: var(--page-jackpot-games-card-bg);
  border-radius: 12px;
  padding: 30px;
  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: var(--page-jackpot-games-text-main);
  overflow: hidden;
}

.page-jackpot-games__feature-card:hover,
.page-jackpot-games__game-card:hover,
.page-jackpot-games__promo-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,
.page-jackpot-games__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-jackpot-games__feature-title,
.page-jackpot-games__game-title,
.page-jackpot-games__promo-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-jackpot-games-gold);
}

.page-jackpot-games__feature-description,
.page-jackpot-games__game-description,
.page-jackpot-games__promo-description {
  font-size: 1em;
  color: var(--page-jackpot-games-text-secondary);
  margin-bottom: 20px;
}

.page-jackpot-games__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: var(--page-jackpot-games-button-gradient);
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-jackpot-games__btn-small:hover {
  filter: brightness(1.15);
}

.page-jackpot-games__step-by-step {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 40px;
}

.page-jackpot-games__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--page-jackpot-games-card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: var(--page-jackpot-games-gold);
  color: var(--page-jackpot-games-background);
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 25px;
}

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

.page-jackpot-games__step-description {
  font-size: 1.1em;
  color: var(--page-jackpot-games-text-secondary);
  margin-bottom: 25px;
}

.page-jackpot-games__step-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-jackpot-games__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-jackpot-games__note-text {
  font-style: italic;
  text-align: center;
  color: var(--page-jackpot-games-text-secondary);
  margin-top: 30px;
}

.page-jackpot-games__tips-list,
.page-jackpot-games__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-jackpot-games__list-item {
  background-color: var(--page-jackpot-games-card-bg);
  padding: 20px 30px;
  margin-bottom: 15px;
  border-left: 5px solid var(--page-jackpot-games-primary-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: var(--page-jackpot-games-text-secondary);
  font-size: 1.1em;
}

.page-jackpot-games__list-item strong {
  color: var(--page-jackpot-games-text-main);
  font-weight: bold;
}

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

.page-jackpot-games__faq-item {
  background-color: var(--page-jackpot-games-card-bg);
  border: 1px solid var(--page-jackpot-games-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-jackpot-games-text-main);
}

.page-jackpot-games__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--page-jackpot-games-deep-green);
  color: var(--page-jackpot-games-text-main);
}

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

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-jackpot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-jackpot-games-gold);
}

.page-jackpot-games__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: var(--page-jackpot-games-text-secondary);
  border-top: 1px solid var(--page-jackpot-games-border);
}

.page-jackpot-games__faq-answer p {
  margin-bottom: 10px;
}

.page-jackpot-games__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-jackpot-games__faq-answer a {
  color: var(--page-jackpot-games-primary-color);
  text-decoration: underline;
}

.page-jackpot-games__faq-answer a:hover {
  color: var(--page-jackpot-games-gold);
}

.page-jackpot-games__copyright {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
  color: var(--page-jackpot-games-text-secondary);
  background-color: var(--page-jackpot-games-background);
  border-top: 1px solid var(--page-jackpot-games-divider);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-jackpot-games__main-title {
    font-size: clamp(2em, 4.5vw, 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,
  .page-jackpot-games__promo-title {
    font-size: 1.3em;
  }
}

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

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

  .page-jackpot-games__hero-content {
    position: static;
    transform: none;
    padding: 20px;
    margin-top: -100px; /* Pull content up over image a bit for better flow */
    background: rgba(8, 22, 15, 0.8); /* Dark background for text readability */
    border-radius: 0 0 12px 12px;
  }

  .page-jackpot-games__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }

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

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

  .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: 12px 15px !important;
  }

  .page-jackpot-games__introduction-section,
  .page-jackpot-games__why-choose-section,
  .page-jackpot-games__popular-games-section,
  .page-jackpot-games__how-to-play-section,
  .page-jackpot-games__promotions-section,
  .page-jackpot-games__tips-section,
  .page-jackpot-games__security-section,
  .page-jackpot-games__faq-section,
  .page-jackpot-games__conclusion-section {
    padding: 40px 0;
  }

  .page-jackpot-games__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-jackpot-games__feature-icon,
  .page-jackpot-games__game-image,
  .page-jackpot-games__promo-image,
  .page-jackpot-games__step-image,
  .page-jackpot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-jackpot-games__step-item {
    padding: 30px 20px;
  }

  .page-jackpot-games__step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.8em;
  }

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

  .page-jackpot-games__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-jackpot-games__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  /* 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,
  .page-jackpot-games__video-container,
  .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 {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-jackpot-games__main-title {
    font-size: clamp(1.5em, 8vw, 2.2em);
  }

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

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

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