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

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

.page-lottery h1,
.page-lottery h2,
.page-lottery h3 {
  color: #007BFF;
  margin-bottom: 25px;
  font-weight: bold;
  text-align: center;
}

.page-lottery h1 {
  font-size: 3.2em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-lottery h2 {
  font-size: 2.5em;
  padding-top: 40px;
  margin-bottom: 35px;
  position: relative;
}

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

.page-lottery h3 {
  font-size: 1.8em;
  color: #007BFF;
  margin-top: 20px;
}

.page-lottery p {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-lottery strong {
  color: #007BFF;
}

.page-lottery a {
  color: #007BFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery a:hover {
  color: #FFC107;
}

.page-lottery .cta-button,
.page-lottery .card-button,
.page-lottery .step-button,
.page-lottery .inline-link {
  display: inline-block;
  padding: 12px 25px;
  background-color: #FFC107;
  color: #333333;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1.05em;
}

.page-lottery .cta-button:hover,
.page-lottery .card-button:hover,
.page-lottery .step-button:hover,
.page-lottery .inline-link:hover {
  background-color: #e0a800;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-lottery .inline-link {
  padding: 8px 15px;
  font-size: 0.95em;
  margin-top: 10px;
}

/* 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, #007BFF, #3498db);
  color: #ffffff;
}

.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%;
  max-width: 800px; /* Adjusted for better visual balance */
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

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

.page-lottery .hero-content p {
  color: #e0e0e0;
  font-size: 1.2em;
  margin-bottom: 30px;
  text-align: center;
}

.page-lottery .cta-button {
  margin-top: 20px;
  background-color: #FFC107;
  color: #333333;
  padding: 15px 40px;
  font-size: 1.2em;
}

.page-lottery .cta-button:hover {
  background-color: #e0a800;
  color: #ffffff;
}

/* Lottery Types Section */
.page-lottery .lottery-types-section {
  padding: 80px 0;
  background-color: #f0f4f8;
}

.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-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.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%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery .lottery-card h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #007BFF;
}

.page-lottery .lottery-card p {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
  text-align: center;
}

.page-lottery .lottery-card .card-button {
  margin-top: 20px;
}

/* Why Betvisa Section */
.page-lottery .why-betvisa-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-lottery .why-betvisa-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

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

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

.page-lottery .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

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

.page-lottery .feature-item h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #007BFF;
}

.page-lottery .feature-item p {
  font-size: 1em;
  color: #555555;
  text-align: center;
}

/* How To Play Section */
.page-lottery .how-to-play-section {
  padding: 80px 0;
  background-color: #eaf2f8;
}

.page-lottery .how-to-play-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

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

.page-lottery .step-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-lottery .step-number {
  width: 50px;
  height: 50px;
  background-color: #007BFF;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-lottery .step-item h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #007BFF;
}

.page-lottery .step-item p {
  font-size: 0.95em;
  color: #555555;
  flex-grow: 1;
  text-align: center;
}

.page-lottery .step-button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 0.9em;
}

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

.page-lottery .tips-section h2 {
  margin-bottom: 30px;
}

.page-lottery .tips-section ul {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-lottery .tips-section li {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px 25px;
  font-size: 1.1em;
  color: #444444;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.page-lottery .tips-section li:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-lottery .tips-section li strong {
  color: #FFC107;
}

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

.page-lottery .faq-section h2 {
  margin-bottom: 40px;
}

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

.page-lottery .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

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

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

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

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

.page-lottery .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background: #ffffff;
  color: #333333;
  padding: 0 25px;
}

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

.page-lottery .faq-answer p {
  margin-bottom: 15px;
  text-align: left;
}

.page-lottery .faq-answer .inline-link {
  background-color: #FFC107;
  color: #333333;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}

.page-lottery .faq-answer .inline-link:hover {
  background-color: #e0a800;
  color: #ffffff;
}

/* Latest News Section */
.page-lottery .latest-news-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-lottery .latest-news-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

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

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

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

.page-lottery .news-card .card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-lottery .news-card h3 {
  font-size: 1.4em;
  margin: 20px 20px 10px;
  color: #007BFF;
  text-align: left;
}

.page-lottery .news-card h3 a {
  color: #007BFF;
  text-decoration: none;
}

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

.page-lottery .news-card p {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px;
  text-align: left;
  flex-grow: 1;
}

.page-lottery .news-card .card-button {
  margin: 0 20px 20px;
  align-self: flex-start;
  padding: 8px 18px;
  font-size: 0.9em;
}

/* 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 p {
    font-size: 1em;
  }

  .page-lottery .hero-image {
    max-width: 600px;
  }

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

@media (max-width: 768px) {
  .page-lottery .hero-section {
    padding: 40px 15px;
  }

  .page-lottery .hero-image {
    max-width: 100%;
  }

  .page-lottery h1 {
    font-size: 2.2em;
  }

  .page-lottery h2 {
    font-size: 1.8em;
    padding-top: 30px;
    margin-bottom: 25px;
  }

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

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

  .page-lottery .lottery-types-section,
  .page-lottery .why-betvisa-section,
  .page-lottery .how-to-play-section,
  .page-lottery .tips-section,
  .page-lottery .faq-section,
  .page-lottery .latest-news-section {
    padding: 50px 0;
  }

  .page-lottery .lottery-card,
  .page-lottery .feature-item,
  .page-lottery .step-item,
  .page-lottery .news-card {
    padding: 20px;
  }

  .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: 20px;
  }
}

@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 p {
    font-size: 0.95em;
  }

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

  .page-lottery .lottery-grid,
  .page-lottery .feature-list,
  .page-lottery .steps-grid,
  .page-lottery .news-grid {
    grid-template-columns: 1fr;
  }

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

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