/* 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: var(--primary-color); /* From shared.css, which is #1A202C */
}

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

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  color: #ffffff;
  overflow: hidden;
}

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

.page-lottery__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image to ensure text contrast */
}

.page-lottery__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 10px;
}

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

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

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

/* Section Titles */
.page-lottery__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Text Blocks */
.page-lottery__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #e0e0e0;
  text-align: justify;
}

.page-lottery__text-block a.page-lottery__text-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-lottery__text-block a.page-lottery__text-link:hover {
  text-decoration: underline;
}

/* Buttons */
.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;
  font-size: 1.1em;
  text-align: center;
  box-sizing: border-box;
}

.page-lottery__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

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

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

.page-lottery__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-lottery__btn-text {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 15px;
}

.page-lottery__btn-text:hover {
  text-decoration: underline;
}

/* Section Styling */
.page-lottery__dark-bg {
  background-color: #1A202C;
  color: #ffffff;
  padding: 60px 20px;
}

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

.page-lottery__light-bg .page-lottery__section-title,
.page-lottery__light-bg .page-lottery__sub-title {
  color: #1A202C;
  text-shadow: none;
}

.page-lottery__light-bg .page-lottery__text-block {
  color: #333333;
}

.page-lottery__light-bg .page-lottery__text-link {
  color: #007bff;
}

.page-lottery__light-bg .page-lottery__btn-secondary {
  color: #1A202C;
  border-color: #1A202C;
}

.page-lottery__light-bg .page-lottery__btn-secondary:hover {
  background-color: #1A202C;
  color: #ffffff;
}

/* Introduction Section */
.page-lottery__introduction-section .page-lottery__container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-lottery__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background-color: #000;
}

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

.page-lottery__video-caption {
  text-align: center;
  margin-top: 10px;
  font-style: italic;
  color: #666;
  font-size: 0.9em;
}

/* Game Types Section */
.page-lottery__game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-lottery__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__light-bg .page-lottery__card {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-lottery__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-lottery__card-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-lottery__light-bg .page-lottery__card-title {
  color: #1A202C;
}

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

.page-lottery__light-bg .page-lottery__card-text {
  color: #333333;
}

/* How To Play Section */
.page-lottery__steps-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin-top: 30px;
}

.page-lottery__list-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 25px;
  font-size: 1.1em;
  color: #333333;
}

.page-lottery__list-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  background-color: #FFD700;
  color: #1A202C;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

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

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

.page-lottery__benefit-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-lottery__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-lottery__benefit-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-lottery__benefit-text {
  color: #e0e0e0;
  font-size: 1em;
}

/* Promotions Section */
.page-lottery__promotion-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 30px;
}

.page-lottery__promotion-list .page-lottery__list-item {
  padding-left: 0;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

.page-lottery__promotion-list .page-lottery__list-item::before {
  content: none;
}

.page-lottery__promotion-list strong {
  color: #1A202C;
}

/* Responsible Gaming Section */
.page-lottery__image-text-block {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-top: 40px;
}

.page-lottery__image-text-block img {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-lottery__text-content {
  flex: 1;
  min-width: 300px;
}

.page-lottery__sub-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 20px;
}

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

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #1A202C;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

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

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

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

.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: #333333;
  background-color: #f9f9f9;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 1000px !important; /* Ensure content fits */
  padding: 15px 25px;
}

.page-lottery__faq-answer p {
  margin: 0;
  padding: 0;
  color: #333333;
}

/* CTA Section */
.page-lottery__cta-content {
  text-align: center;
}

.page-lottery__cta-section .page-lottery__btn-primary,
.page-lottery__cta-section .page-lottery__btn-secondary {
  margin: 10px;
}

/* 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 {
    min-height: 500px;
    padding: 60px 15px;
  }

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

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

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

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-lottery__game-cards,
  .page-lottery__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__card,
  .page-lottery__benefit-item {
    padding: 20px;
  }

  .page-lottery__card-image,
  .page-lottery__content-image,
  .page-lottery__benefit-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Maintain minimum size */
    min-height: 200px; /* Maintain minimum size */
  }

  .page-lottery__container,
  .page-lottery__introduction-section,
  .page-lottery__game-types-section,
  .page-lottery__how-to-play-section,
  .page-lottery__benefits-section,
  .page-lottery__promotions-section,
  .page-lottery__responsible-gaming-section,
  .page-lottery__faq-section,
  .page-lottery__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-lottery__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-lottery__image-text-block {
    flex-direction: column;
  }

  .page-lottery__image-text-block img {
    width: 100%;
    min-width: unset;
  }

  .page-lottery__text-content {
    width: 100%;
    min-width: unset;
  }

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

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