.page-lottery-rules {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Light text for dark background */
  line-height: 1.6;
  background-color: #0A2342;
}

.page-lottery-rules__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #0A2342 0%, #1A3A60 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.page-lottery-rules__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.page-lottery-rules__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-lottery-rules__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #E0B400;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-lottery-rules__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-lottery-rules__hero-btn {
  display: inline-block;
  background-color: #E0B400;
  color: #0A2342;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery-rules__hero-btn:hover {
  background-color: #f5dc4b;
  transform: translateY(-3px);
}

.page-lottery-rules__hero-image-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
}

.page-lottery-rules__hero-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery-rules__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  color: #f0f0f0;
}

.page-lottery-rules__section-title {
  font-size: 2.5em;
  color: #E0B400;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-lottery-rules__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #E0B400;
  border-radius: 2px;
}

.page-lottery-rules__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #ccc;
}

.page-lottery-rules__general-rules {
  background-color: #0A2342;
}

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

.page-lottery-rules__rule-item {
  background-color: #1A3A60;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-lottery-rules__rule-item:hover {
  transform: translateY(-8px);
  background-color: #2A4E7A;
}

.page-lottery-rules__rule-title {
  font-size: 1.6em;
  color: #E0B400;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(224, 180, 0, 0.5);
  padding-bottom: 10px;
}

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

.page-lottery-rules__lottery-types {
  background-color: #1A3A60;
}

.page-lottery-rules__type-card {
  display: flex;
  flex-direction: column;
  background-color: #0A2342;
  border-radius: 15px;
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery-rules__type-card--reverse {
  flex-direction: column-reverse;
}

.page-lottery-rules__type-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.page-lottery-rules__type-content {
  padding: 30px;
}

.page-lottery-rules__type-title {
  font-size: 2em;
  color: #E0B400;
  margin-bottom: 20px;
}

.page-lottery-rules__type-content p {
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-lottery-rules__type-list {
  list-style-type: disc;
  margin-left: 20px;
  color: #f0f0f0;
  margin-bottom: 25px;
}

.page-lottery-rules__type-list li {
  margin-bottom: 8px;
  font-size: 1em;
}

.page-lottery-rules__type-btn {
  display: inline-block;
  background-color: #E0B400;
  color: #0A2342;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-lottery-rules__type-btn:hover {
  background-color: #f5dc4b;
  transform: translateY(-2px);
}

.page-lottery-rules__betting-guide {
  background-color: #0A2342;
}

.page-lottery-rules__guide-list {
  list-style-type: decimal;
  margin-left: 25px;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding-left: 0;
}

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

.page-lottery-rules__guide-list li strong {
  color: #E0B400;
}

.page-lottery-rules__guide-list li a {
  color: #E0B400;
  text-decoration: none;
  font-weight: bold;
}

.page-lottery-rules__guide-list li a:hover {
  text-decoration: underline;
}

.page-lottery-rules__betting-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-lottery-rules__betting-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery-rules__fairness-security {
  background-color: #1A3A60;
}

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

.page-lottery-rules__feature-item {
  background-color: #0A2342;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-lottery-rules__feature-item:hover {
  transform: translateY(-8px);
}

.page-lottery-rules__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px #E0B400);
}

.page-lottery-rules__feature-title {
  font-size: 1.8em;
  color: #E0B400;
  margin-bottom: 15px;
}

.page-lottery-rules__feature-item p {
  color: #f0f0f0;
}

.page-lottery-rules__security-image-wrapper {
  text-align: center;
}

.page-lottery-rules__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery-rules__faq {
  background-color: #0A2342;
}

.page-lottery-rules__faq-item {
  background-color: #1A3A60;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery-rules__faq-question {
  font-size: 1.4em;
  color: #E0B400;
  padding: 20px 30px;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2A4E7A;
  transition: background-color 0.3s ease;
}

.page-lottery-rules__faq-question:hover {
  background-color: #3A5F90;
}

.page-lottery-rules__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-lottery-rules__faq-item.active .page-lottery-rules__faq-question::after {
  transform: rotate(45deg);
}

.page-lottery-rules__faq-answer {
  padding: 0 30px 20px 30px;
  color: #f0f0f0;
  font-size: 1.1em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-lottery-rules__faq-item.active .page-lottery-rules__faq-answer {
  max-height: 200px; /* Adjust as needed */
  padding-top: 15px;
}

.page-lottery-rules__faq-answer a {
  color: #E0B400;
  text-decoration: none;
  font-weight: bold;
}

.page-lottery-rules__faq-answer a:hover {
  text-decoration: underline;
}

.page-lottery-rules__cta-section {
  background: linear-gradient(45deg, #0A2342, #E0B400);
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  color: #fff;
}

.page-lottery-rules__cta-content {
  max-width: 800px;
}

.page-lottery-rules__cta-title {
  font-size: 3em;
  color: #0A2342;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-lottery-rules__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #333;
}

.page-lottery-rules__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-lottery-rules__cta-btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery-rules__cta-btn--primary {
  background-color: #0A2342;
  color: #E0B400;
}

.page-lottery-rules__cta-btn--primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background-color: #1A3A60;
}

.page-lottery-rules__cta-btn--secondary {
  background-color: #fff;
  color: #0A2342;
  border: 2px solid #0A2342;
}

.page-lottery-rules__cta-btn--secondary:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background-color: #f0f0f0;
}

.page-lottery-rules__cta-image-wrapper {
  max-width: 600px;
  width: 100%;
}

.page-lottery-rules__cta-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (min-width: 768px) {
  .page-lottery-rules__hero {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    gap: 40px;
  }

  .page-lottery-rules__hero-content {
    text-align: left;
    margin-bottom: 0;
    flex: 1;
  }

  .page-lottery-rules__hero-image-wrapper {
    flex: 1;
  }

  .page-lottery-rules__type-card {
    flex-direction: row;
    align-items: center;
  }

  .page-lottery-rules__type-card--reverse {
    flex-direction: row-reverse;
  }

  .page-lottery-rules__type-image {
    width: 50%;
    height: 400px;
  }

  .page-lottery-rules__type-content {
    width: 50%;
    padding: 40px;
  }
  
  .page-lottery-rules__cta-section {
    flex-direction: row;
    text-align: left;
    justify-content: center;
  }

  .page-lottery-rules__cta-content {
    flex: 1;
    text-align: left;
  }

  .page-lottery-rules__cta-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .page-lottery-rules__hero-title {
    font-size: 2.5em;
  }

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

  .page-lottery-rules__type-title {
    font-size: 1.5em;
  }

  .page-lottery-rules__rule-item, .page-lottery-rules__feature-item {
    padding: 25px;
  }

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

  .page-lottery-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-lottery-rules__cta-btn {
    width: 100%;
  }
}