.page-slot-games {
  color: #ffffff; /* Body background is dark, so use light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #121212; /* Inherited from shared, ensuring consistency */
}

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

.page-slot-games__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-slot-games__light-bg {
  background-color: #2a2a2a;
  color: #f0f0f0;
}

.page-slot-games__hero-section {
  position: relative;
  padding: 80px 20px 60px;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  background: linear-gradient(rgba(0, 123, 255, 0.7), rgba(0, 123, 255, 0.5)), url('[GALLERY:hero_bg:1920x1080:nuho90,slot_games,jackpot,online_betting,vietnam_casino,background]') center/cover no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.page-slot-games__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-slot-games__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-slot-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-slot-games__btn-primary {
  background: var(--primary-color, #007bff);
  color: #ffffff;
}

.page-slot-games__btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-secondary {
  background: var(--secondary-color, #ffc107);
  color: #333333;
}

.page-slot-games__btn-secondary:hover {
  background: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-slot-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color, #007bff);
  font-weight: bold;
  padding-top: 60px;
}

.page-slot-games__intro-section, .page-slot-games__features-section, .page-slot-games__game-types-section, .page-slot-games__how-to-play-section, .page-slot-games__promotions-section, .page-slot-games__mobile-section, .page-slot-games__responsible-section, .page-slot-games__faq-section, .page-slot-games__cta-final-section {
  padding: 60px 0;
}

.page-slot-games__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.page-slot-games__reverse-layout {
  flex-direction: row-reverse;
}

.page-slot-games__image {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-slot-games__text-content {
  flex: 1;
  padding: 20px 0;
}

.page-slot-games__text-content p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-slot-games__text-content p strong {
  color: var(--secondary-color, #ffc107);
}

.page-slot-games__features-grid,
.page-slot-games__game-grid,
.page-slot-games__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__feature-card,
.page-slot-games__game-card,
.page-slot-games__promo-card {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-slot-games__feature-icon,
.page-slot-games__game-image,
.page-slot-games__promo-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 100%;
  display: block;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color, #ffc107);
}

.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  counter-reset: step-counter;
}

.page-slot-games__step-item {
  background-color: #2a2a2a;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  padding-left: 70px;
  color: #f0f0f0;
}

.page-slot-games__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color, #007bff);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-slot-games__step-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--secondary-color, #ffc107);
}

.page-slot-games__step-item p {
  margin-bottom: 0;
}

.page-slot-games__game-cta {
  margin-top: 60px;
}

.page-slot-games__download-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.page-slot-games__btn-download {
  background: var(--primary-color, #007bff);
  color: #ffffff;
  padding: 12px 25px;
  font-size: 1em;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-download:hover {
  background: #0056b3;
}

.page-slot-games__responsible-list {
  list-style: disc;
  padding-left: 25px;
  color: #f0f0f0;
  max-width: 800px;
  margin: 40px auto;
}

.page-slot-games__responsible-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-slot-games__faq-section {
  padding-bottom: 80px;
}

/* FAQ容器样式 */
.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* FAQ默认状态 - 答案隐藏 */
.page-slot-games__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;
  opacity: 0;
  color: #f0f0f0;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-slot-games__faq-item.active .page-slot-games__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;
  opacity: 1;
  background-color: #1f1f1f;
  border-radius: 0 0 8px 8px;
}

/* Vấn đề phong cách */
.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #2a2a2a;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-slot-games__faq-question:hover {
  background-color: #3a3a3a;
}

.page-slot-games__faq-question:active {
  background-color: #4a4a4a;
}

/* Tiêu đề vấn đề phong cách */
.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
  color: var(--secondary-color, #ffc107);
}

/* Chuyển đổi biểu tượng */
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: var(--primary-color, #007bff);
  transform: rotate(45deg); /* Thêm hiệu ứng xoay cho dấu trừ */
}

.page-slot-games__cta-final-section {
  text-align: center;
  padding-bottom: 80px;
  background-color: #1a1a1a;
  padding-top: 80px;
}

.page-slot-games__large-btn {
  padding: 20px 50px;
  font-size: 1.3em;
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 3em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__image {
    max-width: 100%;
    height: auto;
  }
  .page-slot-games__content-wrapper {
    flex-direction: column;
  }
  .page-slot-games__reverse-layout {
    flex-direction: column;
  }
  .page-slot-games__text-content {
    padding: 0;
  }
  .page-slot-games__feature-card, .page-slot-games__game-card, .page-slot-games__promo-card {
    padding: 25px;
  }
  .page-slot-games__card-title {
    font-size: 1.3em;
  }
  .page-slot-games__step-item {
    padding-left: 60px;
  }
  .page-slot-games__step-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.3em;
    left: 15px;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    min-height: 400px;
  }
  .page-slot-games__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-slot-games__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-slot-games__btn-primary, .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 40px;
  }
  .page-slot-games__intro-section, .page-slot-games__features-section, .page-slot-games__game-types-section, .page-slot-games__how-to-play-section, .page-slot-games__promotions-section, .page-slot-games__mobile-section, .page-slot-games__responsible-section, .page-slot-games__faq-section, .page-slot-games__cta-final-section {
    padding: 40px 0;
  }
  .page-slot-games__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-slot-games__content-wrapper {
    gap: 20px;
  }
  .page-slot-games__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
  }
  .page-slot-games__feature-grid, .page-slot-games__game-grid, .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__feature-card, .page-slot-games__game-card, .page-slot-games__promo-card {
    padding: 20px;
    border-radius: 8px;
  }
  .page-slot-games__feature-icon, .page-slot-games__game-image, .page-slot-games__promo-image {
    max-height: 150px;
    margin-bottom: 15px;
  }
  .page-slot-games__card-title {
    font-size: 1.2em;
  }
  .page-slot-games__steps-list {
    margin-top: 30px;
  }
  .page-slot-games__step-item {
    padding: 20px;
    padding-left: 55px;
    margin-bottom: 15px;
    border-radius: 8px;
  }
  .page-slot-games__step-item::before {
    width: 30px;
    height: 30px;
    font-size: 1.2em;
    left: 15px;
  }
  .page-slot-games__step-title {
    font-size: 1.1em;
  }
  .page-slot-games__download-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-slot-games__btn-download {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 20px;
  }
  .page-slot-games__responsible-list {
    margin: 30px auto;
    padding-left: 20px;
  }
  .page-slot-games__responsible-item {
    font-size: 1em;
  }
  .page-slot-games__faq-question {
    padding: 15px 20px;
  }
  .page-slot-games__faq-question h3 {
    font-size: 1em;
  }
  .page-slot-games__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px 20px !important;
  }
  .page-slot-games__large-btn {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}