/* style/x-s.css */
.page-x-s {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
}

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

.page-x-s__section-title {
  font-size: 2.5em;
  color: #DC143C;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

.page-x-s__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-x-s__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.page-x-s__btn--primary {
  background-color: #FFD700;
  color: #333;
  border: 2px solid #FFD700;
}

.page-x-s__btn--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-x-s__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-x-s__btn--secondary:hover {
  background-color: #FFD700;
  color: #333;
}

.page-x-s__btn--small {
  padding: 8px 18px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-x-s__btn--link {
  background: none;
  border: none;
  color: #DC143C;
  text-decoration: underline;
  padding: 0;
  font-weight: normal;
  display: inline;
}

.page-x-s__btn--link:hover {
  color: #a30f2c;
}

.page-x-s__btn--cta {
  padding: 15px 35px;
  font-size: 1.1em;
  background-color: #FFD700;
  color: #DC143C;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-x-s__btn--cta:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* Hero Section */
.page-x-s__hero {
  background: linear-gradient(135deg, #DC143C 0%, #a30f2c 100%);
  color: #fff;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-x-s__hero-content {
  max-width: 600px;
  text-align: left;
}

.page-x-s__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700;
}

.page-x-s__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-x-s__hero-actions .page-x-s__btn {
  margin-right: 15px;
}

.page-x-s__hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-x-s__introduction {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.page-x-s__introduction p {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555;
}

/* Game Types Section */
.page-x-s__game-types {
  padding: 60px 0;
  background-color: #fff;
}

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

.page-x-s__game-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid #FFD700;
}

.page-x-s__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-x-s__game-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-x-s__card-title {
  font-size: 1.8em;
  color: #DC143C;
  margin-bottom: 15px;
}

.page-x-s__game-card p {
  color: #666;
  margin-bottom: 25px;
}

/* How To Play Section */
.page-x-s__how-to-play {
  padding: 60px 0;
  background-color: #f0f2f5;
}

.page-x-s__steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-x-s__steps li {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  text-align: center;
}

.page-x-s__steps li::before {
  content: 'Bước ' counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #DC143C;
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9em;
  z-index: 1;
}

.page-x-s__steps li h3 {
  font-size: 1.5em;
  color: #333;
  margin-top: 15px;
  margin-bottom: 15px;
}

.page-x-s__steps li p {
  color: #666;
  margin-bottom: 20px;
}

/* Tips Section */
.page-x-s__tips {
  padding: 60px 0;
  background-color: #fff;
}

.page-x-s__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.page-x-s__text-content {
  flex: 1;
  min-width: 300px;
}

.page-x-s__text-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.page-x-s__text-content ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #555;
}

.page-x-s__text-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFD700;
  font-weight: bold;
}

.page-x-s__image-content {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-x-s__image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Promotions Section */
.page-x-s__promotions {
  padding: 60px 0;
  background-color: #f0f2f5;
}

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

.page-x-s__promo-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border-bottom: 5px solid #DC143C;
  transition: transform 0.3s ease;
}

.page-x-s__promo-card:hover {
  transform: translateY(-5px);
}

.page-x-s__promo-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
  object-fit: contain;
}

/* Why Choose Section */
.page-x-s__why-choose {
  padding: 60px 0;
  background-color: #fff;
}

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

.page-x-s__feature-item {
  text-align: center;
  padding: 25px;
  border-radius: 10px;
  background-color: #fdfdfd;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-x-s__feature-item:hover {
  transform: translateY(-5px);
}

.page-x-s__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-x-s__feature-item h3 {
  font-size: 1.4em;
  color: #333;
  margin-bottom: 10px;
}

.page-x-s__feature-item p {
  color: #666;
}

/* Call to Action Banner */
.page-x-s__cta-banner {
  background: linear-gradient(90deg, #FFD700 0%, #DC143C 100%);
  padding: 70px 0;
  text-align: center;
  color: #fff;
}

.page-x-s__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #333;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-x-s__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f5f5f5;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-x-s__hero {
    flex-direction: column;
    text-align: center;
  }

  .page-x-s__hero-content {
    text-align: center;
  }

  .page-x-s__hero-actions .page-x-s__btn {
    margin-right: 10px;
    margin-bottom: 10px;
  }

  .page-x-s__hero-title {
    font-size: 2.8em;
  }

  .page-x-s__section-title {
    font-size: 2em;
  }

  .page-x-s__content-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .page-x-s__image-content img {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-x-s__hero {
    padding: 60px 0;
  }

  .page-x-s__hero-title {
    font-size: 2.2em;
  }

  .page-x-s__hero-description {
    font-size: 1em;
  }

  .page-x-s__section-title {
    font-size: 1.8em;
  }

  .page-x-s__cta-title {
    font-size: 2.2em;
  }

  .page-x-s__btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-x-s__game-card, .page-x-s__promo-card, .page-x-s__feature-item {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .page-x-s__hero-actions .page-x-s__btn {
    display: block;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-x-s__hero-image {
    order: -1; /* Move image above text on small screens */
    margin-bottom: 30px;
  }

  .page-x-s__hero-title {
    font-size: 1.8em;
  }

  .page-x-s__section-title {
    font-size: 1.5em;
  }

  .page-x-s__cta-title {
    font-size: 1.8em;
  }

  .page-x-s__steps li::before {
    font-size: 0.8em;
    padding: 3px 10px;
  }
}