.page-x-s {
  --primary-color: #CC0000;
  --secondary-color: #FFD700;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #1a1a1a;
  --border-color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
}

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

.page-x-s-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-x-s-section-title {
  font-size: 3em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-x-s-section-subtitle {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-x-s-button {
  display: inline-block;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-x-s-button-primary {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-x-s-button-primary:hover {
  background: #a30000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-x-s-button-secondary {
  background: var(--secondary-color);
  color: var(--text-color-dark);
}

.page-x-s-button-secondary:hover {
  background: #ccaa00;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 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, var(--primary-color) 0%, #a30000 100%); /* Adjusted for contrast */
}

.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;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
}

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

.page-x-s-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-color-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-x-s-hero-content h1 {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-x-s-hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-x-s-cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--secondary-color);
  color: var(--text-color-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

/* Intro Section */
.page-x-s-intro-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-x-s-intro-text {
  flex: 1;
}

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

.page-x-s-intro-image {
  flex: 1;
}

.page-x-s-intro-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-x-s-game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-x-s-game-card img {
  max-width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-x-s-game-card h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-x-s-game-card p {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

.page-x-s-card-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-x-s-card-link:hover {
  color: #a30000;
  text-decoration: underline;
}

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

.page-x-s-step-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-x-s-step-card img {
  max-width: 100px;
  height: auto;
  margin-bottom: 20px;
}

.page-x-s-step-card h4 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-x-s-step-card p {
  font-size: 1em;
  color: #666666;
}

.page-x-s-cta-bottom {
  margin-top: 50px;
}

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

.page-x-s-advantage-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border-color);
}

.page-x-s-advantage-item img {
  max-width: 80px;
  height: auto;
  margin-bottom: 20px;
}

.page-x-s-advantage-item h3 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-x-s-advantage-item p {
  font-size: 1em;
  color: #666666;
}

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

.page-x-s-strategy-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  border: 1px solid var(--border-color);
}

.page-x-s-strategy-item img {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-x-s-strategy-item h4 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-x-s-strategy-item p {
  font-size: 1em;
  color: #666666;
}

/* Promotions Section */
.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-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-x-s-promo-card img {
  max-width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-x-s-promo-card h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-x-s-promo-card p {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

.page-x-s-button-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* FAQ Section */
.page-x-s-faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #ffffff;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--background-light);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #fdfdfd;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  margin: 0;
  font-size: 1.1em;
}

/* Final CTA Section */
.page-x-s-cta-final {
  background: linear-gradient(135deg, var(--primary-color) 0%, #a30000 100%);
  color: var(--text-color-light);
  padding: 80px 20px;
}

.page-x-s-cta-final .page-x-s-section-title,
.page-x-s-cta-final .page-x-s-section-subtitle {
  color: var(--text-color-light);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-x-s-cta-final .page-x-s-button-large {
  background: var(--secondary-color);
  color: var(--text-color-dark);
}

.page-x-s-cta-final .page-x-s-button-large:hover {
  background: #ccaa00;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-x-s-section-title {
    font-size: 2.5em;
  }
  .page-x-s-hero-content h1 {
    font-size: 3em;
  }
  .page-x-s-hero-content p {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-x-s-section {
    padding: 40px 0;
  }
  .page-x-s-section-title {
    font-size: 2em;
  }
  .page-x-s-section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-x-s-hero-section {
    padding: 60px 15px;
  }
  .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: 15px 30px;
    font-size: 16px;
  }
  .page-x-s-intro-grid {
    flex-direction: column;
  }
  .page-x-s-intro-text, .page-x-s-intro-image {
    flex: none;
    width: 100%;
  }
  .page-x-s-game-card img,
  .page-x-s-strategy-item img,
  .page-x-s-promo-card img {
    height: 180px;
  }
  .page-x-s-game-card h3,
  .page-x-s-advantage-item h3,
  .page-x-s-step-card h4,
  .page-x-s-strategy-item h4,
  .page-x-s-promo-card h3 {
    font-size: 1.4em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-x-s-section-title {
    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: 12px 25px;
    font-size: 14px;
  }
  .page-x-s-button-large {
    font-size: 1em;
    padding: 15px 30px;
  }
  .page-x-s-game-card img,
  .page-x-s-strategy-item img,
  .page-x-s-promo-card img {
    height: 150px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-answer p {
    font-size: 0.9em;
  }
}