/* style/lottery.css */

/* Base styles and variables */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-dark: #000000; /* From body background */
  --background-light: #f8f9fa;
  --button-login: #EA7C07;
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default to light text for dark body background */
  background-color: var(--background-dark);
}

.page-lottery a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-lottery a:hover {
  text-decoration: underline;
}

/* Sections */
.page-lottery__hero-section,
.page-lottery__introduction-section,
.page-lottery__types-section,
.page-lottery__guide-section,
.page-lottery__tips-section,
.page-lottery__promo-video-section,
.page-lottery__security-section,
.page-lottery__faq-section,
.page-lottery__cta-final-section {
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

.page-lottery__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 40px;
  overflow: hidden;
}

.page-lottery__hero-content {
  z-index: 1;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-lottery__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-lottery__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

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

.page-lottery__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-lottery__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Color themes for sections */
.page-lottery__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-lottery__dark-bg .page-lottery__section-description a {
  color: var(--primary-color);
}

.page-lottery__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-lottery__light-bg .page-lottery__section-title {
  color: var(--primary-color);
}

.page-lottery__light-bg .page-lottery__section-description a {
  color: var(--primary-color);
}

/* Buttons */
.page-lottery__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-lottery__btn-primary:hover {
  background-color: #208DC7; /* Slightly darker primary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.page-lottery__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-lottery__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

/* Card Grid */
.page-lottery__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-lottery__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  color: var(--text-light);
}

.page-lottery__light-bg .page-lottery__card {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-lottery__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-lottery__card-title a {
  color: var(--primary-color);
}

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

.page-lottery__card-text {
  font-size: 1em;
  line-height: 1.5;
  flex-grow: 1;
}

/* Step List */
.page-lottery__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-lottery__step-list li {
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.page-lottery__step-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

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

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

/* Tips List */
.page-lottery__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-lottery__tips-list li {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
  height: 100%;
}

.page-lottery__tip-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-lottery__tip-text {
  font-size: 1em;
}

/* Video Section */
.page-lottery__promo-video-section {
  padding: 60px 20px;
}

.page-lottery__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  box-sizing: border-box;
}

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

/* Security Features */
.page-lottery__security-features {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-lottery__security-features li {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
  height: 100%;
}

.page-lottery__feature-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-lottery__feature-text {
  font-size: 1em;
}

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

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: var(--text-dark);
  border-bottom: 1px solid #e0e0e0;
}

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

.page-lottery__faq-question h3 {
  margin: 0;
  color: var(--text-dark);
}

.page-lottery__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.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;
  color: var(--text-dark);
}

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

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

/* Final CTA Section */
.page-lottery__cta-final-section {
  padding: 100px 20px;
}

.page-lottery__cta-final-content {
  max-width: 900px;
  margin: 0 auto;
}

/* 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-section,
  .page-lottery__introduction-section,
  .page-lottery__types-section,
  .page-lottery__guide-section,
  .page-lottery__tips-section,
  .page-lottery__promo-video-section,
  .page-lottery__security-section,
  .page-lottery__faq-section,
  .page-lottery__cta-final-section {
    padding: 60px 15px;
  }

  .page-lottery__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

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

  .page-lottery__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;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-lottery__card-grid,
  .page-lottery__tips-list,
  .page-lottery__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__card,
  .page-lottery__tips-list li,
  .page-lottery__security-features li {
    padding: 20px;
  }

  .page-lottery__card-image {
    height: auto;
  }

  .page-lottery__guide-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
  }

  /* Video Responsive */
  .page-lottery__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin: 30px auto !important;
  }

  .page-lottery__video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }

  /* Image responsive for content area */
  .page-lottery img {
    max-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;
  }

  /* FAQ specific mobile styles */
  .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;
  }
}

/* Color Contrast Fixes (if needed, based on body background #000000) */
/* Since body is dark, most text is light. Light-bg sections will have dark text. */
.page-lottery__light-bg {
  color: var(--text-dark);
}

.page-lottery__light-bg .page-lottery__card {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-lottery__light-bg .page-lottery__faq-item {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-lottery__light-bg .page-lottery__faq-question h3,
.page-lottery__light-bg .page-lottery__faq-answer p {
  color: var(--text-dark);
}

.page-lottery__light-bg .page-lottery__step-list li {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

/* Ensure image filter is not used */
.page-lottery img {
  filter: none; /* Explicitly ensure no filter is applied */
}

.page-lottery video {
  filter: none; /* Explicitly ensure no filter is applied */
}