/* style/jackpot-games.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần lặp lại */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
  --login-button-color: #EA7C07;
  --background-color: #FFFFFF;
  --black-color: #000000;
}

.page-jackpot-games {
  font-family: 'Arial', sans-serif;
  color: var(--light-text-color); /* Default text color for dark body background */
  line-height: 1.6;
}

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

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

.page-jackpot-games__dark-section {
  background: var(--primary-color);
  color: var(--light-text-color);
}

.page-jackpot-games__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-jackpot-games__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-jackpot-games__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-jackpot-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--light-text-color);
}

.page-jackpot-games__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--light-text-color);
}

/* General Sections */
.page-jackpot-games__section {
  padding: 60px 0;
  background: var(--background-color);
  color: var(--dark-text-color);
}

.page-jackpot-games__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-jackpot-games__paragraph {
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-jackpot-games__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-jackpot-games__list-item {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* Image and Content Layout */
.page-jackpot-games__image-and-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-jackpot-games__image-and-content--reverse {
  flex-direction: row-reverse;
}

.page-jackpot-games__image-block {
  flex: 1;
  min-width: 300px;
}

.page-jackpot-games__content-block {
  flex: 1;
}

.page-jackpot-games__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* How-to-play Steps */
.page-jackpot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-jackpot-games__step-card {
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: var(--dark-text-color);
}

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

.page-jackpot-games__step-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-jackpot-games__step-description {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Promotions */
.page-jackpot-games__promotions {
  background: #f8f8f8;
}

.page-jackpot-games__promotion-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 40px;
  color: var(--dark-text-color);
}

.page-jackpot-games__promotion-card--reverse {
  flex-direction: row-reverse;
}

.page-jackpot-games__promotion-image {
  flex: 1;
  min-width: 300px;
  height: auto;
  border-radius: 8px;
  display: block;
}

.page-jackpot-games__promotion-content {
  flex: 2;
}

.page-jackpot-games__promotion-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

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

.page-jackpot-games__tip-card {
  background: var(--secondary-color);
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: var(--dark-text-color);
}

.page-jackpot-games__tip-title {
  font-size: 1.3rem;
  color: var(--dark-text-color);
  margin-bottom: 10px;
}

/* FAQ */
.page-jackpot-games__faq {
  background: #f2f2f2;
}

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

.page-jackpot-games__faq-item {
  background: var(--secondary-color);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: var(--dark-text-color);
}

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  background: var(--secondary-color);
  border-bottom: 1px solid #eee;
  color: var(--dark-text-color);
  list-style: none;
}

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

.page-jackpot-games__faq-qtext {
  flex-grow: 1;
}

.page-jackpot-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

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

.page-jackpot-games__faq-answer {
  padding: 15px 20px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

/* CTA Final Section */
.page-jackpot-games__cta-final {
  padding: 80px 0;
  text-align: center;
  background: var(--primary-color);
  color: var(--light-text-color);
}

/* Buttons */
.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary,
.page-jackpot-games__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-jackpot-games__btn-primary {
  background: var(--login-button-color); /* Use login color for primary CTA */
  color: var(--light-text-color);
  border: 2px solid var(--login-button-color);
}

.page-jackpot-games__btn-primary:hover {
  background: darken(var(--login-button-color), 10%); /* Example hover effect */
  border-color: darken(var(--login-button-color), 10%);
}

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

.page-jackpot-games__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-jackpot-games__btn-small {
  padding: 8px 15px;
  font-size: 0.9rem;
  background: var(--primary-color);
  color: var(--light-text-color);
  border: 2px solid var(--primary-color);
  margin-top: 15px;
}

.page-jackpot-games__btn-small:hover {
  background: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-jackpot-games__image-and-content,
  .page-jackpot-games__promotion-card {
    flex-direction: column;
    text-align: center;
  }

  .page-jackpot-games__image-and-content--reverse {
    flex-direction: column;
  }

  .page-jackpot-games__promotion-card--reverse {
    flex-direction: column;
  }

  .page-jackpot-games__promotion-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-jackpot-games__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

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

  .page-jackpot-games__promotion-title {
    font-size: 1.5rem;
  }

  .page-jackpot-games__hero-section,
  .page-jackpot-games__section {
    padding: 40px 0;
  }

  .page-jackpot-games__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile image responsiveness */
  .page-jackpot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-jackpot-games__hero-image-wrapper,
  .page-jackpot-games__image-block,
  .page-jackpot-games__promotion-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-jackpot-games__btn-primary,
  .page-jackpot-games__btn-secondary,
  .page-jackpot-games__btn-small,
  .page-jackpot-games a[class*="button"],
  .page-jackpot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .page-jackpot-games__hero-content .page-jackpot-games__btn-primary {
    margin-top: 20px;
  }

  .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-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-jackpot-games__video-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-jackpot-games__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-jackpot-games__faq-answer {
    padding: 10px 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-jackpot-games__hero-section {
    padding: 30px 0;
    padding-top: 10px;
  }

  .page-jackpot-games__section {
    padding: 30px 0;
  }

  .page-jackpot-games__main-title {
    font-size: clamp(1.8rem, 10vw, 2.2rem);
  }

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

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

  .page-jackpot-games__promotion-title {
    font-size: 1.3rem;
  }

  .page-jackpot-games__promotion-card {
    padding: 20px;
  }

  .page-jackpot-games__step-card {
    padding: 20px;
  }
}