.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #333, so light text */
  background-color: transparent; /* Main content area will inherit body background or have its own */
}

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

.page-slot-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-slot-games__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-slot-games__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-slot-games__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); /* Ensures content is not hidden by fixed header */
  background: #1A1A1A; /* Dark background for hero */
  overflow: hidden;
}

.page-slot-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-slot-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-slot-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Global image min size */
  min-height: 200px; /* Global image min size */
}

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

.page-slot-games__hero-title {
  font-size: 48px;
  font-weight: 900;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.page-slot-games__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700;
  color: #1A1A1A;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: none;
}

.page-slot-games__cta-button:hover {
  background: #f0c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Game Types 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__game-card, .page-slot-games__promo-card {
  background: #1A1A1A;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__game-card:hover, .page-slot-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-slot-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
  min-width: 200px; /* Global image min size */
  min-height: 200px; /* Global image min size */
}

.page-slot-games__card-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-slot-games__card-description {
  font-size: 16px;
  color: #f0f0f0;
  padding: 0 15px;
}

/* How to Play Section */
.page-slot-games__how-to-play {
  background-color: #1A1A1A;
}

.page-slot-games__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-slot-games__text-content {
  flex: 1;
}

.page-slot-games__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-slot-games__main-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Global image min size */
  min-height: 200px; /* Global image min size */
}

.page-slot-games__ordered-list {
  list-style-type: decimal;
  color: #f0f0f0;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-slot-games__ordered-list li {
  margin-bottom: 10px;
  font-size: 17px;
}

.page-slot-games__ordered-list strong {
  color: #FFD700;
}

.page-slot-games__ordered-list li a {
  color: #FFD700;
  text-decoration: none;
}

.page-slot-games__ordered-list li a:hover {
  text-decoration: underline;
}

/* Promotions Section */
.page-slot-games__promotions {
  background: #333;
}

.page-slot-games__dark-bg .page-slot-games__section-title {
  color: #FFD700;
}

.page-slot-games__dark-bg .page-slot-games__text-block {
  color: #f0f0f0;
}

/* Platform Features */
.page-slot-games__platform-features {
  background-color: #1A1A1A;
}

.page-slot-games__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__feature-item {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  text-align: left;
}

.page-slot-games__feature-item:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.page-slot-games__feature-item .page-slot-games__text-block {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.page-slot-games__feature-item .page-slot-games__feature-image {
  flex-shrink: 0;
  width: 45%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Global image min size */
  min-height: 200px; /* Global image min size */
}

.page-slot-games__feature-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 10px;
}

/* Buttons */
.page-slot-games__button-group {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 17px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: #FFD700;
  color: #1A1A1A;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-primary:hover {
  background: #f0c200;
  border-color: #f0c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-slot-games__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-secondary:hover {
  background: #FFD700;
  color: #1A1A1A;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-slot-games__faq-section {
  background-color: #333;
}

.page-slot-games__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ容器样式 */
.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* 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;
  padding: 0 15px;
  opacity: 0;
  background: #1A1A1A; /* Darker background for answer */
  color: #f0f0f0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo mức độ ưu tiên, giá trị đủ lớn để chứa bất kỳ nội dung nào */
  padding: 20px 15px !important;
  opacity: 1;
  background: #1A1A1A;
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A1A1A;
  border: 1px solid #FFD700;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #FFD700;
}

.page-slot-games__faq-question:hover {
  background: #2a2a2a;
  border-color: #f0c200;
}

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

/* 问题标题样式 */
.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #FFD700;
}

/* 切换图标 */
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  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: #f0f0f0;
  transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-slot-games__hero-title {
    font-size: 42px;
  }
  .page-slot-games__hero-description {
    font-size: 18px;
  }
  .page-slot-games__section-title {
    font-size: 32px;
  }
  .page-slot-games__content-flex {
    flex-direction: column;
  }
  .page-slot-games__feature-item {
    flex-direction: column;
    text-align: center;
  }
  .page-slot-games__feature-item:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }
  .page-slot-games__feature-item .page-slot-games__feature-image {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__hero-title {
    font-size: 32px;
  }
  .page-slot-games__hero-description {
    font-size: 16px;
  }
  .page-slot-games__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-slot-games__section {
    padding: 40px 0;
  }
  .page-slot-games__section-title {
    font-size: 28px;
  }
  .page-slot-games__text-block {
    font-size: 15px;
  }
  .page-slot-games__game-grid, .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__game-card, .page-slot-games__promo-card {
    margin: 0 15px;
  }
  .page-slot-games__card-title {
    font-size: 20px;
  }
  .page-slot-games__card-description {
    font-size: 14px;
  }
  .page-slot-games__main-image {
    width: 100%;
    min-width: 200px !important;
    height: auto !important;
  }
  .page-slot-games__ordered-list {
    padding-left: 20px;
  }
  .page-slot-games__ordered-list li {
    font-size: 15px;
  }
  .page-slot-games__feature-item .page-slot-games__feature-image {
    width: 100%;
    min-width: 200px !important;
    height: auto !important;
  }
  .page-slot-games__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    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;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__section, .page-slot-games__card, .page-slot-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-slot-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-slot-games__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-slot-games__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-slot-games__faq-answer {
    padding: 0 15px;
  }
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px !important;
  }
}