.page-xs {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--background);
}

.page-xs__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-xs__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  color: var(--text-main);
}

.page-xs__text-block {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-main);
}

.page-xs__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: var(--deep-green);
  overflow: hidden;
}

.page-xs__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

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

.page-xs__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 2;
  position: relative;
  padding: 0 20px;
}

.page-xs__hero-title {
  font-size: clamp(32px, 5vw, 58px); /* Using clamp for responsive H1 */
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-xs__hero-description {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-xs__cta-button {
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-xs__btn-primary {
  background: var(--button);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-xs__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-xs__btn-secondary {
  background: var(--background);
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-xs__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: var(--gold);
  color: var(--background);
}

.page-xs__introduction-section,
.page-xs__how-to-play-section,
.page-xs__promotions-section {
  padding: 80px 0;
  background-color: var(--background);
  color: var(--text-main);
}

.page-xs__lottery-types-section,
.page-xs__faq-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.page-xs__advantages-section,
.page-xs__conclusion-section {
  padding: 80px 0;
  background-color: var(--deep-green);
  color: var(--text-secondary);
}

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

.page-xs__card {
  background-color: var(--background);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.page-xs__card-light {
  background-color: #1a3628; /* Slightly lighter for contrast in dark section */
  color: var(--text-secondary);
}

.page-xs__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.page-xs__card-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
}

.page-xs__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-xs__card-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-xs__list-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

.page-xs__list-item-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-xs__list-item-description {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.page-xs__cta-container {
  text-align: center;
  margin-top: 50px;
}

.page-xs__text-center {
  text-align: center;
}

.page-xs__faq-list {
  margin-top: 40px;
}

.page-xs__faq-item {
  background-color: var(--background);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  overflow: hidden;
}

.page-xs__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-main);
  position: relative;
}

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

.page-xs__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-xs__faq-toggle {
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold);
}

.page-xs__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-xs__faq-item[open] .page-xs__faq-toggle {
  content: '−';
}

.page-xs__text-main { color: var(--text-main); }
.page-xs__text-secondary { color: var(--text-secondary); }
.page-xs__dark-bg { background: var(--background); color: var(--text-main); }
.page-xs__light-bg { background: var(--background); color: var(--text-main); }
.page-xs__card-bg { background: var(--card-bg); color: var(--text-main); }
.page-xs__dark-section { background: var(--deep-green); color: var(--text-secondary); }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-xs__hero-section {
    padding: 40px 20px;
  }
  .page-xs__hero-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }
  .page-xs__hero-description {
    font-size: 18px;
  }
  .page-xs__section-title {
    font-size: clamp(24px, 3.5vw, 40px);
  }
  .page-xs__text-block {
    font-size: 17px;
  }
  .page-xs__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-xs__lottery-grid,
  .page-xs__advantages-grid,
  .page-xs__promotion-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-xs {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-xs__container {
    padding: 0 15px;
  }
  .page-xs__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }
  .page-xs__hero-title {
    font-size: clamp(26px, 6vw, 42px);
  }
  .page-xs__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-xs__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-xs__cta-button {
    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__hero-cta-buttons, .page-xs__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    flex-wrap: wrap !important;
  }
  .page-xs__section-title {
    font-size: clamp(22px, 5vw, 36px);
    margin-bottom: 30px;
  }
  .page-xs__text-block {
    font-size: 16px;
  }
  .page-xs__introduction-section,
  .page-xs__how-to-play-section,
  .page-xs__promotions-section,
  .page-xs__lottery-types-section,
  .page-xs__faq-section,
  .page-xs__advantages-section,
  .page-xs__conclusion-section {
    padding: 40px 0;
  }
  .page-xs__lottery-grid,
  .page-xs__advantages-grid,
  .page-xs__promotion-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-xs__card {
    padding: 25px;
  }
  .page-xs__card-title {
    font-size: 20px;
  }
  .page-xs__card-description {
    font-size: 15px;
  }
  .page-xs__list-item {
    padding: 20px;
  }
  .page-xs__list-item-title {
    font-size: 20px;
  }
  .page-xs__list-item-description {
    font-size: 15px;
  }
  .page-xs__faq-item summary {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-xs__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }
  /* All images */
  .page-xs img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* All image containers */
  .page-xs__hero-image-wrapper,
  .page-xs__lottery-card,
  .page-xs__promotion-card,
  .page-xs__section,
  .page-xs__card,
  .page-xs__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Color definitions */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Ensure contrast for card text within dark sections */
.page-xs__dark-section .page-xs__card {
  background-color: #1a3628; /* Slightly lighter dark for better contrast */
  color: var(--text-secondary);
}

.page-xs__dark-section .page-xs__card-title {
  color: var(--text-main);
}

.page-xs__dark-section .page-xs__card-description {
  color: var(--text-secondary);
}

/* Contrast fix for specific elements if needed */
.page-xs__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-xs__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}