:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #0A2463; /* Dark Blue */
  --accent-color: #DC143C; /* Crimson Red for emphasis */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --background-dark: #0A2463;
  --border-color: #e0e0e0;
}

.page-x-s {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
}

.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: var(--background-light);
}

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

.page-x-s h1 {
  font-size: 3.2em;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-x-s h3 {
  font-size: 1.8em;
  color: var(--text-dark);
}

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

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

.page-x-s .cta-button:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-x-s .cta-button.secondary {
  background: var(--secondary-color);
  margin-left: 20px;
}

.page-x-s .cta-button.secondary:hover {
  background: var(--accent-color);
}

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

/* 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-color: var(--background-dark);
}

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

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

.page-x-s .hero-content h1 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-x-s .hero-content p {
  color: var(--text-light);
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-x-s .hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* 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 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

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

.page-x-s .game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 15px;
}

.page-x-s .game-card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  text-align: center;
  padding: 0 15px;
  min-height: 70px; /* Ensure consistent height for titles */
}

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

.page-x-s .game-card h3 .card-link:hover {
  color: var(--primary-color);
}

.page-x-s .game-card p {
  font-size: 0.95em;
  color: #555;
  padding: 0 20px;
  text-align: center;
  flex-grow: 1;
}

.page-x-s .game-card .card-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-x-s .game-card .card-button:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

/* How To Play Section */
.page-x-s .step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-x-s .step-list li {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-x-s .step-list li:hover {
  transform: translateY(-5px);
}

.page-x-s .step-list h3 {
  text-align: left;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-size: 1.6em;
}

.page-x-s .step-list p {
  text-align: left;
  color: #555;
}

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

.page-x-s .feature-item {
  text-align: center;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-x-s .feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.page-x-s .feature-item img {
  width: 150px; /* Increased size, min 200px is for content images, not small feature icons */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

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

/* 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 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

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

.page-x-s .promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 15px;
}

.page-x-s .promo-card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  text-align: center;
  padding: 0 15px;
  min-height: 70px; /* Consistent height */
}

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

.page-x-s .promo-card h3 .card-link:hover {
  color: var(--primary-color);
}

.page-x-s .promo-card p {
  font-size: 0.95em;
  color: #555;
  padding: 0 20px;
  text-align: center;
  flex-grow: 1;
}

/* FAQ Section */
.page-x-s .faq-list {
  margin-top: 40px;
}

.page-x-s .faq-item {
  margin-bottom: 15px;
}

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

.page-x-s .faq-question:hover {
  background: var(--background-light);
}

.page-x-s .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  text-align: left;
  color: var(--secondary-color);
}

.page-x-s .faq-toggle {
  font-size: 20px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.page-x-s .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  background: var(--background-light);
  border-radius: 0 0 5px 5px;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.page-x-s .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height */
  padding: 15px;
}

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

.page-x-s .faq-answer p {
  margin-bottom: 10px;
  text-align: left;
}

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

.page-x-s .news-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

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

.page-x-s .news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 15px;
}

.page-x-s .news-card h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  text-align: center;
  padding: 0 15px;
  min-height: 60px; /* Consistent height */
}

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

.page-x-s .news-card h3 .card-link:hover {
  color: var(--primary-color);
}

.page-x-s .news-card p {
  font-size: 0.95em;
  color: #555;
  padding: 0 20px;
  text-align: center;
  flex-grow: 1;
}

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

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

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

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

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

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

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

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

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

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

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

  .page-x-s .hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-x-s .cta-button.secondary {
    margin-left: 0;
  }

  .page-x-s .game-card img,
  .page-x-s .promo-card img,
  .page-x-s .news-card img {
    height: 180px;
  }

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

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

  .page-x-s .faq-toggle {
    font-size: 18px;
  }

  .page-x-s .faq-answer {
    padding: 10px 15px;
  }
}

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

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

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

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

  .page-x-s .game-grid,
  .page-x-s .feature-grid,
  .page-x-s .promo-grid,
  .page-x-s .news-grid {
    grid-template-columns: 1fr;
  }

  .page-x-s .game-card h3,
  .page-x-s .promo-card h3,
  .page-x-s .news-card h3 {
    min-height: auto;
  }
}