.page-lottery {
  --primary-color: #FFD700; /* Vàng kim */
  --secondary-color: #DC143C; /* Đỏ tươi */
  --dark-background: #1a1a1a; /* Nền tối */
  --light-text: #ffffff; /* Chữ sáng */
  --dark-text: #333333; /* Chữ tối */
  --gray-text: #cccccc;
  --card-background: #2a2a2a;
  --border-color: #444444;
  font-family: 'Arial', sans-serif;
  color: var(--light-text);
  background-color: var(--dark-background);
}

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

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

.page-lottery .section-description {
  font-size: 1.1em;
  color: var(--gray-text);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-lottery .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--secondary-color);
}

.page-lottery .cta-button:hover {
  background: var(--primary-color);
  color: var(--dark-background);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-color);
}

/* HERO Section */
.page-lottery .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
}

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

.page-lottery .hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-lottery .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-lottery .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-lottery .hero-content h1 {
  font-size: 3.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-lottery .hero-content p {
  font-size: 1.3em;
  color: var(--light-text);
  margin-bottom: 30px;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-lottery .section-intro {
  padding: 80px 0;
  background-color: #111111;
}

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

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

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

.page-lottery .feature-item img {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px;
}

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

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

/* Games Section */
.page-lottery .section-games {
  padding: 80px 0;
  background-color: var(--dark-background);
}

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

.page-lottery .game-card {
  background-color: var(--card-background);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-lottery .game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery .game-card h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-lottery .game-card h3 .page-lottery.card-link:hover {
  color: var(--secondary-color);
}

.page-lottery .game-card p {
  font-size: 1em;
  color: var(--gray-text);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-lottery .card-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid var(--secondary-color);
}

.page-lottery .card-button:hover {
  background: var(--primary-color);
  color: var(--dark-background);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

/* Guide Section */
.page-lottery .section-guide {
  padding: 80px 0;
  background-color: #111111;
}

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

.page-lottery .step-item {
  background-color: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-lottery .step-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--dark-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

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

.page-lottery .step-item p {
  font-size: 1em;
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-lottery .step-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid var(--secondary-color);
}

.page-lottery .step-button:hover {
  background: var(--primary-color);
  color: var(--dark-background);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

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

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

.page-lottery .promo-card {
  background-color: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-lottery .promo-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px;
}

.page-lottery .promo-card h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-lottery .promo-card p {
  font-size: 1em;
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-lottery .promo-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid var(--secondary-color);
}

.page-lottery .promo-button:hover {
  background: var(--primary-color);
  color: var(--dark-background);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

/* Tips Section */
.page-lottery .section-tips {
  padding: 80px 0;
  background-color: #111111;
}

.page-lottery .tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-lottery .tips-list li {
  background-color: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-lottery .tips-list li h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-lottery .tips-list li p {
  font-size: 1em;
  color: var(--gray-text);
  line-height: 1.6;
}

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

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

.page-lottery .faq-item {
  margin-bottom: 15px;
}

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

.page-lottery .faq-question:hover {
  background: #333333;
  border-color: var(--primary-color);
}

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

.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(--secondary-color);
}

.page-lottery .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  padding: 0 25px;
  background: #222222;
  border-radius: 0 0 8px 8px;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.page-lottery .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to accommodate content */
  padding: 20px 25px;
  border-color: var(--primary-color);
}

.page-lottery .faq-answer p {
  color: var(--gray-text);
  line-height: 1.6;
  font-size: 1em;
}

/* Bottom CTA Section */
.page-lottery .section-cta-bottom {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color), #8B0000);
  color: var(--light-text);
  box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery .section-cta-bottom .section-title {
  color: var(--light-text);
  font-size: 2.5em;
  margin-bottom: 15px;
}

.page-lottery .section-cta-bottom .section-description {
  color: #f0f0f0;
  font-size: 1.2em;
  margin-bottom: 40px;
}

.page-lottery .section-cta-bottom .cta-button {
  background: var(--primary-color);
  color: var(--dark-background);
  border-color: var(--primary-color);
}

.page-lottery .section-cta-bottom .cta-button:hover {
  background: var(--light-text);
  color: var(--secondary-color);
  border-color: var(--light-text);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery .hero-content h1 {
    font-size: 3em;
  }
  .page-lottery .section-title {
    font-size: 2.2em;
  }
  .page-lottery .feature-item h3,
  .page-lottery .game-card h3,
  .page-lottery .step-item h3,
  .page-lottery .promo-card h3,
  .page-lottery .tips-list li h3 {
    font-size: 1.4em;
  }
  .page-lottery .game-card img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-lottery .hero-section {
    padding: 40px 15px;
  }
  .page-lottery .hero-content h1 {
    font-size: 2.5em;
  }
  .page-lottery .hero-content p {
    font-size: 1.1em;
  }
  .page-lottery .section-title {
    font-size: 1.8em;
  }
  .page-lottery .section-description {
    font-size: 1em;
  }
  .page-lottery .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-lottery .feature-grid,
  .page-lottery .game-card-grid,
  .page-lottery .step-by-step,
  .page-lottery .promo-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery .feature-item,
  .page-lottery .game-card,
  .page-lottery .step-item,
  .page-lottery .promo-card,
  .page-lottery .tips-list li {
    padding: 20px;
  }
  .page-lottery .game-card img {
    height: 160px;
  }
  .page-lottery .faq-question {
    padding: 15px 20px;
  }
  .page-lottery .faq-question h3 {
    font-size: 1.1em;
  }
  .page-lottery .faq-toggle {
    font-size: 1.8em;
  }
  .page-lottery .faq-answer {
    padding: 0 20px;
  }
  .page-lottery .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-lottery .section-cta-bottom .section-title {
    font-size: 2em;
  }
  .page-lottery .section-cta-bottom .section-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-lottery .hero-content h1 {
    font-size: 2em;
  }
  .page-lottery .hero-content p {
    font-size: 0.9em;
  }
  .page-lottery .section-title {
    font-size: 1.5em;
  }
  .page-lottery .feature-item h3,
  .page-lottery .game-card h3,
  .page-lottery .step-item h3,
  .page-lottery .promo-card h3,
  .page-lottery .tips-list li h3 {
    font-size: 1.2em;
  }
  .page-lottery .game-card img {
    height: 140px;
  }
  .page-lottery .step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }
  .page-lottery .faq-question h3 {
    font-size: 1em;
  }
}