/* style/x-s.css */
.page-x-s {
  font-family: 'Arial', sans-serif;
  color: #E0E0E0; /* Light grey for general text on dark background */
  background-color: #1A202C;
  line-height: 1.6;
}

.page-x-s .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-x-s section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-x-s section:last-of-type {
  border-bottom: none;
}

.page-x-s h1, .page-x-s h2, .page-x-s h3 {
  color: #FFD700; /* Gold for headings */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-x-s h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
}

.page-x-s h2 {
  font-size: 2.2em;
  margin-bottom: 40px;
}

.page-x-s h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFFFF; /* White for sub-headings */
}

.page-x-s p {
  margin-bottom: 20px;
  text-align: justify;
}

.page-x-s a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-x-s a:hover {
  color: #FFA500;
}

/* Hero Section */
.page-x-s .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #1A202C 0%, #3A404C 100%);
}

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

.page-x-s .hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-x-s .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-x-s .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.page-x-s .hero-content p {
  font-size: 1.1em;
  color: #CCCCCC;
  margin-bottom: 30px;
}

.page-x-s .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700;
  color: #1A202C;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.page-x-s .cta-button:hover {
  background: #FFA500;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 165, 0, 0.6);
}

/* Game Types Section */
.page-x-s .section-game-types {
  background-color: #232935;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-x-s .game-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-x-s .game-type-item {
  background-color: #1A202C;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-x-s .game-type-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-x-s .game-type-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-x-s .game-type-item h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-x-s .game-type-item p {
  font-size: 0.95em;
  color: #B0B0B0;
  text-align: center;
}

.page-x-s .btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: #FFD700;
  color: #1A202C;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-x-s .btn-small:hover {
  background: #FFA500;
  transform: translateY(-2px);
}

/* How To Play Section */
.page-x-s .section-how-to-play {
  background-color: #1A202C;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-x-s .step-by-step-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-x-s .step-item {
  background-color: #232935;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-x-s .step-number {
  width: 60px;
  height: 60px;
  background-color: #FFD700;
  color: #1A202C;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 25px;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.page-x-s .step-item h3 {
  color: #FFFFFF;
  font-size: 1.3em;
  margin-bottom: 15px;
}

.page-x-s .step-item p {
  color: #B0B0B0;
  font-size: 0.95em;
}

.page-x-s .btn-outline {
  display: inline-block;
  padding: 10px 25px;
  border: 2px solid #FFD700;
  color: #FFD700;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-x-s .btn-outline:hover {
  background-color: #FFD700;
  color: #1A202C;
}

/* Tips & Strategies Section */
.page-x-s .section-tips-strategies {
  background-color: #232935;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-x-s .tip-item {
  background-color: #1A202C;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-x-s .tip-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-x-s .tip-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-x-s .tip-item h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-x-s .tip-item p {
  font-size: 0.95em;
  color: #B0B0B0;
  text-align: center;
}

/* Promotions Section */
.page-x-s .section-promotions {
  background-color: #1A202C;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-x-s .promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: center;
}

.page-x-s .promotion-list li {
  background-color: #232935;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 1.05em;
  color: #E0E0E0;
  text-align: justify;
}

.page-x-s .promotion-list li a {
  font-weight: bold;
  color: #FFD700;
}

/* Why HB888 Section */
.page-x-s .section-why-hb888 {
  background-color: #232935;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-x-s .why-item {
  background-color: #1A202C;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-x-s .why-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-x-s .why-item img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-x-s .why-item h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-x-s .why-item p {
  font-size: 0.95em;
  color: #B0B0B0;
  text-align: center;
}

/* FAQ Section */
.page-x-s .section-faq {
  background-color: #1A202C;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-x-s .faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-x-s .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-x-s .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #232935;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-x-s .faq-question:hover {
  background: #2D3440;
}

.page-x-s .faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: #FFD700;
  text-align: left;
}

.page-x-s .faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-x-s .faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.page-x-s .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #1A202C;
  color: #E0E0E0;
}

.page-x-s .faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 20px 25px;
}

.page-x-s .faq-answer p {
  margin: 0;
  font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-x-s h1 {
    font-size: 2.4em;
  }
  .page-x-s h2 {
    font-size: 1.8em;
  }
  .page-x-s h3 {
    font-size: 1.4em;
  }
  .page-x-s .hero-section {
    padding: 60px 15px;
  }
  .page-x-s .hero-content p {
    font-size: 1em;
  }
  .page-x-s .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-x-s .game-type-grid, .page-x-s .step-by-step-guide, .page-x-s .tips-grid, .page-x-s .why-hb888-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
  .page-x-s .section {
    padding: 50px 0;
  }
}

@media (max-width: 768px) {
  .page-x-s h1 {
    font-size: 2em;
  }
  .page-x-s h2 {
    font-size: 1.6em;
  }
  .page-x-s h3 {
    font-size: 1.2em;
  }
  .page-x-s .hero-section {
    padding: 40px 10px;
  }
  .page-x-s .game-type-grid, .page-x-s .step-by-step-guide, .page-x-s .tips-grid, .page-x-s .why-hb888-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-x-s .game-type-item, .page-x-s .step-item, .page-x-s .tip-item, .page-x-s .why-item {
    padding: 25px;
  }
  .page-x-s .section {
    padding: 40px 0;
  }
  .page-x-s .faq-question {
    padding: 15px 20px;
  }
  .page-x-s .faq-question h3 {
    font-size: 1em;
  }
  .page-x-s .faq-toggle {
    font-size: 1.5em;
  }
  .page-x-s .faq-answer {
    padding: 0 20px;
  }
  .page-x-s .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-x-s .promotion-list li {
    padding: 15px;
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-x-s h1 {
    font-size: 1.8em;
  }
  .page-x-s h2 {
    font-size: 1.4em;
  }
  .page-x-s h3 {
    font-size: 1.1em;
  }
  .page-x-s .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-x-s .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }
}