/* style/lottery.css */

/* Base styles for the lottery page */
.page-lottery {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-lottery__dark-bg {
  background-color: #1a1a1a; /* A dark background for sections */
  color: #ffffff;
}

.page-lottery__light-bg {
  background-color: #f5f5f5; /* A light background for sections */
  color: #333333;
}

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

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

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-lottery__hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.page-lottery__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-lottery__btn-secondary:hover {
  background-color: #c46406;
  border-color: #c46406;
}

/* Section Titles */
.page-lottery__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section (dark/light bg) */
}

.page-lottery__sub-title {
  font-size: clamp(1.4em, 2.5vw, 1.8em);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-lottery__text-block {
  margin-bottom: 20px;
  font-size: 1em;
  color: inherit;
}

/* Feature List */
.page-lottery__feature-list,
.page-lottery__security-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-lottery__feature-item,
.page-lottery__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #ffffff;
}

.page-lottery__feature-item strong,
.page-lottery__security-item strong {
  color: #26A9E0;
}

.page-lottery__security-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  min-width: 200px; /* Min size requirement, will be scaled by width/height */
  min-height: 200px; /* Min size requirement, will be scaled by width/height */
}

/* Game Cards & Promo Cards */
.page-lottery__game-cards,
.page-lottery__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-lottery__card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-lottery__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-lottery__card-content {
  padding: 20px;
}

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

.page-lottery__card-description {
  font-size: 0.95em;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-lottery__btn-text {
  color: #EA7C07;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-lottery__btn-text:hover {
  color: #ff9900;
}

/* How-to Play Section */
.page-lottery__step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-lottery__step-item {
  background-color: #ffffff;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-lottery__step-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

.page-lottery__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-lottery__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: #26A9E0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-lottery__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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;
  font-size: 0.95em;
  color: #f0f0f0;
}

/* CTA Bottom Section */
.page-lottery__cta-bottom-section {
  padding: 60px 20px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-lottery__container {
    padding: 0 15px;
  }

  .page-lottery__hero-section,
  .page-lottery__about-lottery-section,
  .page-lottery__game-types-section,
  .page-lottery__how-to-play-section,
  .page-lottery__promotion-section,
  .page-lottery__security-section,
  .page-lottery__faq-section,
  .page-lottery__cta-bottom-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-lottery__hero-image-wrapper {
    max-height: 40vh;
  }

  .page-lottery__main-title {
    font-size: 2em; /* Smaller H1 for mobile */
  }

  .page-lottery__description {
    font-size: 1em;
  }

  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-lottery__feature-list,
  .page-lottery__security-list,
  .page-lottery__game-cards,
  .page-lottery__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__card-image {
    height: 180px;
  }

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

  /* Mobile image and video responsiveness */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images take full width of container */
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__hero-image-wrapper,
  .page-lottery__promo-cards,
  .page-lottery__game-cards {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

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

  .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;
  }
}

@media (min-width: 769px) {
  .page-lottery__hero-section {
    padding-top: 80px; /* More padding for desktop */
  }
  .page-lottery__hero-image-wrapper {
    max-height: 500px; /* Specific height for desktop hero image */
  }
  .page-lottery__hero-image {
    height: 100%;
    width: auto;
  }
  .page-lottery__hero-content {
    padding-top: 30px;
  }
  .page-lottery__feature-item,
  .page-lottery__security-item {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .page-lottery__security-icon {
    width: 60px;
    height: 60px;
    margin-left: 0;
    margin-right: auto;
  }
}