.page-lottery {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
  line-height: 1.6;
}

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

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

.page-lottery__light-bg {
  background-color: #f8f9fa;
  color: #333333; /* Dark text for light background */
}

.page-lottery__text-contrast-fix {
  color: #333333 !important; /* Ensure dark text on light background */
}

.page-lottery__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding-top: var(--header-offset, 120px);
  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);
}

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

.page-lottery__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-lottery__hero-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: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-lottery__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  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: #1A202C;
}

.page-lottery__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-lottery__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-lottery__intro-section {
  padding: 80px 0;
}

.page-lottery__intro-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-lottery__intro-text {
  flex: 1;
}

.page-lottery__intro-image {
  flex: 1;
  text-align: center;
}

.page-lottery__intro-image img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Types Section */
.page-lottery__types-section {
  padding: 80px 0;
}

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

.page-lottery__type-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

.page-lottery__type-card:hover {
  transform: translateY(-5px);
}

.page-lottery__type-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

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

.page-lottery__type-card p {
  color: #f0f0f0;
  flex-grow: 1;
}

/* Guide Section */
.page-lottery__guide-section {
  padding: 80px 0;
}

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

.page-lottery__guide-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  height: 100%;
}

.page-lottery__guide-step-title {
  font-size: 1.6em;
  color: #1A202C;
  margin-bottom: 15px;
}

.page-lottery__guide-item p {
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__guide-image {
  text-align: center;
}

.page-lottery__guide-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

/* Advantages Section */
.page-lottery__advantages-section {
  padding: 80px 0;
}

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

.page-lottery__advantage-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-lottery__advantage-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

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

.page-lottery__advantage-item p {
  color: #f0f0f0;
  flex-grow: 1;
}

/* Promotions Section */
.page-lottery__promotions-section {
  padding: 80px 0;
}

.page-lottery__promotions-content {
  text-align: center;
}

.page-lottery__promotions-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 10px;
}

/* Tips Section */
.page-lottery__tips-section {
  padding: 80px 0;
}

.page-lottery__tips-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-lottery__tips-content img {
  flex: 1;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.page-lottery__tips-list {
  flex: 1;
  list-style: none;
  padding: 0;
  text-align: left;
}

.page-lottery__tips-list li {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.1em;
}

.page-lottery__tips-list li strong {
  color: #FFD700;
}

/* FAQ Section */
.page-lottery__faq-section {
  padding: 80px 0;
}

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

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

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

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

.page-lottery__faq-question h3 {
  margin: 0;
  color: #1A202C;
}

.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;
  background-color: #ffffff;
  color: #333333;
}

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

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

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

.page-lottery__faq-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

/* CTA Section */
.page-lottery__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 3em;
  }
  .page-lottery__section-title {
    font-size: 2em;
  }
  .page-lottery__intro-content,
  .page-lottery__tips-content {
    flex-direction: column;
    text-align: center;
  }
  .page-lottery__intro-text,
  .page-lottery__tips-list {
    order: 2;
  }
  .page-lottery__intro-image,
  .page-lottery__tips-content img {
    order: 1;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-lottery {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-lottery__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-lottery__hero-title {
    font-size: 2.5em;
  }
  .page-lottery__hero-description {
    font-size: 1em;
  }
  .page-lottery__hero-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;
    margin: 0 auto;
  }
  .page-lottery__section-title {
    font-size: 1.8em;
  }
  .page-lottery__types-grid, .page-lottery__guide-steps, .page-lottery__advantages-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery__container {
    padding: 0 15px;
  }
  .page-lottery__intro-section, .page-lottery__types-section, .page-lottery__guide-section, .page-lottery__advantages-section, .page-lottery__promotions-section, .page-lottery__tips-section, .page-lottery__faq-section, .page-lottery__cta-section {
    padding: 50px 0;
  }
  .page-lottery__intro-image img,
  .page-lottery__type-card img,
  .page-lottery__guide-image img,
  .page-lottery__advantage-item img,
  .page-lottery__promotions-content img,
  .page-lottery__tips-content img,
  .page-lottery__faq-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-lottery__intro-content,
  .page-lottery__types-grid,
  .page-lottery__guide-steps,
  .page-lottery__advantages-grid,
  .page-lottery__promotions-content,
  .page-lottery__tips-content,
  .page-lottery__faq-list,
  .page-lottery__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-lottery__faq-question,
  .page-lottery__faq-answer {
    padding: 15px 20px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 20px !important;
  }
  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__tips-list li {
    padding: 10px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-lottery__hero-title {
    font-size: 2em;
  }
  .page-lottery__section-title {
    font-size: 1.5em;
  }
  .page-lottery__card-title,
  .page-lottery__guide-step-title,
  .page-lottery__advantage-title {
    font-size: 1.3em;
  }
}