/* style/lottery-game-rules.css */
.page-lottery-game-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--black-color); /* Inherit from shared */
}

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

.page-lottery-game-rules__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-lottery-game-rules__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-lottery-game-rules__hero-section {
  padding: 100px 0;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
}

.page-lottery-game-rules__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-lottery-game-rules__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

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

.page-lottery-game-rules__btn-primary,
.page-lottery-game-rules__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery-game-rules__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
}

.page-lottery-game-rules__btn-primary:hover {
  background-color: #d16b06;
}

.page-lottery-game-rules__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.page-lottery-game-rules__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-lottery-game-rules__btn-large {
  padding: 18px 40px;
  font-size: 1.1em;
}

/* Section Titles and Subtitles */
.page-lottery-game-rules__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: inherit; /* Inherit from section background */
}

.page-lottery-game-rules__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: inherit;
}

/* Introduction Section */
.page-lottery-game-rules__introduction-section {
  padding: 80px 0;
}

.page-lottery-game-rules__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-lottery-game-rules__text-block {
  flex: 1;
}

.page-lottery-game-rules__text-block p {
  margin-bottom: 20px;
  color: inherit;
}

.page-lottery-game-rules__text-block a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-lottery-game-rules__image-block {
  flex: 1;
  text-align: center;
}

.page-lottery-game-rules__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto;
}

/* Types Section (Grid) */
.page-lottery-game-rules__types-section {
  padding: 80px 0;
}

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

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

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

.page-lottery-game-rules__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery-game-rules__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-lottery-game-rules__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-lottery-game-rules__card-title a:hover {
  text-decoration: underline;
}

.page-lottery-game-rules__card-description {
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-lottery-game-rules__card-link {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-lottery-game-rules__card-link:hover {
  background-color: #1e87b7;
}

/* How to Play Section */
.page-lottery-game-rules__how-to-play-section {
  padding: 80px 0;
}

.page-lottery-game-rules__game-guide {
  margin-bottom: 60px;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-lottery-game-rules__game-guide-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-lottery-game-rules__game-guide p {
  margin-bottom: 15px;
  color: #333333;
}

.page-lottery-game-rules__game-guide a {
  color: #26A9E0;
  text-decoration: underline;
}

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

.page-lottery-game-rules__list li {
  margin-bottom: 8px;
}

.page-lottery-game-rules__image-small {
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Rules Section */
.page-lottery-game-rules__rules-section {
  padding: 80px 0;
}

.page-lottery-game-rules__list-rules {
  list-style-type: decimal;
  margin-left: 25px;
  max-width: 900px;
  margin: 40px auto;
  color: #ffffff;
}

.page-lottery-game-rules__list-rules li {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-lottery-game-rules__list-rules a {
  color: #ffffff;
  text-decoration: underline;
}

/* Tips Section */
.page-lottery-game-rules__tips-section {
  padding: 80px 0;
}

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

.page-lottery-game-rules__tip-card {
  background-color: #f0f8ff; /* Light blue background */
  color: #333333;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-lottery-game-rules__tip-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-lottery-game-rules__tip-card p {
  font-size: 0.95em;
}

.page-lottery-game-rules__image-large {
  max-width: 1000px;
  height: auto;
  border-radius: 8px;
  margin: 50px auto 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: block;
}

/* FAQ Section */
.page-lottery-game-rules__faq-section {
  padding: 80px 0;
}

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

.page-lottery-game-rules__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-lottery-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #26A9E0; /* Brand color for question */
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-lottery-game-rules__faq-question:hover {
  background-color: #1e87b7;
}

.page-lottery-game-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-lottery-game-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter for answer */
  color: #f0f0f0;
}

.page-lottery-game-rules__faq-item.active .page-lottery-game-rules__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 20px 25px;
}

.page-lottery-game-rules__faq-answer p {
  margin-bottom: 15px;
  color: inherit;
}

.page-lottery-game-rules__faq-answer a {
  color: #ffcc00; /* Highlight links in dark background */
  text-decoration: underline;
}

/* Call to Action Section */
.page-lottery-game-rules__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-lottery-game-rules__cta-section .page-lottery-game-rules__btn-primary {
  margin-top: 30px;
}

.page-lottery-game-rules__cta-section .page-lottery-game-rules__section-subtitle a {
  color: #26A9E0;
  text-decoration: underline;
}

/* General image styling for content area */
.page-lottery-game-rules img {
  max-width: 100%;
  height: auto;
  display: block; /* Ensures proper block behavior */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-lottery-game-rules__hero-title {
    font-size: 3em;
  }

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

@media (max-width: 768px) {
  .page-lottery-game-rules {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-lottery-game-rules__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-lottery-game-rules__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-lottery-game-rules__btn-primary,
  .page-lottery-game-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-lottery-game-rules__section-subtitle {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-lottery-game-rules__introduction-section,
  .page-lottery-game-rules__types-section,
  .page-lottery-game-rules__how-to-play-section,
  .page-lottery-game-rules__rules-section,
  .page-lottery-game-rules__tips-section,
  .page-lottery-game-rules__faq-section,
  .page-lottery-game-rules__cta-section {
    padding: 50px 0;
  }

  .page-lottery-game-rules__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-lottery-game-rules__image,
  .page-lottery-game-rules__image-small,
  .page-lottery-game-rules__image-large {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-lottery-game-rules__grid,
  .page-lottery-game-rules__grid-tips {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-lottery-game-rules__card,
  .page-lottery-game-rules__tip-card {
    padding: 20px;
  }

  .page-lottery-game-rules__game-guide {
    padding: 20px 15px;
    margin-bottom: 40px;
  }

  .page-lottery-game-rules__game-guide-title {
    font-size: 1.5em;
  }

  .page-lottery-game-rules__list,
  .page-lottery-game-rules__list-rules {
    margin-left: 15px;
    padding: 0 15px;
  }

  .page-lottery-game-rules__faq-question,
  .page-lottery-game-rules__faq-answer {
    padding: 15px 20px;
  }

  .page-lottery-game-rules__faq-item.active .page-lottery-game-rules__faq-answer {
    padding: 15px 20px;
  }
  
  /* Ensure all containers with images/videos/buttons are constrained */
  .page-lottery-game-rules__section,
  .page-lottery-game-rules__card,
  .page-lottery-game-rules__container,
  .page-lottery-game-rules__content-wrapper,
  .page-lottery-game-rules__image-block,
  .page-lottery-game-rules__text-block,
  .page-lottery-game-rules__game-guide,
  .page-lottery-game-rules__faq-list,
  .page-lottery-game-rules__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-lottery-game-rules__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}