/* style/lottery.css */

/* Base styles for the lottery page */
.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--primary-color); /* Inherit from shared.css, typically dark */
}

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

/* Fixed header spacing for the first content section */
.page-lottery__hero-banner {
  padding-top: 120px; /* Adjust for fixed header height */
}

@media (max-width: 768px) {
  .page-lottery__hero-banner {
    padding-top: 100px; /* Adjust for mobile fixed header height */
  }
}

.page-lottery__section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-lottery__section:last-of-type {
  border-bottom: none;
}

.page-lottery__dark-section {
  background-color: #1A202C;
  color: #ffffff;
}

.page-lottery__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Gold color for titles */
}

.page-lottery__main-heading {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Gold color for main heading */
}

.page-lottery__sub-heading {
  font-size: 20px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-lottery__keyword {
  color: #FFD700;
  font-weight: bold;
}

/* Buttons */
.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

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

.page-lottery__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-lottery__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
}

.page-lottery__btn-center {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
}

/* Products Grid */
.page-lottery__products-overview {
  background-color: #0d0d0d;
}

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

.page-lottery__product-card {
  background-color: #1A202C;
  border: 2px solid #FFD700;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery__product-card-link {
  display: block;
  text-decoration: none;
  color: #f0f0f0;
}

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

.page-lottery__product-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD700;
  padding: 15px 20px 5px;
  margin: 0;
}

.page-lottery__product-card-text {
  font-size: 16px;
  color: #cccccc;
  padding: 0 20px 20px;
  margin: 0;
}

/* How-to-play Steps */
.page-lottery__how-to-play {
  background-color: var(--primary-color);
}

.page-lottery__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-lottery__step-item {
  background-color: #1A202C;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  counter-increment: step-counter;
  position: relative;
}

.page-lottery__step-item::before {
  content: counter(step-counter);
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #FFD700;
  color: #1A202C;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  z-index: 1;
}

.page-lottery__step-title {
  font-size: 24px;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 15px;
  padding-left: 55px; /* Space for step number */
}

.page-lottery__step-description {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

/* Advantages / Features */
.page-lottery__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-lottery__feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-lottery__feature-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-lottery__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-lottery__feature-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
}

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

/* Tips Section */
.page-lottery__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
  gap: 30px;
}

.page-lottery__tip-item {
  background-color: #1A202C;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery__tip-title {
  font-size: 22px;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-lottery__tip-text {
  font-size: 16px;
  color: #cccccc;
}

/* FAQ Section */
.page-lottery__faq {
  background-color: #0d0d0d;
}

.page-lottery__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1A202C;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #1A202C;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-lottery__faq-question:hover {
  background-color: #2a3447;
}

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

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

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

.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;
  padding: 0 25px;
  opacity: 0;
  color: #cccccc;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* Sufficiently large value */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-lottery__faq-answer p {
  margin: 0;
  font-size: 16px;
}

.page-lottery__btn-faq {
  margin-top: 20px;
}

/* Latest News/Blog */
.page-lottery__latest-news {
  background-color: #1A202C;
}

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

.page-lottery__news-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-lottery__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-lottery__news-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFD700;
  padding: 15px 20px 10px;
  margin: 0;
}

.page-lottery__news-link {
  color: #FFD700;
  text-decoration: none;
}

.page-lottery__news-link:hover {
  text-decoration: underline;
}

.page-lottery__news-excerpt {
  font-size: 15px;
  color: #cccccc;
  padding: 0 20px 15px;
  margin: 0;
}

.page-lottery__read-more {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #FFD700;
  text-decoration: none;
  padding: 0 20px 20px;
}

.page-lottery__read-more:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__section-title {
    font-size: 32px;
  }
  .page-lottery__main-heading {
    font-size: 40px;
  }
  .page-lottery__sub-heading {
    font-size: 18px;
  }
  .page-lottery__product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-lottery__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-lottery__tips-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-lottery__container {
    padding: 20px 15px;
  }
  .page-lottery__section {
    padding: 40px 0;
  }
  .page-lottery__section-title {
    font-size: 28px;
  }
  .page-lottery__main-heading {
    font-size: 32px;
  }
  .page-lottery__sub-heading {
    font-size: 16px;
  }
  .page-lottery__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-lottery__btn-primary, .page-lottery__btn-secondary {
    padding: 12px 25px;
    font-size: 15px;
  }
  .page-lottery__product-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery__step-title {
    font-size: 20px;
    padding-left: 50px;
  }
  .page-lottery__step-item::before {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  .page-lottery__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery__news-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery__faq-question h3 {
    font-size: 16px;
  }
  .page-lottery__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-lottery__faq-answer {
    padding: 0 15px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }
}

/* Ensure all images are responsive and do not cause horizontal scroll */
.page-lottery img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

.page-lottery__section,
.page-lottery__container,
.page-lottery__product-card,
.page-lottery__feature-card,
.page-lottery__news-card,
.page-lottery__faq-item {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__product-card,
  .page-lottery__feature-card,
  .page-lottery__news-card,
  .page-lottery__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__hero-banner {
    padding-left: 15px;
    padding-right: 15px;
  }
}