/* style/jackpot-slots.css */

/* Base Styles & Global Resets within main content */
.page-jackpot-slots {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-jackpot-slots__section {
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.page-jackpot-slots__section-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-jackpot-slots__section-subtitle {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Color Contrast Fixes based on body background */
.page-jackpot-slots__dark-bg {
  background-color: transparent; /* Inherit body background #121212 */
  color: #ffffff;
}

.page-jackpot-slots__light-bg {
  background-color: #ffffff; /* Force light background */
  color: #333333; /* Dark text for light background */
}

.page-jackpot-slots__light-bg .page-jackpot-slots__section-title,
.page-jackpot-slots__light-bg .page-jackpot-slots__section-subtitle {
  color: #017439;
}

/* Buttons */
.page-jackpot-slots__btn-primary,
.page-jackpot-slots__btn-secondary,
.page-jackpot-slots__card-button,
.page-jackpot-slots a[class*="button"],
.page-jackpot-slots a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-jackpot-slots__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-jackpot-slots__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-jackpot-slots__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand color */
  border: 2px solid #017439;
  margin-left: 20px;
}

.page-jackpot-slots__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-jackpot-slots__card-button {
  background-color: #017439;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
}

.page-jackpot-slots__card-button:hover {
  background-color: #005a2d;
}

.page-jackpot-slots__read-more-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  display: inline-block;
}

.page-jackpot-slots__read-more-link:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-jackpot-slots__hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
}

.page-jackpot-slots__hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-jackpot-slots__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  z-index: 2;
}

.page-jackpot-slots__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
}

.page-jackpot-slots__hero-title {
  font-size: 4em;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-jackpot-slots__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-jackpot-slots__hero-buttons .page-jackpot-slots__btn-primary,
.page-jackpot-slots__hero-buttons .page-jackpot-slots__btn-secondary {
  margin: 0 10px;
}

/* About Jackpot Section */
.page-jackpot-slots__about-jackpot {
  background-color: #1a1a1a;
}

.page-jackpot-slots__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-jackpot-slots__content-grid:nth-child(even) {
  flex-direction: row-reverse;
}

.page-jackpot-slots__text-block {
  flex: 1;
}

.page-jackpot-slots__text-block p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-jackpot-slots__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-jackpot-slots__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Popular Games Section */
.page-jackpot-slots__popular-games {
  background-color: #0d0d0d;
}

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

.page-jackpot-slots__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-jackpot-slots__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-jackpot-slots__card-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-jackpot-slots__card-description {
  color: #ccc;
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-jackpot-slots__view-all-games {
  margin-top: 60px;
}

/* How to Play Section */
.page-jackpot-slots__how-to-play {
  background-color: #ffffff;
}

.page-jackpot-slots__how-to-play .page-jackpot-slots__section-title,
.page-jackpot-slots__how-to-play .page-jackpot-slots__section-subtitle {
  color: #017439;
}

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

.page-jackpot-slots__step-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-jackpot-slots__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

.page-jackpot-slots__step-title {
  font-size: 1.5em;
  color: #333333;
  margin-bottom: 10px;
}

.page-jackpot-slots__step-description {
  color: #555;
}

.page-jackpot-slots__cta-bottom {
  margin-top: 60px;
}

/* Promotions Section */
.page-jackpot-slots__promotions {
  background-color: #1a1a1a;
}

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

.page-jackpot-slots__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

/* Why Choose Section */
.page-jackpot-slots__why-choose {
  background-color: #0d0d0d;
}

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

.page-jackpot-slots__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-jackpot-slots__feature-icon {
  width: 120px; /* Increased size from 64x64 to meet min 200x200 via CSS scaling */
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(0, 255, 0, 0.5)); /* Green glow */
}

.page-jackpot-slots__feature-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-jackpot-slots__feature-description {
  color: #ccc;
  font-size: 0.95em;
}

/* Winning Tips Section */
.page-jackpot-slots__winning-tips {
  background-color: #ffffff;
}

.page-jackpot-slots__winning-tips .page-jackpot-slots__section-title,
.page-jackpot-slots__winning-tips .page-jackpot-slots__section-subtitle {
  color: #017439;
}

.page-jackpot-slots__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-jackpot-slots__tip-item {
  background-color: #f8f8f8;
  border-left: 5px solid #017439;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  color: #333333;
  font-size: 1.1em;
}

.page-jackpot-slots__tip-item strong {
  color: #017439;
}

/* FAQ Section */
.page-jackpot-slots__faq-section {
  background-color: #1a1a1a;
}

.page-jackpot-slots__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: left;
}

.page-jackpot-slots__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-jackpot-slots__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

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

.page-jackpot-slots__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-jackpot-slots__faq-item.active .page-jackpot-slots__faq-toggle {
  transform: rotate(45deg); /* Plus to X/Minus */
}

.page-jackpot-slots__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #ccc;
}

.page-jackpot-slots__faq-item.active .page-jackpot-slots__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

/* Final CTA Section */
.page-jackpot-slots__final-cta {
  background-color: #017439;
  padding: 100px 0;
}

.page-jackpot-slots__final-cta .page-jackpot-slots__section-title,
.page-jackpot-slots__final-cta .page-jackpot-slots__section-subtitle {
  color: #ffffff;
}

.page-jackpot-slots__final-buttons {
  margin-top: 40px;
}

.page-jackpot-slots__final-buttons .page-jackpot-slots__btn-primary {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00;
}

.page-jackpot-slots__final-buttons .page-jackpot-slots__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border-color: #ffffff;
}

.page-jackpot-slots__final-buttons .page-jackpot-slots__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #017439;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-jackpot-slots__hero-title {
    font-size: 3.5em;
  }
  .page-jackpot-slots__section-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-jackpot-slots {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-jackpot-slots__hero-section {
    height: 60vh;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  
  .page-jackpot-slots__hero-title {
    font-size: 2.5em;
  }
  
  .page-jackpot-slots__hero-description {
    font-size: 1.1em;
  }
  
  .page-jackpot-slots__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-jackpot-slots__hero-buttons .page-jackpot-slots__btn-primary,
  .page-jackpot-slots__hero-buttons .page-jackpot-slots__btn-secondary {
    margin: 0;
    width: 100%;
  }

  .page-jackpot-slots__btn-secondary {
    margin-left: 0;
  }

  .page-jackpot-slots__section {
    padding: 60px 0;
  }

  .page-jackpot-slots__section-title {
    font-size: 2em;
  }

  .page-jackpot-slots__section-subtitle {
    font-size: 1em;
  }

  .page-jackpot-slots__content-grid {
    flex-direction: column;
  }

  .page-jackpot-slots__game-cards-grid,
  .page-jackpot-slots__steps-grid,
  .page-jackpot-slots__promo-cards-grid,
  .page-jackpot-slots__features-grid {
    grid-template-columns: 1fr;
  }

  .page-jackpot-slots__cta-bottom,
  .page-jackpot-slots__view-all-games,
  .page-jackpot-slots__final-buttons {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .page-jackpot-slots__final-buttons .page-jackpot-slots__btn-primary,
  .page-jackpot-slots__final-buttons .page-jackpot-slots__btn-secondary {
    width: 100%;
    margin-left: 0;
  }

  /* Image and Video Responsive */
  .page-jackpot-slots img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-jackpot-slots__section,
  .page-jackpot-slots__card,
  .page-jackpot-slots__container,
  .page-jackpot-slots__game-card,
  .page-jackpot-slots__promo-card,
  .page-jackpot-slots__feature-item,
  .page-jackpot-slots__faq-item,
  .page-jackpot-slots__hero-buttons,
  .page-jackpot-slots__final-buttons,
  .page-jackpot-slots__view-all-games,
  .page-jackpot-slots__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-jackpot-slots__hero-section .page-jackpot-slots__container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-jackpot-slots__faq-question,
  .page-jackpot-slots__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-jackpot-slots__feature-icon {
    width: 100px; /* Adjust icon size for mobile */
    height: 100px;
  }

  .page-jackpot-slots__tips-list {
    padding-left: 15px;
    padding-right: 15px;
  }
}