/* style/lottery.css */

/* Base styles for the page-lottery scope */
.page-lottery {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #0a0a0a (dark), so use light text */
  background-color: transparent; /* Inherit from body or shared, avoid overriding if shared sets it */
}

/* Ensure main content has padding-top to clear fixed header */
.page-lottery__hero-section {
  position: relative;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Use CSS variable for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-lottery__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

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

.page-lottery__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #f0f0f0;
}

.page-lottery__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  margin-top: 30px;
}

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

.page-lottery__btn-center {
  display: block;
  margin: 30px auto 0 auto;
}

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

.page-lottery__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Use brand color for titles */
  font-weight: bold;
}

.page-lottery__dark-bg .page-lottery__section-title {
  color: #ffffff; /* White title on dark background */
}

.page-lottery__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light text on dark body background */
}

.page-lottery__image-content {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Specific section styles */
.page-lottery__about-section,
.page-lottery__how-to-play,
.page-lottery__fairness-security,
.page-lottery__faq-section {
  background-color: #0a0a0a; /* Ensure dark background for these sections */
  color: #ffffff; /* Light text */
}

.page-lottery__game-types,
.page-lottery__promotions-section,
.page-lottery__support-section,
.page-lottery__final-cta {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff; /* Light text */
}

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

.page-lottery__game-card,
.page-lottery__promotion-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.page-lottery__card-title {
  font-size: 1.6em;
  color: #26A9E0; /* Brand color for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-lottery__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

.page-lottery__instruction-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-lottery__instruction-list li {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent background */
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  counter-increment: instruction-counter;
  position: relative;
  padding-left: 70px;
  color: #ffffff;
}

.page-lottery__instruction-list li::before {
  content: counter(instruction-counter);
  position: absolute;
  left: 25px;
  top: 25px;
  background-color: #26A9E0;
  color: #ffffff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
}

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

.page-lottery__instruction-list p {
  color: #e0e0e0;
}

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

.page-lottery__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-lottery__faq-toggle {
  font-size: 1.8em;
  color: #26A9E0;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  transform: rotate(45deg); /* For '-' symbol */
  color: #ffffff;
}

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 25px; /* Initial padding is 0 */
  color: #e0e0e0;
}

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

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

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

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

  .page-lottery__hero-title {
    font-size: 2.2em;
  }
  .page-lottery__hero-description {
    font-size: 1em;
  }
  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%; /* Ensure buttons take full width */
  }
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-lottery__container {
    padding: 20px 15px !important; /* Smaller padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-lottery__text-block {
    font-size: 1em;
  }

  .page-lottery__game-grid,
  .page-lottery__promotion-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-lottery__game-card,
  .page-lottery__promotion-card {
    padding: 20px;
  }

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

  .page-lottery__instruction-list li {
    padding: 20px 15px 20px 60px;
    font-size: 0.95em;
  }
  .page-lottery__instruction-list li::before {
    left: 15px;
    top: 20px;
    width: 30px;
    height: 30px;
    font-size: 1em;
  }
  .page-lottery__list-title {
    font-size: 1.2em;
  }

  .page-lottery__faq-question {
    padding: 15px 20px;
  }
  .page-lottery__faq-title {
    font-size: 1.1em;
  }
  .page-lottery__faq-toggle {
    font-size: 1.5em;
  }
  .page-lottery__faq-answer {
    padding: 0 20px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 10px 20px !important;
  }

  /* Ensure all images are responsive on mobile */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure all video containers are responsive on mobile (if present) */
  .page-lottery__video-section,
  .page-lottery__video-container,
  .page-lottery__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-lottery video,
  .page-lottery__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* Color contrast fixes/defaults (as per instructions) */
.page-lottery__dark-bg {
  color: #ffffff; /* Deep dark background, light text */
}

.page-lottery__light-bg {
  color: #333333; /* Light background, dark text */
  background-color: #ffffff;
}

/* Ensure text in general content areas is readable */
.page-lottery p,
.page-lottery li {
  color: #e0e0e0; /* Slightly off-white for readability on dark backgrounds */
}

.page-lottery a {
  color: #26A9E0; /* Links use brand color */
  text-decoration: none;
}

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

/* Override default link color in specific elements if needed */
.page-lottery__btn-primary a,
.page-lottery__btn-secondary a {
  color: inherit; /* Inherit button text color */
}

/* Ensure images don't use filters */
.page-lottery img {
  filter: none;
}