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

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

.page-lottery h1, .page-lottery h2, .page-lottery h3 {
  color: #0A2239;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-lottery h1 {
  font-size: 3.2em;
  text-align: center;
  color: #FFFFFF;
}

.page-lottery h2 {
  font-size: 2.5em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  position: relative;
}

.page-lottery h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 15px auto 0;
  border-radius: 2px;
}

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

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

/* Hero Banner */
.page-lottery .hero-banner {
  position: relative;
  width: 100%;
  height: 500px; /* Adjust height as needed */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #0A2239;
}

.page-lottery .hero-banner .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
  z-index: 1;
}

.page-lottery .hero-banner .hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  max-width: 800px;
  padding: 20px;
}

.page-lottery .hero-banner p {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #E0E0E0;
}

.page-lottery .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700;
  color: #0A2239;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

/* Section Styling */
.page-lottery section {
  padding: 60px 0;
}

.page-lottery .section-intro, .page-lottery .section-guide, .page-lottery .section-tips {
  background-color: #f9f9f9;
}

.page-lottery .section-types, .page-lottery .section-advantages, .page-lottery .section-faq, .page-lottery .section-cta {
  background-color: #ffffff;
}

.page-lottery .section-intro p, .page-lottery .section-guide ol li p, .page-lottery .section-tips ul li p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: #555555;
}

.page-lottery .section-intro .button-secondary {
  display: block;
  width: fit-content;
  margin: 30px auto 0;
  padding: 12px 30px;
  background-color: #0A2239;
  color: #FFD700;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #0A2239;
}

.page-lottery .section-intro .button-secondary:hover {
  background-color: #1a3c5a;
  color: #fff;
  border-color: #1a3c5a;
}

/* Lottery Grid */
.page-lottery .lottery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery .lottery-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-lottery .lottery-card h3 {
  padding: 15px 20px 0;
  font-size: 1.5em;
  color: #0A2239;
}

.page-lottery .lottery-card h3 a {
  text-decoration: none;
  color: #0A2239;
  transition: color 0.3s ease;
}

.page-lottery .lottery-card h3 a:hover {
  color: #FFD700;
}

.page-lottery .lottery-card p {
  padding: 0 20px 15px;
  color: #666666;
  flex-grow: 1;
}

.page-lottery .lottery-card .button-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FFD700;
  color: #0A2239;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
}

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

/* Guide Section */
.page-lottery .section-guide ol {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-lottery .section-guide ol li {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-lottery .section-guide ol li h3 {
  color: #FFD700;
  font-size: 2em;
  margin-bottom: 15px;
  position: relative;
}

.page-lottery .section-guide ol li h3::before {
  content: attr(data-step);
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #0A2239;
  color: #FFFFFF;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  font-size: 1.2em;
  font-weight: bold;
  display: none; /* Hidden for now, can be enabled with custom counter */
}

.page-lottery .section-guide ol li:nth-child(1) h3::before { content: '1'; }
.page-lottery .section-guide ol li:nth-child(2) h3::before { content: '2'; }
.page-lottery .section-guide ol li:nth-child(3) h3::before { content: '3'; }
.page-lottery .section-guide ol li:nth-child(4) h3::before { content: '4'; }

.page-lottery .section-guide .button-primary, .page-lottery .section-guide .button-secondary {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.page-lottery .section-guide .button-primary {
  background-color: #FFD700;
  color: #0A2239;
  border: 2px solid #FFD700;
}

.page-lottery .section-guide .button-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-lottery .section-guide .button-secondary {
  background-color: #0A2239;
  color: #FFD700;
  border: 2px solid #0A2239;
}

.page-lottery .section-guide .button-secondary:hover {
  background-color: #1a3c5a;
  border-color: #1a3c5a;
  color: #fff;
}

/* Advantages Section */
.page-lottery .advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery .advantage-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-lottery .advantage-item:hover {
  transform: translateY(-5px);
}

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

.page-lottery .advantage-item h3 {
  font-size: 1.6em;
  color: #0A2239;
  margin-bottom: 10px;
}

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

/* Tips Section */
.page-lottery .section-tips ul {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-lottery .section-tips ul li {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  padding: 25px 30px;
}

.page-lottery .section-tips ul li h3 {
  color: #FFD700;
  margin-bottom: 10px;
  font-size: 1.8em;
}

.page-lottery .section-tips ul li p {
  color: #555555;
  text-align: left;
}

/* FAQ Section */
.page-lottery .section-faq {
  padding: 60px 0;
  background-color: #f0f2f5;
}

.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 4px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-lottery .faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  color: #0A2239;
  flex-grow: 1;
  text-align: left;
}

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

.page-lottery .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
  background: #f9f9f9;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-lottery .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
  border: 1px solid #e0e0e0;
  border-top: none;
}

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

.page-lottery .faq-answer p {
  margin-bottom: 10px;
  color: #555555;
  font-size: 1.05em;
}

.page-lottery .faq-answer .button-small {
  display: inline-block;
  padding: 8px 18px;
  background-color: #FFD700;
  color: #0A2239;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.page-lottery .faq-answer .button-small:hover {
  background-color: #e6c200;
}

/* Call to Action Section */
.page-lottery .section-cta {
  background-color: #0A2239;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
}

.page-lottery .section-cta h2 {
  color: #FFD700;
  font-size: 2.8em;
  margin-bottom: 25px;
}

.page-lottery .section-cta h2::after {
  background-color: #FFD700;
}

.page-lottery .section-cta p {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #E0E0E0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-lottery h1 {
    font-size: 2.8em;
  }

  .page-lottery h2 {
    font-size: 2em;
  }

  .page-lottery h3 {
    font-size: 1.6em;
  }

  .page-lottery .hero-banner {
    height: 400px;
  }

  .page-lottery .hero-banner .hero-content p {
    font-size: 1.1em;
  }

  .page-lottery .cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }

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

@media (max-width: 768px) {
  .page-lottery h1 {
    font-size: 2.2em;
  }

  .page-lottery h2 {
    font-size: 1.8em;
  }

  .page-lottery h3 {
    font-size: 1.4em;
  }

  .page-lottery .hero-banner {
    height: 350px;
    padding: 20px;
  }

  .page-lottery .hero-banner .hero-content {
    padding: 15px;
  }

  .page-lottery .hero-banner .hero-content p {
    font-size: 1em;
  }

  .page-lottery .cta-button {
    padding: 10px 25px;
    font-size: 1em;
  }

  .page-lottery section {
    padding: 40px 0;
  }

  .page-lottery .section-guide ol li {
    padding: 20px;
  }

  .page-lottery .advantage-item {
    padding: 20px;
  }

  .page-lottery .advantage-item .advantage-icon {
    width: 80px;
    height: 80px;
  }

  .page-lottery .faq-question {
    padding: 15px 20px;
  }

  .page-lottery .faq-question h3 {
    font-size: 1.1em;
  }

  .page-lottery .faq-toggle {
    font-size: 20px;
  }

  .page-lottery .faq-answer {
    padding: 0 20px;
  }

  .page-lottery .faq-item.active .faq-answer {
    padding: 15px 20px;
  }

  .page-lottery .section-cta h2 {
    font-size: 2em;
  }

  .page-lottery .section-cta p {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-lottery h1 {
    font-size: 1.8em;
  }

  .page-lottery h2 {
    font-size: 1.6em;
  }

  .page-lottery h3 {
    font-size: 1.2em;
  }

  .page-lottery .hero-banner {
    height: 300px;
  }

  .page-lottery .hero-banner .hero-content p {
    font-size: 0.9em;
  }

  .page-lottery .cta-button {
    padding: 8px 20px;
    font-size: 0.9em;
  }

  .page-lottery .lottery-grid {
    grid-template-columns: 1fr;
  }

  .page-lottery .section-guide ol li h3 {
    font-size: 1.5em;
  }

  .page-lottery .faq-question h3 {
    font-size: 1em;
  }

  .page-lottery .section-cta h2 {
    font-size: 1.8em;
  }
}