.page-lottery {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

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

.page-lottery__description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: #ffffff;
}

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
  box-sizing: border-box;
}

.page-lottery__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-lottery__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-lottery__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-lottery__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  color: #ffffff;
}

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

.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;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

/* Custom colors for Register/Login if they were here, but generalized for CTA */
.page-lottery__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-lottery__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-lottery__btn-primary--small {
  padding: 10px 20px;
  font-size: 1em;
}

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

/* Sections */
.page-lottery__introduction-section,
.page-lottery__benefits-section,
.page-lottery__video-section,
.page-lottery__faq-section {
  padding: 80px 0;
  color: #ffffff; /* For dark background sections */
}

.page-lottery__types-section,
.page-lottery__how-to-play-section,
.page-lottery__promotions-section,
.page-lottery__conclusion-section {
  padding: 80px 0;
  background-color: #ffffff; /* For light background sections */
  color: #333333; /* For light background sections */
}

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

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

.page-lottery__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-lottery__content-grid:nth-child(even) {
  flex-direction: row-reverse;
}

.page-lottery__text-block {
  flex: 1;
  font-size: 1.1em;
}

.page-lottery__image-wrapper {
  flex: 1;
  text-align: center;
}

.page-lottery__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px; /* Ensure images are not too small */
}

.page-lottery__image--full-width {
  margin-top: 40px;
  width: 100%;
}

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

.page-lottery__card {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
  transition: transform 0.3s ease;
}

.page-lottery__card:hover {
  transform: translateY(-10px);
}

.page-lottery__card-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-lottery__card p {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

/* Benefits List */
.page-lottery__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-lottery__benefits-list li {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-left: 5px solid #017439;
  border-radius: 8px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-lottery__benefits-list li strong {
  color: #FFFF00; /* Highlight important text */
}

/* How-to-play Steps */
.page-lottery__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__step-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
  color: #333333;
}

.page-lottery__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #017439;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid #ffffff;
}

.page-lottery__step-card .page-lottery__card-title {
  margin-top: 20px;
  color: #017439;
}

.page-lottery__step-card p {
  margin-bottom: 20px;
  color: #555555;
}

/* Video Section */
.page-lottery__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

.page-lottery__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
}

.page-lottery__video-description {
  text-align: center;
  margin-top: 20px;
  font-size: 1.1em;
  color: #ffffff;
}

/* Promotions List */
.page-lottery__promotions-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-lottery__promotions-list li {
  background-color: #f0f0f0;
  margin-bottom: 10px;
  padding: 12px 18px;
  border-left: 4px solid #017439;
  border-radius: 6px;
  font-size: 1em;
  color: #333333;
}

/* FAQ Section */
.page-lottery__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.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); /* Plus sign rotates to form an X or minus */
}

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-lottery__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 3em;
  }
  .page-lottery__hero-description {
    font-size: 1.2em;
  }
  .page-lottery__section-title {
    font-size: 2em;
  }
  .page-lottery__content-grid {
    flex-direction: column;
  }
  .page-lottery__content-grid:nth-child(even) {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    min-height: 500px;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content clears fixed header */
  }
  .page-lottery__hero-title {
    font-size: 2.5em;
  }
  .page-lottery__hero-description {
    font-size: 1em;
  }
  .page-lottery__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__container {
    padding: 15px;
  }
  .page-lottery__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-lottery__introduction-section,
  .page-lottery__benefits-section,
  .page-lottery__video-section,
  .page-lottery__faq-section,
  .page-lottery__types-section,
  .page-lottery__how-to-play-section,
  .page-lottery__promotions-section,
  .page-lottery__conclusion-section {
    padding: 40px 0;
  }
  .page-lottery__image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-lottery__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain 16:9 aspect ratio */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-lottery__video {
    width: 100% !important;
    height: 100% !important;
  }
  .page-lottery__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-lottery__faq-answer {
    padding: 0 20px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px 20px !important;
  }

  /* Ensure all image containers are responsive */
  .page-lottery__image-wrapper,
  .page-lottery__content-grid,
  .page-lottery__grid-cards,
  .page-lottery__steps-grid,
  .page-lottery__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Ensure buttons in steps grid are responsive */
  .page-lottery__step-card .page-lottery__btn-primary--small {
    width: auto !important; /* Let content dictate width */
    max-width: 100% !important;
    display: block !important;
    margin: 15px auto 0 auto;
  }
}

@media (max-width: 480px) {
  .page-lottery__hero-title {
    font-size: 2em;
  }
  .page-lottery__section-title {
    font-size: 1.5em;
  }
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-lottery__hero-cta-buttons {
    gap: 10px;
  }
  .page-lottery__grid-cards {
    grid-template-columns: 1fr;
  }
}