/* style/lottery.css */

/* Base styles for the lottery page, ensuring light text on dark body background */
.page-lottery {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Sections */
.page-lottery__section {
  padding: 60px 0;
  text-align: center;
}

.page-lottery__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast with body */
  color: #ffffff;
}

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

.page-lottery__container--flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.page-lottery__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #121212; /* Match body background */
}

.page-lottery__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit hero image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-lottery__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 800px;
  margin-top: 20px; /* Space between image and content */
}

.page-lottery__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  /* No fixed large font-size, use responsive clamp if needed, but prefer not to */
}

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

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

/* Titles */
.page-lottery__section-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 30px;
  color: #26A9E0; /* Brand color for titles */
}

.page-lottery__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

/* Text blocks */
.page-lottery__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-lottery__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

.page-lottery__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-lottery__btn-text {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-lottery__btn-text:hover {
  color: #1a8cc4;
  text-decoration: underline;
}

.page-lottery__btn--center {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content;
}

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

.page-lottery__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-lottery__card-text {
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Lists */
.page-lottery__ordered-list,
.page-lottery__unordered-list {
  list-style-position: inside;
  text-align: left;
  max-width: 900px;
  margin: 20px auto;
  padding-left: 0;
}

.page-lottery__ordered-list li,
.page-lottery__unordered-list li {
  margin-bottom: 10px;
  color: #f0f0f0;
  padding-left: 20px; /* Indent list items */
  position: relative;
}

.page-lottery__ordered-list li strong,
.page-lottery__unordered-list li strong {
  color: #26A9E0;
}

.page-lottery__ordered-list li::marker {
  color: #26A9E0;
  font-weight: bold;
}

.page-lottery__unordered-list li::before {
  content: '•'; /* Custom bullet point */
  color: #26A9E0;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Images */
.page-lottery__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px auto;
  display: block;
  object-fit: cover; /* Ensure image covers its area */
}

.page-lottery__image--center {
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-lottery__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-lottery__faq-item[open] .page-lottery__faq-toggle {
  transform: rotate(45deg);
}

.page-lottery__faq-answer {
  padding: 0 20px 20px;
  color: #e0e0e0;
  font-size: 0.95em;
}

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

.page-lottery__faq-item details > summary::-webkit-details-marker {
  display: none;
}

/* Call to Action Section */
.page-lottery__call-to-action .page-lottery__section-title {
  color: #ffffff;
}

.page-lottery__call-to-action .page-lottery__text-block {
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-lottery__hero-content {
    padding: 15px;
    margin-top: 15px;
  }

  .page-lottery__main-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

  .page-lottery__intro-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

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

  .page-lottery__section {
    padding: 40px 0;
  }

  .page-lottery__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-lottery__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-lottery__card {
    padding: 25px;
  }

  .page-lottery__ordered-list,
  .page-lottery__unordered-list {
    padding: 0 15px;
  }

  .page-lottery__text-block {
    padding: 0 15px;
  }

  .page-lottery__faq-list {
    padding: 0 15px;
  }

  /* Mobile image and video responsiveness */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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__hero-image-wrapper {
    max-height: 300px;
  }

  .page-lottery__faq-question {
    font-size: 1em;
    padding: 15px;
  }

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