/* style/xs.css */

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

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

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

/* Hero Section */
.page-xs__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--color-deep-green);
}

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

.page-xs__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  opacity: 0.7; /* Slightly dim the image to make text pop */
}

.page-xs__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-xs__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px var(--color-glow);
}

.page-xs__hero-description {
  font-size: 1.2rem;
  color: var(--color-text-main);
  margin-bottom: 30px;
}

.page-xs__hero-cta-button,
.page-xs__cta-button,
.page-xs__final-cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button-gradient);
  color: var(--color-text-main);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-xs__hero-cta-button:hover,
.page-xs__cta-button:hover,
.page-xs__final-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

/* General Section Styling */
.page-xs__introduction-section,
.page-xs__lottery-types-section,
.page-xs__how-to-play-section,
.page-xs__benefits-section,
.page-xs__tips-section,
.page-xs__faq-section,
.page-xs__final-cta-section {
  padding: 60px 0;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-divider);
}

.page-xs__section-title {
  font-size: 2.5rem;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.5);
}

.page-xs__section-paragraph {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-xs__card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--color-text-main);
}

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

.page-xs__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--color-divider);
}

.page-xs__card-title {
  font-size: 1.5rem;
  color: var(--color-gold);
  padding: 20px 15px 10px;
  font-weight: bold;
}

.page-xs__card-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  padding: 0 15px 20px;
}

/* How To Play Section */
.page-xs__how-to-play-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 800px;
}

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

.page-xs__how-to-play-step-title {
  font-size: 1.4rem;
  color: var(--color-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-xs__how-to-play-step-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.page-xs__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Benefits Section */
.page-xs__benefits-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-xs__benefits-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-xs__benefits-item:hover {
  transform: translateY(-5px);
}

.page-xs__benefits-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px var(--color-glow));
}

.page-xs__benefits-title {
  font-size: 1.3rem;
  color: var(--color-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-xs__benefits-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

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

.page-xs__tip-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--color-text-main);
}

.page-xs__tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-xs__tip-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--color-divider);
}

.page-xs__tip-title {
  font-size: 1.4rem;
  color: var(--color-gold);
  padding: 20px 15px 10px;
  font-weight: bold;
}

.page-xs__tip-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  padding: 0 15px 20px;
}

/* FAQ Section */
.page-xs__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-xs__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-xs__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-text-main);
  list-style: none; /* Remove default marker */
}

.page-xs__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-xs__faq-question .page-xs__faq-toggle {
  font-size: 1.5rem;
  color: var(--color-gold);
  transition: transform 0.3s ease;
}

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

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

/* Final CTA Section */
.page-xs__final-cta-section {
  text-align: center;
  background-color: var(--color-deep-green);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-xs__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-xs__hero-description {
    font-size: 1.1rem;
  }
  .page-xs__section-title {
    font-size: 2rem;
  }
  .page-xs__card-title, .page-xs__benefits-title, .page-xs__tip-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .page-xs__hero-section {
    padding-bottom: 40px;
  }
  .page-xs__hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
  }
  .page-xs__hero-image-wrapper {
    max-height: 300px;
  }
  .page-xs__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-xs__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-xs__hero-cta-button,
  .page-xs__cta-button,
  .page-xs__final-cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-xs__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-xs__section-paragraph {
    font-size: 1rem;
  }
  .page-xs__lottery-cards,
  .page-xs__benefits-list,
  .page-xs__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-xs__card,
  .page-xs__benefits-item,
  .page-xs__tip-card {
    margin: 0 15px; /* Add horizontal padding for cards */
  }
  .page-xs__introduction-section,
  .page-xs__lottery-types-section,
  .page-xs__how-to-play-section,
  .page-xs__benefits-section,
  .page-xs__tips-section,
  .page-xs__faq-section,
  .page-xs__final-cta-section {
    padding: 40px 0;
  }
  .page-xs__how-to-play-item {
    margin: 0 15px 20px;
  }
  .page-xs__faq-item {
    margin: 0 15px 15px;
  }
  .page-xs__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
  .page-xs__faq-answer {
    padding: 0 20px 15px;
  }

  /* Image responsiveness for mobile */
  .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__hero-section, .page-xs__lottery-types-section, .page-xs__how-to-play-section, .page-xs__benefits-section, .page-xs__tips-section, .page-xs__faq-section, .page-xs__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-xs__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-xs__hero-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-xs__hero-content {
    width: calc(100% - 30px) !important; /* Adjust for padding */
    left: 15px !important;
    transform: none !important;
  }

  /* Button responsiveness for mobile */
  .page-xs__cta-button, .page-xs__final-cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-xs__cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
  }
}