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

/* Base styles for the page content, assuming body has dark background from shared.css */
.page-jackpots {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Light text on dark background */
  background-color: var(--background-color);
  line-height: 1.6;
}

.page-jackpots__section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

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

.page-jackpots__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem); /* Responsive font size */
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-jackpots__text-block {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-jackpots__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
}

.page-jackpots__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-jackpots__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

.page-jackpots__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font size with clamp */
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-jackpots__hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.8;
}

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

/* Buttons */
.page-jackpots__btn-primary,
.page-jackpots__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-jackpots__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-jackpots__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-jackpots__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-jackpots__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: rgba(var(--gold-color), 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Game Cards */
.page-jackpots__popular-games {
  background-color: var(--deep-green-color);
}

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

.page-jackpots__game-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-jackpots__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.page-jackpots__game-card-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-jackpots__game-card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-jackpots__game-card-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-jackpots__game-card-button {
  width: 80%;
}

.page-jackpots__view-all-games {
  text-align: center;
  margin-top: 50px;
}

/* Lists and Steps */
.page-jackpots__feature-list,
.page-jackpots__step-list,
.page-jackpots__tip-list,
.page-jackpots__promotion-list,
.page-jackpots__security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.page-jackpots__feature-list,
.page-jackpots__promotion-list {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-jackpots__feature-item,
.page-jackpots__promotion-item,
.page-jackpots__security-item {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-jackpots__feature-title,
.page-jackpots__step-title,
.page-jackpots__tip-item strong,
.page-jackpots__promotion-title,
.page-jackpots__security-item strong {
  font-size: 1.3rem;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-jackpots__feature-description,
.page-jackpots__step-description,
.page-jackpots__tip-item,
.page-jackpots__promotion-description,
.page-jackpots__security-item {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-jackpots__step-list {
  counter-reset: step-counter;
  grid-template-columns: 1fr;
}

.page-jackpots__step-item {
  position: relative;
  padding-left: 50px;
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-jackpots__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 15px;
  top: 20px;
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Security Section */
.page-jackpots__security-image {
  display: block;
  margin: 0 auto 40px auto;
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
}

/* FAQ Section */
.page-jackpots__faq-section {
  background-color: var(--deep-green-color);
}

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

.page-jackpots__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-jackpots__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--gold-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

.page-jackpots__faq-item summary:hover {
  background-color: rgba(var(--primary-color), 0.1);
}

.page-jackpots__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-jackpots__faq-item[open] .page-jackpots__faq-toggle {
  content: '−';
}

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

/* Final CTA Section */
.page-jackpots__final-cta {
  text-align: center;
  padding-bottom: 80px;
}

.page-jackpots__final-cta .page-jackpots__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Global image styles */
.page-jackpots img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none; /* Ensure no CSS filter changes original image colors */
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-jackpots__hero-section {
    min-height: 500px;
  }

  .page-jackpots__hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .page-jackpots__game-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-jackpots__section {
    padding: 40px 0;
  }

  .page-jackpots__section-title {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    margin-bottom: 30px;
  }

  .page-jackpots__text-block {
    font-size: 0.95rem;
  }

  .page-jackpots__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
  }

  .page-jackpots__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

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

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

  .page-jackpots__btn-primary,
  .page-jackpots__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-jackpots__game-card-image {
    height: 180px;
  }

  .page-jackpots__feature-list,
  .page-jackpots__promotion-list {
    grid-template-columns: 1fr;
  }

  .page-jackpots__step-item {
    padding-left: 20px;
  }

  .page-jackpots__step-item::before {
    left: 10px;
    top: 15px;
  }

  .page-jackpots__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  /* Mobile image responsiveness */
  .page-jackpots img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-jackpots__section,
  .page-jackpots__card,
  .page-jackpots__container,
  .page-jackpots__hero-content,
  .page-jackpots__game-card,
  .page-jackpots__feature-item,
  .page-jackpots__promotion-item,
  .page-jackpots__step-item,
  .page-jackpots__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Specific overrides for elements that might have padding/margin issues */
  .page-jackpots__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-jackpots__hero-image {
    width: 100% !important;
    height: 100% !important;
  }

  .page-jackpots__cta-button-container,
  .page-jackpots__view-all-games {
    padding-left: 15px;
    padding-right: 15px;
  }
}