.page-xs {
  color: #333333; /* Default text color for light backgrounds */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
}

.page-xs__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-xs__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-xs__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: -200px auto 0 auto; /* Adjust to sit below the image visually */
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-xs__hero-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-xs__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-xs__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-xs__section {
  padding: 60px 20px;
  text-align: center;
}

.page-xs__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-xs__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-xs__section-text {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-xs__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-xs__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-xs__dark-section .page-xs__section-title,
.page-xs__dark-section .page-xs__section-text {
  color: #ffffff;
}

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

.page-xs__lottery-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-xs__lottery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-xs__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-xs__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-xs__card-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-xs__card-button {
  margin-top: auto;
  align-self: flex-start;
}

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

.page-xs__step-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.page-xs__step-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-xs__step-description {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-xs__step-button {
  margin-top: auto;
  align-self: flex-start;
}

.page-xs__promo-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
}

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

.page-xs__feature-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-xs__feature-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-xs__feature-description {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.5;
}

.page-xs__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-xs__faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.page-xs__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  list-style: none;
}

.page-xs__faq-question::-webkit-details-marker {
  display: none;
}

.page-xs__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  margin-left: 15px;
}

.page-xs__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  border-top: 1px solid #eeeeee;
  margin-top: 10px;
}

.page-xs__btn-primary,
.page-xs__btn-secondary,
.page-xs a[class*="button"],
.page-xs a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-xs__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-xs__btn-primary:hover {
  background: #1e87c0;
  border-color: #1e87c0;
}

.page-xs__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-xs__btn-secondary:hover {
  background: #e0f2f7;
  color: #1e87c0;
  border-color: #1e87c0;
}

/* General image responsiveness */
.page-xs img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-xs__container,
.page-xs__hero-content,
.page-xs__hero-cta-buttons,
.page-xs__lottery-grid,
.page-xs__guide-steps,
.page-xs__features-grid,
.page-xs__faq-list {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Media Queries for Responsive Design --- */
@media (max-width: 1024px) {
  .page-xs__hero-title {
    font-size: 2.5em;
  }

  .page-xs__section-title {
    font-size: 2em;
  }

  .page-xs__lottery-grid,
  .page-xs__guide-steps,
  .page-xs__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-xs {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-xs__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-xs__hero-content {
    margin-top: -100px; /* Adjusted for smaller screens */
    padding: 20px;
  }

  .page-xs__hero-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-xs__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-xs__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-xs__btn-primary,
  .page-xs__btn-secondary,
  .page-xs a[class*="button"],
  .page-xs a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-xs__cta-buttons,
  .page-xs__button-group,
  .page-xs__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-xs__section {
    padding: 40px 15px;
  }

  .page-xs__section-title {
    font-size: 1.8em;
  }

  .page-xs__lottery-grid,
  .page-xs__guide-steps,
  .page-xs__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-xs__lottery-card,
  .page-xs__step-item,
  .page-xs__feature-card {
    padding: 20px;
  }

  .page-xs__card-image {
    height: 180px;
  }

  .page-xs__promo-image {
    margin: 20px auto;
  }

  /* Universal image responsiveness for mobile */
  .page-xs img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-xs__section,
  .page-xs__card,
  .page-xs__container,
  .page-xs__lottery-card,
  .page-xs__step-item,
  .page-xs__feature-card,
  .page-xs__faq-list,
  .page-xs__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-xs__faq-question {
    padding: 15px;
    font-size: 1em;
  }

  .page-xs__faq-answer {
    padding: 0 15px 15px 15px;
  }
}