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

.page-jackpot-slots {
  color: var(--text-main-color); /* Default text color for dark body background */
  background-color: var(--bg-color-dark);
}

.page-jackpot-slots__dark-bg {
  background-color: var(--bg-color-dark);
  color: var(--text-main-color);
}

.page-jackpot-slots__light-bg {
  background-color: var(--text-main-color);
  color: #333333; /* Dark text for light background */
}

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

.page-jackpot-slots__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px;
  overflow: hidden;
}

.page-jackpot-slots__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-jackpot-slots__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for better text contrast */
}

.page-jackpot-slots__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 800px;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-jackpot-slots__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main-color);
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-jackpot-slots__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
}

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

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

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

.page-jackpot-slots__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-jackpot-slots__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-jackpot-slots__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.page-jackpot-slots__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: inherit;
}

.page-jackpot-slots__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: inherit;
}

.page-jackpot-slots__text-main {
  color: var(--text-main-color);
}

.page-jackpot-slots__text-secondary {
  color: var(--text-secondary-color);
}

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

.page-jackpot-slots__grid--two-cols {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.page-jackpot-slots__card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-jackpot-slots__card-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-jackpot-slots__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-jackpot-slots__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-jackpot-slots__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

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

.page-jackpot-slots__game-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

.page-jackpot-slots__game-image {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-jackpot-slots__game-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-jackpot-slots__game-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary-color);
  margin-bottom: 15px;
}

.page-jackpot-slots__view-all {
  text-align: center;
  margin-top: 40px;
}

.page-jackpot-slots__benefit-item {
  text-align: center;
  padding: 20px;
  background-color: var(--card-bg-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-jackpot-slots__benefit-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-jackpot-slots__benefit-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-jackpot-slots__benefit-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary-color);
}

.page-jackpot-slots__download-app {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-jackpot-slots__download-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.page-jackpot-slots__app-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-jackpot-slots__app-features li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #333333;
  margin-bottom: 10px;
}

.page-jackpot-slots__icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  filter: invert(30%) sepia(80%) saturate(2000%) hue-rotate(80deg) brightness(90%) contrast(100%); /* Example filter for green icon */
}

/* Ensure icons are not too small */
.page-jackpot-slots__icon--mobile { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2311A84E"><path d="M17 1H7C5.9 1 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-5 18c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm5-16H7V4h10v-1z"/></svg>'); }
.page-jackpot-slots__icon--fast { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2311A84E"><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.25 21.23 10.5 22 13 22c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"/></svg>'); }
.page-jackpot-slots__icon--secure { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2311A84E"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.7-7 8.94V12H5V6.3l7-3.11v8.79z"/></svg>'); }
.page-jackpot-slots__icon--bonus { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2311A84E"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>'); }

.page-jackpot-slots__download-image {
  text-align: center;
}

.page-jackpot-slots__app-mockup {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.page-jackpot-slots__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  color: var(--text-secondary-color);
}

.page-jackpot-slots__tips-list li {
  background-color: var(--card-bg-color);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main-color);
}

.page-jackpot-slots__tips-list li strong {
  color: var(--gold-color);
}

.page-jackpot-slots__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-jackpot-slots__promo-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

.page-jackpot-slots__promo-image {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-jackpot-slots__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-jackpot-slots__promo-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary-color);
  margin-bottom: 15px;
}

.page-jackpot-slots__faq-list {
  margin-top: 30px;
}

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

.page-jackpot-slots__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main-color);
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--divider-color);
}

.page-jackpot-slots__faq-question:hover {
  background-color: var(--primary-color);
}

.page-jackpot-slots__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 10px;
  color: var(--gold-color);
}

.page-jackpot-slots__faq-item[open] .page-jackpot-slots__faq-question {
  border-bottom: 1px solid var(--primary-color);
}

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

/* Details element specific styling */
.page-jackpot-slots__faq-item summary {
  list-style: none;
}

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

.page-jackpot-slots__cta-section {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-jackpot-slots__container {
    padding: 20px 15px;
  }

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

  .page-jackpot-slots__hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
  }

  .page-jackpot-slots__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

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

  .page-jackpot-slots__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-jackpot-slots__btn-primary,
  .page-jackpot-slots__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-jackpot-slots__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 20px;
  }

  .page-jackpot-slots__grid,
  .page-jackpot-slots__grid--two-cols,
  .page-jackpot-slots__game-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-jackpot-slots__card,
  .page-jackpot-slots__game-card,
  .page-jackpot-slots__promo-card,
  .page-jackpot-slots__benefit-item {
    padding: 20px;
  }

  .page-jackpot-slots__card-title,
  .page-jackpot-slots__game-title,
  .page-jackpot-slots__promo-title,
  .page-jackpot-slots__benefit-title {
    font-size: 1.3rem;
  }

  .page-jackpot-slots__download-app .page-jackpot-slots__grid--two-cols {
    grid-template-columns: 1fr;
    flex-direction: column-reverse; /* image above text for download section */
  }

  .page-jackpot-slots__download-image {
    margin-bottom: 30px;
  }

  .page-jackpot-slots__app-mockup {
    max-width: 80%;
  }

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

  .page-jackpot-slots__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-jackpot-slots__faq-answer {
    padding: 15px;
    font-size: 0.9rem;
  }

  /* Mobile image and video responsive rules */
  .page-jackpot-slots img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-jackpot-slots video,
  .page-jackpot-slots__video {
    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__hero-image-wrapper,
  .page-jackpot-slots__download-app .page-jackpot-slots__grid--two-cols,
  .page-jackpot-slots__video-section,
  .page-jackpot-slots__video-container,
  .page-jackpot-slots__video-wrapper,
  .page-jackpot-slots__cta-buttons,
  .page-jackpot-slots__button-group,
  .page-jackpot-slots__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Container already has padding */
    /* padding-right: 15px; */ /* Container already has padding */
    overflow: hidden !important;
  }

  .page-jackpot-slots__video-section {
    padding-top: 10px !important;
  }

  .page-jackpot-slots__icon {
    filter: invert(30%) sepia(80%) saturate(2000%) hue-rotate(80deg) brightness(90%) contrast(100%) !important; /* Re-apply filter for icons */
  }

  .page-jackpot-slots__hero-image {
    filter: brightness(0.7) !important; /* Adjust brightness for mobile */
  }
}

/* Icon color filter must be applied to the SVG background-image, not the element itself if it affects color */
/* The filter for icons above is an example. If icons are simple SVGs, fill property should be used */

/* Ensure no filter is used on general images */
.page-jackpot-slots img:not(.page-jackpot-slots__hero-image) {
  filter: none !important;
}

.page-jackpot-slots__hero-content {
  /* For contrast fix if hero image is too bright */
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-main-color);
}

/* Contrast fixes for light background sections */
.page-jackpot-slots__light-bg .page-jackpot-slots__section-title,
.page-jackpot-slots__light-bg .page-jackpot-slots__text-block,
.page-jackpot-slots__light-bg .page-jackpot-slots__app-features li,
.page-jackpot-slots__light-bg .page-jackpot-slots__app-features li i {
  color: #333333;
}

.page-jackpot-slots__light-bg .page-jackpot-slots__icon {
  filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%); /* Make icon dark for light background */
}