.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Body background is #FFFFFF */
}

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

.page-slot-games h1, .page-slot-games h2, .page-slot-games h3 {
  color: #017439; /* Primary color for headings */
  margin-bottom: 20px;
  text-align: center;
}

.page-slot-games h1 {
  font-size: 3em;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff; /* White text on dark hero background */
}

.page-slot-games h2 {
  font-size: 2.5em;
  font-weight: bold;
  padding-top: 40px;
  padding-bottom: 20px;
}

.page-slot-games h3 {
  font-size: 1.8em;
  font-weight: 600;
}

.page-slot-games p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-slot-games a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-slot-games a:hover {
  color: #005a2e;
}

/* Section Backgrounds for Contrast */
.page-slot-games__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-slot-games__dark-bg h1, .page-slot-games__dark-bg h2, .page-slot-games__dark-bg h3 {
  color: #ffffff;
}

.page-slot-games__dark-bg a {
  color: #FFFF00;
}

.page-slot-games__dark-bg a:hover {
  color: #ffffff;
}

.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-slot-games__light-bg h1, .page-slot-games__light-bg h2, .page-slot-games__light-bg h3 {
  color: #017439;
}

/* 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); /* Fixed header offset */
  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;
  z-index: 1;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px; /* Constrain text width */
  margin-top: -80px; /* Overlap with image slightly for visual appeal */
  background: rgba(1, 116, 57, 0.85); /* Semi-transparent background for readability */
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__hero-content p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #ffffff;
}

/* CTA Button Styles */
.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #017439; /* Default primary color */
  color: #ffffff; /* Default white text */
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__cta-button:hover {
  background: #005a2e;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-slot-games__btn-register {
  background-color: #C30808; /* Specific color for register */
  color: #FFFF00; /* Specific color for register font */
}

.page-slot-games__btn-register:hover {
  background-color: #a30606;
}

.page-slot-games__btn-login {
  background-color: #C30808; /* Specific color for login */
  color: #FFFF00; /* Specific color for login font */
}

.page-slot-games__btn-login:hover {
  background-color: #a30606;
}

/* Intro Section */
.page-slot-games__intro-section {
  padding: 80px 0;
  text-align: center;
}

.page-slot-games__intro-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05em;
}

/* Games Section */
.page-slot-games__games-section {
  padding: 80px 0;
}

.page-slot-games__game-category {
  margin-bottom: 60px;
}

.page-slot-games__game-category h3 {
  text-align: left;
  margin-bottom: 30px;
  border-bottom: 2px solid #FFFF00;
  padding-bottom: 10px;
}

.page-slot-games__game-card {
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__game-card:nth-child(even) {
  flex-direction: row-reverse; /* Alternate layout */
}

.page-slot-games__game-image {
  width: 45%;
  flex-shrink: 0;
  border-radius: 8px;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-slot-games__game-info {
  flex-grow: 1;
  text-align: left;
}

.page-slot-games__game-info p {
  margin-bottom: 20px;
}

/* Strategy Section */
.page-slot-games__strategy-section {
  padding: 80px 0;
  text-align: center;
}

.page-slot-games__strategy-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto 30px auto;
  text-align: left;
}

.page-slot-games__strategy-list li {
  background: #f9f9f9;
  margin-bottom: 15px;
  padding: 20px 25px;
  border-left: 5px solid #017439;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.05em;
  color: #333333;
}

.page-slot-games__strategy-list li strong {
  color: #017439;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-slot-games__promo-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__promo-image {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-slot-games__promo-card h3 {
  color: #017439;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-slot-games__promo-card p {
  flex-grow: 1;
  text-align: center;
}

.page-slot-games__button-wrapper {
  margin-top: 50px;
  text-align: center;
}

/* Why Choose Section */
.page-slot-games__why-choose-section {
  padding: 80px 0;
  text-align: center;
}

.page-slot-games__benefits-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto 30px auto;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.page-slot-games__benefits-list li {
  background: #f9f9f9;
  padding: 20px 25px;
  border-left: 5px solid #017439;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.05em;
  color: #333333;
}

.page-slot-games__benefits-list li strong {
  color: #017439;
}

/* Guide Section */
.page-slot-games__guide-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-slot-games__step-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__step-card h3 {
  color: #017439;
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-slot-games__step-card p {
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
  text-align: center;
}

.page-slot-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

/* FAQ容器样式 */
.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 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 15px;
  opacity: 0;
}

/* 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 ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
  text-align: justify;
}

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

.page-slot-games__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

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

/* 切换图标 */
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: #333;
  transform: rotate(45deg); /* Change to X or rotate */
}

/* Bottom CTA Section */
.page-slot-games__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

.page-slot-games__cta-bottom-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1em;
  color: #ffffff;
}

/* Global image responsiveness */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    margin-top: -60px;
    padding: 25px 30px;
  }

  .page-slot-games h1 {
    font-size: 2.5em;
  }

  .page-slot-games h2 {
    font-size: 2em;
  }

  .page-slot-games__game-card {
    flex-direction: column;
    text-align: center;
  }

  .page-slot-games__game-card:nth-child(even) {
    flex-direction: column;
  }

  .page-slot-games__game-image {
    width: 100%;
    margin-bottom: 20px;
  }

  .page-slot-games__game-info {
    text-align: center;
  }

  .page-slot-games__benefits-list {
    grid-template-columns: 1fr;
  }
}

@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-content {
    margin-top: -40px;
    padding: 20px 25px;
    border-radius: 8px;
  }

  .page-slot-games h1 {
    font-size: 2em;
  }

  .page-slot-games h2 {
    font-size: 1.8em;
    padding-top: 30px;
    padding-bottom: 15px;
  }

  .page-slot-games h3 {
    font-size: 1.4em;
  }

  .page-slot-games p {
    font-size: 0.95em;
  }

  .page-slot-games__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}