/* style/x-s.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A202C; /* Dark Grey */
  --text-light: #FFFFFF;
  --text-dark: #1A202C;
  --background-light: #F8F8F8;
  --background-dark: #2D3748;
  --accent-color: #E53E3E; /* A touch of red for alerts/highlights */
  --border-color: #E2E8F0;
}

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

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

/* Hero Section */
.page-x-s .hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

.page-x-s .hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-x-s .cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--text-light);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

/* General Section Styling */
.page-x-s section {
  padding: 60px 0;
}

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

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

.page-x-s .section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

.page-x-s .section-subtitle {
  font-size: 1.1em;
  color: #666;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Intro */
.page-x-s .section-intro .content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

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

.page-x-s .section-intro .text-content p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #333;
}

.page-x-s .section-intro .image-content {
  flex: 1;
  min-width: 400px; /* Ensure image is not too small */
}

.page-x-s .section-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Games Grid */
.page-x-s .games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 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.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px; /* Space for button */
}

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

.page-x-s .card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-x-s .card-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin: 20px 15px 10px;
}

.page-x-s .card-description {
  font-size: 0.95em;
  color: #555;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-x-s .card-link {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-dark);
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-x-s .card-link:hover {
  background-color: #E0B400;
}

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

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

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

.page-x-s .step-icon {
  width: 100px; /* Adjust size for content image */
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-x-s .step-image {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Makes the image white if it's dark, for contrast on gold background */
}

.page-x-s .step-title {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-x-s .step-description {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 20px;
}

.page-x-s .cta-small-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-x-s .cta-small-button:hover {
  background-color: #333;
}

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

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

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

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

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

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

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

.page-x-s .benefit-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.page-x-s .benefit-title {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-x-s .benefit-description {
  font-size: 0.95em;
  color: #555;
}

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

.page-x-s .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

.page-x-s .faq-question:hover {
  background-color: #f5f5f5;
}

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

.page-x-s .faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

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

.page-x-s .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background-color: var(--background-light);
  color: #444;
}

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

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

.page-x-s .faq-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.page-x-s .faq-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Final CTA Section */
.page-x-s .section-cta-final {
  background-color: var(--secondary-color);
  color: var(--text-light);
  text-align: center;
  padding: 80px 0;
}

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

.page-x-s .section-cta-final .section-title::after {
  background-color: var(--text-light);
}

.page-x-s .section-cta-final .section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-x-s .hero-title {
    font-size: 2.5em;
  }
  .page-x-s .section-title {
    font-size: 2em;
  }
  .page-x-s .section-intro .content-wrapper {
    flex-direction: column;
  }
  .page-x-s .section-intro .image-content {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-x-s .hero-title {
    font-size: 2em;
  }
  .page-x-s .hero-description {
    font-size: 1em;
  }
  .page-x-s .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-x-s section {
    padding: 40px 0;
  }
  .page-x-s .section-title {
    font-size: 1.8em;
  }
  .page-x-s .section-subtitle {
    font-size: 0.95em;
  }
  .page-x-s .games-grid, .page-x-s .step-by-step, .page-x-s .promotions-grid, .page-x-s .benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-x-s .step-item, .page-x-s .benefit-item, .page-x-s .game-card, .page-x-s .promo-card {
    padding: 20px;
  }
  .page-x-s .card-image, .page-x-s .promo-card .card-image {
    height: 180px;
  }
  .page-x-s .faq-question {
    padding: 12px 15px;
  }
  .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 15px;
  }
  .page-x-s .faq-item.active .faq-answer {
    padding: 15px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-x-s .hero-title {
    font-size: 1.7em;
  }
  .page-x-s .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-x-s .section-title {
    font-size: 1.5em;
  }
  .page-x-s .step-icon {
    width: 80px;
    height: 80px;
  }
  .page-x-s .benefit-icon {
    width: 80px;
    height: 80px;
  }
}