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

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

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

.page-lottery__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-lottery__section-text {
  font-size: 1em;
  margin-top: 20px;
  text-align: center;
}

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #017439; /* Fallback */
}

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

.page-lottery__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

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

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

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

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

/* Buttons */
.page-lottery__btn-register,
.page-lottery__btn-login,
.page-lottery__btn-download {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-lottery__btn-register,
.page-lottery__btn-login {
  background-color: #C30808; /* Register/Login button color */
  color: #000000; /* Adjusted for WCAG AA contrast against #C30808 */
  border: 2px solid #C30808;
}

.page-lottery__btn-register:hover,
.page-lottery__btn-login:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-lottery__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-lottery__btn-primary:hover {
  background-color: #005a2d;
  transform: translateY(-2px);
}

.page-lottery__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-lottery__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-lottery__btn-download {
  background-color: #017439;
  color: #ffffff; /* Consistent with primary brand color */
  border: 2px solid #017439;
}

.page-lottery__btn-download:hover {
  background-color: #005a2d;
  transform: translateY(-2px);
}

/* Sections with background colors */
.page-lottery__dark-bg {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

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

.page-lottery__light-bg .page-lottery__section-title,
.page-lottery__light-bg .page-lottery__section-description,
.page-lottery__light-bg .page-lottery__section-text,
.page-lottery__light-bg h3 {
  color: #333333;
}

.page-lottery__light-bg a {
  color: #017439;
  text-decoration: underline;
}

.page-lottery__light-bg a:hover {
  color: #005a2d;
}

/* Intro Section */
.page-lottery__intro-section .page-lottery__intro-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.page-lottery__intro-section p {
  text-align: justify;
  font-size: 1.05em;
}

.page-lottery__intro-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-lottery__type-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;
}

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

.page-lottery__type-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-lottery__type-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-lottery__type-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

.page-lottery__step-item {
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-lottery__step-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-lottery__step-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
}

.page-lottery__step-item p {
  color: #555555;
  font-size: 0.95em;
}

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

.page-lottery__guide-cta .page-lottery__btn-primary,
.page-lottery__guide-cta .page-lottery__btn-secondary {
  margin: 0 10px;
}

/* Strategy Section */
.page-lottery__strategy-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-lottery__strategy-text-block {
  flex: 2;
  text-align: justify;
}

.page-lottery__strategy-subtitle {
  font-size: 1.5em;
  color: #ffffff;
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-lottery__strategy-text-block p {
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-lottery__strategy-image {
  flex: 1;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-lottery__promo-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-lottery__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-lottery__promo-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-lottery__promo-text {
  font-size: 0.95em;
  color: #555555;
}

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

/* Why Choose Section */
.page-lottery__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__feature-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-lottery__feature-title {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-lottery__feature-item p {
  color: #f0f0f0;
  font-size: 0.95em;
}

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

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #e8e8e8;
  border-bottom: 1px solid #dddddd;
  transition: background-color 0.3s ease;
}

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

.page-lottery__faq-question::-webkit-details-marker {
  display: none;
}

.page-lottery__faq-item summary {
  list-style: none;
}

.page-lottery__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-lottery__faq-item[open] .page-lottery__faq-toggle {
  content: '−';
}

.page-lottery__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #f0f0f0;
}

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

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

/* Global image styles */
.page-lottery img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Ensure no filter is applied to change image color */
  filter: none; 
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 2.8em;
  }
  .page-lottery__hero-description {
    font-size: 1.1em;
  }
  .page-lottery__section-title {
    font-size: 2em;
  }
  .page-lottery__strategy-content {
    flex-direction: column;
    align-items: center;
  }
  .page-lottery__strategy-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-lottery {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-lottery__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-lottery__hero-title {
    font-size: 2.2em;
  }
  .page-lottery__hero-description {
    font-size: 1em;
  }
  .page-lottery__hero-cta-buttons,
  .page-lottery__guide-cta,
  .page-lottery__promo-cta,
  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__btn-register,
  .page-lottery__btn-login,
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery__btn-download,
  .page-lottery a[class*="button"],
  .page-lottery a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-lottery__container,
  .page-lottery__intro-section,
  .page-lottery__types-section,
  .page-lottery__guide-section,
  .page-lottery__strategy-section,
  .page-lottery__promo-section,
  .page-lottery__why-choose-section,
  .page-lottery__faq-section,
  .page-lottery__cta-final {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-lottery__intro-content {
    gap: 20px;
  }
  .page-lottery__intro-section p {
    text-align: left;
  }
  .page-lottery__strategy-image {
    order: -1; /* Move image above text on mobile */
  }
  .page-lottery__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-lottery__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-lottery__faq-answer {
    padding: 15px 20px;
  }
  /* Content area images CSS dimensions lower bound */
  .page-lottery__intro-image, .page-lottery__type-image, .page-lottery__step-image, .page-lottery__strategy-image, .page-lottery__promo-image, .page-lottery__feature-icon {
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-lottery__feature-icon {
    width: 200px !important; /* Override smaller width if it exists */
    height: 200px !important;
  }
}