/* style/jackpot-games.css */

/* Base styles for the jackpot games page */
.page-jackpot-games {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: var(--background-color, #ffffff);
}

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

.page-jackpot-games__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-jackpot-games__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-jackpot-games__text-block--center {
  text-align: center;
}

.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary,
.page-jackpot-games__card-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-jackpot-games__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-jackpot-games__btn-primary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
}

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

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

.page-jackpot-games__card-button {
  background-color: #EA7C07;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 5px;
}

.page-jackpot-games__card-button:hover {
  background-color: #c96700;
}

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

.page-jackpot-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-jackpot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-jackpot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.page-jackpot-games__main-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-jackpot-games__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-jackpot-games__cta-buttons--center {
  margin-top: 30px;
  margin-bottom: 30px;
}

/* Intro Section */
.page-jackpot-games__intro-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-jackpot-games__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-jackpot-games__content-image--bottom {
  margin-bottom: 0;
}

/* Games Section */
.page-jackpot-games__games-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-jackpot-games__games-section .page-jackpot-games__section-title {
  color: #ffffff;
}

.page-jackpot-games__games-section .page-jackpot-games__text-block {
  color: #f0f0f0;
}

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

.page-jackpot-games__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-jackpot-games__game-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.page-jackpot-games__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-jackpot-games__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-jackpot-games__card-description {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How to Play Section */
.page-jackpot-games__how-to-play-section {
  padding: 80px 0;
  background-color: #f5f5f5;
  color: #333333;
}

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

.page-jackpot-games__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-jackpot-games__step-icon {
  width: 60px;
  height: 60px;
  background-color: #26A9E0;
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

/* Advantages Section */
.page-jackpot-games__advantages-section {
  padding: 80px 0;
  background-color: #000000; /* Darker background for contrast */
  color: #ffffff;
}

.page-jackpot-games__advantages-section .page-jackpot-games__section-title {
  color: #ffffff;
}

.page-jackpot-games__advantages-section .page-jackpot-games__text-block {
  color: #f0f0f0;
}

.page-jackpot-games__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-jackpot-games__advantage-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #26A9E0;
  padding: 20px;
  border-radius: 8px;
  font-size: 16px;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__advantage-item strong {
  color: #ffffff;
}

/* Promotions Section */
.page-jackpot-games__promotions-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-jackpot-games__promo-card {
  background-color: #fcfcfc;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

/* FAQ Section */
.page-jackpot-games__faq-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-jackpot-games__faq-section .page-jackpot-games__section-title {
  color: #ffffff;
}

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

.page-jackpot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-jackpot-games__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  list-style: none; /* Remove default marker */
}

.page-jackpot-games__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit */
}

.page-jackpot-games__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-jackpot-games__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: #f0f0f0;
}

.page-jackpot-games__faq-answer p {
  margin-bottom: 10px;
}

.page-jackpot-games__faq-answer a {
  color: #EA7C07;
  text-decoration: underline;
}

.page-jackpot-games__faq-answer a:hover {
  color: #c96700;
}

/* Conclusion Section */
.page-jackpot-games__conclusion-section {
  padding: 80px 0;
  background-color: #f5f5f5;
  color: #333333;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-jackpot-games__main-title {
    font-size: clamp(32px, 4.5vw, 56px);
  }
  .page-jackpot-games__hero-description {
    font-size: clamp(16px, 2.2vw, 20px);
  }
  .page-jackpot-games__section-title {
    font-size: clamp(26px, 3.2vw, 38px);
  }
}

@media (max-width: 768px) {
  .page-jackpot-games__hero-section {
    min-height: 450px;
    padding-bottom: 40px;
  }
  .page-jackpot-games__main-title {
    font-size: 36px !important;
  }
  .page-jackpot-games__hero-description {
    font-size: 18px !important;
  }
  .page-jackpot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }
  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary,
  .page-jackpot-games__card-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-jackpot-games__container {
    padding: 0 15px;
  }
  .page-jackpot-games__section-title {
    font-size: 28px !important;
    margin-bottom: 30px;
  }
  .page-jackpot-games__text-block {
    font-size: 16px;
  }
  .page-jackpot-games__game-grid,
  .page-jackpot-games__steps-grid,
  .page-jackpot-games__advantage-list,
  .page-jackpot-games__promotion-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-jackpot-games__game-card,
  .page-jackpot-games__step-card,
  .page-jackpot-games__promo-card {
    padding: 20px;
  }
  .page-jackpot-games__card-image {
    height: 180px;
  }
  .page-jackpot-games__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-jackpot-games__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 15px;
  }

  /* Mobile image responsiveness */
  .page-jackpot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-jackpot-games__hero-image-wrapper,
  .page-jackpot-games__section,
  .page-jackpot-games__card,
  .page-jackpot-games__container,
  .page-jackpot-games__game-card,
  .page-jackpot-games__step-card,
  .page-jackpot-games__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-jackpot-games__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-jackpot-games__main-title {
    font-size: 30px !important;
  }
  .page-jackpot-games__hero-description {
    font-size: 16px !important;
  }
  .page-jackpot-games__section-title {
    font-size: 24px !important;
  }
  .page-jackpot-games__hero-section {
    min-height: 350px;
  }
}