.page-x-s {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #f5f5f5;
}

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

.page-x-s section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-x-s section:nth-of-type(even) {
  background-color: #ebebeb;
}

.page-x-s h1, .page-x-s h2, .page-x-s h3 {
  color: #CC0000;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-x-s h1 {
  font-size: 2.8em;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-x-s h2 {
  font-size: 2.2em;
}

.page-x-s h3 {
  font-size: 1.6em;
}

.page-x-s p {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-x-s .text-center {
  text-align: center;
}

.page-x-s .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #CC0000;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-x-s .cta-button:hover {
  background: #a30000;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-x-s .cta-button.small {
  padding: 10px 25px;
  font-size: 1em;
  margin-top: 15px;
}

/* 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: 60px 20px;
  background: linear-gradient(135deg, #CC0000 0%, #FFD700 100%); /* Fallback for image loading */
}

.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;
}

.page-x-s .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-x-s .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff; /* Text on hero should be light */
}

.page-x-s .hero-content h1 {
  color: #FFD700;
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-x-s .hero-content p {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Intro */
.page-x-s .section-intro p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-x-s .intro-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-x-s .intro-item h3 {
  color: #CC0000;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-x-s .intro-item p {
  text-align: left;
  font-size: 1em;
  color: #555555;
}

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

.page-x-s .game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-x-s .game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-x-s .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-x-s .game-card h3 {
  color: #CC0000;
  margin: 20px 15px 10px;
  font-size: 1.4em;
}

.page-x-s .game-card p {
  text-align: left;
  padding: 0 15px 20px;
  color: #555555;
  font-size: 0.95em;
}

.page-x-s .card-button {
  display: inline-block;
  padding: 10px 20px;
  background: #FFD700;
  color: #333333;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-x-s .card-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

/* Section Benefits */
.page-x-s .section-benefits {
  background-color: #f9f9f9;
}

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

.page-x-s .benefit-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-x-s .benefit-item h3 {
  color: #CC0000;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-x-s .benefit-item p {
  text-align: left;
  font-size: 1em;
  color: #555555;
}

.page-x-s .benefit-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* Section How To Play */
.page-x-s .step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  max-width: 900px;
  margin: 40px auto;
}

.page-x-s .step-list li {
  background-color: #ffffff;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  text-align: left;
}

.page-x-s .step-list li::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  position: absolute;
  top: 0;
  left: 0;
  background-color: #CC0000;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 10px 0 10px 0;
  font-weight: bold;
  font-size: 0.9em;
}

.page-x-s .step-list li h3 {
  text-align: left;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #CC0000;
}

.page-x-s .step-list li p {
  text-align: left;
  color: #555555;
  margin-bottom: 15px;
}

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

.page-x-s .promo-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-x-s .promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-x-s .promo-item h3 {
  color: #CC0000;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-x-s .promo-item p {
  text-align: left;
  color: #555555;
}

/* Section FAQ */
.page-x-s .section-faq {
  background-color: #f9f9f9;
}

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

.faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-question h3 {
  margin: 0;
  text-align: left;
  color: #333333;
  font-size: 1.2em;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #CC0000;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  background: #fcfcfc;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0 0 5px 5px;
}

.faq-answer p {
  padding: 15px 0;
  margin: 0;
  text-align: left;
  color: #555555;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px;
}

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

/* Section Conclusion */
.page-x-s .section-conclusion p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-x-s h1 {
    font-size: 2.5em;
  }

  .page-x-s h2 {
    font-size: 1.8em;
  }

  .page-x-s .hero-content h1 {
    font-size: 2.8em;
  }

  .page-x-s .hero-content p {
    font-size: 1.1em;
  }

  .page-x-s .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-x-s .intro-grid, .page-x-s .game-cards, .page-x-s .benefits-list, .page-x-s .promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-x-s .step-list li::before {
    position: static;
    display: block;
    margin-bottom: 10px;
    border-radius: 5px;
  }

  .page-x-s .step-list li h3 {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .page-x-s section {
    padding: 40px 0;
  }

  .page-x-s h1 {
    font-size: 2em;
  }

  .page-x-s h2 {
    font-size: 1.6em;
  }

  .page-x-s .hero-section {
    padding: 40px 15px;
  }

  .page-x-s .hero-image img {
    border-radius: 4px;
  }

  .page-x-s .hero-content h1 {
    font-size: 2.2em;
  }

  .page-x-s .hero-content p {
    font-size: 1em;
  }

  .page-x-s .cta-button {
    padding: 10px 25px;
    font-size: 14px;
    margin-top: 20px;
  }

  .page-x-s .intro-grid, .page-x-s .game-cards, .page-x-s .benefits-list, .page-x-s .promo-grid {
    grid-template-columns: 1fr;
  }

  .page-x-s .intro-item, .page-x-s .game-card, .page-x-s .benefit-item, .page-x-s .promo-item {
    padding: 20px;
  }

  .page-x-s .card-image {
    height: 180px;
  }

  .page-x-s .faq-question {
    padding: 12px;
  }

  .faq-question h3 {
    font-size: 1.1em;
  }

  .faq-toggle {
    font-size: 20px;
  }

  .faq-answer p {
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  .page-x-s h1 {
    font-size: 1.8em;
  }

  .page-x-s .hero-content h1 {
    font-size: 1.8em;
  }

  .page-x-s .hero-content p {
    font-size: 0.9em;
  }

  .page-x-s .cta-button {
    padding: 8px 20px;
    font-size: 12px;
  }

  .page-x-s .step-list li::before {
    font-size: 0.8em;
    padding: 6px 10px;
  }
}