.page-lottery {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f8f8;
}

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

.page-lottery section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-lottery h1,
.page-lottery h2 {
  color: #1E90FF;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-lottery h1 {
  font-size: 3.2em;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-lottery h2 {
  font-size: 2.5em;
  color: #1E90FF;
}

.page-lottery h3 {
  color: #1E90FF;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-lottery p {
  font-size: 1.1em;
  margin-bottom: 1em;
}

.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, #1E90FF, #007BFF);
  color: #ffffff;
  overflow: hidden;
}

.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;
  z-index: 2;
}

.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 {
  color: #FFD700;
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.page-lottery .hero-content p {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #e0e0e0;
}

.page-lottery .cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: #FFD700;
  color: #1E90FF;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.4em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-lottery .cta-button:hover {
  background: #e6c200;
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery .section-intro {
  background-color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-lottery .section-intro p {
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-lottery .intro-item {
  background: #fdfdfd;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid #FFD700;
}

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

.page-lottery .intro-item img {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-lottery .intro-item h3 {
  color: #1E90FF;
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-lottery .section-game-types {
  background-color: #f0f7ff;
  padding: 80px 0;
  text-align: center;
}

.page-lottery .game-type-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 5px solid #1E90FF;
}

.page-lottery .game-type-card img {
  width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  align-self: center;
}

.page-lottery .game-type-card h3 {
  color: #FFD700;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-lottery .game-type-card p {
  font-size: 1.1em;
  color: #555;
  flex-grow: 1;
}

.page-lottery .btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: #1E90FF;
  color: #ffffff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1em;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-lottery .btn-small:hover {
  background: #007bff;
  transform: translateY(-3px);
}

.page-lottery .section-guide ol {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-lottery .section-guide li {
  background: #ffffff;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  padding-left: 80px;
  border-left: 5px solid #FFD700;
}

.page-lottery .section-guide li::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: #FFD700;
  color: #1E90FF;
  font-weight: bold;
  padding: 15px 10px;
  border-radius: 10px 0 0 10px;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 100%;
}

.page-lottery .section-guide li h3 {
  margin-top: 0;
  color: #1E90FF;
}

.page-lottery .btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: #FFD700;
  color: #1E90FF;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-lottery .btn-primary:hover {
  background: #e6c200;
  transform: translateY(-3px);
}

.page-lottery .btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: #1E90FF;
  color: #ffffff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 15px;
  margin-left: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-lottery .btn-secondary:hover {
  background: #007bff;
  transform: translateY(-3px);
}

.page-lottery .section-strategies {
  background-color: #fdfdfd;
  padding: 80px 0;
}

.page-lottery .section-strategies ul {
  list-style: none;
  padding: 0;
}

.page-lottery .section-strategies li {
  background: #ffffff;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #FFD700;
  transition: transform 0.3s ease;
}

.page-lottery .section-strategies li:hover {
  transform: translateX(5px);
}

.page-lottery .section-strategies li h3 {
  color: #1E90FF;
  font-size: 1.5em;
  margin-top: 0;
}

.page-lottery .section-promotions {
  background-color: #f0f7ff;
  padding: 80px 0;
  text-align: center;
}

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

.page-lottery .promotion-card {
  background: #ffffff;
  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;
  border-bottom: 5px solid #1E90FF;
}

.page-lottery .promotion-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-lottery .promotion-card img {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-lottery .promotion-card h3 {
  color: #FFD700;
  font-size: 1.7em;
  margin-bottom: 15px;
}

.page-lottery .section-faq {
  background-color: #ffffff;
  padding: 80px 0;
}

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

.page-lottery .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1E90FF;
  color: #ffffff;
  border: 1px solid #1E90FF;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-lottery .faq-question:hover {
  background: #007bff;
  border-color: #007bff;
}

.page-lottery .faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  color: #ffffff;
}

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

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

.page-lottery .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 20px;
  background: #f9f9f9;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0 0 5px 5px;
}

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

.page-lottery .faq-answer p {
  margin: 0;
  color: #555;
}

.page-lottery .section-call-to-action {
  background: linear-gradient(135deg, #FFD700, #e6c200);
  color: #1E90FF;
  text-align: center;
  padding: 80px 0;
}

.page-lottery .section-call-to-action h2 {
  color: #1E90FF;
  font-size: 3em;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-lottery .section-call-to-action p {
  font-size: 1.3em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #333;
}

.page-lottery .cta-button-large {
  display: inline-block;
  padding: 20px 50px;
  background: #1E90FF;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.6em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
}

.page-lottery .cta-button-large:hover {
  background: #007bff;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery .hero-content h1 {
    font-size: 3em;
  }
  .page-lottery .hero-content p {
    font-size: 1.2em;
  }
  .page-lottery h2 {
    font-size: 2em;
  }
  .page-lottery h3 {
    font-size: 1.6em;
  }
  .page-lottery .intro-grid,
  .page-lottery .promotion-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-lottery .section-guide li::before {
    min-width: 80px;
    font-size: 1.1em;
    padding: 10px 5px;
  }
  .page-lottery .section-guide li {
    padding-left: 60px;
  }
}

@media (max-width: 768px) {
  .page-lottery section {
    padding: 40px 0;
  }
  .page-lottery .hero-content h1 {
    font-size: 2.5em;
  }
  .page-lottery .hero-content p {
    font-size: 1em;
  }
  .page-lottery .cta-button {
    padding: 15px 30px;
    font-size: 1.2em;
  }
  .page-lottery h1 {
    font-size: 2.5em;
  }
  .page-lottery h2 {
    font-size: 1.8em;
  }
  .page-lottery h3 {
    font-size: 1.4em;
  }
  .page-lottery p {
    font-size: 1em;
  }
  .page-lottery .intro-grid,
  .page-lottery .promotion-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery .game-type-card img {
    width: 200px;
  }
  .page-lottery .section-guide li {
    padding-left: 20px;
    border-left: none;
  }
  .page-lottery .section-guide li::before {
    position: static;
    display: block;
    width: auto;
    height: auto;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    text-align: center;
  }
  .page-lottery .btn-primary,
  .page-lottery .btn-secondary {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
  }
  .page-lottery .faq-question {
    padding: 15px;
  }
  .page-lottery .faq-question h3 {
    font-size: 1.1em;
  }
  .page-lottery .faq-toggle {
    font-size: 20px;
  }
  .page-lottery .section-call-to-action h2 {
    font-size: 2.2em;
  }
  .page-lottery .section-call-to-action p {
    font-size: 1.1em;
  }
  .page-lottery .cta-button-large {
    padding: 15px 30px;
    font-size: 1.3em;
  }
}

@media (max-width: 480px) {
  .page-lottery .hero-content h1 {
    font-size: 2em;
  }
  .page-lottery .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-lottery .section-call-to-action h2 {
    font-size: 1.8em;
  }
  .page-lottery .section-call-to-action p {
    font-size: 0.9em;
  }
  .page-lottery .cta-button-large {
    padding: 12px 25px;
    font-size: 1.1em;
  }
}