/* style/jackpots.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-jackpots {
  color: #ffffff; /* Light text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css var(--black-color) */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Fixed header spacing for the first content section */
.page-jackpots__hero-section {
  position: relative;
  width: 100%;
  height: 70vh; /* Responsive height */
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

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

.page-jackpots__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

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

.page-jackpots__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-jackpots__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

/* General section styling */
.page-jackpots__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
}

.page-jackpots__section-description {
  font-size: 1.1em;
  color: #f0f0f0; /* Light text for descriptions */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

/* Dark section styling */
.page-jackpots__dark-section {
  background-color: #1a1a1a; /* A slightly lighter dark for contrast with body if body is very dark */
  padding: 60px 0;
  color: #ffffff;
}

.page-jackpots__dark-section .page-jackpots__section-description {
  color: #e0e0e0;
}

/* Buttons */
.page-jackpots__btn-primary,
.page-jackpots__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure button does not exceed container width */
}

.page-jackpots__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-jackpots__btn-primary:hover {
  background-color: #1e87b7; /* Slightly darker on hover */
  border-color: #1e87b7;
}

.page-jackpots__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-jackpots__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Features grid */
.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: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-jackpots__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-jackpots__feature-text {
  color: #e0e0e0;
}

/* Top Games Section */
.page-jackpots__top-games-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Slightly different dark background */
}

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

.page-jackpots__game-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-jackpots__game-name {
  font-size: 1.6em;
  color: #26A9E0;
  margin: 20px 20px 10px 20px;
}

.page-jackpots__game-name a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-jackpots__game-description {
  color: #e0e0e0;
  padding: 0 20px 20px 20px;
  flex-grow: 1; /* Make description take available space */
}

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

/* How to Play Section */
.page-jackpots__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-jackpots__step-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

.page-jackpots__step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #26A9E0;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  border: 3px solid #1a1a1a;
}

.page-jackpots__step-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-jackpots__step-text {
  color: #e0e0e0;
}

.page-jackpots__step-text a {
  color: #EA7C07; /* Login color for links */
  text-decoration: none;
}

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

.page-jackpots__tips-section {
  margin-top: 60px;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
}

.page-jackpots__tips-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  text-align: center;
}

.page-jackpots__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #e0e0e0;
}

.page-jackpots__tips-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-jackpots__tips-list li::before {
  content: '✓';
  color: #EA7C07; /* Login color for checkmark */
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Promotions Section */
.page-jackpots__promotions-section {
  padding: 60px 0;
  background-color: #0d0d0d;
}

.page-jackpots__promotion-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-jackpots__promotion-card:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image and text */
}

.page-jackpots__promotion-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
  min-width: 300px; /* Ensure image is not too small on desktop */
}

.page-jackpots__promotion-content {
  padding: 30px;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-jackpots__promotion-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-jackpots__promotion-text {
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* Why Choose Section */
.page-jackpots__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-jackpots__advantage-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-jackpots__advantage-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-jackpots__advantage-text {
  color: #e0e0e0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-jackpots__advantage-item .page-jackpots__btn-secondary {
  margin-top: auto; /* Push button to bottom */
  width: 100%;
}

/* Video Section */
.page-jackpots__video-section {
  padding: 60px 0;
  background-color: #0d0d0d;
  position: relative;
}

.page-jackpots__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 40px;
}

.page-jackpots__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block; /* Ensure no extra space below video */
  cursor: pointer; /* Indicate video is clickable */
}

.page-jackpots__video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Make it clickable over controls if needed */
    cursor: pointer;
}


/* FAQ Section */
.page-jackpots__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

.page-jackpots__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-jackpots__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-jackpots__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-jackpots__faq-question h3 {
  font-size: 1.2em;
  color: #26A9E0;
  margin: 0;
}

.page-jackpots__faq-toggle {
  font-size: 1.5em;
  color: #EA7C07; /* Login color for toggle */
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-jackpots__faq-item.active .page-jackpots__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  content: '−'; /* Change to minus sign */
}

.page-jackpots__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-jackpots__faq-item.active .page-jackpots__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 20px;
  padding-top: 0; /* Adjust padding for smooth transition */
}

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

/* Call to Action Section */
.page-jackpots__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0; /* Brand color background for CTA */
  color: #ffffff;
}

.page-jackpots__cta-section .page-jackpots__section-title {
  color: #ffffff; /* White title on brand color background */
}

.page-jackpots__cta-section .page-jackpots__section-description {
  color: #f0f0f0;
  margin-bottom: 50px;
}

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

.page-jackpots__cta-section .page-jackpots__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  border-color: #EA7C07;
}

.page-jackpots__cta-section .page-jackpots__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-jackpots__cta-section .page-jackpots__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.page-jackpots__cta-section .page-jackpots__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-jackpots__hero-title {
    font-size: 2.8em;
  }
  .page-jackpots__section-title {
    font-size: 2em;
  }
  .page-jackpots__promotion-card {
    flex-direction: column;
  }
  .page-jackpots__promotion-card:nth-child(even) {
    flex-direction: column;
  }
  .page-jackpots__promotion-image,
  .page-jackpots__promotion-content {
    width: 100%;
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .page-jackpots__hero-section {
    height: 60vh;
    min-height: 400px;
  }
  .page-jackpots__hero-title {
    font-size: 2.2em;
  }
  .page-jackpots__hero-description {
    font-size: 1em;
  }
  .page-jackpots__section-title {
    font-size: 1.8em;
  }
  .page-jackpots__section-description {
    font-size: 0.95em;
  }
  .page-jackpots__container {
    padding: 30px 15px;
  }

  /* Mobile image and video responsiveness */
  .page-jackpots img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-jackpots video,
  .page-jackpots__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}