.page-x-s {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #f8f8f8;
}

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

.page-x-s .highlight {
  color: var(--primary-color);
  font-weight: bold;
}

.page-x-s .section-title {
  font-size: 36px;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.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 p {
  margin-bottom: 15px;
  color: #555555;
}

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

.page-x-s a:hover {
  text-decoration: underline;
}

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

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

.page-x-s .cta-button.small-button {
  padding: 10px 20px;
  font-size: 16px;
}

/* Banner Section */
.page-x-s .banner-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #FFD700, #000080);
}

.page-x-s .banner-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-x-s .banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  max-width: 80%;
}

.page-x-s .banner-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-x-s .banner-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Intro Section */
.page-x-s .intro-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-x-s .intro-section p {
  text-align: justify;
}

.page-x-s .intro-highlight {
  background-color: #fef5e7;
  border-left: 5px solid var(--primary-color);
  padding: 25px;
  margin-top: 30px;
  border-radius: 8px;
}

.page-x-s .intro-highlight h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 24px;
}

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

.page-x-s .intro-highlight ul li {
  margin-bottom: 10px;
  color: #444444;
}

/* Lottery Types Section */
.page-x-s .lottery-types-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.page-x-s .lottery-type-card {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-x-s .lottery-type-card:last-child {
  margin-bottom: 0;
}

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

.page-x-s .lottery-type-card .card-image {
  width: 50%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.page-x-s .lottery-type-card .card-content {
  width: 50%;
  padding: 30px;
}

.page-x-s .lottery-type-card .card-content h3 {
  font-size: 28px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-x-s .lottery-type-card .card-content h3 a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-x-s .lottery-type-card .card-content h3 a:hover {
  text-decoration: underline;
}

.page-x-s .lottery-type-card .card-content p {
  color: #555555;
  margin-bottom: 20px;
  text-align: justify;
}

/* Advantages Section */
.page-x-s .advantages-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-x-s .advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

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

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

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

.page-x-s .advantage-item p {
  color: #666666;
  font-size: 15px;
}

/* Guide Section */
.page-x-s .guide-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.page-x-s .guide-list {
  list-style: none;
  padding: 0;
}

.page-x-s .guide-list li {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-x-s .guide-list li h3 {
  font-size: 26px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  position: relative;
  padding-left: 45px;
}

.page-x-s .guide-list li h3::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: #000080;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

.page-x-s .guide-list li:nth-child(1) h3::before { content: '1'; }
.page-x-s .guide-list li:nth-child(2) h3::before { content: '2'; }
.page-x-s .guide-list li:nth-child(3) h3::before { content: '3'; }
.page-x-s .guide-list li:nth-child(4) h3::before { content: '4'; }

.page-x-s .guide-list li p {
  color: #555555;
  margin-bottom: 20px;
  text-align: justify;
}

/* Tips Section */
.page-x-s .tips-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-x-s .tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-x-s .tip-item {
  background-color: #fef5e7;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-x-s .tip-item h3 {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-x-s .tip-item p {
  color: #666666;
  font-size: 15px;
  text-align: justify;
}

/* FAQ Section */
.page-x-s .faq-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.page-x-s .faq-list {
  margin-top: 30px;
}

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

.page-x-s .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

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

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

.page-x-s .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-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 25px;
  background: #f9f9f9;
  border-top: none;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
}

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

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

.page-x-s .faq-answer p {
  margin: 0 0 10px 0;
  color: #666666;
}

/* News Section */
.page-x-s .news-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-x-s .news-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

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

.page-x-s .news-card .card-content {
  padding: 25px;
}

.page-x-s .news-card .card-content h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

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

.page-x-s .news-card .card-content h3 a:hover {
  text-decoration: underline;
}

.page-x-s .news-card .card-content p {
  font-size: 15px;
  color: #666666;
  margin-bottom: 20px;
  text-align: justify;
}

.page-x-s .news-card .read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
}

.page-x-s .news-card .read-more:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-x-s .banner-title {
    font-size: 38px;
  }
  .page-x-s .banner-description {
    font-size: 18px;
  }
  .page-x-s .section-title {
    font-size: 30px;
  }
  .page-x-s .lottery-type-card {
    flex-direction: column;
  }
  .page-x-s .lottery-type-card.reverse {
    flex-direction: column;
  }
  .page-x-s .lottery-type-card .card-image,
  .page-x-s .lottery-type-card .card-content {
    width: 100%;
  }
  .page-x-s .lottery-type-card .card-image {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .page-x-s .banner-section {
    padding: 60px 0;
  }
  .page-x-s .banner-title {
    font-size: 30px;
  }
  .page-x-s .banner-description {
    font-size: 16px;
  }
  .page-x-s .cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-x-s .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-x-s .intro-section, .page-x-s .lottery-types-section, .page-x-s .advantages-section, .page-x-s .guide-section, .page-x-s .tips-section, .page-x-s .faq-section, .page-x-s .news-section {
    padding: 40px 0;
  }
  .page-x-s .advantages-grid, .page-x-s .tips-grid, .page-x-s .news-grid {
    grid-template-columns: 1fr;
  }
  .page-x-s .lottery-type-card .card-image {
    height: 200px;
  }
  .page-x-s .lottery-type-card .card-content h3 {
    font-size: 24px;
  }
  .page-x-s .guide-list li h3 {
    font-size: 22px;
    padding-left: 35px;
  }
  .page-x-s .guide-list li h3::before {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
  .page-x-s .faq-question {
    padding: 15px 20px;
  }
  .page-x-s .faq-question h3 {
    font-size: 16px;
  }
  .page-x-s .faq-toggle {
    font-size: 20px;
  }
  .page-x-s .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-x-s .banner-title {
    font-size: 24px;
  }
  .page-x-s .banner-description {
    font-size: 14px;
  }
  .page-x-s .cta-button {
    padding: 10px 20px;
    font-size: 14px;
  }
  .page-x-s .section-title {
    font-size: 22px;
  }
  .page-x-s .intro-highlight h3 {
    font-size: 20px;
  }
  .page-x-s .lottery-type-card .card-content h3 {
    font-size: 20px;
  }
  .page-x-s .advantage-item h3, .page-x-s .tip-item h3, .page-x-s .news-card .card-content h3 {
    font-size: 18px;
  }
  .page-x-s .guide-list li h3 {
    font-size: 18px;
  }
  .page-x-s .guide-list li h3::before {
    width: 25px;
    height: 25px;
    font-size: 16px;
  }
  .page-x-s .faq-question h3 {
    font-size: 14px;
  }
  .page-x-s .faq-toggle {
    font-size: 18px;
  }
}