.page-lottery-rules-description {
  font-family: 'Arial', sans-serif;
  color: #E0E0E0; /* Light gray text for dark background */
  background-color: #1A202C; /* Primary dark background */
}

.page-lottery-rules-description .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-lottery-rules-description section {
  padding: 60px 0;
  text-align: center;
}

.page-lottery-rules-description h1, .page-lottery-rules-description h2 {
  color: #FFD700; /* Auxiliary gold for main headings */
  margin-bottom: 30px;
  font-size: 2.8em;
  line-height: 1.2;
}

.page-lottery-rules-description h2 {
  font-size: 2.2em;
  margin-bottom: 25px;
}

.page-lottery-rules-description h3 {
  color: #F0F0F0; /* Slightly lighter gray for subheadings */
  margin-bottom: 15px;
  font-size: 1.6em;
}

.page-lottery-rules-description p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #D0D0D0; /* Slightly darker light gray for paragraphs */
}

.page-lottery-rules-description .text-link {
  color: #FFD700; /* Gold for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-lottery-rules-description .text-link:hover {
  color: #FFF;
}

.page-lottery-rules-description .cta-button {
  display: inline-block;
  padding: 15px 35px;
  background-color: #FFD700; /* Gold for CTA buttons */
  color: #1A202C; /* Dark text on gold button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 20px;
  border: none;
  cursor: pointer;
}

.page-lottery-rules-description .cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Banner */
.page-lottery-rules-description .lottery-hero-banner {
  position: relative;
  width: 100%;
  height: 500px; /* Adjusted height for content page banner */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.page-lottery-rules-description .lottery-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-lottery-rules-description .lottery-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-lottery-rules-description .lottery-hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-lottery-rules-description .lottery-hero-content h1 {
  color: #FFD700;
  font-size: 3.5em;
  margin-bottom: 20px;
}

.page-lottery-rules-description .lottery-hero-content p {
  color: #FFFFFF;
  font-size: 1.2em;
  margin-bottom: 30px;
}

/* Why Choose Section */
.page-lottery-rules-description .section-why-choose {
  background-color: #2D3748;
}

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

.page-lottery-rules-description .why-choose-item {
  background-color: #1A202C;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-lottery-rules-description .why-choose-item .feature-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Allowed for general icon visibility, not color change */
}

.page-lottery-rules-description .why-choose-item h3 {
  color: #FFD700;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-lottery-rules-description .why-choose-item p {
  font-size: 1em;
  color: #C0C0C0;
}

/* Lottery Types Section */
.page-lottery-rules-description .section-lottery-types {
  background-color: #1A202C;
}

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

.page-lottery-rules-description .lottery-card {
  background-color: #2D3748;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-lottery-rules-description .lottery-card .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-lottery-rules-description .lottery-card h3 {
  padding: 15px 20px 0;
  font-size: 1.3em;
}

.page-lottery-rules-description .lottery-card h3 a {
  color: #FFD700;
  text-decoration: none;
}

.page-lottery-rules-description .lottery-card h3 a:hover {
  text-decoration: underline;
}

.page-lottery-rules-description .lottery-card p {
  padding: 0 20px;
  font-size: 0.95em;
  color: #C0C0C0;
  flex-grow: 1;
}

.page-lottery-rules-description .lottery-card .card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FFD700;
  color: #1A202C;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  margin: 20px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-lottery-rules-description .lottery-card .card-button:hover {
  background-color: #e6c200;
}

/* How to Play Section */
.page-lottery-rules-description .section-how-to-play {
  background-color: #2D3748;
}

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

.page-lottery-rules-description .step-item {
  background-color: #1A202C;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery-rules-description .step-item .step-image {
  width: 150px;
  height: auto;
  margin: 0 auto 20px;
  filter: brightness(1.2);
}

.page-lottery-rules-description .step-item h3 {
  color: #FFD700;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-lottery-rules-description .step-item p {
  font-size: 0.95em;
  color: #C0C0C0;
  flex-grow: 1;
}

.page-lottery-rules-description .step-item .step-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: #FFD700;
  color: #1A202C;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-lottery-rules-description .step-item .step-button:hover {
  background-color: #e6c200;
}

/* Tips Section */
.page-lottery-rules-description .section-tips {
  background-color: #1A202C;
}

.page-lottery-rules-description .tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-lottery-rules-description .tips-list li {
  background-color: #2D3748;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-lottery-rules-description .tips-list .list-icon {
  width: 80px;
  height: auto;
  margin-bottom: 15px;
  filter: brightness(1.2);
}

.page-lottery-rules-description .tips-list h3 {
  color: #FFD700;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-lottery-rules-description .tips-list p {
  font-size: 0.95em;
  color: #C0C0C0;
}

/* FAQ Section */
.page-lottery-rules-description .section-faq {
  background-color: #2D3748;
}

.page-lottery-rules-description .faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-lottery-rules-description .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-lottery-rules-description .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #1A202C;
  border: 1px solid #3A4458;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-lottery-rules-description .faq-question:hover {
  background-color: #252B3C;
}

.page-lottery-rules-description .faq-question h3 {
  margin: 0;
  color: #FFD700;
  font-size: 1.2em;
  flex-grow: 1;
}

.page-lottery-rules-description .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-lottery-rules-description .faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.page-lottery-rules-description .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background-color: #252B3C;
  border-radius: 0 0 8px 8px;
}

.page-lottery-rules-description .faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 20px 25px;
  border: 1px solid #3A4458;
  border-top: none;
}

.page-lottery-rules-description .faq-answer p {
  color: #D0D0D0;
  font-size: 1em;
  margin-bottom: 0;
}

/* Conclusion Section */
.page-lottery-rules-description .section-conclusion {
  background-color: #1A202C;
  padding-bottom: 80px;
}

.page-lottery-rules-description .section-conclusion p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery-rules-description .primary-cta {
  background-color: #FFD700;
  color: #1A202C;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-lottery-rules-description .lottery-hero-content h1 {
    font-size: 2.8em;
  }
  .page-lottery-rules-description h1, .page-lottery-rules-description h2 {
    font-size: 2.2em;
  }
  .page-lottery-rules-description h3 {
    font-size: 1.4em;
  }
  .page-lottery-rules-description .why-choose-grid, .page-lottery-rules-description .lottery-type-cards, .page-lottery-rules-description .play-steps, .page-lottery-rules-description .tips-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-lottery-rules-description section {
    padding: 40px 0;
  }
  .page-lottery-rules-description .lottery-hero-banner {
    height: 400px;
  }
  .page-lottery-rules-description .lottery-hero-content h1 {
    font-size: 2.2em;
  }
  .page-lottery-rules-description .lottery-hero-content p {
    font-size: 1em;
  }
  .page-lottery-rules-description h1, .page-lottery-rules-description h2 {
    font-size: 1.8em;
  }
  .page-lottery-rules-description h3 {
    font-size: 1.2em;
  }
  .page-lottery-rules-description p {
    font-size: 0.95em;
  }
  .page-lottery-rules-description .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-lottery-rules-description .lottery-card .card-image {
    height: 180px;
  }
  .page-lottery-rules-description .faq-question {
    padding: 15px 20px;
  }
  .page-lottery-rules-description .faq-question h3 {
    font-size: 1.1em;
  }
  .page-lottery-rules-description .faq-toggle {
    font-size: 20px;
  }
  .page-lottery-rules-description .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-lottery-rules-description .lottery-hero-banner {
    height: 300px;
  }
  .page-lottery-rules-description .lottery-hero-content h1 {
    font-size: 1.8em;
  }
  .page-lottery-rules-description .lottery-hero-content p {
    font-size: 0.9em;
  }
  .page-lottery-rules-description h1, .page-lottery-rules-description h2 {
    font-size: 1.5em;
  }
  .page-lottery-rules-description h3 {
    font-size: 1.1em;
  }
  .page-lottery-rules-description .why-choose-grid, .page-lottery-rules-description .lottery-type-cards, .page-lottery-rules-description .play-steps, .page-lottery-rules-description .tips-list {
    grid-template-columns: 1fr;
  }
  .page-lottery-rules-description .faq-question {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 15px;
  }
  .page-lottery-rules-description .faq-question h3 {
    margin-bottom: 5px;
  }
  .page-lottery-rules-description .faq-toggle {
    align-self: flex-end;
    margin-top: -25px;
    margin-right: 0;
  }
  .page-lottery-rules-description .faq-item.active .faq-answer {
    padding: 12px 15px;
  }
}