/* style/jackpots.css */

/* Variables and Base Styles */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #f0f0f0;
  --button-register: #C30808;
  --button-login: #C30808;
  --button-font-color: #FFFF00; /* For register/login buttons specifically */
  --background-white: #FFFFFF;
}

.page-jackpots {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--background-white); /* Default body background is white */
}

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

.page-jackpots__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-jackpots__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--button-register); /* Use a strong accent color */
  border-radius: 2px;
}

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

/* Color Contrast Handling (Smart Backgrounds) */
.page-jackpots__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light); /* Light text on dark background */
}

.page-jackpots__dark-bg .page-jackpots__section-title {
  color: var(--secondary-color);
}

.page-jackpots__dark-bg .page-jackpots__section-title::after {
  background-color: var(--button-font-color); /* Yellow accent for dark background title */
}

.page-jackpots__light-bg {
  background-color: var(--background-white);
  color: var(--text-dark); /* Dark text on light background */
}

/* Buttons */
.page-jackpots__btn-primary,
.page-jackpots__btn-secondary,
.page-jackpots__btn-play {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-jackpots__btn-primary {
  background-color: var(--button-register); /* Red for primary action */
  color: var(--button-font-color); /* Yellow text for primary button */
  border: 2px solid var(--button-register);
}

.page-jackpots__btn-primary:hover {
  background-color: #a00606; /* Darker red on hover */
  border-color: #a00606;
}

.page-jackpots__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-jackpots__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-jackpots__btn-play {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
  font-size: 0.9em;
  padding: 8px 15px;
}

.page-jackpots__btn-play:hover {
  background-color: #005a2e; /* Darker green on hover */
  border-color: #005a2e;
}

.page-jackpots__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-jackpots__cta-buttons--center {
  justify-content: center;
}

/* Hero Section */
.page-jackpots__hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--secondary-color);
  text-align: center;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero */
}

.page-jackpots__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 1;
}

.page-jackpots__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-jackpots__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-jackpots__hero-description {
  font-size: 1.5em;
  margin-bottom: 30px;
  color: var(--text-light);
}

/* About Jackpots Section */
.page-jackpots__about-jackpots {
  padding: 60px 0;
}

.page-jackpots__image-text-group {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.page-jackpots__image-inline {
  flex: 1;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-jackpots__image-text-group .page-jackpots__text-block {
  flex: 1;
  margin-bottom: 0;
}

/* Game Features Section */
.page-jackpots__game-features {
  padding: 60px 0;
}

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

.page-jackpots__feature-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--text-dark);
}

.page-jackpots__feature-card:hover {
  transform: translateY(-10px);
}

.page-jackpots__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-jackpots__card-text {
  font-size: 1em;
  line-height: 1.7;
}

/* How to Play Section */
.page-jackpots__how-to-play {
  padding: 60px 0;
}

.page-jackpots__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-jackpots__step-item {
  background-color: var(--secondary-color);
  padding: 25px;
  margin-bottom: 20px;
  border-left: 5px solid var(--primary-color);
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.page-jackpots__step-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-jackpots__step-text a {
  color: var(--button-register);
  text-decoration: none;
  font-weight: bold;
}

.page-jackpots__step-text a:hover {
  text-decoration: underline;
}

/* Popular Games Section */
.page-jackpots__popular-games {
  padding: 60px 0;
}

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

.page-jackpots__game-card {
  background-color: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  color: var(--text-dark);
}

.page-jackpots__game-card:hover {
  transform: translateY(-10px);
}

.page-jackpots__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-jackpots__game-card .page-jackpots__card-title {
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-jackpots__game-card .page-jackpots__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-jackpots__game-card .page-jackpots__card-title a:hover {
  text-decoration: underline;
}

.page-jackpots__game-card .page-jackpots__card-text {
  padding: 0 20px 20px;
  font-size: 0.95em;
  text-align: left;
}

.page-jackpots__game-card .page-jackpots__btn-play {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

.page-jackpots__view-more-cta {
  text-align: center;
  margin-top: 40px;
}

/* Safety & Security Section */
.page-jackpots__safety-security {
  padding: 60px 0;
}

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

.page-jackpots__security-item {
  background-color: #f9f9f9;
  padding: 15px 20px;
  border-radius: 5px;
  border-left: 4px solid var(--primary-color);
  font-size: 1.05em;
  color: var(--text-dark);
}

.page-jackpots__safety-security .page-jackpots__btn-secondary {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-jackpots__faq {
  padding: 60px 0;
}

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

.page-jackpots__faq-item {
  background-color: var(--secondary-color);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: var(--text-dark);
}

.page-jackpots__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--primary-color);
  list-style: none; /* Remove default marker */
}

.page-jackpots__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-jackpots__faq-toggle {
  font-size: 1.5em;
  color: var(--button-register); /* Red for toggle icon */
}

.page-jackpots__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.05em;
  border-top: 1px solid #eee;
}

.page-jackpots__faq-answer p {
  margin-bottom: 0;
}

.page-jackpots__faq-answer a {
  color: var(--button-register);
  text-decoration: none;
  font-weight: bold;
}

.page-jackpots__faq-answer a:hover {
  text-decoration: underline;
}

/* Call to Action Section */
.page-jackpots__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-jackpots__cta-section .page-jackpots__section-title {
  color: var(--secondary-color);
}

.page-jackpots__cta-section .page-jackpots__section-title::after {
  background-color: var(--button-font-color);
}

.page-jackpots__cta-section .page-jackpots__text-block {
  font-size: 1.2em;
  color: var(--text-light);
  max-width: 800px;
  margin: 20px auto 30px;
}

.page-jackpots__text-link {
  color: var(--button-font-color); /* Yellow for links in dark sections */
  text-decoration: underline;
  font-weight: bold;
}

.page-jackpots__text-link:hover {
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-jackpots__hero-title {
    font-size: 3em;
  }
  .page-jackpots__hero-description {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-jackpots__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
    min-height: 400px;
  }

  .page-jackpots__hero-title {
    font-size: 2.2em;
  }
  .page-jackpots__hero-description {
    font-size: 1.1em;
  }

  .page-jackpots__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

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

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

  .page-jackpots__btn-primary,
  .page-jackpots__btn-secondary,
  .page-jackpots__btn-play {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-jackpots__image-text-group {
    flex-direction: column;
  }

  .page-jackpots__image-inline {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  .page-jackpots__feature-card,
  .page-jackpots__game-card,
  .page-jackpots__faq-item {
    margin-left: 15px;
    margin-right: 15px;
    width: calc(100% - 30px);
    box-sizing: border-box;
  }

  .page-jackpots__container {
    padding: 0 15px;
  }
  
  /* All images must be responsive */
  .page-jackpots img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos/buttons must be responsive */
  .page-jackpots__section,
  .page-jackpots__card,
  .page-jackpots__container,
  .page-jackpots__cta-buttons,
  .page-jackpots__game-cards-grid,
  .page-jackpots__features-grid,
  .page-jackpots__security-list,
  .page-jackpots__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Adding padding to prevent content from sticking to edges */
    padding-left: 15px; 
    padding-right: 15px;
  }

  /* Specific override for full-width sections that already handle padding */
  .page-jackpots__hero-section,
  .page-jackpots__about-jackpots,
  .page-jackpots__game-features,
  .page-jackpots__how-to-play,
  .page-jackpots__popular-games,
  .page-jackpots__safety-security,
  .page-jackpots__faq,
  .page-jackpots__cta-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Ensure overflow hidden for all content sections to prevent horizontal scroll */
  .page-jackpots__hero-section,
  .page-jackpots__about-jackpots,
  .page-jackpots__game-features,
  .page-jackpots__how-to-play,
  .page-jackpots__popular-games,
  .page-jackpots__safety-security,
  .page-jackpots__faq,
  .page-jackpots__cta-section,
  .page-jackpots__container,
  .page-jackpots__image-text-group,
  .page-jackpots__features-grid,
  .page-jackpots__game-cards-grid,
  .page-jackpots__security-list {
    overflow-x: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-jackpots__hero-title {
    font-size: 1.8em;
  }
  .page-jackpots__hero-description {
    font-size: 1em;
  }
  .page-jackpots__section-title {
    font-size: 1.8em;
  }
  .page-jackpots__btn-primary,
  .page-jackpots__btn-secondary {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}