.page-lottery {
  --primary-color: #FFD700;
  --secondary-color: #000080;
  --text-dark: #000000;
  --text-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #000080;
  --accent-color: #FFC107; /* Slightly darker gold for hover/active */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

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

.page-lottery .section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

.page-lottery .section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555;
}

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

.page-lottery .cta-button:hover {
  background: var(--accent-color);
  color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery .cta-button.large {
  padding: 18px 40px;
  font-size: 1.3em;
}

/* Hero Banner Section */
.page-lottery .hero-banner {
  position: relative;
  width: 100%;
  height: 500px; /* Adjust height as needed */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--background-dark);
}

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

.page-lottery .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 128, 0.7), rgba(255, 215, 0, 0.5));
  z-index: 2;
}

.page-lottery .hero-content-wrapper {
  position: relative;
  z-index: 3;
  color: var(--text-light);
  max-width: 900px;
  padding: 20px;
}

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

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

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

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

.page-lottery .feature-item {
  background: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px 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 10px 30px rgba(0, 0, 0, 0.2);
}

.page-lottery .feature-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery .feature-item p {
  color: #666;
  font-size: 1em;
}

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

.page-lottery .game-types-section .section-title, .page-lottery .game-types-section .section-description {
  color: var(--text-light);
}

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

.page-lottery .game-card {
  background: var(--text-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-lottery .game-card .card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

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

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

.page-lottery .game-card .card-title a:hover {
  color: var(--primary-color);
}

.page-lottery .game-card .card-text {
  font-size: 1em;
  color: #666;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-lottery .game-card .card-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 20px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease;
}

.page-lottery .game-card .card-button:hover {
  background: var(--accent-color);
  color: var(--text-dark);
}

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

.page-lottery .steps-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin-top: 50px;
}

.page-lottery .steps-list li {
  background: var(--text-light);
  margin-bottom: 25px;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-left: 90px;
}

.page-lottery .steps-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: var(--secondary-color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery .steps-list li h3 {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

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

.page-lottery .steps-list li h3 a:hover {
  color: var(--primary-color);
}

.page-lottery .steps-list li p {
  color: #555;
  font-size: 1.05em;
}

/* Advantages Section */
.page-lottery .advantages-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-lottery .advantages-section .section-title, .page-lottery .advantages-section .section-description {
  color: var(--text-light);
}

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

.page-lottery .advantage-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}

.page-lottery .advantage-item:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-5px);
}

.page-lottery .advantage-icon {
  width: 90px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery .advantage-item h3 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-lottery .advantage-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1em;
}

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

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

.page-lottery .promo-card {
  background: var(--text-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-lottery .promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-lottery .promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

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

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

.page-lottery .promo-title a:hover {
  color: var(--primary-color);
}

.page-lottery .promo-text {
  font-size: 1em;
  color: #666;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-lottery .promo-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 20px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease;
}

.page-lottery .promo-button:hover {
  background: var(--accent-color);
  color: var(--text-dark);
}

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

.page-lottery .faq-section .section-title {
  color: var(--primary-color);
}

.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: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-lottery .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--secondary-color);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-lottery .faq-question:hover {
  background: rgba(0, 0, 128, 0.85);
  border-color: var(--primary-color);
}

.page-lottery .faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  color: var(--primary-color);
  font-weight: bold;
}

.page-lottery .faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

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

.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: #2a2a72; /* Slightly lighter dark blue for answer background */
  color: rgba(255, 255, 255, 0.9);
}

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

.page-lottery .faq-answer p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-lottery .faq-answer .faq-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-lottery .faq-answer .faq-link:hover {
  color: var(--accent-color);
}

/* Final CTA Section */
.page-lottery .cta-final-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--secondary-color), #333399);
  color: var(--text-light);
  text-align: center;
}

.page-lottery .cta-final-section .section-title {
  color: var(--primary-color);
}

.page-lottery .cta-final-section .section-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-lottery .hero-title {
    font-size: 2.8em;
  }
  .page-lottery .hero-description {
    font-size: 1.1em;
  }
  .page-lottery .section-title {
    font-size: 2em;
  }
  .page-lottery .steps-list li {
    padding-left: 70px;
  }
  .page-lottery .steps-list li::before {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    left: 20px;
  }
  .page-lottery .steps-list li h3 {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-lottery .hero-banner {
    height: 400px;
  }
  .page-lottery .hero-title {
    font-size: 2em;
  }
  .page-lottery .hero-description {
    font-size: 1em;
  }
  .page-lottery .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-lottery .cta-button.large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-lottery .section-title {
    font-size: 1.8em;
  }
  .page-lottery .section-description {
    font-size: 0.95em;
  }
  .page-lottery .feature-item, .page-lottery .game-card, .page-lottery .advantage-item, .page-lottery .promo-card {
    margin-bottom: 20px;
  }
  .page-lottery .steps-list li {
    padding: 20px 25px;
    padding-left: 65px;
  }
  .page-lottery .steps-list li::before {
    width: 35px;
    height: 35px;
    font-size: 1.3em;
    left: 15px;
  }
  .page-lottery .steps-list li h3 {
    font-size: 1.3em;
  }
  .page-lottery .faq-question {
    padding: 15px 20px;
  }
  .page-lottery .faq-question h3 {
    font-size: 1.1em;
  }
  .page-lottery .faq-toggle {
    font-size: 1.5em;
  }
  .page-lottery .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-lottery .hero-banner {
    height: 350px;
  }
  .page-lottery .hero-title {
    font-size: 1.5em;
  }
  .page-lottery .hero-description {
    font-size: 0.9em;
  }
  .page-lottery .section-title {
    font-size: 1.5em;
  }
  .page-lottery .cta-button {
    font-size: 0.9em;
    padding: 10px 20px;
  }
  .page-lottery .cta-button.large {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-lottery .feature-icon, .page-lottery .advantage-icon {
    width: 70px;
  }
  .page-lottery .feature-item h3, .page-lottery .advantage-item h3 {
    font-size: 1.3em;
  }
  .page-lottery .game-card .card-title, .page-lottery .promo-title {
    font-size: 1.3em;
  }
  .page-lottery .steps-list li {
    padding-left: 55px;
  }
  .page-lottery .steps-list li::before {
    width: 30px;
    height: 30px;
    font-size: 1.1em;
    left: 10px;
  }
  .page-lottery .steps-list li h3 {
    font-size: 1.2em;
  }
  .page-lottery .faq-question h3 {
    font-size: 1em;
  }
  .page-lottery .faq-toggle {
    font-size: 1.2em;
  }
}