/* style/x-s.css */
.page-x-s {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
}

.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-of-type(even) {
  background-color: #f0f0f0;
}

.page-x-s__section-title {
  font-size: 2.5em;
  color: #003366;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

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

.page-x-s__hero-section {
  background: linear-gradient(135deg, #003366 0%, #004488 100%);
  color: #fff;
  padding: 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.page-x-s__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('[GALLERY:bg:abstract,geometric,blue_gold,lottery_theme]') no-repeat center center/cover;
    opacity: 0.15;
    z-index: 1;
}

.page-x-s__hero-section > .page-x-s__container {
  z-index: 2;
  flex: 1;
  max-width: 600px;
}

.page-x-s__hero-image-wrapper {
  z-index: 2;
  flex: 1;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.page-x-s__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-x-s__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFCC00;
  line-height: 1.2;
}

.page-x-s__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-x-s__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-x-s__btn--primary {
  background-color: #FFCC00;
  color: #003366;
}

.page-x-s__btn--primary:hover {
  background-color: #e6b800;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-x-s__btn--secondary {
  background-color: transparent;
  color: #003366;
  border: 2px solid #003366;
  margin-left: 20px;
}

.page-x-s__btn--secondary:hover {
  background-color: #003366;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-x-s__cta-row {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-x-s__intro-section p {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: #555;
}

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

.page-x-s__game-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-x-s__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-x-s__game-card-image {
  max-width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-x-s__game-card-title {
  font-size: 1.8em;
  color: #003366;
  margin-bottom: 15px;
}

.page-x-s__game-card-description {
  font-size: 1em;
  color: #666;
}

.page-x-s__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-x-s__guide-list li {
  background-color: #fff;
  border-left: 5px solid #FFCC00;
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease;
}

.page-x-s__guide-list li:hover {
  transform: translateX(5px);
}

.page-x-s__guide-list-title {
  font-size: 1.6em;
  color: #003366;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-x-s__guide-list p {
  font-size: 1.05em;
  color: #555;
}

.page-x-s__guide-list a {
    color: #003366;
    text-decoration: underline;
}

.page-x-s__guide-list a:hover {
    color: #FFCC00;
}

.page-x-s__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  text-align: left;
}

.page-x-s__tips-list li {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-top: 4px solid #003366;
}

.page-x-s__tips-list-title {
  font-size: 1.7em;
  color: #003366;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-x-s__tips-list p {
  font-size: 1.05em;
  color: #555;
}

.page-x-s__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-x-s__promo-list li {
  background-color: #fff;
  margin-bottom: 15px;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  color: #333;
  display: flex;
  align-items: center;
}

.page-x-s__promo-list li::before {
  content: '✓';
  color: #FFCC00;
  font-weight: bold;
  margin-right: 15px;
  font-size: 1.2em;
}

.page-x-s__promo-list a {
    color: #003366;
    text-decoration: underline;
}

.page-x-s__promo-list a:hover {
    color: #FFCC00;
}

.page-x-s__app-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
  flex-wrap: wrap-reverse;
}

.page-x-s__app-text {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: left;
}

.page-x-s__app-text p {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 20px;
}

.page-x-s__app-image-wrapper {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  display: flex;
  justify-content: center;
}

.page-x-s__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-x-s__faq-accordion {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-x-s__faq-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-x-s__faq-question {
  font-size: 1.3em;
  color: #003366;
  padding: 20px 25px;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.page-x-s__faq-question:hover {
  background-color: #f0f0f0;
}

.page-x-s__faq-question::after {
  content: '+';
  font-size: 1.5em;
  color: #FFCC00;
  transition: transform 0.3s ease;
}

.page-x-s__faq-item.active .page-x-s__faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

.page-x-s__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-x-s__faq-item.active .page-x-s__faq-answer {
  max-height: 200px; /* Adjust based on content */
  padding: 20px 25px;
}

.page-x-s__faq-answer p {
  margin: 0;
  color: #555;
}

.page-x-s__faq-answer a {
    color: #003366;
    text-decoration: underline;
}

.page-x-s__faq-answer a:hover {
    color: #FFCC00;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-x-s__hero-section {
    flex-direction: column;
    text-align: center;
  }
  .page-x-s__hero-section > .page-x-s__container {
    max-width: 100%;
    margin-bottom: 40px;
  }
  .page-x-s__hero-image-wrapper {
    max-width: 80%;
  }
  .page-x-s__hero-title {
    font-size: 2.8em;
  }
  .page-x-s__hero-description {
    font-size: 1.1em;
  }
  .page-x-s__section-title {
    font-size: 2em;
  }
  .page-x-s__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-x-s__app-content {
    flex-direction: column-reverse;
    gap: 30px;
  }
  .page-x-s__app-text,
  .page-x-s__app-image-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-x-s__hero-title {
    font-size: 2.2em;
  }
  .page-x-s__hero-description {
    font-size: 1em;
  }
  .page-x-s__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-x-s__btn--secondary {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-x-s__cta-row {
    flex-direction: column;
    gap: 15px;
  }
  .page-x-s__section {
    padding: 40px 0;
  }
  .page-x-s__section-title {
    font-size: 1.8em;
  }
  .page-x-s__game-card-title {
    font-size: 1.5em;
  }
  .page-x-s__guide-list li,
  .page-x-s__tips-list li,
  .page-x-s__promo-list li,
  .page-x-s__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-x-s__faq-answer {
    padding: 15px 20px;
  }
  .page-x-s__faq-item.active .page-x-s__faq-answer {
    max-height: 300px; /* Adjust for mobile content */
    padding: 15px 20px;
  }
}