/* style/lottery.css */

/* Base styles for the page-lottery scope */
.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #000000; /* Inherited from shared.css, ensuring consistency */
}

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

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

.page-lottery__section-title {
  font-size: 38px;
  color: #FFD700; /* Brand gold */
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.page-lottery__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

/* Hero Banner Section */
.page-lottery__hero-banner {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Fixed nav bar spacing */
  margin-top: 0;
  overflow: hidden;
}

.page-lottery__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1;
  filter: brightness(0.4);
}

.page-lottery__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 80px 20px;
  max-width: 900px;
  text-align: center;
}

.page-lottery__hero-title {
  font-size: 52px;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-lottery__hero-description {
  font-size: 22px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-lottery__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Brand gold */
  color: #000000; /* Dark text for gold background */
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
}

.page-lottery__hero-button:hover {
  background-color: #8B0000; /* Auxiliary red */
  color: #ffffff;
  transform: translateY(-3px);
  border-color: #8B0000;
}

/* Intro Section */
.page-lottery__intro-section {
  background-color: #0d0d0d; /* Slightly lighter dark background */
}

/* Game Types Section */
.page-lottery__game-types-section {
  background-color: #000000;
}

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

.page-lottery__game-card {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__game-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFD700;
}

.page-lottery__game-card-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

.page-lottery__game-card-description {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__game-card-button {
  display: inline-block;
  background-color: #8B0000; /* Auxiliary red */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #8B0000;
}

.page-lottery__game-card-button:hover {
  background-color: #FFD700; /* Brand gold */
  color: #000000;
  transform: translateY(-2px);
  border-color: #FFD700;
}

/* Why Choose Section */
.page-lottery__why-choose-section {
  background-color: #0d0d0d;
}

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

.page-lottery__why-choose-item {
  background-color: rgba(255, 215, 0, 0.05); /* Light gold tint */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-lottery__why-choose-item:hover {
  background-color: rgba(255, 215, 0, 0.1);
  border-color: #FFD700;
}

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

.page-lottery__why-choose-heading {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-lottery__why-choose-description {
  font-size: 16px;
  color: #e0e0e0;
}

/* How To Play Section */
.page-lottery__how-to-play-section {
  background-color: #000000;
}

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

.page-lottery__step-item {
  background-color: rgba(139, 0, 0, 0.08); /* Light red tint */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(139, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__step-item:hover {
  background-color: rgba(139, 0, 0, 0.15);
  border-color: #8B0000;
}

.page-lottery__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #FFD700; /* Brand gold */
  color: #000000; /* Dark text for gold background */
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-lottery__step-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-lottery__step-description {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__step-button {
  display: inline-block;
  background-color: #FFD700; /* Brand gold */
  color: #000000;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
}

.page-lottery__step-button:hover {
  background-color: #8B0000; /* Auxiliary red */
  color: #ffffff;
  transform: translateY(-2px);
  border-color: #8B0000;
}

/* Promotions Section */
.page-lottery__promotions-section {
  background-color: #0d0d0d;
}

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

.page-lottery__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__promo-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFD700;
}

.page-lottery__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery__promo-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-lottery__promo-description {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__promo-button {
  display: inline-block;
  background-color: #8B0000;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #8B0000;
}

.page-lottery__promo-button:hover {
  background-color: #FFD700;
  color: #000000;
  transform: translateY(-2px);
  border-color: #FFD700;
}

/* FAQ Section */
.page-lottery__faq-section {
  background-color: #000000;
}

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

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
  text-align: left;
}

.page-lottery__faq-answer p {
  color: #e0e0e0;
  font-size: 16px;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  text-align: left;
}

.page-lottery__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFD700;
}

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

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700;
}

.page-lottery__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Change to 'x' or similar effect */
}

/* CTA Section */
.page-lottery__cta-section {
  background-color: #8B0000; /* Auxiliary red background */
  padding: 80px 20px;
}

.page-lottery__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-lottery__cta-title {
  font-size: 42px;
  color: #FFD700; /* Brand gold */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-lottery__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-lottery__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Brand gold */
  color: #000000; /* Dark text for gold background */
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 22px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
}

.page-lottery__cta-button:hover {
  background-color: #ffffff;
  color: #8B0000; /* Auxiliary red */
  transform: translateY(-3px);
  border-color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 44px;
  }
  .page-lottery__hero-description {
    font-size: 20px;
  }
  .page-lottery__section-title {
    font-size: 32px;
  }
  .page-lottery__section-description {
    font-size: 16px;
  }
  .page-lottery__cta-title {
    font-size: 36px;
  }
  .page-lottery__cta-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  /* Global image responsive styles */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__hero-banner,
  .page-lottery__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__hero-banner {
    padding-top: 10px; /* Mobile fixed nav bar spacing */
  }

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

  .page-lottery__hero-title {
    font-size: 36px;
  }

  .page-lottery__hero-description {
    font-size: 18px;
  }

  .page-lottery__hero-button {
    padding: 15px 30px;
    font-size: 18px;
  }

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

  .page-lottery__section-title {
    font-size: 28px;
  }

  .page-lottery__section-description {
    font-size: 15px;
  }

  .page-lottery__game-grid,
  .page-lottery__why-choose-grid,
  .page-lottery__steps-grid,
  .page-lottery__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__game-card-image-wrapper {
    height: 180px;
  }

  .page-lottery__game-card-title {
    font-size: 22px;
  }

  .page-lottery__why-choose-icon {
    width: 80px;
    height: 80px;
  }

  .page-lottery__why-choose-heading {
    font-size: 20px;
  }

  .page-lottery__step-number {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .page-lottery__step-title {
    font-size: 22px;
  }

  .page-lottery__promo-image {
    height: 160px;
  }

  .page-lottery__promo-title {
    font-size: 22px;
  }

  .page-lottery__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-lottery__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-lottery__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-lottery__faq-answer {
    padding: 0 15px;
  }
  
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }

  .page-lottery__cta-section {
    padding: 60px 15px;
  }

  .page-lottery__cta-title {
    font-size: 30px;
  }

  .page-lottery__cta-description {
    font-size: 16px;
  }

  .page-lottery__cta-button {
    padding: 15px 30px;
    font-size: 18px;
  }
}