/* style/jackpot-games.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-color: #C30808;
  --login-button-color: #C30808;
  --background-color: #FFFFFF;
  --register-login-font-color: #FFFF00;
}

.page-jackpot-games {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
}

.page-jackpot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-jackpot-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-jackpot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative; /* Ensure content is above any potential background effect */
  z-index: 2;
}

.page-jackpot-games__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-jackpot-games__hero-description {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  margin-bottom: 30px;
  color: var(--secondary-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.page-jackpot-games__btn-primary {
  background: var(--register-button-color);
  color: var(--register-login-font-color);
  border-color: var(--register-button-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__btn-primary:hover {
  background: #a80707;
  border-color: #a80707;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__btn-secondary {
  background: var(--login-button-color);
  color: var(--register-login-font-color);
  border-color: var(--login-button-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__btn-secondary:hover {
  background: #a80707;
  border-color: #a80707;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-jackpot-games__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-jackpot-games__text-block {
  font-size: 1.1rem;
  margin-bottom: 30px;
  text-align: justify;
  color: #333333;
}

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

.page-jackpot-games__feature-card,
.page-jackpot-games__game-type-card,
.page-jackpot-games__promo-card {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-jackpot-games__feature-card:hover,
.page-jackpot-games__game-type-card:hover,
.page-jackpot-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-jackpot-games__feature-image,
.page-jackpot-games__game-type-image,
.page-jackpot-games__promo-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-jackpot-games__feature-title,
.page-jackpot-games__game-type-title,
.page-jackpot-games__promo-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-jackpot-games__feature-description,
.page-jackpot-games__game-type-description,
.page-jackpot-games__promo-description {
  font-size: 1rem;
  color: #555555;
}

.page-jackpot-games__cta-block {
  text-align: center;
  margin-top: 50px;
  padding: 40px;
  background: linear-gradient(90deg, #017439, #02984B);
  border-radius: 12px;
  color: var(--secondary-color);
}

.page-jackpot-games__cta-text {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--secondary-color);
}

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

.page-jackpot-games__step-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-jackpot-games__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__step-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-jackpot-games__step-description {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-jackpot-games__subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-jackpot-games__list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

.page-jackpot-games__list li {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 1.05rem;
}

.page-jackpot-games__list li::before {
  content: '✓';
  color: var(--register-login-font-color);
  font-weight: 700;
  margin-right: 10px;
  font-size: 1.2rem;
}

.page-jackpot-games__why-choose-item {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
  color: #333333;
}

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

.page-jackpot-games__why-choose-description {
  font-size: 1rem;
  color: #555555;
}

.page-jackpot-games__faq-section {
  padding: 60px 20px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

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

.page-jackpot-games__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--secondary-color);
}

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--secondary-color);
}

.page-jackpot-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-jackpot-games__faq-toggle {
  font-size: 1.8rem;
  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;
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.6;
}

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

.page-jackpot-games__faq-item summary {
  list-style: none;
}

.page-jackpot-games__cta-final-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--background-color);
}

/* Color contrast classes */
.page-jackpot-games__dark-section {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-jackpot-games__light-bg {
  background-color: var(--background-color);
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-jackpot-games__hero-section {
    padding: 10px 15px 50px;
  }

  .page-jackpot-games__content-area {
    padding: 40px 15px;
  }

  .page-jackpot-games__section-title {
    margin-bottom: 30px;
  }

  .page-jackpot-games__cta-block {
    padding: 30px;
  }

  .page-jackpot-games__faq-section {
    padding: 40px 15px;
  }
}

@media (max-width: 768px) {
  .page-jackpot-games__hero-section {
    padding: 10px 15px 40px;
  }

  .page-jackpot-games__main-title {
    font-size: 2.2rem;
  }

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

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

  .page-jackpot-games__btn-primary,
  .page-jackpot-games__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-jackpot-games__cta-buttons,
  .page-jackpot-games__button-group,
  .page-jackpot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-jackpot-games__content-area {
    padding: 30px 15px;
  }

  .page-jackpot-games__section-title {
    font-size: 2rem;
    margin-bottom: 25px;
  }

  .page-jackpot-games__text-block {
    font-size: 1rem;
  }

  .page-jackpot-games__features-grid,
  .page-jackpot-games__game-types-grid,
  .page-jackpot-games__promo-grid,
  .page-jackpot-games__why-choose-grid,
  .page-jackpot-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-jackpot-games__feature-card,
  .page-jackpot-games__game-type-card,
  .page-jackpot-games__promo-card,
  .page-jackpot-games__step-card,
  .page-jackpot-games__why-choose-item {
    padding: 25px;
  }

  .page-jackpot-games__feature-image,
  .page-jackpot-games__game-type-image,
  .page-jackpot-games__promo-image,
  .page-jackpot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-jackpot-games__section,
  .page-jackpot-games__card,
  .page-jackpot-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-jackpot-games__list li {
    font-size: 0.95rem;
    padding: 12px 15px;
  }

  .page-jackpot-games__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

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

  .page-jackpot-games__cta-final-section {
    padding: 60px 15px;
  }
}

@media (max-width: 480px) {
  .page-jackpot-games__main-title {
    font-size: 1.8rem;
  }

  .page-jackpot-games__section-title {
    font-size: 1.6rem;
  }

  .page-jackpot-games__cta-text {
    font-size: 1.2rem;
  }

  .page-jackpot-games__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }

  .page-jackpot-games__step-title {
    font-size: 1.4rem;
  }
}