.page-lottery {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

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

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  overflow: hidden;
  color: #ffffff;
  background-color: #017439; /* Dark background for hero */
}

.page-lottery__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

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

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

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

/* CTA Buttons */
.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;
  white-space: nowrap;
}

.page-lottery__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.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__cta-buttons--center {
  text-align: center;
  margin-top: 40px;
}

/* Sections */
.page-lottery__intro-section,
.page-lottery__types-section,
.page-lottery__tips-section,
.page-lottery__features-section,
.page-lottery__cta-final-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-lottery__guide-section,
.page-lottery__promotions-section,
.page-lottery__faq-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

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

.page-lottery__intro-section .page-lottery__section-title,
.page-lottery__types-section .page-lottery__section-title,
.page-lottery__tips-section .page-lottery__section-title,
.page-lottery__features-section .page-lottery__section-title,
.page-lottery__cta-final-section .page-lottery__section-title {
  color: #017439;
}

.page-lottery__guide-section .page-lottery__section-title,
.page-lottery__promotions-section .page-lottery__section-title,
.page-lottery__faq-section .page-lottery__section-title {
  color: #FFFF00;
}

.page-lottery__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-lottery__text-link {
  color: #017439;
  text-decoration: underline;
}

.page-lottery__dark-bg .page-lottery__text-link {
  color: #FFFF00;
}

.page-lottery__text-link:hover {
  text-decoration: none;
}

/* Grid Container for Types/Promotions */
.page-lottery__grid-container,
.page-lottery__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-lottery__card-image,
.page-lottery__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-lottery__card-title,
.page-lottery__promo-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 15px;
  color: #017439;
}

.page-lottery__card-description,
.page-lottery__promo-description {
  font-size: 1em;
  padding: 0 15px;
  margin-bottom: 15px;
}

.page-lottery__card-link {
  color: #C30808;
  text-decoration: none;
  font-weight: bold;
}

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

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

.page-lottery__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
}

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

.page-lottery__step-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFF00;
}

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

/* Video Section */
.page-lottery__video-section {
  margin-top: 60px;
  text-align: center;
}

.page-lottery__video-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #FFFF00;
}

.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: 10px;
  margin: 0 auto;
}

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

.page-lottery__video-description {
  font-size: 1em;
  margin-top: 20px;
  color: #ffffff;
}

/* Tips Section */
.page-lottery__tips-list,
.page-lottery__features-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-lottery__tips-list li,
.page-lottery__features-list li {
  background-color: #f9f9f9;
  margin-bottom: 15px;
  padding: 20px;
  border-left: 5px solid #017439;
  border-radius: 5px;
  font-size: 1.1em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-lottery__tips-list li strong,
.page-lottery__features-list li strong {
  color: #017439;
}

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

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

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

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

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

.page-lottery__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00;
  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: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 20px;
}

.page-lottery__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* Final CTA Section */
.page-lottery__cta-final-section .page-lottery__text-block {
  text-align: center;
}


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

@media (max-width: 768px) {
  .page-lottery {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-lottery__hero-title {
    font-size: 2.2em;
  }
  .page-lottery__hero-description {
    font-size: 1em;
  }
  .page-lottery__section-title {
    font-size: 1.8em;
  }
  .page-lottery__text-block {
    font-size: 1em;
  }

  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }

  /* Mobile image, video, button, and container adaptations */
  .page-lottery img,
  .page-lottery video,
  .page-lottery__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__video-section,
  .page-lottery__video-container,
  .page-lottery__video-wrapper,
  .page-lottery__cta-buttons,
  .page-lottery__button-group,
  .page-lottery__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-lottery__cta-button,
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery a[class*="button"],
  .page-lottery a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important; /* Make buttons full width on mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: center; /* Center button text if it wraps */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }
  .page-lottery__hero-section {
    padding: 60px 0;
  }
  .page-lottery__grid-container,
  .page-lottery__promo-grid,
  .page-lottery__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery__card,
  .page-lottery__promo-card,
  .page-lottery__step-item {
    margin-left: auto;
    margin-right: auto;
    max-width: 400px; /* Constrain card width on mobile */
  }
  .page-lottery__video-wrapper {
    padding-bottom: 75%; /* Adjust aspect ratio for mobile if needed, e.g., 4:3 */
  }
  .page-lottery__faq-question {
    padding: 12px 15px;
  }
  .page-lottery__faq-title {
    font-size: 1.1em;
  }
  .page-lottery__faq-answer {
    padding: 0 15px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px;
  }
}