.page-lottery {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f5f5f5;
  --bg-dark: #2a0a0a;
  font-family: 'Arial', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

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

.page-lottery-heading {
  text-align: center;
  color: var(--secondary-color);
  font-size: 2.5em;
  margin-bottom: 30px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 15px;
}

.page-lottery-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-lottery-subtitle, .page-lottery-text {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-lottery-cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--primary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery-cta-button:hover {
  background-color: #e0c200; /* Slightly darker gold */
  transform: translateY(-2px);
  color: var(--secondary-color);
}

/* Banner Section */
.page-lottery .banner-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: var(--text-light);
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #a02020 100%); /* Dark red gradient */
}

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

.page-lottery .banner-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.page-lottery .banner-content {
  position: relative;
  z-index: 3;
}

.page-lottery-title {
  font-size: 3.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-lottery-subtitle {
  font-size: 1.5em;
  margin-bottom: 30px;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Intro Section */
.page-lottery .intro-section {
  background-color: var(--bg-light);
  padding: 60px 0;
}

.page-lottery .intro-section .page-lottery-text {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery-features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.page-lottery-feature-item {
  flex: 1 1 280px;
  background-color: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery-feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-lottery-feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-lottery-feature-item h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-lottery-feature-item p {
  font-size: 1em;
  color: var(--text-dark);
}

/* Game Types Section */
.page-lottery .game-types-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-lottery .game-types-section .page-lottery-heading {
  color: var(--primary-color);
}

.page-lottery .game-types-section .page-lottery-text {
  color: var(--text-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery-game-card {
  background-color: #3a1a1a; /* Darker red */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery-game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-lottery-card-title {
  font-size: 1.6em;
  margin: 20px 0 10px;
  color: var(--primary-color);
  padding: 0 15px;
}

.page-lottery-card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery-card-title a:hover {
  color: #fff;
}

.page-lottery-game-card p {
  font-size: 1em;
  color: #ccc;
  padding: 0 15px 20px;
}

.page-lottery-card-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-lottery-card-button:hover {
  background-color: #e0c200;
  color: var(--secondary-color);
}

/* How to Play Section */
.page-lottery .how-to-play-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.page-lottery .how-to-play-section .page-lottery-text {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery-step-item {
  background-color: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

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

.page-lottery-step-item h3 {
  color: var(--secondary-color);
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-lottery-step-item h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery-step-item h3 a:hover {
  color: var(--primary-color);
}

.page-lottery-step-item p {
  font-size: 0.95em;
  color: var(--text-dark);
}

.page-lottery-cta-bottom {
  text-align: center;
  margin-top: 50px;
}

/* Promotions Section */
.page-lottery .promotions-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-lottery .promotions-section .page-lottery-heading {
  color: var(--primary-color);
}

.page-lottery .promotions-section .page-lottery-text {
  color: var(--text-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery-promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery-promotion-list li {
  background-color: #a02020; /* Slightly lighter red */
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 1.1em;
  color: var(--text-light);
}

.page-lottery-promotion-list li strong {
  color: var(--primary-color);
}

.page-lottery-promotion-list li a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery-promotion-list li a:hover {
  color: #fff;
}

/* FAQ Section */
.page-lottery .faq-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

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

.page-lottery .faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-lottery .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-lottery .faq-question:hover {
  background: #f0f0f0;
}

.page-lottery .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--text-dark);
}

.page-lottery .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-lottery .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.page-lottery .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  color: var(--text-dark);
}

.page-lottery .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px 25px;
}

.page-lottery .faq-answer p {
  margin: 0;
  font-size: 1em;
}

.page-lottery .faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-lottery .faq-answer a:hover {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery-title {
    font-size: 3em;
  }
  .page-lottery-subtitle {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-lottery-title {
    font-size: 2.5em;
  }
  .page-lottery-subtitle {
    font-size: 1.1em;
  }
  .page-lottery-heading {
    font-size: 2em;
  }
  .page-lottery-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-lottery-features, .page-lottery-game-cards, .page-lottery-steps {
    grid-template-columns: 1fr;
  }
  .page-lottery-feature-item, .page-lottery-game-card, .page-lottery-step-item {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }
  .page-lottery .banner-section {
    padding: 60px 0;
  }
  .page-lottery .intro-section, .page-lottery .game-types-section, .page-lottery .how-to-play-section, .page-lottery .promotions-section, .page-lottery .faq-section {
    padding: 40px 0;
  }
  .page-lottery .faq-question {
    padding: 15px 20px;
  }
  .page-lottery .faq-question h3 {
    font-size: 1.1em;
  }
  .page-lottery .faq-answer {
    padding: 0 20px;
  }
  .page-lottery .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-lottery-title {
    font-size: 2em;
  }
  .page-lottery-subtitle {
    font-size: 0.9em;
  }
  .page-lottery-heading {
    font-size: 1.8em;
  }
  .page-lottery-cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}