.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: 0 20px;
  box-sizing: border-box;
}

.page-lottery__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-lottery__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-lottery__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 60px 0;
}

.page-lottery__light-bg {
  background-color: #ffffff; /* Auxiliary color */
  color: #333333;
  padding: 60px 0;
}

/* Hero Section */
.page-lottery__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  position: relative;
  overflow: hidden;
  background-color: #0a0a0a;
}

.page-lottery__hero-content {
  flex: 1;
  padding-right: 40px;
  z-index: 1;
}

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

.page-lottery__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* For mobile button text wrapping */
  word-wrap: break-word; /* For mobile button text wrapping */
}

.page-lottery__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

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

.page-lottery__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #EA7C07;
}

.page-lottery__hero-image-wrapper {
  flex: 1;
  text-align: right;
  z-index: 0;
}

.page-lottery__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Image Content General Style */
.page-lottery__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Grid for Lottery Types */
.page-lottery__grid {
  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.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-lottery__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px;
}

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

.page-lottery__card-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* List Styles (Guide, Benefits, Tips, Contact) */
.page-lottery__guide-list,
.page-lottery__benefits-list,
.page-lottery__tips-list,
.page-lottery__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-lottery__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-lottery__light-bg .page-lottery__list-item {
  background-color: #f9f9f9;
  color: #333333;
}

.page-lottery__dark-bg .page-lottery__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-left-color: #FFFFFF;
}

.page-lottery__list-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-lottery__dark-bg .page-lottery__list-title {
  color: #FFFFFF;
}

.page-lottery__list-item p {
  color: inherit;
}

/* FAQ Section */
.page-lottery__faq-list {
  margin-top: 40px;
}

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease;
}

.page-lottery__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-lottery__faq-title {
  font-size: 1.2em;
  color: #FFFFFF;
  margin: 0;
}

.page-lottery__faq-toggle {
  font-size: 1.5em;
  color: #FFFFFF;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px;
}

/* Contact Section */
.page-lottery__contact-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Copyright */
.page-lottery__copyright {
  text-align: center;
  padding: 20px 0;
  background-color: #0a0a0a; /* Dark background for copyright */
  color: #ffffff;
  font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 2.8em;
  }
  .page-lottery__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-lottery__hero-content {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .page-lottery__hero-image-wrapper {
    order: -1; /* Image above content on mobile */
    margin-bottom: 30px;
  }

  .page-lottery__hero-title {
    font-size: 2.2em;
  }

  .page-lottery__hero-description {
    font-size: 1em;
  }

  .page-lottery__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
    margin: 0 auto;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
  }

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

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

  .page-lottery__grid {
    grid-template-columns: 1fr;
  }

  .page-lottery__list-title {
    font-size: 1.1em;
  }

  .page-lottery__faq-title {
    font-size: 1.1em;
  }

  .page-lottery__contact-cta {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile image responsiveness */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-lottery__container,
  .page-lottery__hero-section,
  .page-lottery__intro-section,
  .page-lottery__types-section,
  .page-lottery__guide-section,
  .page-lottery__benefits-section,
  .page-lottery__tips-section,
  .page-lottery__faq-section,
  .page-lottery__contact-section,
  .page-lottery__grid,
  .page-lottery__card,
  .page-lottery__list-item,
  .page-lottery__faq-item,
  .page-lottery__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-lottery__hero-image-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__copyright {
    padding-left: 15px;
    padding-right: 15px;
  }
}