.page-jackpot-slots {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Inherited from shared.css body */
}

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

.page-jackpot-slots__section-title {
  font-size: 2.5em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-jackpot-slots__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-jackpot-slots__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-jackpot-slots__sub-title {
  font-size: 1.8em;
  color: #FFFFFF;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-jackpot-slots p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-jackpot-slots__btn-primary,
.page-jackpot-slots__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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-jackpot-slots__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-jackpot-slots__btn-primary:hover {
  background-color: #005f2c;
  border-color: #005f2c;
}

.page-jackpot-slots__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-jackpot-slots__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Specific button colors from custom palette */
.page-jackpot-slots__hero-actions .page-jackpot-slots__btn-primary, /* Đăng Ký Ngay */
.page-jackpot-slots__cta-actions .page-jackpot-slots__btn-primary /* Tham Gia Nổ Hũ Ngay */ {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00; /* Register/Login font color */
}

.page-jackpot-slots__hero-actions .page-jackpot-slots__btn-primary:hover,
.page-jackpot-slots__cta-actions .page-jackpot-slots__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-jackpot-slots__hero-actions .page-jackpot-slots__btn-secondary, /* Đăng Nhập */
.page-jackpot-slots__cta-actions .page-jackpot-slots__btn-secondary /* Tìm Hiểu Thêm Về Gamebet */ {
  background-color: transparent;
  border-color: #C30808;
  color: #FFFF00; /* Register/Login font color */
}

.page-jackpot-slots__hero-actions .page-jackpot-slots__btn-secondary:hover,
.page-jackpot-slots__cta-actions .page-jackpot-slots__btn-secondary:hover {
  background-color: #C30808;
  color: #FFFF00;
}


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

.page-jackpot-slots__cta-group {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Hero Section */
.page-jackpot-slots__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding-top: var(--header-offset, 120px);
}

.page-jackpot-slots__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.page-jackpot-slots__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

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

.page-jackpot-slots__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

/* Info Section */
.page-jackpot-slots__info-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Ensure dark background for this section */
  color: #ffffff;
}

.page-jackpot-slots__info-section .page-jackpot-slots__section-title::after {
  background-color: #FFFFFF;
}

.page-jackpot-slots__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-jackpot-slots__content-wrapper .page-jackpot-slots__text-block {
  flex: 1;
}

.page-jackpot-slots__content-wrapper .page-jackpot-slots__image-block {
  flex: 1;
  text-align: center;
}

.page-jackpot-slots__content-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Game Types Section */
.page-jackpot-slots__game-types-section {
  padding: 80px 0;
  background-color: #242424;
}

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

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

.page-jackpot-slots__game-card:hover {
  transform: translateY(-10px);
}

.page-jackpot-slots__game-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-jackpot-slots__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-jackpot-slots__game-card p {
  color: #f0f0f0;
}

/* How to Play Section */
.page-jackpot-slots__how-to-play-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Ensure dark background for this section */
  color: #ffffff;
}

.page-jackpot-slots__how-to-play-section .page-jackpot-slots__section-title::after {
  background-color: #FFFFFF;
}

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

.page-jackpot-slots__step-item {
  background-color: #242424;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-jackpot-slots__step-item:hover {
  transform: translateY(-10px);
}

.page-jackpot-slots__step-icon img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter is applied */
}

.page-jackpot-slots__step-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

/* Strategy Section */
.page-jackpot-slots__strategy-section {
  padding: 80px 0;
  background-color: #242424;
}

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

.page-jackpot-slots__strategy-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-jackpot-slots__strategy-item:hover {
  transform: translateY(-10px);
}

.page-jackpot-slots__strategy-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-jackpot-slots__promotions-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Ensure dark background for this section */
  color: #ffffff;
}

.page-jackpot-slots__promotions-section .page-jackpot-slots__section-title::after {
  background-color: #FFFFFF;
}

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

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

.page-jackpot-slots__promotion-card:hover {
  transform: translateY(-10px);
}

.page-jackpot-slots__promotion-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Security Section */
.page-jackpot-slots__security-section {
  padding: 80px 0;
  background-color: #242424;
}

/* FAQ Section */
.page-jackpot-slots__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Ensure dark background for this section */
  color: #ffffff;
}

.page-jackpot-slots__faq-section .page-jackpot-slots__section-title::after {
  background-color: #FFFFFF;
}

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

.page-jackpot-slots__faq-item {
  background-color: #242424;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-jackpot-slots__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #017439;
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-jackpot-slots__faq-question:hover {
  background-color: #005f2c;
}

.page-jackpot-slots__faq-qtext {
  flex-grow: 1;
  font-size: 1.1em;
}

.page-jackpot-slots__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-jackpot-slots__faq-answer {
  padding: 0 25px;
  background-color: #1a1a1a;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-jackpot-slots__faq-item[open] .page-jackpot-slots__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 20px 25px;
}

.page-jackpot-slots__faq-item[open] .page-jackpot-slots__faq-question {
  background-color: #005f2c;
}

.page-jackpot-slots__faq-item[open] .page-jackpot-slots__faq-toggle {
  content: '−';
}

/* Final CTA Section */
.page-jackpot-slots__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: #242424;
}

.page-jackpot-slots__cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-jackpot-slots__hero-title {
    font-size: 3em;
  }
  .page-jackpot-slots__section-title {
    font-size: 2em;
  }
  .page-jackpot-slots__content-wrapper {
    flex-direction: column;
  }
  .page-jackpot-slots__content-wrapper .page-jackpot-slots__image-block {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-jackpot-slots__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
  }
  .page-jackpot-slots__hero-title {
    font-size: 2.2em;
  }
  .page-jackpot-slots__hero-description {
    font-size: 1em;
  }
  .page-jackpot-slots__btn-primary,
  .page-jackpot-slots__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-jackpot-slots__hero-actions, .page-jackpot-slots__cta-actions, .page-jackpot-slots__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-jackpot-slots__section-title {
    font-size: 1.8em;
  }
  .page-jackpot-slots__section-description {
    font-size: 0.9em;
  }
  .page-jackpot-slots__sub-title {
    font-size: 1.5em;
  }
  .page-jackpot-slots__container {
    padding: 0 15px;
  }
  .page-jackpot-slots img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-jackpot-slots__info-section,
  .page-jackpot-slots__game-types-section,
  .page-jackpot-slots__how-to-play-section,
  .page-jackpot-slots__strategy-section,
  .page-jackpot-slots__promotions-section,
  .page-jackpot-slots__security-section,
  .page-jackpot-slots__faq-section,
  .page-jackpot-slots__cta-final-section {
    padding: 50px 0;
  }
  .page-jackpot-slots__section,
  .page-jackpot-slots__card,
  .page-jackpot-slots__container,
  .page-jackpot-slots__content-wrapper,
  .page-jackpot-slots__game-cards,
  .page-jackpot-slots__steps-list,
  .page-jackpot-slots__strategy-grid,
  .page-jackpot-slots__promotion-grid,
  .page-jackpot-slots__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-jackpot-slots__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-jackpot-slots__faq-answer {
    padding: 15px 20px;
  }
  .page-jackpot-slots__faq-item[open] .page-jackpot-slots__faq-answer {
    padding: 15px 20px;
  }
  /* Content area images CSS dimensions lower bound */
  .page-jackpot-slots img {
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-jackpot-slots__hero-title {
    font-size: 1.8em;
  }
  .page-jackpot-slots__section-title {
    font-size: 1.5em;
  }
  .page-jackpot-slots__hero-actions,
  .page-jackpot-slots__cta-actions {
    flex-direction: column;
    gap: 10px;
  }
}