/* style/jackpot-slots.css */

/* Custom properties for colors */
:root {
  --primary-color: #0D1B2A;
  --secondary-color: #E0B941;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark-body: #1a2b3c; /* From shared.css */
}

.page-jackpot-slots {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Body is dark, so use light text */
  line-height: 1.6;
  background-color: var(--bg-dark-body); /* Ensure background is consistent */
}

/* Hero Section */
.page-jackpot-slots__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  background: linear-gradient(135deg, var(--primary-color) 0%, #1f324a 100%);
  overflow: hidden; /* Prevent image overflow */
}

.page-jackpot-slots__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

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

.page-jackpot-slots__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-jackpot-slots__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-jackpot-slots__main-title {
  font-size: 3.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

.page-jackpot-slots__intro-text {
  font-size: 1.2em;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-jackpot-slots__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-jackpot-slots__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 200px; /* Minimum width for buttons */
  box-sizing: border-box;
  text-align: center;
}

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

.page-jackpot-slots__btn-primary:hover {
  background: #d4a83a; /* Darker gold */
  box-shadow: 0 6px 15px rgba(224, 185, 65, 0.4);
  transform: translateY(-3px);
}

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

.page-jackpot-slots__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 6px 15px rgba(224, 185, 65, 0.4);
  transform: translateY(-3px);
}

/* General Section Styles */
.page-jackpot-slots__section {
  padding: 80px 20px;
  text-align: center;
}

.page-jackpot-slots__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-jackpot-slots__section-description {
  font-size: 1.1em;
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-jackpot-slots__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Dark Background Section */
.page-jackpot-slots__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-jackpot-slots__dark-bg .page-jackpot-slots__section-title {
  color: var(--secondary-color);
}

.page-jackpot-slots__dark-bg .page-jackpot-slots__section-description {
  color: #f0f0f0;
}

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

.page-jackpot-slots__feature-card,
.page-jackpot-slots__game-card,
.page-jackpot-slots__promo-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-jackpot-slots__feature-card:hover,
.page-jackpot-slots__game-card:hover,
.page-jackpot-slots__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-jackpot-slots__feature-card img,
.page-jackpot-slots__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for image consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-jackpot-slots__card-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-jackpot-slots__card-title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-jackpot-slots__card-title a:hover {
  color: #fff;
}

.page-jackpot-slots__feature-card p,
.page-jackpot-slots__game-card p,
.page-jackpot-slots__promo-card p {
  color: #f0f0f0;
  font-size: 1em;
  line-height: 1.7;
}

/* How to Play Section */
.page-jackpot-slots__how-to-play-section {
  background-color: #2a3b4c; /* Slightly lighter dark background */
}

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

.page-jackpot-slots__step-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-jackpot-slots__step-icon {
  width: 60px;
  height: 60px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 10px rgba(224, 185, 65, 0.4);
}

.page-jackpot-slots__step-card h3 {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-jackpot-slots__step-card p {
  color: #f0f0f0;
  font-size: 1em;
  margin-bottom: 20px;
}

.page-jackpot-slots__btn-text-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-jackpot-slots__btn-text-link:hover {
  color: #fff;
  border-color: #fff;
}

/* Promotions Section */
.page-jackpot-slots__promotions-section {
  background-color: var(--bg-dark-body);
}

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

.page-jackpot-slots__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.page-jackpot-slots__promo-card .page-jackpot-slots__btn-primary {
  margin-top: 20px;
  width: 100%;
}

/* FAQ Section */
.page-jackpot-slots__faq-section {
  background-color: #2a3b4c; /* Slightly lighter dark background */
  padding-bottom: 100px;
}

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

/* FAQ容器样式 */
.page-jackpot-slots__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--primary-color); /* Darker background for FAQ items */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ默认状态 - 答案隐藏 */
.page-jackpot-slots__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px; /* Adjust padding for dark background */
  opacity: 0;
  color: #e0e0e0; /* Light text for dark background */
  background: #1f324a; /* Slightly lighter than primary for answer bg */
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-jackpot-slots__faq-item.active .page-jackpot-slots__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo độ ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 25px !important; /* Adjust padding for dark background */
  opacity: 1;
  background: #1f324a;
  border-radius: 0 0 8px 8px;
}

/* Vấn đề FAQ */
.page-jackpot-slots__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Adjust padding for dark background */
  background: var(--primary-color);
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-jackpot-slots__faq-question:hover {
  background: #1f324a; /* Slightly lighter on hover */
  border-color: var(--secondary-color);
}

.page-jackpot-slots__faq-question:active {
  background: #2a3b4c;
}

/* Tiêu đề vấn đề FAQ */
.page-jackpot-slots__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light); /* Light text for question */
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
}

/* Biểu tượng chuyển đổi */
.page-jackpot-slots__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* Gold color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--secondary-color);
}

.page-jackpot-slots__faq-item.active .page-jackpot-slots__faq-toggle {
  color: var(--text-light);
  background-color: var(--secondary-color);
  transform: rotate(45deg); /* Xoay để tạo hiệu ứng dấu trừ */
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-jackpot-slots__main-title {
    font-size: 2.8em;
  }
  .page-jackpot-slots__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-jackpot-slots__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-jackpot-slots__hero-image img {
    border-radius: 8px;
  }

  .page-jackpot-slots__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-jackpot-slots__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-jackpot-slots__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-jackpot-slots__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-jackpot-slots__section {
    padding: 50px 15px;
  }

  .page-jackpot-slots__section-title {
    font-size: 1.8em;
  }

  .page-jackpot-slots__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-jackpot-slots__features-grid,
  .page-jackpot-slots__game-grid,
  .page-jackpot-slots__steps-grid,
  .page-jackpot-slots__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-jackpot-slots__feature-card,
  .page-jackpot-slots__game-card,
  .page-jackpot-slots__promo-card,
  .page-jackpot-slots__step-card {
    padding: 20px;
  }

  .page-jackpot-slots__feature-card img,
  .page-jackpot-slots__game-card img {
    
  }

  .page-jackpot-slots__card-title {
    font-size: 1.3em;
  }

  .page-jackpot-slots__step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }

  /* FAQ Mobile */
  .page-jackpot-slots__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  
  .page-jackpot-slots__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-jackpot-slots__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 20px;
  }
  
  .page-jackpot-slots__faq-answer {
    padding: 0 20px;
  }
  
  .page-jackpot-slots__faq-item.active .page-jackpot-slots__faq-answer {
    padding: 15px 20px !important;
  }

  /* Image responsiveness for all img tags within page-jackpot-slots */
  .page-jackpot-slots img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-jackpot-slots__section,
  .page-jackpot-slots__card,
  .page-jackpot-slots__container,
  .page-jackpot-slots__hero-section,
  .page-jackpot-slots__cta-buttons,
  .page-jackpot-slots__button-group,
  .page-jackpot-slots__btn-container,
  .page-jackpot-slots__faq-list,
  .page-jackpot-slots__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Add padding for general content containers */
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Override padding for specific containers that might already have it */
  .page-jackpot-slots__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-jackpot-slots__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-jackpot-slots__faq-list {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-jackpot-slots__faq-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Ensure button containers allow wrapping */
  .page-jackpot-slots__cta-buttons {
    flex-wrap: wrap !important;
    gap: 15px;
  }
}