.page-x-s {
  font-family: 'Arial', sans-serif;
  color: #E0E0E0; /* Light grey for general text on dark background */
  background-color: #0A0A0A; /* Main dark background */
  line-height: 1.6;
}

.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-child(even) {
  background-color: #1A1A1A; /* Slightly lighter dark background for contrast */
}

.page-x-s h1,
.page-x-s h2 {
  color: #FFD700; /* Gold for main titles */
  margin-bottom: 30px;
  font-weight: bold;
  text-transform: uppercase;
}

.page-x-s h1 {
  font-size: 3em;
  line-height: 1.2;
}

.page-x-s h2 {
  font-size: 2.5em;
  line-height: 1.3;
  border-bottom: 2px solid #FFD700;
  display: inline-block;
  padding-bottom: 10px;
  margin-top: 20px;
}

.page-x-s h3 {
  color: #FFD700; /* Gold for sub-titles */
  font-size: 1.8em;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-x-s p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #CCCCCC; /* Lighter grey for paragraphs */
}

.page-x-s a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-x-s a:hover {
  color: #DC143C; /* Dark red on hover */
}

.page-x-s-cta-button {
  display: inline-block;
  background-color: #DC143C; /* Call to action red */
  color: #FFFFFF; /* White text for CTA */
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-x-s-cta-button:hover {
  background-color: #FFD700; /* Gold on hover */
  color: #0A0A0A;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Hero Banner */
.page-x-s-hero-banner {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #0A0A0A 0%, #333333 100%); /* Dark gradient for background */
}

.page-x-s-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-x-s-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly transparent to let text stand out */
}

.page-x-s-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-x-s-hero-content h1 {
  font-size: 3.8em;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
}

.page-x-s-hero-content p {
  font-size: 1.4em;
  color: #E0E0E0;
  max-width: 700px;
  margin: 0 auto 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

.page-x-s-type-card {
  background-color: #1A1A1A;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 450px; /* Ensure cards have similar height */
}

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

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

.page-x-s-type-card h3 {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-x-s-type-card h3 a {
  color: #FFD700;
  text-decoration: none;
}

.page-x-s-type-card p {
  font-size: 1em;
  color: #CCCCCC;
  flex-grow: 1;
}

.page-x-s-read-more {
  display: inline-block;
  background-color: #0A0A0A;
  color: #FFD700;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #FFD700;
}

.page-x-s-read-more:hover {
  background-color: #FFD700;
  color: #0A0A0A;
}

/* How-to-Play Steps */
.page-x-s-steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-x-s-steps li {
  background-color: #1A1A1A;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-left: 100px;
}

.page-x-s-steps li::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  position: absolute;
  left: 30px;
  top: 30px;
  background-color: #FFD700;
  color: #0A0A0A;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-x-s-steps li h3 {
  margin-top: 0;
  color: #FFD700;
}

.page-x-s-steps li p {
  margin-bottom: 15px;
  color: #CCCCCC;
}

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

.page-x-s-advantage-item {
  background-color: #1A1A1A;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

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

.page-x-s-advantage-item h3 {
  font-size: 1.4em;
  color: #FFD700;
}

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

/* Tips List */
.page-x-s-tip-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-x-s-tip-list li {
  background-color: #1A1A1A;
  border-left: 5px solid #FFD700;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-x-s-tip-list li strong {
  color: #FFD700;
  font-size: 1.1em;
}

.page-x-s-tip-list li p {
  margin-top: 10px;
  margin-bottom: 0;
  color: #CCCCCC;
}

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

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: #1A1A1A;
  color: #FFD700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #333333;
}

.faq-question:hover {
  background: #2A2A2A;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #FFD700;
}

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #DC143C;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #0A0A0A;
  color: #CCCCCC;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
  border-top: 1px solid #333333;
}

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

.page-x-s-faq-link {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background-color: #DC143C;
  color: #FFFFFF;
  border-radius: 5px;
  font-size: 0.9em;
}

.page-x-s-faq-link:hover {
  background-color: #FFD700;
  color: #0A0A0A;
}

/* News Grid */
.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-color: #1A1A1A;
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-x-s-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

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

.page-x-s-news-card h3 {
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-x-s-news-card h3 a {
  color: #FFD700;
  text-decoration: none;
}

.page-x-s-news-card p {
  font-size: 0.95em;
  color: #CCCCCC;
  margin-bottom: 15px;
}

.page-x-s-view-all {
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-x-s-hero-content h1 {
    font-size: 3em;
  }
  .page-x-s-hero-content p {
    font-size: 1.2em;
  }
  .page-x-s h2 {
    font-size: 2em;
  }
  .page-x-s h3 {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-x-s-hero-banner {
    min-height: 400px;
    padding: 60px 15px;
  }
  .page-x-s-hero-content h1 {
    font-size: 2.5em;
  }
  .page-x-s-hero-content p {
    font-size: 1em;
  }
  .page-x-s h1 {
    font-size: 2.5em;
  }
  .page-x-s h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-x-s h3 {
    font-size: 1.4em;
  }
  .page-x-s-section {
    padding: 40px 0;
  }
  .page-x-s-type-grid,
  .page-x-s-advantage-grid,
  .page-x-s-news-grid {
    grid-template-columns: 1fr;
  }
  .page-x-s-steps li {
    padding-left: 30px;
  }
  .page-x-s-steps li::before {
    position: static;
    margin-bottom: 15px;
    display: block;
    width: auto;
    height: auto;
    border-radius: 5px;
    padding: 5px 15px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-x-s-hero-content h1 {
    font-size: 2em;
  }
  .page-x-s-hero-content p {
    font-size: 0.9em;
  }
  .page-x-s-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-x-s h1 {
    font-size: 2em;
  }
  .page-x-s h2 {
    font-size: 1.6em;
  }
  .page-x-s h3 {
    font-size: 1.2em;
  }
  .page-x-s p {
    font-size: 0.95em;
  }
  .page-x-s-steps li {
    padding: 20px;
  }
  .page-x-s-steps li::before {
    font-size: 1em;
    padding: 3px 10px;
  }
}