/* style/jackpot-games.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark-bg: #FFFFFF;
  --text-color-light-bg: #333333;
  --register-btn-bg: #C30808;
  --login-btn-bg: #C30808;
  --btn-text-color: #FFFF00; /* For register/login buttons */
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
  --card-bg-light-mode: #FFFFFF;
  --border-color: #e0e0e0;
}

/* Base styles for the page content, ensuring light text on dark body background */
.page-jackpot-games {
  color: var(--text-color-dark-bg);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body handles the main background color */
}

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

.page-jackpot-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-color-dark-bg);
}

.page-jackpot-games__light-bg .page-jackpot-games__section-title {
  color: var(--text-color-light-bg);
}

.page-jackpot-games__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  text-align: justify;
}

/* Hero Section */
.page-jackpot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body padding-top is handled by shared.css */
  background-color: var(--primary-color); /* Dark green background */
  overflow: hidden;
}

.page-jackpot-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-jackpot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-width: 1200px; /* Adjust as needed for visual */
}

.page-jackpot-games__hero-content {
  max-width: 800px;
  text-align: center;
  padding: 0 20px;
  color: var(--text-color-dark-bg);
}

.page-jackpot-games__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg);
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
}

.page-jackpot-games__description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

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

/* Buttons */
.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary,
.page-jackpot-games__btn-small,
.page-jackpot-games__btn-large {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-jackpot-games__btn-primary {
  background-color: var(--register-btn-bg); /* Use specific color for register/login */
  color: var(--btn-text-color); /* Use specific font color for register/login */
  border: 2px solid var(--register-btn-bg);
}

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

.page-jackpot-games__btn-secondary {
  background-color: transparent;
  color: var(--btn-text-color); /* Use specific font color for register/login */
  border: 2px solid var(--register-btn-bg);
}

.page-jackpot-games__btn-secondary:hover {
  background-color: var(--register-btn-bg);
  color: var(--btn-text-color);
}

.page-jackpot-games__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 1px solid var(--primary-color);
}

.page-jackpot-games__btn-small:hover {
  background-color: #005a2e;
}

.page-jackpot-games__btn-large {
  padding: 15px 30px;
  font-size: 1.2em;
}

/* Section Backgrounds and Text Colors */
.page-jackpot-games__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
}

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

.page-jackpot-games__about-section,
.page-jackpot-games__features-section,
.page-jackpot-games__popular-games,
.page-jackpot-games__guide-section,
.page-jackpot-games__strategy-section,
.page-jackpot-games__faq-section,
.page-jackpot-games__cta-section {
  padding: 60px 0;
}

/* Cards */
.page-jackpot-games__card {
  background-color: var(--card-bg-dark-mode);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-color-dark-bg);
}

.page-jackpot-games__light-bg .page-jackpot-games__card {
  background-color: var(--card-bg-light-mode);
  color: var(--text-color-light-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Features Section */
.page-jackpot-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-jackpot-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-jackpot-games__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--text-color-dark-bg);
}

.page-jackpot-games__light-bg .page-jackpot-games__feature-title {
  color: var(--text-color-light-bg);
}

.page-jackpot-games__feature-description {
  font-size: 1em;
  line-height: 1.5;
}

/* Popular Games Section */
.page-jackpot-games__game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-jackpot-games__game-card {
  text-align: left;
  padding: 20px;
}

.page-jackpot-games__game-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-jackpot-games__game-name {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--text-color-light-bg);
}

.page-jackpot-games__game-description {
  font-size: 0.95em;
  margin-bottom: 15px;
  color: var(--text-color-light-bg);
}

.page-jackpot-games__light-bg .page-jackpot-games__game-name,
.page-jackpot-games__light-bg .page-jackpot-games__game-description {
  color: var(--text-color-light-bg);
}

/* Guide Section */
.page-jackpot-games__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-jackpot-games__guide-list li {
  background-color: var(--card-bg-dark-mode);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-color-dark-bg);
}

.page-jackpot-games__guide-step-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--text-color-dark-bg);
}

.page-jackpot-games__guide-list li p {
  margin-bottom: 15px;
}

/* Strategy Section */
.page-jackpot-games__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-jackpot-games__strategy-card {
  text-align: left;
}

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

.page-jackpot-games__strategy-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--text-color-light-bg);
}

.page-jackpot-games__strategy-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--text-color-light-bg);
}

/* FAQ Section */
.page-jackpot-games__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-jackpot-games__faq-item {
  background-color: var(--card-bg-dark-mode);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-color-dark-bg);
}

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

.page-jackpot-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-jackpot-games__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  line-height: 1;
}

.page-jackpot-games__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-color-dark-bg);
}

/* 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;
}

/* CTA Section */
.page-jackpot-games__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--primary-color);
}

.page-jackpot-games__cta-section .page-jackpot-games__section-title {
  color: var(--text-color-dark-bg);
  margin-bottom: 20px;
}

.page-jackpot-games__cta-section .page-jackpot-games__text-block {
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-color-dark-bg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-jackpot-games__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-jackpot-games__section-title {
    font-size: 2em;
  }
  .page-jackpot-games__hero-content {
    padding: 0 15px;
  }
  .page-jackpot-games__cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary {
    width: 80%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-jackpot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-jackpot-games__description {
    font-size: 1.1em;
  }
  .page-jackpot-games__text-block {
    font-size: 1em;
  }

  /* Mobile 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__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-jackpot-games__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
    padding-left: 0;
    padding-right: 0;
  }

  /* Mobile button responsiveness */
  .page-jackpot-games__cta-button,
  .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__cta-buttons,
  .page-jackpot-games__button-group,
  .page-jackpot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking on mobile */
  }

  .page-jackpot-games__features-grid,
  .page-jackpot-games__game-list,
  .page-jackpot-games__strategy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-jackpot-games__about-section,
  .page-jackpot-games__features-section,
  .page-jackpot-games__popular-games,
  .page-jackpot-games__guide-section,
  .page-jackpot-games__strategy-section,
  .page-jackpot-games__faq-section,
  .page-jackpot-games__cta-section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .page-jackpot-games__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-jackpot-games__description {
    font-size: 1em;
  }
  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-jackpot-games__btn-large {
    font-size: 1em;
  }
}