/* style/lottery.css */

/* General styles for the lottery page */
.page-lottery {
  font-family: 'Arial', sans-serif;
  color: #FFF1E8; /* Main text color for dark background */
  background-color: #140C0C; /* Overall page background */
  line-height: 1.6;
  padding-bottom: 40px;
}

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

.page-lottery__section-title {
  font-size: 38px;
  font-weight: 700;
  color: #F3C54D; /* Gold for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-lottery__section-description {
  font-size: 18px;
  color: #FFF1E8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as per rule */
  overflow: hidden;
  min-height: 600px;
  color: #FFF1E8;
  padding-bottom: 60px;
}

.page-lottery__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height to prevent excessive image size */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px; /* Space between image and content */
}

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

.page-lottery__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.page-lottery__main-title {
  font-weight: 700;
  color: #F3C54D; /* Gold for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-lottery__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-lottery__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  border: none;
}

.page-lottery__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-lottery__btn-secondary:hover {
  background: rgba(255, 176, 74, 0.1);
  transform: translateY(-2px);
}

.page-lottery__cta-buttons--center {
    justify-content: center;
    margin-top: 40px;
}

/* Game Types Section */
.page-lottery__game-types-section {
  padding: 60px 0;
}

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

.page-lottery__game-card {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #FFF1E8;
}

.page-lottery__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-lottery__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-lottery__game-card-title {
  font-size: 24px;
  font-weight: 600;
  color: #F3C54D;
  margin-bottom: 15px;
}

.page-lottery__game-card-text {
  font-size: 16px;
  color: #FFF1E8;
}

/* Why Choose Section */
.page-lottery__why-choose-section {
  background-color: #C61F1F; /* Deep Red background */
  padding: 60px 0;
  color: #FFF1E8;
}

.page-lottery__why-choose-section .page-lottery__section-title {
    color: #FFF1E8; /* White text on red background */
}

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

.page-lottery__feature-item {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent black on red */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #7E0D0D; /* Deep Red border */
}

.page-lottery__feature-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #F3C54D;
  margin-bottom: 10px;
}

.page-lottery__feature-text {
  font-size: 16px;
  color: #FFF1E8;
}

/* How to Play Section */
.page-lottery__how-to-play-section {
  padding: 60px 0;
}

.page-lottery__steps-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 800px;
}

.page-lottery__step-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  color: #FFF1E8;
}

.page-lottery__step-number {
  background-color: #FFB04A; /* Button gold color */
  color: #2A1212; /* Dark text on gold */
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.page-lottery__step-title {
  font-size: 22px;
  font-weight: 600;
  color: #F3C54D;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-lottery__step-text {
  font-size: 16px;
  color: #FFF1E8;
}

/* FAQ Section */
.page-lottery__faq-section {
  padding: 60px 0;
}

.page-lottery__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
  color: #FFF1E8;
}
details.page-lottery__faq-item summary.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F3C54D; /* Gold for question text */
}
details.page-lottery__faq-item summary.page-lottery__faq-question::-webkit-details-marker {
  display: none;
}
details.page-lottery__faq-item summary.page-lottery__faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}
.page-lottery__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D; /* Gold for question text */
}
.page-lottery__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFB04A; /* Gold for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-lottery__faq-item .page-lottery__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.2); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF1E8; /* Main text color for answer */
}
.page-lottery__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}


/* Promotions CTA Section */
.page-lottery__promotions-cta-section {
  padding: 60px 0;
  background-color: #E53030; /* Auxiliary Red */
  color: #FFF1E8;
}

.page-lottery__promotions-content {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent black on red */
  padding: 40px;
  border-radius: 10px;
  border: 1px solid #7E0D0D;
}

.page-lottery__promotions-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}

.page-lottery__promotions-text-content {
  flex: 1;
  text-align: left;
}

.page-lottery__promotions-text-content .page-lottery__section-title {
    text-align: left;
    color: #FFF1E8; /* White text on red background */
    margin-bottom: 20px;
}

.page-lottery__promotions-text-content .page-lottery__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 30px;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-lottery__section-title {
    font-size: 32px;
  }
  .page-lottery__hero-description {
    font-size: 18px;
  }
  .page-lottery__game-card-title {
    font-size: 22px;
  }
  .page-lottery__feature-title {
    font-size: 20px;
  }
  .page-lottery__step-title {
    font-size: 20px;
  }
  .page-lottery__promotions-content {
      flex-direction: column;
      text-align: center;
  }
  .page-lottery__promotions-image {
      width: 80%;
      margin-bottom: 30px;
  }
  .page-lottery__promotions-text-content .page-lottery__section-title,
  .page-lottery__promotions-text-content .page-lottery__section-description {
      text-align: center;
  }
}

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

  /* Hero Section */
  .page-lottery__hero-section {
    min-height: auto;
    padding-top: 10px !important; /* Mandatory mobile padding */
    padding-bottom: 40px;
  }
  .page-lottery__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .page-lottery__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-lottery__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to container */
  }
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Section Titles & Descriptions */
  .page-lottery__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-lottery__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Game Types Section */
  .page-lottery__game-types-section,
  .page-lottery__why-choose-section,
  .page-lottery__how-to-play-section,
  .page-lottery__faq-section,
  .page-lottery__promotions-cta-section {
    padding: 40px 0;
  }
  .page-lottery__game-types-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-lottery__game-card {
    padding: 20px;
  }
  .page-lottery__game-card-image {
    height: 180px;
  }
  .page-lottery__game-card-title {
    font-size: 20px;
  }
  .page-lottery__game-card-text {
    font-size: 15px;
  }

  /* Why Choose Section */
  .page-lottery__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-lottery__feature-item {
    padding: 25px;
  }
  .page-lottery__feature-icon {
    width: 150px;
    height: 150px;
  }
  .page-lottery__feature-title {
    font-size: 18px;
  }
  .page-lottery__feature-text {
    font-size: 15px;
  }

  /* How to Play Section */
  .page-lottery__steps-list {
    margin-top: 30px;
  }
  .page-lottery__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 10px;
  }
  .page-lottery__step-number {
    margin-bottom: 10px;
  }
  .page-lottery__step-title {
    font-size: 18px;
  }
  .page-lottery__step-text {
    font-size: 15px;
  }
  .page-lottery__cta-buttons--center {
      margin-top: 30px;
      padding: 0 15px; /* Add padding to container */
  }

  /* FAQ Section */
  details.page-lottery__faq-item summary.page-lottery__faq-question { padding: 15px; }
  .page-lottery__faq-qtext { font-size: 16px; }
  .page-lottery__faq-toggle { font-size: 20px; width: 24px; height: 24px; margin-left: 10px; }
  details.page-lottery__faq-item .page-lottery__faq-answer { padding: 0 15px 15px; }

  /* Promotions CTA Section */
  .page-lottery__promotions-content {
    padding: 30px;
    gap: 20px;
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__promotions-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 20px;
  }
  .page-lottery__promotions-text-content .page-lottery__section-title {
      font-size: 24px;
      margin-bottom: 15px;
  }
  .page-lottery__promotions-text-content .page-lottery__section-description {
      font-size: 15px;
      margin-bottom: 20px;
  }
  .page-lottery__promotions-text-content .page-lottery__btn-primary {
      width: 100% !important;
      max-width: 100% !important;
      font-size: 16px;
      padding: 12px 20px;
      white-space: normal !important;
      word-wrap: break-word !important;
  }

  /* Universal Image and Container Mobile Rules */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__game-card,
  .page-lottery__feature-item,
  .page-lottery__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}