.page-slot-games {
  background-color: #08160F;
  color: #F2FFF6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-slot-games__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-slot-games__light-bg {
  background-color: #11271B;
  color: #F2FFF6; /* Giữ màu sáng trên nền tối nhẹ */
}

.page-slot-games__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #A7D9B8;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* body đã có padding-top, đây chỉ là padding nhỏ */
  min-height: 600px;
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Làm tối ảnh nền để chữ nổi bật */
  display: block;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  color: #F2FFF6;
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold */
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-slot-games__description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #F2FFF6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  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: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

.page-slot-games__btn-secondary {
  background: #11271B; /* Card BG */
  color: #F2FFF6;
  border: 2px solid #2E7A4E;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-secondary:hover {
  background: #2E7A4E; /* Border color */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Card Styles */
.page-slot-games__card {
  background-color: #11271B;
  color: #F2FFF6;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%; /* Đảm bảo chiều cao bằng nhau trong grid */
}

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

.page-slot-games__card-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2C14E;
}

.page-slot-games__card-text {
  font-size: 1em;
  color: #A7D9B8;
  flex-grow: 1; /* Đẩy nội dung xuống dưới */
}

/* Feature Grid */
.page-slot-games__feature-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__card-image {
  height: 250px;
}

/* Game Types Section */
.page-slot-games__game-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__game-type-card {
  background-color: #1E3A2A; /* Deep Green */
  border: 1px solid #2E7A4E;
}

.page-slot-games__game-type-card .page-slot-games__card-title {
  color: #57E38D; /* Glow */
}

/* How to Play Section */
.page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__step-card {
  background-color: #1E3A2A;
  border: 1px solid #2E7A4E;
  text-align: center;
  align-items: center;
}

.page-slot-games__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #F2C14E;
  margin-bottom: 20px;
  display: block;
  line-height: 1;
}

.page-slot-games__step-card .page-slot-games__card-title {
  color: #F2FFF6;
}

.page-slot-games__step-card .page-slot-games__btn-primary,
.page-slot-games__step-card .page-slot-games__btn-secondary {
  width: auto;
  padding: 10px 20px;
  font-size: 0.95em;
  margin-top: 20px;
}

/* Tips Section */
.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 900px;
  margin: 40px auto 0;
}

.page-slot-games__tips-list li {
  background-color: #1E3A2A;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #A7D9B8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-slot-games__tips-list li strong {
  color: #F2C14E;
}

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

.page-slot-games__promo-card .page-slot-games__card-image {
  height: 220px;
}

.page-slot-games__cta-center {
  margin-top: 40px;
}

/* FAQ Section */
.page-slot-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-slot-games__faq-item {
  background-color: #1E3A2A;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #F2C14E;
}

.page-slot-games__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #A7D9B8;
  line-height: 1.8;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  background-color: #0A4B2C;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  content: '−';
}

/* Final CTA Section */
.page-slot-games__final-cta .page-slot-games__section-title {
  color: #F2C14E;
}

/* --- Contrast Fixes (as per highest priority requirements) --- */
.page-slot-games__text-contrast-fix {
  color: #F2FFF6; /* Đảm bảo màu chữ sáng trên nền tối */
}

/* Adjust for specific light-bg sections where text might be too dark */
.page-slot-games__light-bg .page-slot-games__text-contrast-fix {
  color: #F2FFF6; /* Đảm bảo màu chữ sáng trên nền tối nhẹ */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-slot-games__section-title {
    font-size: 2.2em;
  }
  .page-slot-games__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-slot-games__container {
    padding: 0 15px;
  }

  .page-slot-games__section {
    padding: 40px 0;
  }

  .page-slot-games__hero-section {
    padding-bottom: 40px;
  }

  .page-slot-games__main-title {
    font-size: clamp(1.8em, 7vw, 2.8em);
  }

  .page-slot-games__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__card-image {
    height: 180px;
  }

  .page-slot-games__feature-grid,
  .page-slot-games__game-type-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-slot-games__card {
    padding: 25px;
  }

  .page-slot-games__card-title {
    font-size: 1.4em;
  }

  .page-slot-games__text-block {
    margin-bottom: 30px;
  }

  .page-slot-games__tips-list li,
  .page-slot-games__faq-item {
    padding: 15px;
    font-size: 0.95em;
  }

  .page-slot-games__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  /* Mobile image responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-section,
  .page-slot-games__feature-grid,
  .page-slot-games__game-type-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__faq-list,
  .page-slot-games__cta-buttons,
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-slot-games__video-section {
    padding-top: 10px !important;
  }

  /* Video responsiveness */
  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    overflow: hidden !important;
  }
}

/* CSS for details/summary based FAQ */
.page-slot-games__faq-item summary {
  list-style: none; /* Remove default marker */
}

.page-slot-games__faq-item summary::-webkit-details-marker {
  display: none; /* Hide for Webkit browsers */
}