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

.page-xs {
  color: var(--page-xs-text-main); /* Default text color for the page, based on dark body background */
  background-color: var(--page-xs-background-color); /* Matches body background from shared.css */
}

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

.page-xs__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: var(--page-xs-deep-green);
  overflow: hidden;
}

.page-xs__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-xs__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-xs__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  box-sizing: border-box;
}

.page-xs__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--page-xs-gold-color);
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-xs__description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--page-xs-text-main);
  margin-bottom: 30px;
}

.page-xs__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-xs__btn-primary {
  background: var(--page-xs-button-gradient);
  color: var(--page-xs-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-xs__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-xs__btn-secondary {
  background-color: transparent;
  color: var(--page-xs-gold-color);
  border: 2px solid var(--page-xs-gold-color);
}

.page-xs__btn-secondary:hover {
  background-color: var(--page-xs-gold-color);
  color: var(--page-xs-deep-green);
}

.page-xs__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-xs-gold-color);
  line-height: 1.3;
}

.page-xs__light-bg {
  background-color: var(--page-xs-text-main);
  color: #333333;
  padding: 60px 0;
}

.page-xs__dark-section {
  background-color: var(--page-xs-card-bg);
  color: var(--page-xs-text-main);
  padding: 60px 0;
}

.page-xs__introduction-section p,
.page-xs__how-to-play-section p,
.page-xs__tips-section p,
.page-xs__promotions-section p,
.page-xs__conclusion-section p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

.page-xs__introduction-section p:last-of-type,
.page-xs__conclusion-section p:last-of-type {
  margin-bottom: 0;
}

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

.page-xs__card {
  background-color: var(--page-xs-deep-green);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--page-xs-border-color);
  color: var(--page-xs-text-main);
}

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

.page-xs__card-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-xs__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--page-xs-gold-color);
}

.page-xs__card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--page-xs-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-xs__card .page-xs__cta-button {
  margin-top: auto; /* Push button to bottom */
}

.page-xs__steps-list,
.page-xs__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-xs__step-item,
.page-xs__tip-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-xs__step-item:last-child,
.page-xs__tip-item:last-child {
  margin-bottom: 0;
}

.page-xs__step-title,
.page-xs__tip-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--page-xs-primary-color);
  margin-bottom: 10px;
}

.page-xs__step-item p,
.page-xs__tip-item p {
  color: #555555;
}

.page-xs__promo-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1rem;
  color: var(--page-xs-text-main);
}

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

.page-xs__faq-item {
  background-color: var(--page-xs-text-main);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-xs__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--page-xs-primary-color);
  transition: background-color 0.3s ease;
}

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

.page-xs__faq-item summary:hover {
  background-color: #f5f5f5;
}

.page-xs__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-xs__faq-item[open] .page-xs__faq-toggle {
  transform: rotate(45deg);
}

.page-xs__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.page-xs__faq-answer p {
  margin-bottom: 0;
}

.page-xs__conclusion-section {
  padding-bottom: 80px; /* More padding for conclusion */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-xs__hero-image-wrapper {
    max-height: 500px;
  }
  .page-xs__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-xs__description {
    font-size: 1rem;
  }
  .page-xs__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-xs__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-xs__hero-image-wrapper {
    max-height: 400px;
  }
  .page-xs__hero-content {
    padding: 30px 15px;
  }
  .page-xs__main-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    margin-bottom: 15px;
  }
  .page-xs__description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }
  .page-xs__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-xs__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }
  .page-xs__light-bg, .page-xs__dark-section {
    padding: 40px 0;
  }
  .page-xs__game-cards-grid, .page-xs__benefits-grid, .page-xs__promo-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-xs__card {
    padding: 20px;
  }
  .page-xs__card-title {
    font-size: 1.3rem;
  }
  .page-xs__card p {
    font-size: 0.9rem;
  }
  .page-xs__step-item, .page-xs__tip-item {
    padding: 20px;
  }
  .page-xs__step-title, .page-xs__tip-title {
    font-size: 1.2rem;
  }
  .page-xs__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }
  .page-xs__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 0.95rem;
  }

  /* Mobile specific overrides for images, videos, buttons */
  .page-xs img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-xs__section, .page-xs__card, .page-xs__container,
  .page-xs__game-cards-grid, .page-xs__benefits-grid, .page-xs__promo-cards-grid,
  .page-xs__steps-list, .page-xs__tips-list, .page-xs__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-xs__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Buttons */
  .page-xs__cta-button,
  .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__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}