/* style/x-s.css */
:root {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-light: #F8F8F8;
  --text-dark: #1A202C;
  --background-light: #ffffff;
  --background-dark: #2D3748;
  --accent-color: #E53E3E; /* A subtle red for highlights/errors */
}

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

.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(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: 25px;
  font-weight: bold;
}

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

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

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

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

.page-x-s ul {
  list-style: disc inside;
  text-align: left;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-x-s li {
  margin-bottom: 8px;
}

.page-x-s .button, .page-x-s .cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-x-s .button:hover, .page-x-s .cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

/* Hero Section */
.page-x-s .hero-banner {
  position: relative;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--text-light);
  overflow: hidden;
  padding: 80px 0;
}

.page-x-s .hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-x-s .hero-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
  object-fit: cover;
}

.page-x-s .hero-content h1 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 3.5em;
  line-height: 1.2;
}

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

.page-x-s .hero-content .cta-button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 18px 45px;
  font-size: 1.3em;
  border-radius: 8px;
}

.page-x-s .hero-content .cta-button:hover {
  background-color: #e6c200;
}

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

.page-x-s .section-intro .feature-item {
  background-color: var(--background-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-x-s .section-intro .feature-item:hover {
  transform: translateY(-10px);
}

.page-x-s .section-intro .feature-icon {
  width: 120px; /* Min 200x200 requirement, adjust if this is an icon */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
}

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

.page-x-s .section-intro .feature-item p {
  font-size: 1em;
  color: #555;
  text-align: center;
}

/* Lottery Types Section */
.page-x-s .section-lottery-types .lottery-type-card {
  display: flex;
  align-items: center;
  background-color: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  overflow: hidden;
}

.page-x-s .section-lottery-types .lottery-type-card.reverse {
  flex-direction: row-reverse;
}

.page-x-s .section-lottery-types .lottery-card-image {
  width: 50%;
  height: 400px;
  object-fit: cover;
}

.page-x-s .section-lottery-types .lottery-card-content {
  width: 50%;
  padding: 40px;
  text-align: left;
}

.page-x-s .section-lottery-types .lottery-card-content h3 {
  text-align: left;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-x-s .section-lottery-types .lottery-card-content p {
  text-align: left;
  margin-bottom: 15px;
  color: #444;
}

.page-x-s .section-lottery-types .lottery-card-content ul {
  list-style: disc inside;
  padding-left: 0;
  margin-bottom: 20px;
  color: #444;
}

.page-x-s .section-lottery-types .lottery-card-content li {
  margin-bottom: 5px;
}

.page-x-s .section-lottery-types .lottery-card-content .button {
  margin-top: 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-x-s .section-lottery-types .lottery-card-content .button:hover {
  background-color: #3A475C;
}

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

.page-x-s .section-how-to-play .step-item {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-x-s .section-how-to-play .step-icon {
  width: 100px; /* Min 200x200 requirement, adjust if this is an icon */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
}

.page-x-s .section-how-to-play .step-item h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-x-s .section-how-to-play .step-item p {
  font-size: 1em;
  color: #ccc;
  text-align: center;
}

.page-x-s .section-how-to-play .step-item .button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  margin-top: 20px;
}

.page-x-s .section-how-to-play .step-item .button:hover {
  background-color: #e6c200;
}

.page-x-s .section-how-to-play .step-item p a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-x-s .section-how-to-play .step-item p a:hover {
  color: #e6c200;
}

/* Tips Section */
.page-x-s .section-tips ul {
  list-style: decimal inside;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  font-size: 1.1em;
  padding-left: 0;
}

.page-x-s .section-tips li {
  margin-bottom: 15px;
  line-height: 1.8;
}

.page-x-s .section-tips li strong {
  color: var(--primary-color);
}

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

.page-x-s .section-tips li a:hover {
  color: #e6c200;
}

/* Promotions Section */
.page-x-s .section-promotions {
  background-color: #f0f2f5;
}

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

.page-x-s .section-promotions .promo-card {
  background-color: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-x-s .section-promotions .promo-card:hover {
  transform: translateY(-10px);
}

.page-x-s .section-promotions .promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-x-s .section-promotions .promo-card h3 {
  color: var(--primary-color);
  font-size: 1.6em;
  margin: 25px 15px 15px 15px;
}

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

.page-x-s .section-promotions .promo-card .button {
  margin-bottom: 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-x-s .section-promotions .promo-card .button:hover {
  background-color: #3A475C;
}

.page-x-s .section-promotions .all-promos-link {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
}

.page-x-s .section-promotions .all-promos-link a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-x-s .section-promotions .all-promos-link a:hover {
  color: var(--secondary-color);
}

/* Security & Support Section */
.page-x-s .section-security-support {
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-x-s .section-security-support p {
  color: #ccc;
}

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

.page-x-s .section-security-support .security-item {
  background-color: #3A475C;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-x-s .section-security-support .security-icon {
  width: 100px; /* Min 200x200 requirement, adjust if this is an icon */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
}

.page-x-s .section-security-support .security-item h3 {
  color: var(--secondary-color);
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-x-s .section-security-support .security-item p {
  font-size: 1em;
  color: #bbb;
}

.page-x-s .section-security-support .security-item .button {
  margin-top: 20px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-x-s .section-security-support .security-item .button:hover {
  background-color: #e6c200;
}

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

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

.page-x-s .faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-x-s .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  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.25em;
  color: var(--primary-color);
  text-align: left;
}

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

.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 25px;
  background: #fdfdfd;
  color: #555;
}

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

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

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

.page-x-s .faq-answer a:hover {
  color: #e6c200;
}

.page-x-s .faq-answer .button {
  margin-top: 15px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-x-s .faq-answer .button:hover {
  background-color: #3A475C;
}

/* Latest News Section */
.page-x-s .section-latest-news {
  background-color: #f0f2f5;
}

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

.page-x-s .section-latest-news .news-card {
  background-color: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-x-s .section-latest-news .news-card:hover {
  transform: translateY(-10px);
}

.page-x-s .section-latest-news .news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-x-s .section-latest-news .news-content {
  padding: 20px;
}

.page-x-s .section-latest-news .news-content h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  text-align: left;
}

.page-x-s .section-latest-news .news-content h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-x-s .section-latest-news .news-content h3 a:hover {
  color: var(--secondary-color);
}

.page-x-s .section-latest-news .news-content p {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 15px;
  text-align: left;
}

.page-x-s .section-latest-news .news-content span {
  font-size: 0.85em;
  color: #888;
  display: block;
  text-align: left;
}

.page-x-s .section-latest-news .all-news-link {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
}

.page-x-s .section-latest-news .all-news-link a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-x-s .section-latest-news .all-news-link a:hover {
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-x-s .hero-content h1 {
    font-size: 2.8em;
  }
  .page-x-s h2 {
    font-size: 2em;
  }
  .page-x-s h3 {
    font-size: 1.5em;
  }
  .page-x-s .section-lottery-types .lottery-type-card {
    flex-direction: column;
  }
  .page-x-s .section-lottery-types .lottery-type-card.reverse {
    flex-direction: column;
  }
  .page-x-s .section-lottery-types .lottery-card-image,
  .page-x-s .section-lottery-types .lottery-card-content {
    width: 100%;
  }
  .page-x-s .section-lottery-types .lottery-card-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-x-s section {
    padding: 40px 0;
  }
  .page-x-s .hero-content h1 {
    font-size: 2.2em;
  }
  .page-x-s .hero-content p {
    font-size: 1em;
  }
  .page-x-s .hero-content .cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-x-s h2 {
    font-size: 1.8em;
  }
  .page-x-s h3 {
    font-size: 1.3em;
  }
  .page-x-s p {
    font-size: 0.95em;
  }
  .page-x-s .section-intro .feature-icon,
  .page-x-s .section-how-to-play .step-icon,
  .page-x-s .section-security-support .security-icon {
    width: 80px;
  }
  .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;
  }
  .page-x-s .news-content h3 {
    font-size: 1.2em;
  }
  .page-x-s .news-content p {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .page-x-s .hero-content h1 {
    font-size: 1.8em;
  }
  .page-x-s .hero-content p {
    font-size: 0.9em;
  }
  .page-x-s .hero-image {
    margin-bottom: 20px;
  }
  .page-x-s .hero-content .cta-button {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-x-s .container {
    padding: 0 15px;
  }
  .page-x-s .section-intro .feature-item,
  .page-x-s .section-how-to-play .step-item,
  .page-x-s .section-promotions .promo-card,
  .page-x-s .section-security-support .security-item,
  .page-x-s .section-latest-news .news-card {
    padding: 20px;
  }
  .page-x-s .section-lottery-types .lottery-card-content {
    padding: 20px;
  }
  .page-x-s .section-lottery-types .lottery-card-image {
    height: 250px;
  }
  .page-x-s .faq-question h3 {
    font-size: 1em;
  }
  .page-x-s .faq-toggle {
    font-size: 18px;
  }
}