.page-lottery {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Inherited from body, ensure contrast */
}

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

.page-lottery__dark-bg {
  background-color: #0A2463;
  color: #ffffff;
}

.page-lottery__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

.page-lottery__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  overflow: hidden;
}

.page-lottery__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-lottery__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability, not color change */
}

.page-lottery__hero-section .page-lottery__container {
  position: relative;
  z-index: 1;
}

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

.page-lottery__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-lottery__btn-primary {
  background-color: #FFD700;
  color: #0A2463;
  border: 2px solid #FFD700;
}

.page-lottery__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-lottery__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-lottery__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
}

.page-lottery__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit;
  font-weight: bold;
}

.page-lottery__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-lottery__about-xoso {
  padding: 80px 0;
}

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

.page-lottery__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-lottery__feature-icon {
  width: 100%; /* Ensure large images */
  height: auto;
  max-width: 250px; /* Adjust as needed for display */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-lottery__feature-title {
  font-size: 1.5em;
  color: #0A2463;
  margin-bottom: 15px;
}

.page-lottery__feature-description {
  font-size: 1em;
  color: #555555;
}

.page-lottery__game-types {
  padding: 80px 0;
}

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

.page-lottery__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-lottery__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-lottery__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-lottery__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-lottery__card-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-lottery__card-title a:hover {
  text-decoration: underline;
}

.page-lottery__card-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__how-to-play {
  padding: 80px 0;
}

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

.page-lottery__step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-lottery__step-number {
  display: inline-flex;
  width: 50px;
  height: 50px;
  background-color: #0A2463;
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.page-lottery__step-title {
  font-size: 1.6em;
  color: #0A2463;
  margin-bottom: 15px;
}

.page-lottery__step-description {
  font-size: 1em;
  color: #555555;
}

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

.page-lottery__promotions {
  padding: 80px 0;
}

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

.page-lottery__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  text-align: center;
}

.page-lottery__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-lottery__promo-title {
  font-size: 1.6em;
  color: #FFD700;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-lottery__promo-description {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 15px 25px;
}

.page-lottery__faq-section {
  padding: 80px 0;
}

.page-lottery__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-lottery__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
  overflow: hidden;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #0A2463;
  border-bottom: 1px solid #e0e0e0;
}

.page-lottery__faq-question:hover {
  background-color: #e0e0e0;
}

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

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  transform: rotate(45deg);
}

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 25px;
}

.page-lottery__faq-answer p {
  margin: 0;
}

.page-lottery__cta-final {
  padding: 80px 0;
  text-align: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 3em;
  }
  .page-lottery__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile if needed */
  }
  .page-lottery__hero-title {
    font-size: 2.5em;
  }
  .page-lottery__hero-description {
    font-size: 1em;
  }
  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-lottery__container,
  .page-lottery__hero-section,
  .page-lottery__about-xoso,
  .page-lottery__game-types,
  .page-lottery__how-to-play,
  .page-lottery__promotions,
  .page-lottery__faq-section,
  .page-lottery__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-lottery__feature-item,
  .page-lottery__card,
  .page-lottery__step-item,
  .page-lottery__promo-card,
  .page-lottery__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-lottery__feature-icon {
    max-width: 100% !important; /* Ensure large images in features */
  }

  .page-lottery__card-image,
  .page-lottery__promo-image {
    height: auto !important; /* Allow height to adjust */
  }

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

  .page-lottery__text-block {
    font-size: 0.95em;
  }

  .page-lottery__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-lottery__faq-answer {
    padding: 0 20px;
  }

  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-lottery__hero-title {
    font-size: 2em;
  }
  .page-lottery__section-title {
    font-size: 1.6em;
  }
  .page-lottery__faq-question {
    font-size: 1em;
  }
}