/* style/jackpot.css */

/* Đảm bảo nội dung không bị che bởi fixed header */
.page-jackpot {
  padding-top: 120px; /* Cho desktop */
  color: #ffffff; /* Màu chữ mặc định cho nền tối */
  background-color: #000000; /* Nền đen */
}

@media (max-width: 768px) {
  .page-jackpot {
    padding-top: 100px; /* Cho mobile */
  }
}

/* Hero Banner Section */
.page-jackpot__hero-banner {
  width: 100%;
  padding: 60px 20px;
  background: linear-gradient(90deg, #DC143C, #FFD700);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-jackpot__hero-container {
  max-width: 1400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-jackpot__hero-text-content {
  flex: 1;
  max-width: 600px;
}

.page-jackpot__hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-jackpot__hero-description {
  font-size: 18px;
  color: #f0f0f0;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-jackpot__hero-actions {
  display: flex;
  gap: 20px;
}

.page-jackpot__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-jackpot__btn--primary {
  background-color: #FFD700;
  color: #000000;
  border: 2px solid #FFD700;
}

.page-jackpot__btn--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-jackpot__btn--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-jackpot__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-jackpot__btn--small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
}

.page-jackpot__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.page-jackpot__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* General Container & Titles */
.page-jackpot__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-jackpot__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-jackpot__section-description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

/* Introduction Section */
.page-jackpot__introduction-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-jackpot__intro-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-jackpot__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-jackpot__feature-item:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-jackpot__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-jackpot__feature-title {
  font-size: 24px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-jackpot__feature-text {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.6;
}

/* Why Choose Section */
.page-jackpot__why-choose-section {
  padding: 80px 0;
  background-color: #000000;
}

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

.page-jackpot__why-choose-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-jackpot__why-choose-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-jackpot__why-choose-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-jackpot__why-choose-text {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
}

/* Game Showcase Section */
.page-jackpot__game-showcase-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-jackpot__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.page-jackpot__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-jackpot__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-jackpot__game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-jackpot__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-jackpot__game-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  padding: 15px 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: rgba(255, 255, 255, 0.05);
}

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

/* How to Play Section */
.page-jackpot__how-to-play-section {
  padding: 80px 0;
  background-color: #000000;
}

.page-jackpot__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-jackpot__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-jackpot__step-number {
  width: 50px;
  height: 50px;
  background-color: #DC143C;
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
}

.page-jackpot__step-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-jackpot__step-text {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-jackpot__tips-section {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 12px;
  margin-top: 60px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-jackpot__tips-title {
  font-size: 26px;
  font-weight: 600;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
}

.page-jackpot__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.page-jackpot__tips-list li {
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.page-jackpot__list-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  object-fit: contain;
}

/* Promotions Section */
.page-jackpot__promotions-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-jackpot__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.page-jackpot__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-jackpot__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-jackpot__promo-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFD700;
  padding: 20px 20px 10px 20px;
}

.page-jackpot__promo-text {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-jackpot__promo-card .page-jackpot__btn {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
}

/* FAQ Section */
.page-jackpot__faq-section {
  padding: 80px 0;
  background-color: #000000;
}

.page-jackpot__faq-list {
  margin-top: 50px;
}

.page-jackpot__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-jackpot__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-jackpot__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-jackpot__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-jackpot__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-jackpot__faq-item.active .page-jackpot__faq-toggle {
  color: #DC143C;
  transform: rotate(45deg);
}

.page-jackpot__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-jackpot__faq-item.active .page-jackpot__faq-answer {
  max-height: 2000px !important; /* Ensure enough space for content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-jackpot__faq-answer p {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  margin: 0;
}

/* Contact Section */
.page-jackpot__contact-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  text-align: center;
}

.page-jackpot__contact-info {
  margin-top: 40px;
  font-size: 18px;
  color: #f0f0f0;
  line-height: 1.8;
}

.page-jackpot__contact-info strong {
  color: #FFD700;
}

.page-jackpot__contact-info a {
  color: #DC143C;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-jackpot__contact-info a:hover {
  color: #FFD700;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-jackpot__hero-title {
    font-size: 40px;
  }

  .page-jackpot__hero-description {
    font-size: 16px;
  }

  .page-jackpot__section-title {
    font-size: 32px;
  }

  .page-jackpot__section-description {
    font-size: 16px;
  }

  .page-jackpot__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .page-jackpot__game-card-image {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .page-jackpot__hero-banner {
    padding: 40px 15px;
  }

  .page-jackpot__hero-container {
    flex-direction: column-reverse;
    gap: 30px;
    text-align: center;
  }

  .page-jackpot__hero-text-content {
    max-width: 100%;
  }

  .page-jackpot__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-jackpot__hero-description {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .page-jackpot__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-jackpot__btn {
    width: 100%;
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-jackpot__hero-image-wrapper {
    justify-content: center;
  }

  .page-jackpot__hero-image {
    width: 100%;
    height: auto;
    max-width: 100% !important;
  }

  .page-jackpot__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-jackpot__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-jackpot__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-jackpot__intro-features,
  .page-jackpot__why-choose-grid,
  .page-jackpot__step-by-step,
  .page-jackpot__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-jackpot__feature-icon,
  .page-jackpot__why-choose-icon {
    width: 50px;
    height: 50px;
  }

  .page-jackpot__feature-title,
  .page-jackpot__why-choose-title {
    font-size: 20px;
  }

  .page-jackpot__feature-text,
  .page-jackpot__why-choose-text {
    font-size: 14px;
  }

  .page-jackpot__game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-jackpot__game-card-image {
    height: 120px;
  }

  .page-jackpot__game-card-title {
    font-size: 16px;
    padding: 12px 8px;
  }

  .page-jackpot__step-number {
    width: 40px;
    height: 40px;
    font-size: 24px;
    margin-bottom: 15px;
  }

  .page-jackpot__step-title {
    font-size: 18px;
  }

  .page-jackpot__step-text {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .page-jackpot__tips-section {
    padding: 30px;
    margin-top: 40px;
  }

  .page-jackpot__tips-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .page-jackpot__tips-list li {
    font-size: 14px;
  }

  .page-jackpot__list-icon {
    width: 20px;
    height: 20px;
  }

  .page-jackpot__promo-image {
    height: 180px;
  }

  .page-jackpot__promo-title {
    font-size: 20px;
    padding: 15px 15px 8px 15px;
  }

  .page-jackpot__promo-text {
    font-size: 14px;
    padding: 0 15px 15px 15px;
  }

  .page-jackpot__promo-card .page-jackpot__btn {
    margin: 0 15px 15px 15px;
    width: calc(100% - 30px);
  }

  .page-jackpot__faq-question {
    padding: 15px 20px;
  }

  .page-jackpot__faq-question h3 {
    font-size: 16px;
  }

  .page-jackpot__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
    margin-left: 15px;
  }

  .page-jackpot__faq-answer {
    padding: 0 20px;
  }

  .page-jackpot__faq-item.active .page-jackpot__faq-answer {
    padding: 15px 20px !important;
  }

  .page-jackpot__faq-answer p {
    font-size: 14px;
  }

  .page-jackpot__contact-info {
    font-size: 16px;
  }

  /* Ensure all images are responsive on mobile */
  .page-jackpot img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-jackpot__section,
  .page-jackpot__card,
  .page-jackpot__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}