/* style/lottery.css */
.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__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  text-align: center;
  background: linear-gradient(135deg, #017439, #005f2d); /* Using brand color for hero background */
  color: #ffffff; /* White text on brand color background */
  overflow: hidden;
}

.page-lottery__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Use bright yellow for emphasis */
  font-weight: bold;
}

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

.page-lottery__hero-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px; /* Max width for the video */
  margin: 0 auto 40px;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary,
.page-lottery__card-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  text-align: center;
}

.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: #e01c1c;
  transform: translateY(-2px);
}

.page-lottery__btn-secondary {
  background-color: #017439; /* Main brand color for secondary */
  color: #ffffff; /* White text on brand color */
  border: 2px solid #017439;
}

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

.page-lottery__intro-section,
.page-lottery__promotions-section,
.page-lottery__faq-section {
  padding: 60px 0;
  color: #ffffff; /* Text color for light-bg sections (on dark body background) */
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-lottery__types-section,
.page-lottery__guide-section,
.page-lottery__strategy-section,
.page-lottery__safety-section {
  padding: 60px 0;
  color: #ffffff; /* Text color for dark-bg sections */
  background-color: rgba(0, 0, 0, 0.3); /* Darker background for contrast */
}

.page-lottery__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #FFFF00; /* Use bright yellow for section titles */
  font-weight: bold;
}

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

.page-lottery__text-block p,
.page-lottery__text-block li {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #f0f0f0; /* Slightly off-white for readability */
}

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

.page-lottery__card {
  background-color: rgba(0, 0, 0, 0.5); /* Darker card background for contrast */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff; /* White text on dark card background */
}

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

.page-lottery__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  width: 100%; /* Ensure image fills card width */
  min-height: 200px; /* Minimum image height */
}

.page-lottery__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for card titles */
}

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

.page-lottery__card-button {
  margin-top: 20px;
  background-color: #017439; /* Brand color for card buttons */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-lottery__card-button:hover {
  background-color: #005f2d;
}

.page-lottery__guide-list,
.page-lottery__strategy-list,
.page-lottery__safety-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-lottery__guide-list li,
.page-lottery__strategy-list li,
.page-lottery__safety-list li {
  background-color: rgba(0, 0, 0, 0.4); /* Darker background for list items */
  border-left: 5px solid #017439;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.1em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-lottery__list-title {
  color: #FFFF00; /* Yellow for list titles */
  font-size: 1.2em;
  display: block;
  margin-bottom: 5px;
}

.page-lottery__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

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

.page-lottery__faq-item {
  background-color: rgba(0, 0, 0, 0.4); /* Darker background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.6); /* Even darker for question background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-lottery__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #FFFF00; /* Yellow for FAQ questions */
}

.page-lottery__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439; /* Brand color for toggle icon */
  transition: transform 0.3s ease;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  transform: rotate(45deg);
  color: #FFFF00; /* Yellow when active */
}

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  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; /* Ensure it expands fully */
  padding: 15px 25px;
}

/* Responsive Styles */
@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 {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
  }

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

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

  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery__card-button {
    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__promotions-section,
  .page-lottery__safety-section,
  .page-lottery__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__hero-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-lottery img,
  .page-lottery__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-lottery__card-image {
    min-height: 150px; /* Adjust min height for mobile cards */
  }

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

  .page-lottery__card-title {
    font-size: 1.3em;
  }

  .page-lottery__faq-question {
    padding: 15px 20px;
  }

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

  .page-lottery__faq-answer {
    padding: 0 20px;
  }

  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-lottery__hero-title {
    font-size: 1.8em;
  }

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

  .page-lottery__card-title {
    font-size: 1.2em;
  }

  .page-lottery__hero-section,
  .page-lottery__intro-section,
  .page-lottery__types-section,
  .page-lottery__guide-section,
  .page-lottery__strategy-section,
  .page-lottery__promotions-section,
  .page-lottery__safety-section,
  .page-lottery__faq-section {
    padding: 40px 0;
  }
}