/* style/x-s.css */
:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-light: #F0F2F5;
  --text-dark: #333333;
  --background-light: #FFFFFF;
  --background-dark: #1A2E47;
  --button-hover: #E6C200;
  --card-bg: #FFFFFF;
  --border-color: #E0E0E0;
}

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

.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 section:nth-of-type(odd) {
  background-color: #f9f9f9;
}

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

.page-x-s h1 {
  font-size: 2.8em;
  color: var(--text-light);
}

.page-x-s h2 {
  font-size: 2.2em;
  margin-top: 40px;
}

.page-x-s h3 {
  font-size: 1.6em;
  color: var(--primary-color);
}

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

.page-x-s a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-x-s a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

.page-x-s .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-x-s .cta-button:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px 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-color: var(--primary-color);
  color: var(--text-light);
}

.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;
  border-radius: 12px;
  overflow: hidden;
}

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

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

.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-content a {
  color: var(--primary-color);
}

/* Games Section */
.page-x-s .section-games {
  background-color: var(--background-light);
}

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

.page-x-s .game-card {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  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(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-x-s .game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

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

.page-x-s .game-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-x-s .game-card h3 a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-x-s .game-card p {
  font-size: 1em;
  color: var(--text-dark);
  padding: 0 20px;
  flex-grow: 1;
  text-align: left;
}

.page-x-s .game-card .btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-x-s .game-card .btn-small:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

/* Why Choose Section */
.page-x-s .section-why-choose {
  background-color: #f9f9f9;
}

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

.page-x-s .feature-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-x-s .feature-item img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-x-s .feature-item h3 {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-x-s .feature-item p {
  font-size: 1em;
  color: var(--text-dark);
  text-align: center;
}

/* Register Section */
.page-x-s .section-register {
  background-color: var(--background-dark);
  color: var(--text-light);
  text-align: center;
}

.page-x-s .section-register h2 {
  color: var(--secondary-color);
}

.page-x-s .section-register p {
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-x-s .section-register ol {
  list-style: decimal;
  text-align: left;
  max-width: 700px;
  margin: 0 auto 30px auto;
  padding-left: 25px;
  font-size: 1.1em;
  color: var(--text-light);
}

.page-x-s .section-register ol li {
  margin-bottom: 10px;
}

.page-x-s .section-register ol li strong {
  color: var(--secondary-color);
}

.page-x-s .section-register a {
  color: var(--secondary-color);
}

.page-x-s .section-register a:hover {
  color: var(--button-hover);
}

/* Tips Section */
.page-x-s .section-tips {
  background-color: var(--background-light);
}

.page-x-s .section-tips ul {
  list-style: disc;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 25px;
  font-size: 1.1em;
  color: var(--text-dark);
}

.page-x-s .section-tips ul li {
  margin-bottom: 10px;
}

.page-x-s .section-tips h2 {
  margin-bottom: 30px;
}

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

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

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

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

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

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

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

.page-x-s .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary-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 25px;
  background: #fdfdfd;
  color: var(--text-dark);
}

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

.page-x-s .faq-answer p {
  margin: 0;
  text-align: left;
  font-size: 1em;
}

.page-x-s .faq-answer a {
  color: var(--primary-color);
}

/* Bottom CTA Section */
.page-x-s .section-cta-bottom {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-x-s .section-cta-bottom h2 {
  color: var(--secondary-color);
}

.page-x-s .section-cta-bottom p {
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-x-s .section-cta-bottom a {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-x-s h1 {
    font-size: 2.4em;
  }
  .page-x-s h2 {
    font-size: 1.8em;
  }
  .page-x-s h3 {
    font-size: 1.4em;
  }
  .page-x-s .hero-section {
    padding: 60px 15px;
  }
  .page-x-s .game-grid,
  .page-x-s .features-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-x-s .section-register ol,
  .page-x-s .section-tips ul {
    padding-left: 20px;
  }
}

@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 p {
    font-size: 1em;
  }
  .page-x-s .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-x-s .hero-image {
    margin-bottom: 20px;
  }
  .page-x-s .game-card img {
    height: 200px;
  }
  .page-x-s .feature-item img {
    width: 60px;
    height: 60px;
  }
  .page-x-s .faq-question {
    padding: 15px 20px;
  }
  .page-x-s .faq-question h3 {
    font-size: 1.1em;
  }
  .page-x-s .faq-toggle {
    font-size: 20px;
  }
  .page-x-s .faq-answer {
    padding: 0 20px;
  }
  .page-x-s .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-x-s .container {
    padding: 0 15px;
  }
  .page-x-s h1 {
    font-size: 1.8em;
  }
  .page-x-s h2 {
    font-size: 1.4em;
  }
  .page-x-s .cta-button {
    width: 100%;
    max-width: 280px;
  }
  .page-x-s .game-grid,
  .page-x-s .features-list {
    grid-template-columns: 1fr;
  }
  .page-x-s .section-register ol,
  .page-x-s .section-tips ul {
    padding-left: 15px;
  }
  .page-x-s .faq-question {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 15px;
  }
  .page-x-s .faq-question h3 {
    margin-bottom: 8px;
  }
  .page-x-s .faq-toggle {
    align-self: flex-end;
    margin-top: -30px;
  }
  .page-x-s .faq-answer {
    padding: 0 15px;
  }
  .page-x-s .faq-item.active .faq-answer {
    padding: 10px 15px;
  }
}