.page-jackpot-games {
  --primary-color: #26A9E0;
  --secondary-color: #EA7C07; /* Login color */
  --text-color: #333333;
  --light-bg: #FFFFFF;
  --dark-bg: #26A9E0;
  --border-color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

.page-jackpot-games__light-bg {
  background-color: var(--light-bg);
  color: var(--text-color);
}

.page-jackpot-games__dark-bg {
  background-color: var(--dark-bg);
  color: var(--light-bg);
}

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

.page-jackpot-games__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-jackpot-games__sub-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

.page-jackpot-games__highlight {
  font-weight: bold;
  color: var(--primary-color);
}

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

.page-jackpot-games__hero-container {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-jackpot-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-jackpot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--light-bg);
}

.page-jackpot-games__hero-content h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--light-bg);
}

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

.page-jackpot-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-jackpot-games__cta-button:hover {
  background: darken(var(--secondary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-jackpot-games__feature-card, .page-jackpot-games__game-card, .page-jackpot-games__promo-card {
  background: var(--light-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 20px;
  color: var(--text-color);
}

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

.page-jackpot-games__feature-card img, .page-jackpot-games__game-card img, .page-jackpot-games__promo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-jackpot-games__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
  padding: 0 15px;
}

.page-jackpot-games__feature-card p, .page-jackpot-games__game-card p, .page-jackpot-games__promo-card p {
  font-size: 16px;
  color: var(--text-color);
  padding: 0 15px;
  text-align: justify;
}

/* How to Play Section */
.page-jackpot-games__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-jackpot-games__content-block {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-jackpot-games__ordered-list, .page-jackpot-games__unordered-list {
  margin-left: 20px;
  padding-left: 0;
  list-style-position: inside;
  font-size: 16px;
}

.page-jackpot-games__ordered-list li, .page-jackpot-games__unordered-list li {
  margin-bottom: 10px;
  color: var(--text-color);
}

/* Buttons */
.page-jackpot-games__button-group {
  text-align: center;
  margin-top: 40px;
}

.page-jackpot-games__btn-primary, .page-jackpot-games__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  font-size: 17px;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-jackpot-games__btn-primary {
  background: var(--secondary-color);
  color: var(--light-bg);
  border: 2px solid var(--secondary-color);
}

.page-jackpot-games__btn-primary:hover {
  background: darken(var(--secondary-color), 10%);
  border-color: darken(var(--secondary-color), 10%);
  transform: translateY(-2px);
}

.page-jackpot-games__btn-secondary {
  background: transparent;
  color: var(--light-bg);
  border: 2px solid var(--light-bg);
}

.page-jackpot-games__btn-secondary:hover {
  background: var(--light-bg);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* FAQ Section */
.page-jackpot-games__faq-list {
  margin-top: 30px;
}

details.page-jackpot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--light-bg);
  color: var(--text-color);
}

details.page-jackpot-games__faq-item summary.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-jackpot-games__faq-item summary.page-jackpot-games__faq-question:hover {
  background: #f5f5f5;
}

.page-jackpot-games__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color);
}

.page-jackpot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-jackpot-games__faq-item .page-jackpot-games__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color);
  font-size: 16px;
}

.page-jackpot-games__faq-link {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-jackpot-games__faq-link:hover {
  color: darken(var(--primary-color), 10%);
}

/* Final CTA Section */
.page-jackpot-games__cta-final {
  text-align: center;
  padding: 80px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-jackpot-games__container {
    padding: 30px 15px;
  }
  .page-jackpot-games__hero-content h1 {
    font-size: clamp(28px, 4.5vw, 40px);
  }
  .page-jackpot-games__hero-description {
    font-size: clamp(16px, 2.2vw, 20px);
  }
  .page-jackpot-games__section-title {
    font-size: clamp(24px, 3.5vw, 32px);
  }
  .page-jackpot-games__sub-title {
    font-size: clamp(20px, 2.5vw, 26px);
  }
}

@media (max-width: 768px) {
  .page-jackpot-games__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-jackpot-games__hero-image img {
    border-radius: 4px;
  }
  .page-jackpot-games__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important;
  }
  .page-jackpot-games__features-grid, .page-jackpot-games__game-types-grid, .page-jackpot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-jackpot-games__feature-card img, .page-jackpot-games__game-card img, .page-jackpot-games__promo-card img {
    height: 200px;
  }
  .page-jackpot-games__content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-jackpot-games__text-block {
    font-size: 16px;
  }
  .page-jackpot-games__ordered-list li, .page-jackpot-games__unordered-list li {
    font-size: 15px;
  }
  details.page-jackpot-games__faq-item summary.page-jackpot-games__faq-question { padding: 15px; }
  .page-jackpot-games__faq-qtext { font-size: 15px; }
  .page-jackpot-games__faq-answer { padding: 0 15px 15px; }
  .page-jackpot-games__btn-primary, .page-jackpot-games__btn-secondary {
    width: 100% !important;
    margin: 8px 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-jackpot-games__button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image overflow fix */
  .page-jackpot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}